dynamicweb/dynamicweb/urls.py

42 lines
2.2 KiB
Python
Raw Normal View History

from django.conf.urls import patterns, include, url
from django.contrib import admin
# deprecated in version 1.8
2015-10-04 15:38:01 +00:00
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.conf import settings
from hosting.views import RailsHostingView, DjangoHostingView, NodeJSHostingView
2016-03-07 16:49:02 +00:00
from membership import urls as membership_urls
urlpatterns = [
2016-02-29 22:28:31 +00:00
url(r'^hosting/', include('hosting.urls', namespace="hosting")),
url(r'^railshosting/', RailsHostingView.as_view(), name="rails.hosting"),
url(r'^nodehosting/', NodeJSHostingView.as_view(), name="node.hosting"),
url(r'^djangohosting/', DjangoHostingView.as_view(), name="django.hosting"),
2016-02-29 22:28:31 +00:00
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
url(r'^jsi18n/(?P<packages>\S+?)/$',
'django.views.i18n.javascript_catalog'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
2015-10-04 15:38:01 +00:00
# note the django CMS URLs included via i18n_patterns
urlpatterns += i18n_patterns('',
2016-04-13 06:27:11 +00:00
url(r'^admin/', include(admin.site.urls)),
2016-04-28 17:42:01 +00:00
url(r'^digitalglarus/login/', include(membership_urls)),
url(r'^digitalglarus/', include('digitalglarus.urls',
2016-04-28 17:42:01 +00:00
namespace="digitalglarus"),
url(r'^blog/', include('ungleich.urls', namespace='ungleich')),
url(r'^ungleich_page/',
include('ungleich_page.urls', namespace='ungleich_page'),
name='ungleich_page'),
2016-04-03 09:46:25 +00:00
url(r'^blog/',include('ungleich.urls',namespace='ungleich')),
2016-02-29 22:28:31 +00:00
url(r'^', include('cms.urls')),
)
2015-10-04 15:38:01 +00:00
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^media/(?P<path>.*)$',
'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT,
}),
)