Hate that I have to do this.
parent
3e4fd840a3
commit
370a4e1cd2
File diff suppressed because one or more lines are too long
|
@ -53,12 +53,12 @@ USE_L10N = True
|
|||
|
||||
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
||||
# Example: "/home/media/media.lawrence.com/media/"
|
||||
MEDIA_ROOT = ''
|
||||
MEDIA_ROOT = os.path.join(BASE_PATH, '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
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
from snipts.api import PublicCommentResource, PublicSniptResource, PublicUserResource, PublicTagResource
|
||||
from django.views.generic.simple import direct_to_template
|
||||
from django.conf.urls.static import static
|
||||
from django.conf.urls.defaults import *
|
||||
from django.contrib import admin
|
||||
from django.conf import settings
|
||||
from tastypie.api import Api
|
||||
|
||||
admin.autodiscover()
|
||||
|
@ -22,4 +24,4 @@ urlpatterns = patterns('',
|
|||
url(r'^api/', include(public_api.urls)),
|
||||
|
||||
url(r'^', include('snipts.urls')),
|
||||
)
|
||||
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
|
Loading…
Reference in New Issue