Server Error (500)

47 views
Skip to first unread message

fazal rehman

unread,
Apr 8, 2019, 7:26:18 AM4/8/19
to Django users
Hello,
I am a beginner in django.I am getting Server error(500) whenever I am trying to open the server have made some objects, I can see them but when i am trying to open it I get error 500. I have one DEBUG=false.I have attached models.py and settings.py.
models.py
settings.py

Jeff_dev

unread,
Apr 8, 2019, 7:52:12 AM4/8/19
to Django users
Kindly attach your view.py 

AMI FIDELE

unread,
Apr 8, 2019, 8:11:22 AM4/8/19
to django...@googlegroups.com
hello fazal 
please go into your settings and change debug into true
like this:
DEBUG = True
ALLOWED_HOSTS = []

On Mon, Apr 8, 2019 at 1:26 PM fazal rehman <fazalre...@gmail.com> wrote:
Hello,
I am a beginner in django.I am getting Server error(500) whenever I am trying to open the server have made some objects, I can see them but when i am trying to open it I get error 500. I have one DEBUG=false.I have attached models.py and settings.py.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/922704da-519c-4503-8753-a631949ba9a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fazal rehman

unread,
Apr 8, 2019, 8:44:18 AM4/8/19
to Django users
views.py

Roger Gammans

unread,
Apr 8, 2019, 5:44:31 PM4/8/19
to django...@googlegroups.com
Did you run 'python manage.py migrate' ?

Did it come back with any errors? 

I ask because specifying price field for values up to 10^9998 strikes me as extreme an likely to causes problems; perhaps you meant max_digits=7 not 10000 .


On Mon, 2019-04-08 at 04:26 -0700, fazal rehman wrote:
Hello,
I am a beginner in django.I am getting Server error(500) whenever I am trying to open the server have made some objects, I can see them but when i am trying to open it I get error 500. I have one DEBUG=false.I have attached models.py and settings.py.

--

tribhuvan kishor

unread,
Apr 9, 2019, 6:46:54 AM4/9/19
to django...@googlegroups.com
first of all, allow debugging that will help you to show server errors and their specific reasons.
setting.py 
DEBUG=true
then run make migration command 
python manage makemigrations 
then migrate the model
by using 
python manage migrate 
then let us know if there is any error



For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

Julio Cojom

unread,
Apr 9, 2019, 11:18:54 AM4/9/19
to django...@googlegroups.com
If it's development servers or localhost , allow DEBUG=True, that will help you a lot every time that you found this issues.

Assuming that you use git, if you use localhost before push your changes, then the shell where you run "manage.py runserver" will show you specific data about your problem.


Reply all
Reply to author
Forward
0 new messages