Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e5d1a21332
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (30 sloc) 1.558 kB
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib.auth.views import login, logout
from views import *
urlpatterns = patterns('',
url('^$', index, name='index'),
url('^users/$', users, name='users'),
url('^channels/$', channels, name='channels'),
url('^authkeys/$', authkeys, name='authkeys'),
url('^allauthkeys/$', authkeys_all, name='authkeys_all'),
url('^newchan/$', newchan, name='newchan'),
url('^editchan/([\w@_\-.]+)/$', editchan, name='editchan'),
url('^deletechan/([\w@_\-.]+)/$', deletechan, name='deletechan'),
url('^newak/$', newak, name='newak'),
url('^editak/([\w@]+)/$', editak, name='editak'),
url('^deleteak/([\w@]+)/$', deleteak, name='deleteak'),
url('^activate/([\w@_\-.]+)/$', activate_user, name='activate'),
url('^register/$', register, name='register'),
url('^settings/$', user_settings, name='settings'),
url('^password_change/$', password_change, {'template_name': 'password_change.html', 'post_change_redirect': '../settings/'}, name='password_change'),
url('^login/$', login, {'template_name': 'login.html',}, name='log-in'),
url('^logout/$', logout, {'next_page': '/'}, name='log-out'),
url('^ip/$', remote_ip),
url('^ip$', remote_ip),
)
if True or settings.DEBUG:
urlpatterns += patterns('',
(r'^' + settings.MEDIA_URL.lstrip('/') + r'(.*)$',
'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}))
Jump to Line
Something went wrong with that request. Please try again.