componentsDjangoType 2.0.13__tar.gz → 2.0.15__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 (20) hide show
  1. {componentsdjangotype-2.0.13/componentsDjangoType.egg-info → componentsdjangotype-2.0.15}/PKG-INFO +1 -1
  2. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15/componentsDjangoType.egg-info}/PKG-INFO +1 -1
  3. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/services/authenticator_configurator.py +6 -3
  4. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/setup.py +1 -1
  5. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/LICENSE +0 -0
  6. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/MANIFEST.in +0 -0
  7. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/README.md +0 -0
  8. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType/__init__.py +0 -0
  9. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType/management/__init__.py +0 -0
  10. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType/management/commands/__init__.py +0 -0
  11. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType/management/commands/createApp.py +0 -0
  12. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType/management/commands/createcomponent.py +0 -0
  13. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
  14. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
  15. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType.egg-info/requires.txt +0 -0
  16. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/componentsDjangoType.egg-info/top_level.txt +0 -0
  17. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/services/__init__.py +0 -0
  18. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/services/authentication/__init__.py +0 -0
  19. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/services/authentication/auth.py +0 -0
  20. {componentsdjangotype-2.0.13 → componentsdjangotype-2.0.15}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 2.0.13
3
+ Version: 2.0.15
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.13
3
+ Version: 2.0.15
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
@@ -2,6 +2,7 @@ import os
2
2
  import ast
3
3
  from django.core.management.base import BaseCommand
4
4
  from django.core.management import call_command
5
+ from services.authentication import auth
5
6
 
6
7
  class DjangoProjectManager:
7
8
  def __init__(self, app_name, project_name):
@@ -46,7 +47,7 @@ class DjangoProjectManager:
46
47
  # Comprobar si la aplicación no está ya en INSTALLED_APPS
47
48
  if f"'{self.app_name}'" not in installed_apps_content:
48
49
  # Insertar la aplicación dentro de la lista
49
- new_installed_apps = installed_apps_content[:-1] + f"'{self.app_name}',\n]"
50
+ new_installed_apps = installed_apps_content[:-1] + f" '{self.app_name}',\n]"
50
51
 
51
52
  # Reemplazar el bloque INSTALLED_APPS con la nueva lista
52
53
  new_settings_content = settings_content[:installed_apps_start] + new_installed_apps + settings_content[installed_apps_end:]
@@ -118,11 +119,13 @@ urlpatterns = [
118
119
  def creation_auth(self, stdout):
119
120
  services_dir = os.path.join(self.app_name, 'services')
120
121
  authentication_dir = os.path.join(services_dir, 'authentication')
121
- os.makedirs(authentication_dir, exist_ok=True)
122
+ os.makedirs(authentication_dir, exist_ok=True)
122
123
 
124
+ # Ruta para el nuevo archivo a crear
123
125
  authentication_path = os.path.join(authentication_dir, 'authentication.py')
124
126
 
125
- auth_source_path = os.path.abspath('authentication/auth.py')
127
+ # Usar el atributo __file__ del módulo 'auth' para obtener la ruta del archivo fuente
128
+ auth_source_path = os.path.abspath(auth.__file__)
126
129
 
127
130
  if not os.path.exists(auth_source_path):
128
131
  stdout.write(f"El archivo fuente '{auth_source_path}' no existe. Verifica la instalación del paquete.")
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='componentsDjangoType',
5
- version='2.0.13',
5
+ version='2.0.15',
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  license='MIT',