Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Serve media for the Django admin interface correctly

  • Loading branch information...
commit b4c558b726005e87ceeaed0847d900e366f68ee8 1 parent 0894a1a
@mhl mhl authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 conf/nginx.conf.example
View
4 conf/nginx.conf.example
@@ -20,6 +20,10 @@ server {
root /var/www/mapit/mapit/mapit;
}
+ location /media {
+ root /usr/share/pyshared/django/contrib/admin;
+ }
+
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
Please sign in to comment.
Something went wrong with that request. Please try again.