2010-11-10 23:43:02 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
import settings
|
|
|
|
from os.path import join
|
|
|
|
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
# Example:
|
|
|
|
(r'^admin/', include(admin.site.urls)),
|
2010-11-11 00:34:17 +00:00
|
|
|
(r'^$', 'texts.views.texts'),
|
2010-11-10 23:43:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if settings.LOCAL_DEVELOPMENT:
|
|
|
|
#
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
#
|
|
|
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_PATH, "static")}),
|
|
|
|
#
|
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns += patterns('',
|
2011-03-14 00:09:01 +00:00
|
|
|
(r'^favicon.ico$', 'django.views.generic.simple.redirect_to', {'url': '/static/images/favicon.ico'}),
|
2010-11-10 23:43:02 +00:00
|
|
|
(r'(?P<slug>.*)', 'texts.views.text'),
|
|
|
|
# (r'^padmaTexts/', include('padmaTexts.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')),
|
|
|
|
|
|
|
|
# Uncomment the next line to enable the admin:
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|