1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-10 23:08:23 +00:00
py-i2phosts/pyi2phosts/urls.py

27 lines
887 B
Python
Raw Normal View History

2010-10-06 19:02:08 +00:00
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from pyi2phosts.other.views import *
2010-10-06 19:02:08 +00:00
urlpatterns = patterns('',
url(r'^$', index, name='index'),
(r'^postkey/', include('pyi2phosts.postkey.urls')),
(r'^jump/', include('pyi2phosts.jump.urls')),
# Example:
# (r'^pyi2phosts.', include('pyi2phosts.foo.urls')),
2010-10-06 19:02:08 +00:00
# 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:
(r'^admin/', include(admin.site.urls)),
)
if settings.DEBUG:
urlpatterns += patterns('', (r'static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes':True}))