...
 
......@@ -34,6 +34,7 @@ from felyx_django.apps.core import api as core_api
API_NAME = django.conf.settings.API_NAME
TAGGED_API_NAME = django.conf.settings.TAGGED_API_NAME
MEDIA_ROOT = django.conf.settings.MEDIA_ROOT
STATIC_ROOT = django.conf.settings.STATIC_ROOT
TAGGED_API = Api(api_name=TAGGED_API_NAME)
TAGGED_API.register(core_api.SiteResourceTagged())
......@@ -144,18 +145,12 @@ urlpatterns = [
'show_indexes': True
}
),
url(
r'^%sstatic/(?P<path>.*)$' % URL_PREFIX, django_views_static_serve, {
'document_root': STATIC_ROOT,
'show_indexes': True
}
),
]
try:
import in_situ_server
in_situ_patterns = [
url(
r'^%sin_situ_server/' % URL_PREFIX, include('in_situ_server.urls')
),
]
urlpatterns += in_situ_patterns
except ImportError:
# Silenced, in-situ server is optional
pass
urlpatterns += staticfiles_urlpatterns()