forked from chriscauley/django-affiliate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
24 lines (20 loc) · 780 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- coding: utf-8 -*-
"""URLs for testing django-affiliate."""
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# admin stuff
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
# include django-affiliate
(r'^affiliate/', include('affiliate.urls')),
(r'^$', 'django.views.generic.simple.redirect_to', {'url' : '/affiliate/'}),
)
# when in development mode, serve static files 'by hand'
# in production the files should be placed at http://s.hdimg.net/django-affiliate/
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': './media'}),
)