componentsDjangoType 2.0.30__tar.gz → 2.0.31__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {componentsdjangotype-2.0.30/componentsDjangoType.egg-info → componentsdjangotype-2.0.31}/PKG-INFO +1 -1
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31/componentsDjangoType.egg-info}/PKG-INFO +1 -1
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authenticator_configurator.py +12 -15
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/setup.py +1 -1
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/LICENSE +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/MANIFEST.in +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/README.md +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/__pycache__/createApp.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/createApp.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/__init__.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authentication/__init__.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authentication/auth.py +0 -0
- {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/setup.cfg +0 -0
{componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authenticator_configurator.py
RENAMED
@@ -160,9 +160,8 @@ path('', include('home.urls'))
|
|
160
160
|
else:
|
161
161
|
stdout.write(f"El directorio '{home_dir}' ya existe.\n")
|
162
162
|
|
163
|
-
#
|
164
|
-
|
165
|
-
views_code = '''from django.shortcuts import render
|
163
|
+
# Sobrescribir o crear el archivo views.py
|
164
|
+
views_code = '''from django.shortcuts import render
|
166
165
|
from Home.services.authentication import Authentication
|
167
166
|
|
168
167
|
def home(request):
|
@@ -179,12 +178,10 @@ def signing(request):
|
|
179
178
|
|
180
179
|
def logged(request):
|
181
180
|
return Authentication.get_logged(request)
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
else:
|
187
|
-
stdout.write(f"El archivo '{views_path}' ya existe.\n")
|
181
|
+
'''
|
182
|
+
with open(views_path, 'w') as views_file: # Abrir en modo escritura siempre
|
183
|
+
views_file.write(views_code)
|
184
|
+
stdout.write(f"El archivo '{views_path}' ha sido creado o sobrescrito.\n")
|
188
185
|
|
189
186
|
# Verificar si urls.py existe y crearlo si no existe
|
190
187
|
if not os.path.exists(urls_path):
|
@@ -192,13 +189,13 @@ def logged(request):
|
|
192
189
|
from . import views
|
193
190
|
|
194
191
|
urlpatterns = [
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
192
|
+
path("", views.home, name='home'),
|
193
|
+
path("signup", views.signup, name='signup'),
|
194
|
+
path("login", views.signing, name='login'),
|
195
|
+
path("logout", views.signout, name='logout'),
|
196
|
+
path("logged", views.logged, name='logged'),
|
200
197
|
]
|
201
|
-
|
198
|
+
'''
|
202
199
|
with open(urls_path, 'w') as urls_file:
|
203
200
|
urls_file.write(urls_code)
|
204
201
|
stdout.write(f"El archivo '{urls_path}' ha sido creado.\n")
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authentication/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|