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
|
2016-04-23 07:22:44 +00:00
|
|
|
from hosting.views import RailsHostingView, DjangoHostingView, NodeJSHostingView
|
2016-03-07 16:49:02 +00:00
|
|
|
from membership import urls as membership_urls
|
2016-06-30 06:23:14 +00:00
|
|
|
from ungleich_page.views import LandingView
|
2017-05-14 10:06:11 +00:00
|
|
|
from django.views.generic import RedirectView
|
|
|
|
from django.core.urlresolvers import reverse_lazy
|
2016-05-08 17:58:37 +00:00
|
|
|
import debug_toolbar
|
2015-05-01 23:30:30 +00:00
|
|
|
|
2016-06-30 06:23:14 +00:00
|
|
|
urlpatterns = [ url(r'^index.html$', LandingView.as_view()),
|
2016-02-29 22:28:31 +00:00
|
|
|
url(r'^hosting/', include('hosting.urls', namespace="hosting")),
|
2017-05-11 15:39:59 +00:00
|
|
|
url(r'^open_api/', include('opennebula_api.urls',
|
|
|
|
namespace='opennebula_api')),
|
2016-04-20 06:03:32 +00:00
|
|
|
url(r'^railshosting/', RailsHostingView.as_view(), name="rails.hosting"),
|
2016-04-23 07:22:44 +00:00
|
|
|
url(r'^nodehosting/', NodeJSHostingView.as_view(), name="node.hosting"),
|
|
|
|
url(r'^djangohosting/', DjangoHostingView.as_view(), name="django.hosting"),
|
Created signup view. Added login after signup.Added signup url to nosystem app urls.py. Added logout view, Added logout button on nabber, Added password reset form, Added password view , Added password reset html, Added password reset email for nosystemd app. Added confirm_reset_password.html, Added confirm_ reset password view, Added confirm reset password form, Fixed reset password token generation, Started donation view, Added donation view, Added donation.html, Added donation form, Adding donation.js lib in order to capture stripe payments for nosystem app.
2016-07-22 06:24:32 +00:00
|
|
|
url(r'^nosystemd/', include('nosystemd.urls', namespace="nosystemd")),
|
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-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('',
|
2016-06-30 06:23:14 +00:00
|
|
|
url(r'^/?$', LandingView.as_view()),
|
2016-04-13 06:27:11 +00:00
|
|
|
url(r'^admin/', include(admin.site.urls)),
|
2017-04-23 21:31:05 +00:00
|
|
|
url(r'^datacenterlight', include('datacenterlight.urls', namespace="datacenterlight")),
|
2017-05-14 10:06:11 +00:00
|
|
|
url(r'^hosting/', RedirectView.as_view(url=reverse_lazy('hosting:login')), name='redirect_hosting_login'),
|
2017-04-23 21:31:05 +00:00
|
|
|
url(r'^alplora', include('alplora.urls', namespace="alplora")),
|
2016-08-11 06:07:12 +00:00
|
|
|
url(r'^membership/', include(membership_urls)),
|
2016-04-13 05:31:19 +00:00
|
|
|
url(r'^digitalglarus/', include('digitalglarus.urls',
|
2016-05-01 12:13:12 +00:00
|
|
|
namespace="digitalglarus")),
|
2016-06-30 06:23:14 +00:00
|
|
|
#url(r'^blog/', include('ungleich.urls', namespace='ungleich')),
|
|
|
|
url(r'^',
|
2016-04-28 17:42:01 +00:00
|
|
|
include('ungleich_page.urls', namespace='ungleich_page'),
|
|
|
|
name='ungleich_page'),
|
2016-05-08 17:58:37 +00:00
|
|
|
url(r'^blog/', include('ungleich.urls', namespace='ungleich')),
|
2016-05-01 12:13:12 +00:00
|
|
|
url(r'^', include('cms.urls'))
|
2016-02-29 22:28:31 +00:00
|
|
|
)
|
2015-10-04 15:38:01 +00:00
|
|
|
|
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,
|
|
|
|
}),
|
|
|
|
)
|
2016-05-08 17:58:37 +00:00
|
|
|
urlpatterns += patterns('',url(r'^__debug__/', include(debug_toolbar.urls)))
|