By mji
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 ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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:
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.