Project

General

Profile

Download (937 Bytes) Statistics
| Branch: | Tag: | Revision:

root / uauth / urls.py @ 64438aee

1
from django.conf import settings
2
from django.conf.urls import patterns, include, url
3
from django.contrib import admin
4
from django.contrib.auth.decorators import login_required
5

    
6
from .views import homepage, organization, login
7
from .urls_utils import decorated_includes
8
from .organization.urls import urlpatterns as organization_urls
9

    
10
urlpatterns = patterns('',
11
    url(r'^admin/', include(admin.site.urls)),
12
    url(r'^(?P<organization_slug>[\w-]+)/manage/', decorated_includes(login_required, include(organization_urls))),
13
    url(r'^$', homepage, name='organization-home'),
14
    url(r'^accounts/', include('django.contrib.auth.urls')),
15
    url(r'^accounts/mellon/login/$', login, name='mellon_login'),
16
    url(r'^accounts/mellon/', include('mellon.urls')),
17
    url(r'^(?P<organization_slug>[\w-]+)$', organization, name='organization-home'),
18
    url(r'^(?P<organization_slug>[\w-]+)/login', login,
19
        name='organization-login'),
20
)
(5-5/9)