18 lines
661 B
Python
Raw Normal View History

2013-09-28 11:39:57 +02:00
from django.conf.urls import patterns, include, url
2013-09-28 16:46:33 +02:00
from main.views import (
HomeView, MyIpView, OverviewView, UserProfileView
)
from django.contrib.auth.views import password_change
2013-09-28 11:39:57 +02:00
urlpatterns = patterns('',
2013-09-28 12:06:26 +02:00
url(r'^$', HomeView.as_view(), name="home"),
url(r'^overview/', OverviewView.as_view(), name="overview"),
2013-09-28 16:46:33 +02:00
url(r'^myip/', MyIpView),
url(r'^account/profile/', UserProfileView.as_view(), name="account_profile"),
url(r'^account/change_pw/', password_change, {
'template_name': 'registration/password_change.html',
'post_change_redirect': '/account/profile/',
},
name="password_change"),
2013-09-28 11:39:57 +02:00
)