changeset 11:71024a491161

Rename media/ dir to static/, update the settings-example.py file
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Sat, 26 Jun 2010 13:02:11 -0500
parents af51826204fd
children c6cfbdd40bf6
files media/agora-large.png media/agora.png media/base.css media/djangodocs.css media/icon-large.png media/icon.png media/pygments.css media/reset-fonts-grids.css settings-example.py static/agora-large.png static/agora.png static/base.css static/djangodocs.css static/icon-large.png static/icon.png static/pygments.css static/reset-fonts-grids.css urls.py
diffstat 10 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/settings-example.py
+++ b/settings-example.py
@@ -52,7 +52,7 @@
 
 # Absolute path to the directory that holds media.
 # Example: "/home/media/media.lawrence.com/"
-# MEDIA_ROOT = ''
+MEDIA_ROOT = 'static/'
 
 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
 # trailing slash if there is a path component (optional in other cases).
rename from media/agora-large.png
rename to static/agora-large.png
rename from media/agora.png
rename to static/agora.png
rename from media/base.css
rename to static/base.css
rename from media/djangodocs.css
rename to static/djangodocs.css
rename from media/icon-large.png
rename to static/icon-large.png
rename from media/icon.png
rename to static/icon.png
rename from media/pygments.css
rename to static/pygments.css
rename from media/reset-fonts-grids.css
rename to static/reset-fonts-grids.css
--- a/urls.py
+++ b/urls.py
@@ -25,6 +25,6 @@
 if settings.DEBUG:
      urlpatterns += patterns('',
                     (r'^static/(?P<path>.*)$', 'django.views.static.serve',
-                    {'document_root': 'media/', 'show_indexes': True}),
+                    {'document_root': 'static/', 'show_indexes': True}),
                     )