componentsDjangoType 1.0.1__tar.gz → 1.0.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {componentsdjangotype-1.0.1/componentsDjangoType.egg-info → componentsdjangotype-1.0.2}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/createApp.py +2 -4
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2/componentsDjangoType.egg-info}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/setup.py +1 -1
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/LICENSE +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/MANIFEST.in +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/README.md +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/utils/css/authentication.css +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/utils/js/alertErrors.js +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/utils/layouts/index.html +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/utils/pages/home.html +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/utils/pages/logged.html +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/utils/pages/login.html +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType/management/commands/utils/pages/singup.html +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/setup.cfg +0 -0
@@ -1,4 +1,3 @@
|
|
1
|
-
# componentsDjangoType/management/commands/createcomponentApp.py
|
2
1
|
import os
|
3
2
|
from django.core.management.base import BaseCommand
|
4
3
|
from django.core.management import call_command
|
@@ -37,7 +36,8 @@ class Command(BaseCommand):
|
|
37
36
|
self.stdout.write(f"El archivo '{urls_path}' ya existe.")
|
38
37
|
|
39
38
|
# Paso 4: Modificar el archivo urls.py principal del proyecto
|
40
|
-
project_urls_path = os.path.join(
|
39
|
+
project_urls_path = os.path.join(
|
40
|
+
project_name, 'urls.py')
|
41
41
|
if os.path.exists(project_urls_path):
|
42
42
|
with open(project_urls_path, 'r') as f:
|
43
43
|
content = f.read()
|
@@ -152,8 +152,6 @@ class Command(BaseCommand):
|
|
152
152
|
self.stdout.write(
|
153
153
|
f"El archivo '{authentication_file_path}' ya existe.")
|
154
154
|
|
155
|
-
import os
|
156
|
-
|
157
155
|
# Paso 6: Crear la carpeta templates y los archivos HTML
|
158
156
|
# Asumiendo que `project_name` ya está definido
|
159
157
|
templates_dir = os.path.join(project_name, 'templates')
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{componentsdjangotype-1.0.1 → componentsdjangotype-1.0.2}/componentsDjangoType.egg-info/requires.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|