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"),
|
||||
]
|
||||
|
||||
print(STATICFILES_DIRS)
|
||||
|
||||
LOGIN_REDIRECT_URL = "/comic/"
|
||||
|
||||
LOGIN_URL = "/login/"
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
{% extends "base.html" %}
|
||||
{% load recaptcha2 %}
|
||||
{% load bootstrap4 %}
|
||||
{% block title %}CBWebReader - Login{% endblock %}
|
||||
{% block content %}
|
||||
{% recaptcha_init %}
|
||||
<div class="col-md-4 col-md-offset-4">
|
||||
<div class="container">
|
||||
{% if error %}
|
||||
<div class="alert alert-danger" role="alert"><p>Your username and password didn't match. Please try again.</p></div>
|
||||
{% endif %}
|
||||
<form method="post" class="form-signin">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<h2 class="form-signin-heading">Please sign in</h2>
|
||||
{{form}}
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
|
||||
{% bootstrap_form form %}
|
||||
{% buttons %}
|
||||
<button class="btn btn-lg btn-secondary btn-block" type="submit">Sign in</button>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user