componentsDjangoType 1.0.6__tar.gz → 1.0.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {componentsdjangotype-1.0.6/componentsDjangoType.egg-info → componentsdjangotype-1.0.7}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/commands/createApp.py +9 -10
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7/componentsDjangoType.egg-info}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/setup.py +1 -1
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/LICENSE +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/MANIFEST.in +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/README.md +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/setup.cfg +0 -0
@@ -11,6 +11,15 @@ class Command(BaseCommand):
|
|
11
11
|
# Nombre de la aplicación a crear
|
12
12
|
app_name = "Home"
|
13
13
|
|
14
|
+
# definiendoerrores
|
15
|
+
def write_file(file_path, content):
|
16
|
+
try:
|
17
|
+
with open(file_path, 'w') as file:
|
18
|
+
file.write(content)
|
19
|
+
print(f"Archivo escrito correctamente: {file_path}")
|
20
|
+
except Exception as e:
|
21
|
+
print(f"Error al escribir el archivo {file_path}: {e}")
|
22
|
+
|
14
23
|
# Paso 1: Solicitar el nombre de la aplicación principal al usuario
|
15
24
|
project_name = input(
|
16
25
|
"Por favor, ingresa el nombre de la aplicación principal del proyecto: ")
|
@@ -267,16 +276,6 @@ class Command(BaseCommand):
|
|
267
276
|
|
268
277
|
# escritura de los archivos
|
269
278
|
|
270
|
-
# definiendoerrores
|
271
|
-
|
272
|
-
def write_file(file_path, content):
|
273
|
-
try:
|
274
|
-
with open(file_path, 'w') as file:
|
275
|
-
file.write(content)
|
276
|
-
print(f"Archivo escrito correctamente: {file_path}")
|
277
|
-
except Exception as e:
|
278
|
-
print(f"Error al escribir el archivo {file_path}: {e}")
|
279
|
-
|
280
279
|
# escritura del archivos js
|
281
280
|
write_file(js_file_path, """
|
282
281
|
function closeAlert() {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/requires.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|