1. Alexander Olivares
  2. Sofi

Commits

Alexander Olivares  committed c0c231a Draft

Cambiada la conf de ADMIN_MEDIA_PREFIX a /admin_media/, tambien a apache2_sofi.site para servidor de producción.

  • Participants
  • Parent commits 530f997
  • Branches default

Comments (0)

Files changed (2)

File sofi/apache2_sofi.site

View file
             PythonPath "['/<RUTA>', '/<RUTA>/sofi', '/<RUTA>/sofi/apps'] + sys.path"
         </Location>
 
-        Alias /media/ /var/lib/python-support/python2.5/django/contrib/admin/media/
-        <Location /media/>
+        Alias /admin_media/ /var/lib/python-support/python2.5/django/contrib/admin/media/
+        <Location /admin_media/>
             SetHandler none
             Options -Indexes
         </Location>

File sofi/settings.py

View file
 # URL prefix for admin static files -- CSS, JavaScript and images.
 # Make sure to use a trailing slash.
 # Examples: "http://foo.com/static/admin/", "/static/admin/".
-ADMIN_MEDIA_PREFIX = '/static/admin/'
+ADMIN_MEDIA_PREFIX = '/admin_media/'
 
 # Additional locations of static files
 STATICFILES_DIRS = (