componentsDjangoType 2.0.18__tar.gz → 2.0.20__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. {componentsdjangotype-2.0.18/componentsDjangoType.egg-info → componentsdjangotype-2.0.20}/PKG-INFO +1 -1
  2. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType/management/commands/createApp.py +1 -3
  3. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20/componentsDjangoType.egg-info}/PKG-INFO +1 -1
  4. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/services/authenticator_configurator.py +10 -17
  5. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/services/home/views_page.py +1 -1
  6. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/setup.py +1 -1
  7. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/LICENSE +0 -0
  8. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/MANIFEST.in +0 -0
  9. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/README.md +0 -0
  10. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType/__init__.py +0 -0
  11. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType/management/__init__.py +0 -0
  12. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType/management/commands/__init__.py +0 -0
  13. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType/management/commands/createcomponent.py +0 -0
  14. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
  15. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
  16. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType.egg-info/requires.txt +0 -0
  17. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/componentsDjangoType.egg-info/top_level.txt +0 -0
  18. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/services/__init__.py +0 -0
  19. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/services/authentication/__init__.py +0 -0
  20. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/services/authentication/auth.py +0 -0
  21. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/services/home/__init__.py +0 -0
  22. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/services/home/urls_page.py +0 -0
  23. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.20}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 2.0.18
3
+ Version: 2.0.20
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
@@ -36,9 +36,7 @@ class Command(BaseCommand):
36
36
  # Paso 4: Crear la carpeta services y el archivo authentication.py en Home
37
37
  creation.creation_auth(self.stdout)
38
38
 
39
- # 5 creacion de las carpetas views y urls.py
40
- creation.create_views_urls(self.stdout)
41
-
39
+ creation.create_views_urls(self. stdout)
42
40
 
43
41
  # Paso 8: Crear la carpeta templates y estatic y los archivos HTML CSS y JS
44
42
  templates_dir = os.path.join(app_name, 'templates')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 2.0.18
3
+ Version: 2.0.20
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
@@ -158,26 +158,19 @@ path('', include('home.urls'))
158
158
  # Crear el directorio si no existe
159
159
  os.makedirs(home_dir, exist_ok=True)
160
160
 
161
- # Obtener la ruta absoluta de los archivos fuente
162
- views_source_path = os.path.abspath(views_page.__file__)
163
- urls_source_path = os.path.abspath(urls_page.__file__)
164
-
165
- # Comprobar si los archivos fuente existen
161
+ # Verificar y crear views.py
162
+ views_source_path = os.path.abspath(views_page.__file__) # Validar existencia
166
163
  if not os.path.exists(views_source_path):
167
- stdout.write(f"El archivo fuente '{views_source_path}' no existe. Verifica la instalación del paquete.\n")
168
- creation = input("¿Quieres crear el archivo 'views.py'? (s/n): ")
169
- if creation.lower() == 's':
170
- self.create_file(views_source_path, views_path, stdout)
171
- else:
172
- return
164
+ stdout.write(f"El archivo fuente '{views_source_path}' no existe.\n")
165
+ else:
166
+ self.create_file(views_source_path, views_path, stdout)
173
167
 
168
+ # Verificar y crear urls.py
169
+ urls_source_path = os.path.abspath(urls_page.__file__) # Validar existencia
174
170
  if not os.path.exists(urls_source_path):
175
- stdout.write(f"El archivo fuente '{urls_source_path}' no existe. Verifica la instalación del paquete.\n")
176
- creation = input("¿Quieres crear el archivo 'urls.py'? (s/n): ")
177
- if creation.lower() == 's':
178
- self.create_file(urls_source_path, urls_path, stdout)
179
- else:
180
- return
171
+ stdout.write(f"El archivo fuente '{urls_source_path}' no existe.\n")
172
+ else:
173
+ self.create_file(urls_source_path, urls_path, stdout)
181
174
 
182
175
  def create_file(self, source_path, dest_path, stdout):
183
176
  try:
@@ -1,6 +1,6 @@
1
1
  from django.shortcuts import render
2
2
  from django.contrib.auth.decorators import login_required
3
- from Home.services.authentication import Authentication
3
+ from services.authentication.auth import Authentication
4
4
 
5
5
  # Create your views here.
6
6
 
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='componentsDjangoType',
5
- version='2.0.18',
5
+ version='2.0.20',
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  license='MIT',