componentsDjangoType 2.0.26__tar.gz → 2.0.30__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.26/componentsDjangoType.egg-info → componentsdjangotype-2.0.30}/PKG-INFO +1 -1
  2. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30/componentsDjangoType.egg-info}/PKG-INFO +1 -1
  3. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/services/authenticator_configurator.py +12 -13
  4. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/setup.py +1 -1
  5. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/LICENSE +0 -0
  6. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/MANIFEST.in +0 -0
  7. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/README.md +0 -0
  8. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/__init__.py +0 -0
  9. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/__pycache__/__init__.cpython-312.pyc +0 -0
  10. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/management/__init__.py +0 -0
  11. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/management/__pycache__/__init__.cpython-312.pyc +0 -0
  12. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/management/commands/__init__.py +0 -0
  13. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/management/commands/__pycache__/__init__.cpython-312.pyc +0 -0
  14. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/management/commands/__pycache__/createApp.cpython-312.pyc +0 -0
  15. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/management/commands/createApp.py +0 -0
  16. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType/management/commands/createcomponent.py +0 -0
  17. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
  18. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
  19. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType.egg-info/requires.txt +0 -0
  20. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/componentsDjangoType.egg-info/top_level.txt +0 -0
  21. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/services/__init__.py +0 -0
  22. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/services/authentication/__init__.py +0 -0
  23. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/services/authentication/auth.py +0 -0
  24. {componentsdjangotype-2.0.26 → componentsdjangotype-2.0.30}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 2.0.26
3
+ Version: 2.0.30
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.26
3
+ Version: 2.0.30
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
@@ -89,23 +89,22 @@ path('', include('home.urls'))
89
89
 
90
90
  updated = False
91
91
 
92
- # Verificar si 'include' está importado
93
- if 'include' not in urls_content:
94
- stdout.write("Agregando 'include' a los imports.\n")
95
- urls_content = urls_content.replace(
96
- "from django.urls import path",
97
- "from django.urls import path, include" # Asegura que 'include' se agregue
98
- )
99
- updated = True
100
-
101
92
  # Verificar si la ruta de 'Home.urls' está en 'urlpatterns'
102
- if "include('home.urls')" not in urls_content:
93
+ if "include('Home.urls')" not in urls_content:
103
94
  stdout.write("Agregando ruta para 'home.urls'.\n")
104
- # Asegúrate de agregar la ruta en el lugar adecuado dentro de 'urlpatterns'
95
+
96
+ # Agregar importación de 'include'
105
97
  urls_content = urls_content.replace(
106
- "urlpatterns = [",
107
- "urlpatterns = [\n path('', include('home.urls')), # Ruta para home\n"
98
+ "from django.urls import path",
99
+ "from django.urls import path, include"
108
100
  )
101
+
102
+ # Agregar 'Home.urls' a 'urlpatterns'
103
+ if "urlpatterns = [" in urls_content:
104
+ urls_content = urls_content.replace(
105
+ "urlpatterns = [",
106
+ "urlpatterns = [\n path('admin/', admin.site.urls),\n path('', include('Home.urls')),\n"
107
+ )
109
108
  updated = True
110
109
 
111
110
  # Escribir los cambios si se modificó algo
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='componentsDjangoType',
5
- version='2.0.26',
5
+ version='2.0.30',
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  license='MIT',