fixed settings and user management.

This commit is contained in:
ajurna
2020-05-14 14:21:07 +01:00
parent fca993213a
commit 02bed2e7d8
2 changed files with 7 additions and 6 deletions

View File

@@ -110,8 +110,6 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"), os.path.join(BASE_DIR, "static"),
] ]
print(STATICFILES_DIRS)
LOGIN_REDIRECT_URL = "/comic/" LOGIN_REDIRECT_URL = "/comic/"
LOGIN_URL = "/login/" LOGIN_URL = "/login/"

View File

@@ -1,17 +1,20 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load recaptcha2 %} {% load recaptcha2 %}
{% load bootstrap4 %}
{% block title %}CBWebReader - Login{% endblock %} {% block title %}CBWebReader - Login{% endblock %}
{% block content %} {% block content %}
{% recaptcha_init %} {% recaptcha_init %}
<div class="col-md-4 col-md-offset-4"> <div class="container">
{% if error %} {% if error %}
<div class="alert alert-danger" role="alert"><p>Your username and password didn't match. Please try again.</p></div> <div class="alert alert-danger" role="alert"><p>Your username and password didn't match. Please try again.</p></div>
{% endif %} {% endif %}
<form method="post" class="form-signin"> <form method="post">
{% csrf_token %} {% csrf_token %}
<h2 class="form-signin-heading">Please sign in</h2> <h2 class="form-signin-heading">Please sign in</h2>
{{form}} {% bootstrap_form form %}
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button> {% buttons %}
<button class="btn btn-lg btn-secondary btn-block" type="submit">Sign in</button>
{% endbuttons %}
</form> </form>
</div> </div>