diff options
-rw-r--r-- | settings.py | 4 | ||||
-rw-r--r-- | urls.py | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/settings.py b/settings.py index 26a2eaa..2987f3e 100644 --- a/settings.py +++ b/settings.py @@ -35,12 +35,12 @@ USE_I18N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = '' +MEDIA_ROOT = './images/' # 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). # Examples: "http://media.lawrence.com", "http://example.com/media/" -MEDIA_URL = '' +MEDIA_URL = 'http://localhost:8000/images/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. @@ -17,7 +17,10 @@ urlpatterns = patterns('', # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), - + + (r'^images/(?P<path>.*)$', 'django.views.static.serve', + {'document_root': './images/'}), + (r'^$', userViews.homepage), (r'^task/browse/$', taskViews.browse_tasks), |