These are chat archives for django/django

15th
Feb 2019
goodluckSon
@goodluckSon
Feb 15 14:20
Hello guys. I want to change error message such as "The username and/or password you specified are not correct." in allauth . What should I have to do?
Luke-VideoLibre
@LukeVideo
Feb 15 15:30
hey guys i've updated a model with a DateField. How can i provide a default to the makemigration ?
i tried datetime.datetime and datetime.datebut it failed
TypeError: Required argument 'year' (pos 1) not found
i don't care what date it is. Ijust need to feed something to the test database..
IntelligentFunction
@IntelligentFunction
Feb 15 15:46
Hi Guys, I'm stuck trying to get more than one bit of dynamic data on a page, can anyone here help please?
Prabhakar Poudel
@Prabhakar-Poudel
Feb 15 16:44
@LukeVideo What are you trying to achieve here? Do you want current date to be saved when saving a model?
Luke-VideoLibre
@LukeVideo
Feb 15 16:46
yep but i have existing instances in the DB who need a value for the migration.
Prabhakar Poudel
@Prabhakar-Poudel
Feb 15 16:46
Could you not use DateField.auto_now?

default=datetime.now

try that otherwise

Luke-VideoLibre
@LukeVideo
Feb 15 16:48
it's during the migration that i need a one of to populate existing rows... See
I'm just gonna erase it all nevermind
Prabhakar Poudel
@Prabhakar-Poudel
Feb 15 16:49
RAHUL KOUNDAL
@rahulkoundal
Feb 15 16:50
image.png
hello everyone i have a issue while dropdown .....
a thin line ---------- come in the dropdown
please help me if anyone know this issue
in django project
goodluckSon
@goodluckSon
Feb 15 17:06
Hello guys. I want to change error message such as "The username and/or password you specified are not correct." in allauth . What should I have to do?
Prabhakar Poudel
@Prabhakar-Poudel
Feb 15 17:25
@goodluckSon Havn't used the package yet. But they do have documentation on how to change message
https://django-allauth.readthedocs.io/en/latest/advanced.html#messages
Although, it's not definitive and you may have to do some hard work to achieve it.
goodluckSon
@goodluckSon
Feb 15 18:15
@Prabhakar-Poudel Thank you. But this does not help me.