webpage tests created (no database)

This commit is contained in:
Philip Sargent
2020-07-19 01:23:07 +01:00
parent edd5a3efd9
commit eb923af44f
3 changed files with 72 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
from django.contrib.auth.decorators import login_required
from django.conf import settings
"""This enforces the login requirement for non-public pages using
the decorator mechanism.
https://www.fullstackpython.com/django-contrib-auth-decorators-login-required-examples.html
"""
class login_required_if_public(object):