30 lines
788 B
Python
Executable File
30 lines
788 B
Python
Executable File
from django.conf.urls.defaults import *
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
from django.contrib import admin
|
|
admin.autodiscover()
|
|
|
|
import settings
|
|
import os
|
|
from os.path import join
|
|
|
|
urlpatterns = patterns('',
|
|
# Example:
|
|
# (r'^trubox/', include('trubox.foo.urls')),
|
|
(r'^$', 'deals.views.index'),
|
|
(r'^search/$', 'deals.views.search'),
|
|
# Uncomment the admin/doc line below to enable admin documentation:
|
|
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
|
|
# Uncomment the next line to enable the admin:
|
|
(r'^admin/', include(admin.site.urls)),
|
|
)
|
|
|
|
if settings.LOCAL_DEVELOPMENT:
|
|
#
|
|
urlpatterns += patterns('',
|
|
#
|
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_PATH, "static")}),
|
|
#
|
|
)
|