componentsDjangoType 2.0.30__tar.gz → 2.0.31__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {componentsdjangotype-2.0.30/componentsDjangoType.egg-info → componentsdjangotype-2.0.31}/PKG-INFO +1 -1
  2. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31/componentsDjangoType.egg-info}/PKG-INFO +1 -1
  3. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authenticator_configurator.py +12 -15
  4. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/setup.py +1 -1
  5. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/LICENSE +0 -0
  6. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/MANIFEST.in +0 -0
  7. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/README.md +0 -0
  8. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/__init__.py +0 -0
  9. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/__pycache__/__init__.cpython-312.pyc +0 -0
  10. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/__init__.py +0 -0
  11. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/__pycache__/__init__.cpython-312.pyc +0 -0
  12. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/__init__.py +0 -0
  13. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/__pycache__/__init__.cpython-312.pyc +0 -0
  14. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/__pycache__/createApp.cpython-312.pyc +0 -0
  15. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/createApp.py +0 -0
  16. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType/management/commands/createcomponent.py +0 -0
  17. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
  18. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
  19. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/requires.txt +0 -0
  20. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/componentsDjangoType.egg-info/top_level.txt +0 -0
  21. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/__init__.py +0 -0
  22. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authentication/__init__.py +0 -0
  23. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/services/authentication/auth.py +0 -0
  24. {componentsdjangotype-2.0.30 → componentsdjangotype-2.0.31}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 2.0.30
3
+ Version: 2.0.31
4
4
  Summary: Comandos para crear archivos html, css y js
5
5
  Home-page: https://github.com/jose-CR/componentsDjangoType
6
6
  Author: Alejandro
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 2.0.30
3
+ Version: 2.0.31
4
4
  Summary: Comandos para crear archivos html, css y js
5
5
  Home-page: https://github.com/jose-CR/componentsDjangoType
6
6
  Author: Alejandro
@@ -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
- # Verificar si views.py existe y crearlo si no existe
164
- if not os.path.exists(views_path):
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
- with open(views_path, 'w') as views_file:
184
- views_file.write(views_code)
185
- stdout.write(f"El archivo '{views_path}' ha sido creado.\n")
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
- path("", views.home, name='home'),
196
- path("signup", views.signup, name='signup'),
197
- path("login", views.signing, name='login'),
198
- path("logout", views.signout, name='logout'),
199
- path("logged", views.logged, name='logged'),
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")
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='componentsDjangoType',
5
- version='2.0.30',
5
+ version='2.0.31',
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  license='MIT',