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
|
2015-10-04 15:38:01 +00:00
|
|
|
from django.conf.urls.i18n import i18n_patterns
|
2015-05-21 07:21:22 +00:00
|
|
|
from django.conf.urls.static import static
|
2015-09-15 14:57:56 +00:00
|
|
|
|
2015-11-02 20:45:04 +00:00
|
|
|
from django.conf import settings
|
2015-09-22 11:28:34 +00:00
|
|
|
from hosting.views import railshosting
|
2015-05-01 23:30:30 +00:00
|
|
|
|
2015-05-23 06:33:35 +00:00
|
|
|
urlpatterns = [
|
2015-08-27 16:20:08 +00:00
|
|
|
url(r'^hosting/', include('hosting.urls', namespace="hosting")),
|
2015-09-22 11:28:34 +00:00
|
|
|
url(r'^railshosting/', railshosting, name="rails.hosting"),
|
|
|
|
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-09-15 14:57:56 +00:00
|
|
|
|
2015-10-04 15:38:01 +00:00
|
|
|
# note the django CMS URLs included via i18n_patterns
|
|
|
|
urlpatterns += i18n_patterns('',
|
|
|
|
url(r'^admin/', include(admin.site.urls)),
|
2015-10-04 22:48:33 +00:00
|
|
|
url(r'^digitalglarus/', include('digitalglarus.urls',
|
|
|
|
namespace="digitalglarus")),
|
2015-10-04 15:38:01 +00:00
|
|
|
url(r'^', include('cms.urls')),
|
|
|
|
)
|
|
|
|
|
2015-05-23 06:33:35 +00:00
|
|
|
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,
|
|
|
|
}),
|
|
|
|
)
|