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.
Files changed (16) hide show
  1. {componentsdjangotype-1.0.6/componentsDjangoType.egg-info → componentsdjangotype-1.0.7}/PKG-INFO +1 -1
  2. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/commands/createApp.py +9 -10
  3. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7/componentsDjangoType.egg-info}/PKG-INFO +1 -1
  4. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/setup.py +1 -1
  5. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/LICENSE +0 -0
  6. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/MANIFEST.in +0 -0
  7. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/README.md +0 -0
  8. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/__init__.py +0 -0
  9. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/__init__.py +0 -0
  10. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/commands/__init__.py +0 -0
  11. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType/management/commands/createcomponent.py +0 -0
  12. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
  13. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
  14. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/requires.txt +0 -0
  15. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/componentsDjangoType.egg-info/top_level.txt +0 -0
  16. {componentsdjangotype-1.0.6 → componentsdjangotype-1.0.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: A Django app for creating HTML components
5
5
  Home-page: https://github.com/jose-CR/componentsDjangoType
6
6
  Author: Alejandro
@@ -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() {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: componentsDjangoType
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: A Django app for creating HTML components
5
5
  Home-page: https://github.com/jose-CR/componentsDjangoType
6
6
  Author: Alejandro
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='componentsDjangoType',
5
- version='1.0.6',
5
+ version='1.0.7',
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  license='MIT',