diff --git a/neboard/settings.py b/neboard/settings.py --- a/neboard/settings.py +++ b/neboard/settings.py @@ -47,12 +47,12 @@ USE_TZ = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" -MEDIA_ROOT = '' +MEDIA_ROOT = './media/' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" -MEDIA_URL = '' +MEDIA_URL = '/media/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files @@ -176,4 +176,4 @@ SITE_NAME = 'Neboard' THEMES = [ ('md', 'Mystic Dark'), ('sw', 'Snow White') ] -DEFAULT_THEME = 'md' \ No newline at end of file +DEFAULT_THEME = 'md' diff --git a/neboard/urls.py b/neboard/urls.py --- a/neboard/urls.py +++ b/neboard/urls.py @@ -18,4 +18,6 @@ urlpatterns = patterns('', # Uncomment the next line to enable the admin: url(r'^admin/', include(admin.site.urls)), url(r'^', include('boards.urls')), -) +) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + +