[Answer]-Unable to access static files with NGINX, gunicorn and Django

1👍

Try including this in your urls.py file:

    admin_media_path = os.path.join(django.__path__[0], 'contrib', 'admin', 'static', 'admin')

    urlpatterns = patterns('',
        url(r'^static/admin/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': admin_media_path,
        }),
)

This should do the trick.

Leave a comment