mirror of https://github.com/r4sas/py-i2phosts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
887 B
26 lines
887 B
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 * |
|
|
|
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')), |
|
|
|
# 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}))
|
|
|