Esempio n. 1
0
 # TWLight apps -------------------------------------------------------------
 # This makes our custom set language form  available.
 url(r"^i18n/", include("TWLight.i18n.urls")),
 url(r"^api/", include((api_urls, "api"), namespace="api")),
 url(r"^users/", include((users_urls, "users"), namespace="users")),
 url(
     r"^applications/",
     include((applications_urls, "applications"), namespace="applications"),
 ),
 url(r"^partners/", include((partners_urls, "resources"), namespace="partners")),
 url(r"^csv/", include((csv_urls, "graphs"), namespace="csv")),
 url(r"^ezproxy/", include((ezproxy_urls, "ezproxy"), namespace="ezproxy")),
 # Other TWLight views
 url(r"^oauth/login/$", auth.OAuthInitializeView.as_view(), name="oauth_login"),
 url(r"^oauth/callback/$", auth.OAuthCallbackView.as_view(), name="oauth_callback"),
 url(r"^dashboard/$", DashboardView.as_view(), name="dashboard"),
 url(r"^terms/$", TermsView.as_view(), name="terms"),
 # For partner suggestions
 url(r"^suggest/$", PartnerSuggestionView.as_view(), name="suggest"),
 url(
     r"^suggest/(?P<pk>[0-9]+)/delete/$",
     login_required(SuggestionDeleteView.as_view()),
     name="suggest-delete",
 ),
 url(
     r"^suggest/(?P<pk>[0-9]+)/upvote/$",
     login_required(SuggestionUpvoteView.as_view()),
     name="upvote",
 ),
 # For contact us form
 url(r"^contact/$", ContactUsView.as_view(), name="contact"),
Esempio n. 2
0
        name='password_reset'),

    # This makes the set language URL available.
    url(r'^i18n/', include('django.conf.urls.i18n')),

    # Third-party --------------------------------------------------------------
    url(r'^comments/', include('django_comments.urls')),
    url(r'^autocomplete/', include('autocomplete_light.urls')),

    # TWLight apps -------------------------------------------------------------
    url(r'^users/', include(users_urls, namespace="users")),
    url(r'^applications/', include(applications_urls,
                                   namespace="applications")),
    url(r'^partners/', include(partners_urls, namespace="partners")),
    url(r'^csv/', include(csv_urls, namespace="csv")),

    # Other TWLight views
    url(r'^oauth/login/$',
        auth.OAuthInitializeView.as_view(),
        name='oauth_login'),
    url(r'^oauth/callback/$',
        auth.OAuthCallbackView.as_view(),
        name='oauth_callback'),
    url(r'^dashboard/$', DashboardView.as_view(), name='dashboard'),
    url(r'^terms/$', TermsView.as_view(), name='terms'),
    url(r'^$', HomePageView.as_view(), name='homepage'),
    url(r'^about/$',
        TemplateView.as_view(template_name='about.html'),
        name='about'),
]
Esempio n. 3
0
        name='password_reset'),

    # This makes the set language URL available.
    url(r'^i18n/', include('django.conf.urls.i18n')),

    # Third-party --------------------------------------------------------------
    url(r'^comments/', include('django.contrib.comments.urls')),
    url(r'^autocomplete/', include('autocomplete_light.urls')),

    # TWLight apps -------------------------------------------------------------
    url(r'^users/', include(users_urls, namespace="users")),
    url(r'^applications/', include(applications_urls, namespace="applications")),
    url(r'^partners/', include(partners_urls, namespace="partners")),
    url(r'^csv/', include(csv_urls, namespace="csv")),

    # Other TWLight views
    url(r'^oauth/login/$',
        auth.OAuthInitializeView.as_view(),
        name='oauth_login'),
    url(r'^oauth/callback/$',
        auth.OAuthCallbackView.as_view(),
        name='oauth_callback'),

    url(r'^dashboard/$', DashboardView.as_view(), name='dashboard'),
    url(r'^terms/$', TermsView.as_view(), name='terms'),
    url(r'^$', HomePageView.as_view(), name='homepage'),
    url(r'^about/$',
        TemplateView.as_view(template_name='about.html'),
        name='about'),
]