componentsDjangoType 2.0.18__tar.gz → 2.0.19__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 (23) hide show
  1. {componentsdjangotype-2.0.18/componentsDjangoType.egg-info → componentsdjangotype-2.0.19}/PKG-INFO +1 -1
  2. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19/componentsDjangoType.egg-info}/PKG-INFO +1 -1
  3. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/services/authenticator_configurator.py +10 -17
  4. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/setup.py +1 -1
  5. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/LICENSE +0 -0
  6. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/MANIFEST.in +0 -0
  7. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/README.md +0 -0
  8. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType/__init__.py +0 -0
  9. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType/management/__init__.py +0 -0
  10. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType/management/commands/__init__.py +0 -0
  11. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType/management/commands/createApp.py +0 -0
  12. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType/management/commands/createcomponent.py +0 -0
  13. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
  14. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
  15. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType.egg-info/requires.txt +0 -0
  16. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/componentsDjangoType.egg-info/top_level.txt +0 -0
  17. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/services/__init__.py +0 -0
  18. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/services/authentication/__init__.py +0 -0
  19. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/services/authentication/auth.py +0 -0
  20. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/services/home/__init__.py +0 -0
  21. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/services/home/urls_page.py +0 -0
  22. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/services/home/views_page.py +0 -0
  23. {componentsdjangotype-2.0.18 → componentsdjangotype-2.0.19}/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.19
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.18
3
+ Version: 2.0.19
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:
@@ -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.19',
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  license='MIT',