Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (33 sloc) 1.254 kB
c286693 @fwenzel Added jingo-minify and asset minification samples. Added jQuery 1.4.4.
fwenzel authored
1 from django.conf import settings
ac5b241 @kumar303 Set up css/js assets with less
kumar303 authored
2 from django.conf.urls.defaults import patterns, include, url
80ee5a9 BUST A MOVE
Jeff Balogh authored
3
7a82d96 @kumar303 pay logic -> only API essentials (bug 1130477)
kumar303 authored
4 from webpay.spa.views import index
5
5bda648 @muffinresearch Serve Spartacus from webpay on -dev (bug 1001495)
muffinresearch authored
6
80ee5a9 BUST A MOVE
Jeff Balogh authored
7 # Uncomment the next two lines to enable the admin:
8 # from django.contrib import admin
9 # admin.autodiscover()
10
e38689a @muffinresearch Update jingo to 0.6 and run jingo.monkey.patch (bug 930512)
muffinresearch authored
11 # Run jingo monkey patch - see https://github.com/jbalogh/jingo#forms
12 import jingo.monkey
13 jingo.monkey.patch()
14
7a82d96 @kumar303 pay logic -> only API essentials (bug 1130477)
kumar303 authored
15 urlpatterns = patterns(
16 '',
17 url(r'^mozpay/$', index, name='index'),
18 url(r'^mozpay/v1/api/', include('webpay.api.urls', namespace='api')),
19 url(r'^mozpay/spa/', include('webpay.spa.urls', namespace='spa')),
7f24d72 @kumar303 Quick hack to start using Persona (not final)
kumar303 authored
20 (r'^mozpay/auth/', include('webpay.auth.urls')),
2c2d001 @kumar303 Set up redirect endpoints (bug 795143)
kumar303 authored
21 (r'^mozpay/bango/', include('webpay.bango.urls')),
2754875 @kumar303 Send redirect URLs to zippy (bug 946927)
kumar303 authored
22 (r'^mozpay/provider/', include('webpay.provider.urls')),
e05c29c @kumar303 Expose services URL
kumar303 authored
23 (r'^mozpay/services/', include('webpay.services.urls')),
80ee5a9 BUST A MOVE
Jeff Balogh authored
24 )
c286693 @fwenzel Added jingo-minify and asset minification samples. Added jQuery 1.4.4.
fwenzel authored
25
4122796 @andymckay link up denied page explicitly
andymckay authored
26 # Ensure that 403 is routed through a view.
27 handler403 = 'webpay.auth.views.denied'
7a82d96 @kumar303 pay logic -> only API essentials (bug 1130477)
kumar303 authored
28
29
30 if settings.DEBUG:
31
32 from django.views.defaults import (
33 page_not_found,
34 permission_denied,
35 server_error,
36 )
37
38 urlpatterns += patterns(
39 '',
40 url(r'^403$', permission_denied, name="error_403"),
41 url(r'^404$', page_not_found, name="error_404"),
42 url(r'^500$', server_error, name="error_500"),
43 )
Something went wrong with that request. Please try again.