Question

upgrade django droplets missing css files

Hi Guys

I just install fresh image of django from droplets marketplace and its work perfectly but its version 2 so I try to upgrade it to 3 and everything went fine except admin page missing 2 file

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (nav_sidebar.css, line 0) [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (nav_sidebar.js, line 0)

Subscribe
Share

@eson I edit default file in /etc/nginx/sites-available

now I have it like this

# Proxy the static assests for the Django Admin panel
    location /static/admin {
      # alias /usr/lib/python3/dist-packages/django/contrib/admin/static/admin/;
       alias /home/django/django_project/django_project/static/admin;
    }

then run collectstatic command in manage.py

Did you figure this out? I have the same issue


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.

Hi there,

What I could suggest is to try and enable debugging by setting Debug = True in your application settings and then check the admin panel. This should give you more information on what the problem might be.

Let me know how it goes! Regards, Bobby