-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit profile #60
Edit profile #60
Conversation
@@ -128,7 +129,7 @@ | |||
'USER': os.getenv('POSTGRES_USERNAME', 'root'), | |||
'PASSWORD': os.getenv('POSTGRES_PASSWORD', 'example'), | |||
'HOST': os.getenv('POSTGRES_HOST', '127.0.0.1'), | |||
'PORT': os.getenv('POSTGRES_PORT', 5432), | |||
'PORT': os.getenv('POSTGRES_PORT', 5433), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ojo con este tipo de pushs! Dejar el puerto por default o le va a explotar a todos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
si fue mala mia. Lo arreglé en el otro commit que pushee con este, se hizo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nop, no aparece! En el commit que hiciste corregiste el docker-compose.dev.yml, pero no este!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahora si, disculpame. No me aparecia el cambio en ese archivo.
@@ -151,6 +152,8 @@ | |||
}, | |||
] | |||
|
|||
MIN_PASSWORD_LEN: int = 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No dejar hardcodeado! Sacar de las variables de entorno (las variables de entorno son aquellas que se setean desde el docker-compose.yml y nos permite parametrizar el sistema sin cambiar el código). Hacer como se hace más abajo en este archivo con la variable N_JOBS_RF
. Fijate que la obtenemos con os.getenv
, le ponemos un valor por defecto y lo casteamos a entero, hacer lo mismo acá
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Listo!
src/users/models.py
Outdated
@@ -0,0 +1,3 @@ | |||
from django.db import models |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No dejar ninguna línea en este archivo, así no se importa models al pedo ralentizando el inicio del sistema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eliminadoo
No description provided.