These are chat archives for django/django

13th
Dec 2018
prog omar ahmed
@omarKady
Dec 13 2018 06:10
@fsecada01 i tried but it doesn't work .. at all thank you
prog omar ahmed
@omarKady
Dec 13 2018 07:35
this is my terminal
Django version 2.1.4, using settings 'testsite.settings'
Starting development server at http://my-first-site:8000/
Quit the server with CONTROL-C.
Error: [Errno -2] Name or service not known
and this my allowed host
ALLOWED_HOSTS = ['my-first-site']
what is my error
??
matrixbot
@matrixbot
Dec 13 2018 07:45
exilkoelner Where do you runserver? Locally or on a webserver? Perhaps also allow 127.0.0.1?
prog omar ahmed
@omarKady
Dec 13 2018 09:07
i don't understand please explain @matrixbot
you mean runserver comand
lekan
@horlahlekhon
Dec 13 2018 10:50
hello; does django ModelForm has kwargs as parameter?
fsecada01
@fsecada01
Dec 13 2018 14:05

@fsecada01 i tried but it doesn't work .. at all thank you

What is in your ALLOWED_HOSTS list?

prog omar ahmed
@omarKady
Dec 13 2018 20:36
@fsecada01 sorry for my late response
it works now i changed my ALLOWED_HOSTS=['0.0.0.0']
thank you so much
fsecada01
@fsecada01
Dec 13 2018 20:37
you're welcome! Good luck to you.