mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
fixed settings and user management.
This commit is contained in:
@@ -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/"
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user