Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
5b9b20be
Commit
5b9b20be
authored
Mar 13, 2016
by
Okhin
Browse files
Fixing the logns URL
parent
ee51284e
Changes
4
Hide whitespace changes
Inline
Side-by-side
nnmon/settings.py
View file @
5b9b20be
...
...
@@ -132,9 +132,7 @@ INSTALLED_APPS = (
'django.contrib.staticfiles'
,
'django_comments'
,
'tinymce'
,
#'registration',
'bt'
,
#'babeldjango',
'captcha'
,
# Uncomment the next line to enable the admin:
'django.contrib.admin'
,
...
...
nnmon/templates/registration/login.html
View file @
5b9b20be
...
...
@@ -4,12 +4,12 @@
{% block title %}Login{% endblock %}
{% block content %}
<form
action=
"{% url
django.contrib.auth.views.
login %}"
method=
"post"
>
{% csrf_token %}
<form
action=
"{% url
"
login
"
%}"
method=
"post"
>
{% csrf_token %}
{{form.as_p}}
<input
type=
"hidden"
name=
"next"
value=
"{{next}}"
/>
<input
type=
"submit"
name=
"login"
value=
"Login"
/>
</form>
<p>
[
<a
href=
"{% url
django.contrib.auth.views.
password_reset %}"
>
{% trans "Password reset" %}
</a>
]
</p>
<p>
[
<a
href=
"{% url
"
password_reset
"
%}"
>
{% trans "Password reset" %}
</a>
]
</p>
{% endblock %}
nnmon/templates/registration/password_reset_email.html
View file @
5b9b20be
...
...
@@ -4,7 +4,7 @@
{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url
django.contrib.auth.views.
password_reset_confirm uidb36=uid token=token %}
{{ protocol }}://{{ domain }}{% url
"
password_reset_confirm
"
uidb36=uid token=token %}
{% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
...
...
nnmon/urls.py
View file @
5b9b20be
...
...
@@ -65,7 +65,7 @@ urlpatterns = patterns('',
url
(
r
'^accounts/logout$'
,
'django.contrib.auth.views.logout'
,
{
'next_page'
:
'/'
}),
url
(
r
'^accounts/'
,
include
(
'
registration
.urls'
)),
include
(
'
django.contrib.auth
.urls'
)),
url
(
r
'^comments/'
,
include
(
'django_comments.urls'
)),
url
(
r
'^about/$'
,
...
...
Write
Preview
Supports
Markdown
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