SHARE
TWEET

Untitled

a guest May 2nd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. """myproject URL Configuration
  2.  
  3. The `urlpatterns` list routes URLs to views. For more information please see:
  4.     https://docs.djangoproject.com/en/1.11/topics/http/urls/
  5. Examples:
  6. Function views
  7.     1. Add an import:  from my_app import views
  8.     2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
  9. Class-based views
  10.     1. Add an import:  from other_app.views import Home
  11.     2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
  12. Including another URLconf
  13.     1. Import the include() function: from django.conf.urls import url, include
  14.     2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
  15. """
  16. from django.conf.urls import url
  17. from django.contrib import admin
  18.  
  19. urlpatterns = [
  20.     url(r'^admin/', admin.site.urls),
  21.  
  22. # Admin Views
  23. url(r'^orchestra/admin/',
  24.     include(admin.site.urls)),
  25.  
  26. # Registration Views
  27. # Eventually these will be auto-registered with the Orchestra URLs, but for
  28. # now we need to add them separately.
  29. url(r'^orchestra/accounts/',
  30.     include('registration.backends.default.urls')),
  31.  
  32. # Optionally include these routes to enable user hijack functionality.
  33. url(r'^orchestra/switch/', include('hijack.urls')),
  34.  
  35. # Logout then login is not available as a standard django
  36. # registration route.
  37. url(r'^orchestra/accounts/logout_then_login/$',
  38.     auth_views.logout_then_login,
  39.     name='logout_then_login'),
  40.  
  41. # Orchestra URLs
  42. url(r'^orchestra/',
  43.     include('orchestra.urls', namespace='orchestra')),
  44.  
  45. # Beanstalk Dispatch URLs
  46. url(r'^beanstalk_dispatch/',
  47.     include('beanstalk_dispatch.urls')),
  48.  
  49. ]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top