Minor changes and fixes, v0.12 milestone
This commit is contained in:
parent
262fce4476
commit
6b3d2ffbd8
@ -62,4 +62,4 @@ class Version(tuple): # pragma: no cover
|
|||||||
return version_str
|
return version_str
|
||||||
|
|
||||||
|
|
||||||
version = Version(0, 13, 0)
|
version = Version(0, 12, 0)
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
from django.contrib.auth.views import login, logout_then_login, password_reset, password_reset_done, \
|
from django.contrib.auth.views import login, logout, password_reset, password_reset_done, \
|
||||||
password_reset_confirm, password_reset_complete
|
password_reset_confirm, password_reset_complete
|
||||||
|
|
||||||
urlpatterns = (
|
urlpatterns = (
|
||||||
# login and logout url
|
# login and logout url
|
||||||
url(r'^login/$', login, {'template_name': 'login.html'}, name='login'),
|
url(r'^login/$', login, {'template_name': 'login.html'}, name='login'),
|
||||||
# or use logout with template 'logout.html'
|
# or use logout with template 'logout.html'
|
||||||
url(r'^logout/$', logout_then_login, name='logout'),
|
url(r'^logout/$', logout, name='logout'),
|
||||||
|
|
||||||
# password reset urls
|
# password reset urls
|
||||||
url(r'^password_reset/$', password_reset, {'template_name': 'password_reset.html'},
|
url(r'^password_reset/$', password_reset, {'template_name': 'password_reset.html'},
|
||||||
|
@ -90,7 +90,7 @@ class Command(BaseCommand):
|
|||||||
dest='flag_abuse',
|
dest='flag_abuse',
|
||||||
default=None,
|
default=None,
|
||||||
type=int,
|
type=int,
|
||||||
help='if client faults N then set abuse flag and reset client faults')
|
help='if client faults > N then set abuse flag and reset client faults')
|
||||||
parser.add_argument('--notify-user',
|
parser.add_argument('--notify-user',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
dest='notify_user',
|
dest='notify_user',
|
||||||
@ -119,7 +119,7 @@ class Command(BaseCommand):
|
|||||||
output += u"%s %s\n" % (h.created_by.username, h.get_fqdn(),)
|
output += u"%s %s\n" % (h.created_by.username, h.get_fqdn(),)
|
||||||
self.stdout.write(output)
|
self.stdout.write(output)
|
||||||
if (flag_abuse is not None or reset_client or reset_server or
|
if (flag_abuse is not None or reset_client or reset_server or
|
||||||
reset_available or reset_abuse or reset_abuse_blocked):
|
reset_available or reset_abuse or reset_abuse_blocked):
|
||||||
if flag_abuse is not None:
|
if flag_abuse is not None:
|
||||||
if h.client_faults > flag_abuse:
|
if h.client_faults > flag_abuse:
|
||||||
h.abuse = True
|
h.abuse = True
|
||||||
|
@ -247,6 +247,7 @@ ACCOUNT_ACTIVATION_DAYS = 7
|
|||||||
REGISTRATION_EMAIL_HTML = False # we override the text, but not the html email template
|
REGISTRATION_EMAIL_HTML = False # we override the text, but not the html email template
|
||||||
|
|
||||||
LOGIN_REDIRECT_URL = '/overview/'
|
LOGIN_REDIRECT_URL = '/overview/'
|
||||||
|
LOGOUT_REDIRECT_URL = '/'
|
||||||
|
|
||||||
X_FRAME_OPTIONS = 'DENY' # for clickjacking middleware
|
X_FRAME_OPTIONS = 'DENY' # for clickjacking middleware
|
||||||
|
|
||||||
|
@ -34,4 +34,4 @@ urlpatterns = [
|
|||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||||
import debug_toolbar
|
import debug_toolbar
|
||||||
urlpatterns += (url(r'^__debug__/', include(debug_toolbar.urls)),)
|
urlpatterns += [url(r'^__debug__/', include(debug_toolbar.urls)), ]
|
||||||
|
@ -21,7 +21,7 @@ all_files = 1
|
|||||||
[upload_sphinx]
|
[upload_sphinx]
|
||||||
upload-dir = docs/_build/html
|
upload-dir = docs/_build/html
|
||||||
|
|
||||||
[tool:pytest]
|
[pytest]
|
||||||
DJANGO_SETTINGS_MODULE = nsupdate.settings.dev
|
DJANGO_SETTINGS_MODULE = nsupdate.settings.dev
|
||||||
pep8maxlinelength = 120
|
pep8maxlinelength = 120
|
||||||
norecursedirs = .git
|
norecursedirs = .git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user