Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """myproject URL Configuration
- The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/1.11/topics/http/urls/
- Examples:
- Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
- Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
- Including another URLconf
- 1. Import the include() function: from django.conf.urls import url, include
- 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
- """
- from django.conf.urls import url
- from django.contrib import admin
- urlpatterns = [
- url(r'^admin/', admin.site.urls),
- # Admin Views
- url(r'^orchestra/admin/',
- include(admin.site.urls)),
- # Registration Views
- # Eventually these will be auto-registered with the Orchestra URLs, but for
- # now we need to add them separately.
- url(r'^orchestra/accounts/',
- include('registration.backends.default.urls')),
- # Optionally include these routes to enable user hijack functionality.
- url(r'^orchestra/switch/', include('hijack.urls')),
- # Logout then login is not available as a standard django
- # registration route.
- url(r'^orchestra/accounts/logout_then_login/$',
- auth_views.logout_then_login,
- name='logout_then_login'),
- # Orchestra URLs
- url(r'^orchestra/',
- include('orchestra.urls', namespace='orchestra')),
- # Beanstalk Dispatch URLs
- url(r'^beanstalk_dispatch/',
- include('beanstalk_dispatch.urls')),
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement