Server Error 500 Django Digital Ocean

May 5, 2017 688 views
Django PostgreSQL

i've deployed my django project in digital ocean, I'm getting Server Error(500), however the url is showing me "myipaddress/accounts/login/?next=/" . I could n't figure out what is causing error. I've kept DEBUG=False even in

1 Answer

Sorry to see that your question hasn't received an answer yet. Unfortunately, after this much time, it is unlikely an answer for this specific question will be provided without more information. For people still landing here via search, here's one tip that might point you in the right direction when degugging.

Beginning with Django 1.5 a new "allowed hosts" setting was introduced. When DEBUG is set to False, it is enforced. In your file, find the that looks like:


and change it to include the Droplet's IP address and/or the domain name pointing to your site. For example:

ALLOWED_HOSTS = ["", ""]

Also, check out this tutorial for full step-by-step instructions for getting a Django site up and running:

Django is a powerful web framework that can help you get your Python application or website off the ground. Django includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web server...
Have another answer? Share your knowledge.