I’ve just created a Unbuntu 14.04 x64 droplet with Django - but the media/static files seem to be missing from the install.
There are no folders in /home/django/django_project/django_project - both the ‘static’ and ‘media’ folders (and contents) are missing.
Therefor admin interface are missing the CSS and image files.
Where can I locate the missing files ?
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!
Make sure that django.contrib.admin is included in INSTALLED_APPS in your settings.py file. Then run python manage.py collectstatic This will collect all of the static files for included apps into one directory defined by STATIC_ROOT so that you can serve them with a webserver like Nginx.
See the Django documentation for more details.
hello i had the same problem. first I found the correct direction of my static folder by typing ‘pwd’. After that I created a local_setting.py by typing nano local_settings.py and I modified the static direction with right direction I found early I pasted and saved the file
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.