componentsDjangoType 1.0.2__tar.gz → 1.0.4__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.
- {componentsdjangotype-1.0.2/componentsDjangoType.egg-info → componentsdjangotype-1.0.4}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/createApp.py +18 -10
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4/componentsDjangoType.egg-info}/PKG-INFO +1 -1
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/setup.py +4 -1
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/LICENSE +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/MANIFEST.in +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/README.md +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/utils/css/authentication.css +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/utils/js/alertErrors.js +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/utils/layouts/index.html +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/utils/pages/home.html +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/utils/pages/logged.html +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/utils/pages/login.html +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType/management/commands/utils/pages/singup.html +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/setup.cfg +0 -0
@@ -1,6 +1,7 @@
|
|
1
1
|
import os
|
2
2
|
from django.core.management.base import BaseCommand
|
3
3
|
from django.core.management import call_command
|
4
|
+
import componentsDjangoType.management.commands.utils as utils
|
4
5
|
|
5
6
|
|
6
7
|
class Command(BaseCommand):
|
@@ -160,6 +161,9 @@ class Command(BaseCommand):
|
|
160
161
|
css_dir = os.path.join(static_dir, 'css')
|
161
162
|
js_dir = os.path.join(static_dir, 'js')
|
162
163
|
|
164
|
+
# Ruta base para `utils`
|
165
|
+
utils_base_path = os.path.dirname(utils.__file__)
|
166
|
+
|
163
167
|
# Crear los directorios necesarios
|
164
168
|
os.makedirs(js_dir, exist_ok=True)
|
165
169
|
os.makedirs(css_dir, exist_ok=True)
|
@@ -167,28 +171,32 @@ class Command(BaseCommand):
|
|
167
171
|
os.makedirs(templates_dir, exist_ok=True)
|
168
172
|
os.makedirs(static_dir, exist_ok=True)
|
169
173
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
174
|
+
css_source_path = os.path.join(
|
175
|
+
utils_base_path, 'css', 'authentication.css')
|
176
|
+
js_source_path = os.path.join(utils_base_path, 'js', 'alertErrors.js')
|
177
|
+
index_page_source = os.path.join(
|
178
|
+
utils_base_path, 'layouts', 'index.html')
|
179
|
+
home_page = os.path.join(utils_base_path, 'pages', 'home.html')
|
180
|
+
signup_page = os.path.join(utils_base_path, 'pages', 'signup.html')
|
181
|
+
login_page = os.path.join(utils_base_path, 'pages', 'login.html')
|
182
|
+
logged_page = os.path.join(utils_base_path, 'pages', 'logged.html')
|
175
183
|
|
176
184
|
# Crear archivos si no existen
|
177
|
-
if not os.path.exists(
|
185
|
+
if not os.path.exists(css_source_path):
|
178
186
|
try:
|
179
187
|
with open(css_source_path, 'r') as source_file:
|
180
188
|
css_content = source_file.read()
|
181
189
|
with open(js_source_path, 'r') as source_file:
|
182
190
|
js_content = source_file.read()
|
183
191
|
|
184
|
-
with open(
|
192
|
+
with open(css_source_path, 'w') as f:
|
185
193
|
f.write(css_content)
|
186
|
-
with open(
|
194
|
+
with open(js_source_path, 'w') as f:
|
187
195
|
f.write(js_content)
|
188
196
|
|
189
197
|
print(f"Archivo CSS creado exitosamente en {
|
190
|
-
|
191
|
-
print(f"Archivo JS creado exitosamente en {
|
198
|
+
js_source_path}")
|
199
|
+
print(f"Archivo JS creado exitosamente en {js_source_path}")
|
192
200
|
except FileNotFoundError as e:
|
193
201
|
print(f"Archivo fuente no encontrado: {e}")
|
194
202
|
except Exception as e:
|
@@ -2,9 +2,12 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='componentsDjangoType',
|
5
|
-
version='1.0.
|
5
|
+
version='1.0.4',
|
6
6
|
packages=find_packages(),
|
7
7
|
include_package_data=True,
|
8
|
+
package_data={
|
9
|
+
'componentsDjangoType.utils': ['css/*.css', 'js/*.js', 'layouts/*.html', 'pages/*.html']
|
10
|
+
},
|
8
11
|
license='MIT',
|
9
12
|
description='A Django app for creating HTML components',
|
10
13
|
long_description=open('README.md').read(),
|
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.2 → componentsdjangotype-1.0.4}/componentsDjangoType.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{componentsdjangotype-1.0.2 → componentsdjangotype-1.0.4}/componentsDjangoType.egg-info/requires.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|