From afc5d30ed80b7f767b07ee7d0ddec662268ac15b Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 8 Mar 2021 01:14:36 +0000 Subject: [PATCH] disable help and guestbook; minor fixes --- ttadmin/urls.py | 4 ++-- ttadmin/users/forms.py | 2 +- ttadmin/users/templates/users/thanks.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ttadmin/urls.py b/ttadmin/urls.py index 5f457e5..1d73fcb 100644 --- a/ttadmin/urls.py +++ b/ttadmin/urls.py @@ -2,8 +2,8 @@ from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ - url(r'^help/', include('help.urls')), + # url(r'^help/', include('help.urls')), url(r'^users/', include('users.urls')), - url(r'^guestbook/', include('guestbook.urls')), + # url(r'^guestbook/', include('guestbook.urls')), url(r'^admin/', admin.site.urls), ] diff --git a/ttadmin/users/forms.py b/ttadmin/users/forms.py index df9c88c..f1c753f 100644 --- a/ttadmin/users/forms.py +++ b/ttadmin/users/forms.py @@ -13,7 +13,7 @@ throttle_submission = throttler(submission_throttle) USERNAME_RE = re.compile(r'^[a-z][a-z0-9_]+$') -USERNAME_MIN_LENGTH = 3 +USERNAME_MIN_LENGTH = 2 DISPLAY_NAME_RE = re.compile(r"^[a-zA-Z0-9_\-']+$") DISPLAY_MIN_LENGTH = 2 diff --git a/ttadmin/users/templates/users/thanks.html b/ttadmin/users/templates/users/thanks.html index 654a481..30989ca 100644 --- a/ttadmin/users/templates/users/thanks.html +++ b/ttadmin/users/templates/users/thanks.html @@ -27,7 +27,7 @@
  • black out
  • the machine room
  • -

    or a random page

    +

    or a random page