componentsDjangoType 2.0.39__tar.gz → 2.1.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {componentsdjangotype-2.0.39/componentsDjangoType.egg-info → componentsdjangotype-2.1.0}/PKG-INFO +4 -1
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/README.md +3 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0/componentsDjangoType.egg-info}/PKG-INFO +4 -1
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/authentication/auth.py +7 -3
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/setup.py +1 -1
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/LICENSE +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/MANIFEST.in +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/__init__.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/management/__init__.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/management/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/management/commands/__init__.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/management/commands/__pycache__/__init__.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/management/commands/__pycache__/createApp.cpython-312.pyc +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/management/commands/createApp.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType/management/commands/createcomponent.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType.egg-info/SOURCES.txt +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType.egg-info/dependency_links.txt +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType.egg-info/requires.txt +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType.egg-info/top_level.txt +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/__init__.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/authentication/__init__.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/authentication/forms.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/authenticator_configurator.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/copy_source.py +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/css/authentication.css +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/js/alertErrors.js +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/views/home.html +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/views/layouts/index.html +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/views/logged.html +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/views/login.html +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/views/signup.html +0 -0
- {componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/setup.cfg +0 -0
{componentsdjangotype-2.0.39/componentsDjangoType.egg-info → componentsdjangotype-2.1.0}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: componentsDjangoType
|
3
|
-
Version: 2.0
|
3
|
+
Version: 2.1.0
|
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
|
@@ -35,6 +35,9 @@ Este comando de Django te permite crear un componente HTML dentro del directorio
|
|
35
35
|
2. Luego instala el paquete pip `pip install componentsDjangoType`
|
36
36
|
3. Agrega `componentsDjangoType` a la lista de aplicaciones instaladas (`INSTALLED_APPS`) en el archivo `settings.py` de tu proyecto de Django.
|
37
37
|
|
38
|
+
> [!TIP]
|
39
|
+
> Solo istalar versiones estables ej. 1.0.0 o 2.1.0
|
40
|
+
|
38
41
|
## Uso
|
39
42
|
|
40
43
|
### comando para hacer archivos html css y js
|
@@ -16,6 +16,9 @@ Este comando de Django te permite crear un componente HTML dentro del directorio
|
|
16
16
|
2. Luego instala el paquete pip `pip install componentsDjangoType`
|
17
17
|
3. Agrega `componentsDjangoType` a la lista de aplicaciones instaladas (`INSTALLED_APPS`) en el archivo `settings.py` de tu proyecto de Django.
|
18
18
|
|
19
|
+
> [!TIP]
|
20
|
+
> Solo istalar versiones estables ej. 1.0.0 o 2.1.0
|
21
|
+
|
19
22
|
## Uso
|
20
23
|
|
21
24
|
### comando para hacer archivos html css y js
|
{componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0/componentsDjangoType.egg-info}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: componentsDjangoType
|
3
|
-
Version: 2.0
|
3
|
+
Version: 2.1.0
|
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
|
@@ -35,6 +35,9 @@ Este comando de Django te permite crear un componente HTML dentro del directorio
|
|
35
35
|
2. Luego instala el paquete pip `pip install componentsDjangoType`
|
36
36
|
3. Agrega `componentsDjangoType` a la lista de aplicaciones instaladas (`INSTALLED_APPS`) en el archivo `settings.py` de tu proyecto de Django.
|
37
37
|
|
38
|
+
> [!TIP]
|
39
|
+
> Solo istalar versiones estables ej. 1.0.0 o 2.1.0
|
40
|
+
|
38
41
|
## Uso
|
39
42
|
|
40
43
|
### comando para hacer archivos html css y js
|
@@ -8,10 +8,12 @@ class Authentication:
|
|
8
8
|
@staticmethod
|
9
9
|
def get_signup(request):
|
10
10
|
if request.method == 'GET':
|
11
|
+
# Crear una nueva instancia del formulario en GET
|
11
12
|
return render(request, 'signup.html', {
|
12
|
-
|
13
|
+
'form': customUserCreationform() # Instancia del formulario
|
13
14
|
})
|
14
15
|
elif request.method == 'POST':
|
16
|
+
# Crear una instancia del formulario con los datos enviados
|
15
17
|
form = customUserCreationform(request.POST)
|
16
18
|
if form.is_valid():
|
17
19
|
try:
|
@@ -19,12 +21,14 @@ class Authentication:
|
|
19
21
|
login(request, user)
|
20
22
|
return redirect('logged')
|
21
23
|
except IntegrityError:
|
24
|
+
# Si ocurre un error de integridad (por ejemplo, nombre de usuario duplicado)
|
22
25
|
return render(request, 'signup.html', {
|
23
26
|
'form': form,
|
24
27
|
'error': 'Unable to register. Please try again later.'
|
25
28
|
})
|
26
|
-
|
27
|
-
|
29
|
+
else:
|
30
|
+
# Si el formulario no es válido, muestra los errores
|
31
|
+
return render(request, 'signup.html', {
|
28
32
|
'form': form,
|
29
33
|
'error': 'Please correct the errors below.'
|
30
34
|
})
|
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-2.0.39 → componentsdjangotype-2.1.0}/componentsDjangoType.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/authentication/__init__.py
RENAMED
File without changes
|
File without changes
|
{componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/authenticator_configurator.py
RENAMED
File without changes
|
File without changes
|
{componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/css/authentication.css
RENAMED
File without changes
|
File without changes
|
File without changes
|
{componentsdjangotype-2.0.39 → componentsdjangotype-2.1.0}/services/utils/views/layouts/index.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|