Django. Why does the Admin site not look like Django Tutorial (djangoproject)

February 17, 2015 795 views

I am interested in learning django .. . I installed the droplet in both Ubuntu and Debian and was not able to reproduce the Admin site as shown here https://docs.djangoproject.com/en/1.6/intro/tutorial02/ .. The Admin site presents as a malformed HTML page ..

Anyone know what the site is missing ?

2 Answers

Hey! Any further information that you could provide would help us figure out your issue. How did you install Django? Are you using the one-click app? Are you seeing any errors in your log files?

It sounds like the static files are not being loaded properly. If you are using Django Admin installed in a virtualenv, remember to run ./mange.py collectstatic If you are using the system-wide package and using something like Nginx as a reverse proxy, you might need to adjust you proxy configuration. For instance, on the one-click app you might want to add the following to /etc/nginx/sites-enabled/django

    location /static/admin {
       alias /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin/;

For more info about the one-click app, checkout this tutorial:

by Andrew SB
Django is a high-level Python framework for developing web applications rapidly. DigitalOcean's Django One-Click app quickly deploys a preconfigured development environment to your VPS employing Django, Nginx, Gunicorn, and Postgres.
Have another answer? Share your knowledge.