Question

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

  • Posted February 17, 2015

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 ?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

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: