Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d6ad1efb
Commit
d6ad1efb
authored
Mar 06, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use own definition of urls
parent
57d57738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
2 deletions
+39
-2
urls.py
urls.py
+39
-2
No files found.
urls.py
View file @
d6ad1efb
from
django.conf.urls.defaults
import
patterns
,
include
,
url
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.contrib
import
admin
from
django.contrib.auth
import
views
as
auth_views
from
django.views.generic.simple
import
direct_to_template
from
registration.views
import
activate
from
registration.views
import
register
from
accounts.forms
import
RegistrationForm
...
...
@@ -22,11 +27,43 @@ urlpatterns = patterns('',
url
(
r'^admin/'
,
include
(
admin
.
site
.
urls
)),
# Auth
url
(
r'^accounts/register/$'
,
'registration.views.register'
,
{
url
(
r'^accounts/register/$'
,
register
,
{
'form_class'
:
RegistrationForm
,
'extra_context'
:
{
'title'
:
_
(
'User registration'
)}},
name
=
'weblate_register'
),
url
(
r'^accounts/'
,
include
(
'registration.urls'
)),
url
(
r'^accounts/register/complete/$'
,
direct_to_template
,
{
'template'
:
'registration/registration_complete.html'
},
name
=
'registration_complete'
),
url
(
r'^accounts/activate/(?P<activation_key>\
w+)/$
',
activate,
name='
registration_activate
'),
url(r'
^
accounts
/
login
/
$
',
auth_views.login,
{'
template_name
': '
registration
/
login
.
html
'},
name='
auth_login
'),
url(r'
^
accounts
/
logout
/
$
',
auth_views.logout,
{'
template_name
': '
registration
/
logout
.
html
'},
name='
auth_logout
'),
url(r'
^
accounts
/
password
/
change
/
$
',
auth_views.password_change,
name='
auth_password_change
'),
url(r'
^
accounts
/
password
/
change
/
done
/
$
',
auth_views.password_change_done,
name='
auth_password_change_done
'),
url(r'
^
accounts
/
password
/
reset
/
$
',
auth_views.password_reset,
name='
auth_password_reset
'),
url(r'
^
accounts
/
password
/
reset
/
confirm
/
(
?
P
<
uidb36
>
[
0
-
9
A
-
Za
-
z
]
+
)
-
(
?
P
<
token
>
.
+
)
/
$
',
auth_views.password_reset_confirm,
name='
auth_password_reset_confirm
'),
url(r'
^
accounts
/
password
/
reset
/
complete
/
$
',
auth_views.password_reset_complete,
name='
auth_password_reset_complete
'),
url(r'
^
accounts
/
password
/
reset
/
done
/
$
',
auth_views.password_reset_done,
name='
auth_password_reset_done
'),
url(r'
^
accounts
/
profile
/
', '
accounts
.
views
.
profile
'),
url(r'
^
contact
/
', '
accounts
.
views
.
contact
'),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment