Compare commits
2 Commits
fd5c4dad1a
...
dfdd6d6dc5
Author | SHA1 | Date | |
---|---|---|---|
dfdd6d6dc5 | |||
75a1b8d7f3 |
@ -95,6 +95,9 @@ DATABASES = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# inherited default, look at changing to BigAutoField
|
||||||
|
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
||||||
|
|
||||||
|
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/1.6/topics/i18n/
|
# https://docs.djangoproject.com/en/1.6/topics/i18n/
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile
|
# This file is autogenerated by pip-compile with python 3.8
|
||||||
# To update, run:
|
# To update, run:
|
||||||
#
|
#
|
||||||
# pip-compile --output-file=requirements/requirements-dev.txt requirements/requirements-dev.in
|
# pip-compile --output-file=requirements/requirements-dev.txt requirements/requirements-dev.in
|
||||||
#
|
#
|
||||||
asgiref==3.2.10
|
asgiref==3.4.1
|
||||||
# via django
|
# via django
|
||||||
attrs==21.2.0
|
attrs==21.2.0
|
||||||
# via pytest
|
# via pytest
|
||||||
@ -12,9 +12,9 @@ backports.entry-points-selectable==1.1.0
|
|||||||
# via virtualenv
|
# via virtualenv
|
||||||
bandit==1.7.0
|
bandit==1.7.0
|
||||||
# via -r requirements/requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
certifi==2020.6.20
|
certifi==2021.10.8
|
||||||
# via requests
|
# via requests
|
||||||
chardet==3.0.4
|
charset-normalizer==2.0.7
|
||||||
# via requests
|
# via requests
|
||||||
click==8.0.3
|
click==8.0.3
|
||||||
# via pip-tools
|
# via pip-tools
|
||||||
@ -22,18 +22,19 @@ coverage[toml]==6.0.2
|
|||||||
# via pytest-cov
|
# via pytest-cov
|
||||||
distlib==0.3.3
|
distlib==0.3.3
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
django-adminplus==0.5
|
django==3.2.8
|
||||||
# via -r requirements/requirements.in
|
|
||||||
django-bootstrap3==14.2.0
|
|
||||||
# via -r requirements/requirements.in
|
|
||||||
django-extensions==3.0.9
|
|
||||||
# via -r requirements/requirements.in
|
|
||||||
django==3.1.2
|
|
||||||
# via
|
# via
|
||||||
# -r requirements/requirements.in
|
# -r requirements/requirements.in
|
||||||
# django-bootstrap3
|
# django-bootstrap3
|
||||||
|
# django-extensions
|
||||||
# djangorestframework
|
# djangorestframework
|
||||||
djangorestframework==3.12.1
|
django-adminplus==0.5
|
||||||
|
# via -r requirements/requirements.in
|
||||||
|
django-bootstrap3==15.0.0
|
||||||
|
# via -r requirements/requirements.in
|
||||||
|
django-extensions==3.1.3
|
||||||
|
# via -r requirements/requirements.in
|
||||||
|
djangorestframework==3.12.4
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
dlint==0.11.0
|
dlint==0.11.0
|
||||||
# via -r requirements/requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
@ -41,6 +42,15 @@ filelock==3.3.1
|
|||||||
# via
|
# via
|
||||||
# tox
|
# tox
|
||||||
# virtualenv
|
# virtualenv
|
||||||
|
flake8==3.9.2
|
||||||
|
# via
|
||||||
|
# -r requirements/requirements-dev.in
|
||||||
|
# dlint
|
||||||
|
# flake8-builtins
|
||||||
|
# flake8-docstrings
|
||||||
|
# flake8-executable
|
||||||
|
# flake8-isort
|
||||||
|
# flake8-mutable
|
||||||
flake8-blind-except==0.2.0
|
flake8-blind-except==0.2.0
|
||||||
# via -r requirements/requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
flake8-builtins==1.5.3
|
flake8-builtins==1.5.3
|
||||||
@ -57,22 +67,13 @@ flake8-logging-format==0.6.0
|
|||||||
# via -r requirements/requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
flake8-mutable==1.2.0
|
flake8-mutable==1.2.0
|
||||||
# via -r requirements/requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
flake8==3.9.2
|
|
||||||
# via
|
|
||||||
# -r requirements/requirements-dev.in
|
|
||||||
# dlint
|
|
||||||
# flake8-builtins
|
|
||||||
# flake8-docstrings
|
|
||||||
# flake8-executable
|
|
||||||
# flake8-isort
|
|
||||||
# flake8-mutable
|
|
||||||
gitdb==4.0.9
|
gitdb==4.0.9
|
||||||
# via gitpython
|
# via gitpython
|
||||||
gitpython==3.1.24
|
gitpython==3.1.24
|
||||||
# via bandit
|
# via bandit
|
||||||
idna==2.10
|
idna==3.3
|
||||||
# via requests
|
# via requests
|
||||||
inflect==4.1.0
|
inflect==5.3.0
|
||||||
# via jaraco.itertools
|
# via jaraco.itertools
|
||||||
iniconfig==1.1.1
|
iniconfig==1.1.1
|
||||||
# via pytest
|
# via pytest
|
||||||
@ -80,35 +81,33 @@ irc==15.0.6
|
|||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
isort==5.9.3
|
isort==5.9.3
|
||||||
# via flake8-isort
|
# via flake8-isort
|
||||||
jaraco.classes==3.1.0
|
jaraco.classes==3.2.1
|
||||||
# via jaraco.collections
|
# via jaraco.collections
|
||||||
jaraco.collections==3.0.0
|
jaraco.collections==3.4.0
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.functools==3.0.1
|
jaraco.functools==3.3.0
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.text
|
# jaraco.text
|
||||||
# tempora
|
# tempora
|
||||||
jaraco.itertools==5.0.0
|
jaraco.itertools==6.0.3
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.logging==3.0.0
|
jaraco.logging==3.1.0
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.stream==3.0.0
|
jaraco.stream==3.0.3
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.text==3.2.0
|
jaraco.text==3.5.1
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.collections
|
# jaraco.collections
|
||||||
mccabe==0.6.1
|
mccabe==0.6.1
|
||||||
# via flake8
|
# via flake8
|
||||||
more-itertools==8.5.0
|
more-itertools==8.10.0
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.classes
|
# jaraco.classes
|
||||||
# jaraco.functools
|
# jaraco.functools
|
||||||
# jaraco.itertools
|
# jaraco.itertools
|
||||||
oauthlib==3.1.0
|
|
||||||
# via requests-oauthlib
|
|
||||||
packaging==21.0
|
packaging==21.0
|
||||||
# via
|
# via
|
||||||
# pytest
|
# pytest
|
||||||
@ -139,24 +138,24 @@ pydocstyle==6.1.1
|
|||||||
# via flake8-docstrings
|
# via flake8-docstrings
|
||||||
pyflakes==2.3.1
|
pyflakes==2.3.1
|
||||||
# via flake8
|
# via flake8
|
||||||
pyparsing==3.0.1
|
pyparsing==3.0.2
|
||||||
# via packaging
|
# via packaging
|
||||||
pytest-cov==3.0.0
|
|
||||||
# via -r requirements/requirements-dev.in
|
|
||||||
pytest-django==4.4.0
|
|
||||||
# via -r requirements/requirements-dev.in
|
|
||||||
pytest==6.2.5
|
pytest==6.2.5
|
||||||
# via
|
# via
|
||||||
# -r requirements/requirements-dev.in
|
# -r requirements/requirements-dev.in
|
||||||
# pytest-cov
|
# pytest-cov
|
||||||
# pytest-django
|
# pytest-django
|
||||||
python-dateutil==2.8.1
|
pytest-cov==3.0.0
|
||||||
|
# via -r requirements/requirements-dev.in
|
||||||
|
pytest-django==4.4.0
|
||||||
|
# via -r requirements/requirements-dev.in
|
||||||
|
python-dateutil==2.8.2
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
python-gitlab==2.5.0
|
python-gitlab==2.10.1
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
python-mpd2==1.1.0
|
python-mpd2==3.0.4
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
pytz==2020.1
|
pytz==2021.3
|
||||||
# via
|
# via
|
||||||
# -r requirements/requirements.in
|
# -r requirements/requirements.in
|
||||||
# django
|
# django
|
||||||
@ -164,20 +163,16 @@ pytz==2020.1
|
|||||||
# tempora
|
# tempora
|
||||||
pyyaml==6.0
|
pyyaml==6.0
|
||||||
# via bandit
|
# via bandit
|
||||||
requests-oauthlib==1.3.0
|
requests==2.26.0
|
||||||
# via twython
|
|
||||||
requests==2.24.0
|
|
||||||
# via
|
# via
|
||||||
# python-gitlab
|
# python-gitlab
|
||||||
# requests-oauthlib
|
# requests-toolbelt
|
||||||
# twython
|
requests-toolbelt==0.9.1
|
||||||
six==1.15.0
|
# via python-gitlab
|
||||||
|
six==1.16.0
|
||||||
# via
|
# via
|
||||||
# bandit
|
# bandit
|
||||||
# irc
|
# irc
|
||||||
# jaraco.collections
|
|
||||||
# jaraco.logging
|
|
||||||
# jaraco.text
|
|
||||||
# python-dateutil
|
# python-dateutil
|
||||||
# tox
|
# tox
|
||||||
# virtualenv
|
# virtualenv
|
||||||
@ -185,11 +180,11 @@ smmap==5.0.0
|
|||||||
# via gitdb
|
# via gitdb
|
||||||
snowballstemmer==2.1.0
|
snowballstemmer==2.1.0
|
||||||
# via pydocstyle
|
# via pydocstyle
|
||||||
sqlparse==0.4.1
|
sqlparse==0.4.2
|
||||||
# via django
|
# via django
|
||||||
stevedore==3.5.0
|
stevedore==3.5.0
|
||||||
# via bandit
|
# via bandit
|
||||||
tempora==4.0.0
|
tempora==4.1.2
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.logging
|
# jaraco.logging
|
||||||
@ -203,17 +198,15 @@ tomli==1.2.2
|
|||||||
# via
|
# via
|
||||||
# coverage
|
# coverage
|
||||||
# pep517
|
# pep517
|
||||||
tox-wheel==0.6.0
|
|
||||||
# via -r requirements/requirements-dev.in
|
|
||||||
tox==3.24.4
|
tox==3.24.4
|
||||||
# via
|
# via
|
||||||
# -r requirements/requirements-dev.in
|
# -r requirements/requirements-dev.in
|
||||||
# tox-wheel
|
# tox-wheel
|
||||||
twython==3.8.2
|
tox-wheel==0.6.0
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements-dev.in
|
||||||
typing-extensions==3.10.0.2
|
typing-extensions==3.10.0.2
|
||||||
# via gitpython
|
# via gitpython
|
||||||
urllib3==1.25.11
|
urllib3==1.26.7
|
||||||
# via requests
|
# via requests
|
||||||
versioneer==0.21
|
versioneer==0.21
|
||||||
# via -r requirements/requirements-dev.in
|
# via -r requirements/requirements-dev.in
|
||||||
|
@ -10,5 +10,4 @@ python-dateutil # countdown relative math
|
|||||||
python-gitlab # client for the gitlab bot
|
python-gitlab # client for the gitlab bot
|
||||||
python-mpd2 # client for mpd
|
python-mpd2 # client for mpd
|
||||||
pytz # timezone awareness
|
pytz # timezone awareness
|
||||||
twython # twitter client
|
|
||||||
zalgo-text # zalgoify text
|
zalgo-text # zalgoify text
|
||||||
|
@ -1,99 +1,92 @@
|
|||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile
|
# This file is autogenerated by pip-compile with python 3.8
|
||||||
# To update, run:
|
# To update, run:
|
||||||
#
|
#
|
||||||
# pip-compile --output-file=requirements/requirements.txt requirements/requirements.in
|
# pip-compile --output-file=requirements/requirements.txt requirements/requirements.in
|
||||||
#
|
#
|
||||||
asgiref==3.2.10
|
asgiref==3.4.1
|
||||||
# via django
|
# via django
|
||||||
certifi==2020.6.20
|
certifi==2021.10.8
|
||||||
# via requests
|
# via requests
|
||||||
chardet==3.0.4
|
charset-normalizer==2.0.7
|
||||||
# via requests
|
# via requests
|
||||||
django-adminplus==0.5
|
django==3.2.8
|
||||||
# via -r requirements/requirements.in
|
|
||||||
django-bootstrap3==14.2.0
|
|
||||||
# via -r requirements/requirements.in
|
|
||||||
django-extensions==3.0.9
|
|
||||||
# via -r requirements/requirements.in
|
|
||||||
django==3.1.2
|
|
||||||
# via
|
# via
|
||||||
# -r requirements/requirements.in
|
# -r requirements/requirements.in
|
||||||
# django-bootstrap3
|
# django-bootstrap3
|
||||||
|
# django-extensions
|
||||||
# djangorestframework
|
# djangorestframework
|
||||||
djangorestframework==3.12.1
|
django-adminplus==0.5
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
idna==2.10
|
django-bootstrap3==15.0.0
|
||||||
|
# via -r requirements/requirements.in
|
||||||
|
django-extensions==3.1.3
|
||||||
|
# via -r requirements/requirements.in
|
||||||
|
djangorestframework==3.12.4
|
||||||
|
# via -r requirements/requirements.in
|
||||||
|
idna==3.3
|
||||||
# via requests
|
# via requests
|
||||||
inflect==4.1.0
|
inflect==5.3.0
|
||||||
# via jaraco.itertools
|
# via jaraco.itertools
|
||||||
irc==15.0.6
|
irc==15.0.6
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
jaraco.classes==3.1.0
|
jaraco.classes==3.2.1
|
||||||
# via jaraco.collections
|
# via jaraco.collections
|
||||||
jaraco.collections==3.0.0
|
jaraco.collections==3.4.0
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.functools==3.0.1
|
jaraco.functools==3.3.0
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.text
|
# jaraco.text
|
||||||
# tempora
|
# tempora
|
||||||
jaraco.itertools==5.0.0
|
jaraco.itertools==6.0.3
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.logging==3.0.0
|
jaraco.logging==3.1.0
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.stream==3.0.0
|
jaraco.stream==3.0.3
|
||||||
# via irc
|
# via irc
|
||||||
jaraco.text==3.2.0
|
jaraco.text==3.5.1
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.collections
|
# jaraco.collections
|
||||||
more-itertools==8.5.0
|
more-itertools==8.10.0
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.functools
|
# jaraco.functools
|
||||||
# jaraco.itertools
|
# jaraco.itertools
|
||||||
oauthlib==3.1.0
|
|
||||||
# via requests-oauthlib
|
|
||||||
parsedatetime==2.6
|
parsedatetime==2.6
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
ply==3.11
|
ply==3.11
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
python-dateutil==2.8.1
|
python-dateutil==2.8.2
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
python-gitlab==2.5.0
|
python-gitlab==2.10.1
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
python-mpd2==1.1.0
|
python-mpd2==3.0.4
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
pytz==2020.1
|
pytz==2021.3
|
||||||
# via
|
# via
|
||||||
# -r requirements/requirements.in
|
# -r requirements/requirements.in
|
||||||
# django
|
# django
|
||||||
# irc
|
# irc
|
||||||
# tempora
|
# tempora
|
||||||
requests-oauthlib==1.3.0
|
requests==2.26.0
|
||||||
# via twython
|
|
||||||
requests==2.24.0
|
|
||||||
# via
|
# via
|
||||||
# python-gitlab
|
# python-gitlab
|
||||||
# requests-oauthlib
|
# requests-toolbelt
|
||||||
# twython
|
requests-toolbelt==0.9.1
|
||||||
six==1.15.0
|
# via python-gitlab
|
||||||
|
six==1.16.0
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.collections
|
|
||||||
# jaraco.logging
|
|
||||||
# jaraco.text
|
|
||||||
# python-dateutil
|
# python-dateutil
|
||||||
sqlparse==0.4.1
|
sqlparse==0.4.2
|
||||||
# via django
|
# via django
|
||||||
tempora==4.0.0
|
tempora==4.1.2
|
||||||
# via
|
# via
|
||||||
# irc
|
# irc
|
||||||
# jaraco.logging
|
# jaraco.logging
|
||||||
twython==3.8.2
|
urllib3==1.26.7
|
||||||
# via -r requirements/requirements.in
|
|
||||||
urllib3==1.25.11
|
|
||||||
# via requests
|
# via requests
|
||||||
zalgo-text==0.6
|
zalgo-text==0.6
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
|
@ -44,18 +44,6 @@
|
|||||||
<b class="caret"></b>
|
<b class="caret"></b>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li>
|
|
||||||
<a href="{% url 'auth_password_change' %}">
|
|
||||||
<i class="fa fa-pencil-square-o"></i>
|
|
||||||
Change password
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="{% url 'auth_logout' %}">
|
|
||||||
<i class="fa fa-power-off"></i>
|
|
||||||
Log out
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% if user.is_authenticated and user.is_staff %}
|
{% if user.is_authenticated and user.is_staff %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'admin:index' %}">
|
<a href="{% url 'admin:index' %}">
|
||||||
@ -70,9 +58,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="{% url 'auth_login' %}?next={{ request.path }}">Log in</a>
|
<a href="{% url 'auth_login' %}?next={{ request.path }}">Log in</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="{% url 'registration_register' %}">Sign up</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>{% trans "Account activation failed." %}</p>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/activate.html**
|
|
||||||
|
|
||||||
Used if account activation fails. With the default setup, has the following context:
|
|
||||||
|
|
||||||
``activation_key``
|
|
||||||
The activation key used during the activation attempt.
|
|
||||||
{% endcomment %}
|
|
@ -1,22 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Account Activated" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>
|
|
||||||
{% trans "Your account is now activated." %}
|
|
||||||
{% if not user.is_authenticated %}
|
|
||||||
{% trans "You can log in." %}
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/activation_complete.html**
|
|
||||||
|
|
||||||
Used after successful account activation. This template has no context
|
|
||||||
variables of its own, and should simply inform the user that their
|
|
||||||
account is now active.
|
|
||||||
{% endcomment %}
|
|
@ -1,77 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% load url from future %}
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<title>{{ site.name }} {% trans "registration" %}</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<p>
|
|
||||||
{% blocktrans with site_name=site.name %}
|
|
||||||
You (or someone pretending to be you) have asked to register an account at
|
|
||||||
{{ site_name }}. If this wasn't you, please ignore this email
|
|
||||||
and your address will be removed from our records.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{% blocktrans %}
|
|
||||||
To activate this account, please click the following link within the next
|
|
||||||
{{ expiration_days }} days:
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<a href="http://{{site.domain}}{% url 'registration_activate' activation_key %}">
|
|
||||||
{{site.domain}}{% url 'registration_activate' activation_key %}
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{% blocktrans with site_name=site.name %}
|
|
||||||
Sincerely,
|
|
||||||
{{ site_name }} Management
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/activation_email.html**
|
|
||||||
|
|
||||||
Used to generate the html body of the activation email. Should display a
|
|
||||||
link the user can click to activate the account. This template has the
|
|
||||||
following context:
|
|
||||||
|
|
||||||
``activation_key``
|
|
||||||
The activation key for the new account.
|
|
||||||
|
|
||||||
``expiration_days``
|
|
||||||
The number of days remaining during which the account may be
|
|
||||||
activated.
|
|
||||||
|
|
||||||
``site``
|
|
||||||
An object representing the site on which the user registered;
|
|
||||||
depending on whether ``django.contrib.sites`` is installed, this
|
|
||||||
may be an instance of either ``django.contrib.sites.models.Site``
|
|
||||||
(if the sites application is installed) or
|
|
||||||
``django.contrib.sites.models.RequestSite`` (if not). Consult `the
|
|
||||||
documentation for the Django sites framework
|
|
||||||
<http://docs.djangoproject.com/en/dev/ref/contrib/sites/>`_ for
|
|
||||||
details regarding these objects' interfaces.
|
|
||||||
|
|
||||||
``user``
|
|
||||||
The new user account
|
|
||||||
|
|
||||||
``request``
|
|
||||||
``HttpRequest`` instance for better flexibility.
|
|
||||||
For example it can be used to compute absolute register URL:
|
|
||||||
|
|
||||||
http{% if request.is_secure %}s{% endif %}://{{ request.get_host }}{% url 'registration_activate' activation_key %}
|
|
||||||
|
|
||||||
or when using Django >= 1.7:
|
|
||||||
|
|
||||||
{{ request.scheme }}://{{ request.get_host }}{% url 'registration_activate' activation_key %}
|
|
||||||
{% endcomment %}
|
|
@ -1,57 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% load url from future %}
|
|
||||||
{% blocktrans with site_name=site.name %}
|
|
||||||
You (or someone pretending to be you) have asked to register an account at
|
|
||||||
{{ site_name }}. If this wasn't you, please ignore this email
|
|
||||||
and your address will be removed from our records.
|
|
||||||
{% endblocktrans %}
|
|
||||||
{% blocktrans %}
|
|
||||||
To activate this account, please click the following link within the next
|
|
||||||
{{ expiration_days }} days:
|
|
||||||
{% endblocktrans %}
|
|
||||||
|
|
||||||
http://{{site.domain}}{% url 'registration_activate' activation_key %}
|
|
||||||
|
|
||||||
{% blocktrans with site_name=site.name %}
|
|
||||||
Sincerely,
|
|
||||||
{{ site_name }} Management
|
|
||||||
{% endblocktrans %}
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/activation_email.txt**
|
|
||||||
|
|
||||||
Used to generate the text body of the activation email. Should display a
|
|
||||||
link the user can click to activate the account. This template has the
|
|
||||||
following context:
|
|
||||||
|
|
||||||
``activation_key``
|
|
||||||
The activation key for the new account.
|
|
||||||
|
|
||||||
``expiration_days``
|
|
||||||
The number of days remaining during which the account may be
|
|
||||||
activated.
|
|
||||||
|
|
||||||
``site``
|
|
||||||
An object representing the site on which the user registered;
|
|
||||||
depending on whether ``django.contrib.sites`` is installed, this
|
|
||||||
may be an instance of either ``django.contrib.sites.models.Site``
|
|
||||||
(if the sites application is installed) or
|
|
||||||
``django.contrib.sites.models.RequestSite`` (if not). Consult `the
|
|
||||||
documentation for the Django sites framework
|
|
||||||
<http://docs.djangoproject.com/en/dev/ref/contrib/sites/>`_ for
|
|
||||||
details regarding these objects' interfaces.
|
|
||||||
|
|
||||||
``user``
|
|
||||||
The new user account
|
|
||||||
|
|
||||||
``request``
|
|
||||||
``HttpRequest`` instance for better flexibility.
|
|
||||||
For example it can be used to compute absolute register URL:
|
|
||||||
|
|
||||||
http{% if request.is_secure %}s{% endif %}://{{ request.get_host }}{% url 'registration_activate' activation_key %}
|
|
||||||
|
|
||||||
or when using Django >= 1.7:
|
|
||||||
|
|
||||||
{{ request.scheme }}://{{ request.get_host }}{% url 'registration_activate' activation_key %}
|
|
||||||
{% endcomment %}
|
|
@ -1,28 +0,0 @@
|
|||||||
{% load i18n %}{% trans "Account activation on" %} {{ site.name }}
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/activation_email_subject.txt**
|
|
||||||
|
|
||||||
Used to generate the subject line of the activation email. Because the
|
|
||||||
subject line of an email must be a single line of text, any output
|
|
||||||
from this template will be forcibly condensed to a single line before
|
|
||||||
being used. This template has the following context:
|
|
||||||
|
|
||||||
``activation_key``
|
|
||||||
The activation key for the new account.
|
|
||||||
|
|
||||||
``expiration_days``
|
|
||||||
The number of days remaining during which the account may be
|
|
||||||
activated.
|
|
||||||
|
|
||||||
``site``
|
|
||||||
An object representing the site on which the user registered;
|
|
||||||
depending on whether ``django.contrib.sites`` is installed, this
|
|
||||||
may be an instance of either ``django.contrib.sites.models.Site``
|
|
||||||
(if the sites application is installed) or
|
|
||||||
``django.contrib.sites.models.RequestSite`` (if not). Consult `the
|
|
||||||
documentation for the Django sites framework
|
|
||||||
<http://docs.djangoproject.com/en/dev/ref/contrib/sites/>`_ for
|
|
||||||
details regarding these objects' interfaces.
|
|
||||||
{% endcomment %}
|
|
@ -1,47 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
{% load bootstrap3 %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Log in" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<form role="form" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% bootstrap_form form %}
|
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
|
||||||
{% buttons submit='Log In' reset='Cancel' layout='horizontal' %}{% endbuttons %}
|
|
||||||
</form>
|
|
||||||
<div class="extra">
|
|
||||||
<p>{% trans "Forgot your password?" %} <a href="{% url 'auth_password_reset' %}">{% trans "Reset it" %}</a>.
|
|
||||||
{% trans "Not a member?" %} <a href="{% url 'registration_register' %}">{% trans "Register" %}</a>.</p>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/login.html**
|
|
||||||
|
|
||||||
It's your responsibility to provide the login form in a template called
|
|
||||||
registration/login.html by default. This template gets passed four
|
|
||||||
template context variables:
|
|
||||||
|
|
||||||
``form``
|
|
||||||
A Form object representing the login form. See the forms
|
|
||||||
documentation for more on Form objects.
|
|
||||||
|
|
||||||
``next``
|
|
||||||
The URL to redirect to after successful login. This may contain a
|
|
||||||
query string, too.
|
|
||||||
|
|
||||||
``site``
|
|
||||||
The current Site, according to the SITE_ID setting. If you don't
|
|
||||||
have the site framework installed, this will be set to an instance
|
|
||||||
of RequestSite, which derives the site name and domain from the
|
|
||||||
current HttpRequest.
|
|
||||||
|
|
||||||
``site_name``
|
|
||||||
An alias for site.name. If you don't have the site framework
|
|
||||||
installed, this will be set to the value of
|
|
||||||
request.META['SERVER_NAME']. For more on sites, see The
|
|
||||||
"sites" framework.
|
|
||||||
{% endcomment %}
|
|
@ -1,8 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Logged out" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>{% trans "Successfully logged out" %}.</p>
|
|
||||||
{% endblock %}
|
|
@ -1,11 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Password changed" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>{% trans "Password successfully changed!" %}</p>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{# This is used by django.contrib.auth #}
|
|
@ -1,17 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
{% load bootstrap3 %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Change password" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<form role="form" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% bootstrap_form form %}
|
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
|
||||||
{% buttons submit='Change Password' reset='Cancel' layout='horizontal' %}{% endbuttons %}
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{# This is used by django.contrib.auth #}
|
|
@ -1,14 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Password reset complete" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>
|
|
||||||
{% trans "Your password has been reset!" %}
|
|
||||||
{% trans "You may now" %} <a href="{{ login_url }}">{% trans "log in" %}</a>.
|
|
||||||
</p>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{# This is used by django.contrib.auth #}
|
|
@ -1,18 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
{% load bootstrap3 %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Confirm password reset" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>{% trans "Enter your new password below to reset your password:" %}</p>
|
|
||||||
<form role="form" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% bootstrap_form form %}
|
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
|
||||||
{% buttons submit='Set Password' reset='Cancel' layout='horizontal' %}{% endbuttons %}
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{# This is used by django.contrib.auth #}
|
|
@ -1,16 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Password reset" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>
|
|
||||||
{% blocktrans %}
|
|
||||||
We have sent you an email with a link to reset your password. Please check
|
|
||||||
your email and click the link to continue.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{# This is used by django.contrib.auth #}
|
|
@ -1,26 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% load url from future %}
|
|
||||||
|
|
||||||
{% blocktrans %}Greetings{% endblocktrans %} {% if user.get_full_name %}{{ user.get_full_name }}{% else %}{{ user }}{% endif %},
|
|
||||||
|
|
||||||
{% blocktrans %}
|
|
||||||
You are receiving this email because you (or someone pretending to be you)
|
|
||||||
requested that your password be reset on the {{ domain }} site. If you do not
|
|
||||||
wish to reset your password, please ignore this message.
|
|
||||||
{% endblocktrans %}
|
|
||||||
|
|
||||||
{% blocktrans %}
|
|
||||||
To reset your password, please click the following link, or copy and paste it
|
|
||||||
into your web browser:
|
|
||||||
{% endblocktrans %}
|
|
||||||
|
|
||||||
{{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uid token %}
|
|
||||||
|
|
||||||
{% blocktrans %}Your username, in case you've forgotten:{% endblocktrans %} {{ user.username }}
|
|
||||||
|
|
||||||
|
|
||||||
{% blocktrans %}Best regards{% endblocktrans %},
|
|
||||||
{{ site_name }} {% blocktrans %}Management{% endblocktrans %}
|
|
||||||
|
|
||||||
|
|
||||||
{# This is used by django.contrib.auth #}
|
|
@ -1,18 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
{% load bootstrap3 %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Reset password" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>Forgot your password? Enter your email in the form below and we'll send you instructions for creating a new one.</p>
|
|
||||||
<form role="form" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% bootstrap_form form %}
|
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
|
||||||
{% buttons submit='Reset' reset='Cancel' layout='horizontal' %}{% endbuttons %}
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{# This is used by django.contrib.auth #}
|
|
@ -1,15 +0,0 @@
|
|||||||
{% extends "base.html" %}
|
|
||||||
|
|
||||||
{% block extra_media %}{% load static %}
|
|
||||||
<link href="{% get_static_prefix %}css/registration.css" rel="stylesheet" type='text/css' />
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block navbarbrand %}
|
|
||||||
<a class="navbar-brand navbar-brand-active" href="{% url 'index' %}">{{ site.domain }}</a>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="registration_wrap">
|
|
||||||
{% block registration_content %}{% endblock %}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
@ -1,8 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Registration is closed" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>{% trans "Sorry, but registration is closed at this moment. Come back later." %}</p>
|
|
||||||
{% endblock %}
|
|
@ -1,18 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Activation email sent" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<p>{% trans "Please check your email to complete the registration process." %}</p>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/registration_complete.html**
|
|
||||||
|
|
||||||
Used after successful completion of the registration form. This
|
|
||||||
template has no context variables of its own, and should simply inform
|
|
||||||
the user that an email containing account-activation information has
|
|
||||||
been sent.
|
|
||||||
{% endcomment %}
|
|
@ -1,27 +0,0 @@
|
|||||||
{% extends "registration/registration_base.html" %}
|
|
||||||
{% load i18n %}
|
|
||||||
{% load bootstrap3 %}
|
|
||||||
|
|
||||||
{% block title %}{% trans "Register for an account" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block registration_content %}
|
|
||||||
<form role="form" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% bootstrap_form form %}
|
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
|
||||||
{% buttons submit='Sign Up' reset='Cancel' layout='horizontal' %}{% endbuttons %}
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% comment %}
|
|
||||||
**registration/registration_form.html**
|
|
||||||
Used to show the form users will fill out to register. By default, has
|
|
||||||
the following context:
|
|
||||||
|
|
||||||
``form``
|
|
||||||
The registration form. This will be an instance of some subclass
|
|
||||||
of ``django.forms.Form``; consult `Django's forms documentation
|
|
||||||
<http://docs.djangoproject.com/en/dev/topics/forms/>`_ for
|
|
||||||
information on how to display this in a template.
|
|
||||||
{% endcomment %}
|
|
Loading…
x
Reference in New Issue
Block a user