2015-05-23 06:33:35 +00:00
|
|
|
from django.conf.urls import patterns, include, url
|
2015-05-01 23:30:30 +00:00
|
|
|
from django.contrib import admin
|
2015-05-21 07:21:22 +00:00
|
|
|
# deprecated in version 1.8
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
from dynamicweb import settings
|
2015-05-01 23:30:30 +00:00
|
|
|
|
2015-05-23 06:33:35 +00:00
|
|
|
urlpatterns = [
|
2015-05-01 23:30:30 +00:00
|
|
|
url(r'^admin/', include(admin.site.urls)),
|
2015-06-10 21:34:33 +00:00
|
|
|
url(r'^digitalglarus/', include('digitalglarus.urls',
|
|
|
|
namespace="digitalglarus")),
|
2015-05-30 21:22:47 +00:00
|
|
|
url(r'^railshosting/', include('railshosting.urls',
|
|
|
|
namespace="railshosting")),
|
2015-06-12 19:45:33 +00:00
|
|
|
url(r'^', include('cms.urls')),
|
2015-05-21 07:29:42 +00:00
|
|
|
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
|
2015-05-23 06:33:35 +00:00
|
|
|
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
urlpatterns += patterns('',
|
2015-05-30 21:22:47 +00:00
|
|
|
url(r'^media/(?P<path>.*)$',
|
|
|
|
'django.views.static.serve', {
|
|
|
|
'document_root': settings.MEDIA_ROOT,
|
|
|
|
}),
|
|
|
|
)
|