-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
60 lines (49 loc) · 2.29 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
#
# This file is part of RepoManager Project
# Copyright (C) 2008 the RepoManager team, see AUTHORS for details
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^repomanager/', include('repomanager.foo.urls')),
(r'^$', 'repomanager.repos.views.frontpage'),
# repos
(r'^repos/$', 'repomanager.repos.views.frontpage'),
(r'^repos/adduser/$', 'repomanager.repos.views.adduser'),
(r'^repos/deluser/$', 'repomanager.repos.views.deluser'),
(r'^repos/create/$', 'repomanager.repos.views.create'),
(r'^repos/delete/$', 'repomanager.repos.views.delete'),
# accounts
(r'^accounts/$', 'repomanager.accountsviews.frontpage'),
(r'^accounts/profile/$', 'repomanager.accountsviews.profile'),
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
(r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
(r'^accounts/change_password/$','django.contrib.auth.views.password_change'),
(r'^accounts/change_password/done/$','django.contrib.auth.views.password_change_done'),
# Uncomment the next line to enable admin documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line for to enable the admin:
(r'^admin/(.*)', admin.site.root),
(r'^tos/', direct_to_template, {'template':'tos.html'}),
(r'^about/', direct_to_template, {'template':'about.html'}),
)
from repomanager.htpasswd import oveload_set_password
oveload_set_password()