29 lines
943 B
Python
29 lines
943 B
Python
from django.conf.urls.defaults import *
|
|
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
from django.contrib import admin
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = patterns('',
|
|
# Example:
|
|
# (r'^k4ever/', include('k4ever.foo.urls')),
|
|
|
|
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
|
|
# to INSTALLED_APPS to enable admin documentation:
|
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
# user stuff? go to main
|
|
(r'^$', 'main.views.startpage'),
|
|
(r'^api/', include('api.urls')),
|
|
(r'^api2/', include('api2.urls')),
|
|
(r'^user/', include('main.urls')),
|
|
(r'^transaction/', include('transaction.urls')),
|
|
(r'^store/', include('buyable.urls')),
|
|
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'media'}),
|
|
(r'^docs/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'docs'}),
|
|
|
|
|
|
# Uncomment the next line to enable the admin:
|
|
(r'^admin/', include(admin.site.urls)),
|
|
)
|