Compare commits
No commits in common. "a24fb897a31c9a57e4a1fab585ef7fee4d1c97f0" and "83404e2ed5b969678c0cf7f0fd6a39fecd31eb7e" have entirely different histories.
a24fb897a3
...
83404e2ed5
3 changed files with 7 additions and 37 deletions
|
|
@ -2,5 +2,5 @@
|
||||||
{% load form %}
|
{% load form %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Créer un compte</h1>
|
<h1>Créer un compte</h1>
|
||||||
{% form form submit="Créer mon compte" %}
|
{% form form %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,9 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% load form %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Connexion</h1>
|
<h1>Connexion</h1>
|
||||||
{% for error in form.non_field_errors %}<article class="message error">{{ error }}</article>{% endfor %}
|
|
||||||
<form method="post" {% if action %}action="{% url action %}"{% endif %}>
|
|
||||||
{% csrf_token %}
|
|
||||||
{% for field in form %}
|
|
||||||
<fieldset>
|
|
||||||
{% if field.id_for_label %}
|
|
||||||
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
||||||
{% else %}
|
|
||||||
<legend>{{ field.label }}</legend>
|
|
||||||
{% endif %}
|
|
||||||
{{ field }}
|
|
||||||
{% if field.errors %}
|
|
||||||
<small id="{{ field.errors.field_id }}_error" class="form-error">{{ field.errors|join:", " }}</small>
|
|
||||||
{% endif %}
|
|
||||||
</fieldset>
|
|
||||||
{% endfor %}
|
|
||||||
<button type="submit">Me connecter</button>
|
|
||||||
<p>
|
<p>
|
||||||
<a href="{% url "signup" %}" role="button" class="secondary">Créer mon compte</a>
|
<a href="{% url "signup" %}">Créer un compte</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
{% form form submit="Se connecter" %}
|
||||||
<a href="{% url "password_reset" %}"
|
|
||||||
role="button"
|
|
||||||
class="outline secondary">J'ai oublié mon mot de passe</a>
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -141,12 +141,3 @@ YOUTUBE_API_KEY = os.getenv("YOUTUBE_API_KEY", "")
|
||||||
YOUTUBE_OAUTH_SECRETS = os.getenv("YOUTUBE_OAUTH_SECRETS", "")
|
YOUTUBE_OAUTH_SECRETS = os.getenv("YOUTUBE_OAUTH_SECRETS", "")
|
||||||
|
|
||||||
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", None)
|
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", None)
|
||||||
|
|
||||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
|
||||||
EMAIL_HOST = os.getenv("EMAIL_HOST")
|
|
||||||
EMAIL_PORT = os.getenv("EMAIL_PORT", 587)
|
|
||||||
EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER")
|
|
||||||
EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
|
|
||||||
EMAIL_USE_SSL = os.getenv("EMAIL_USE_SSL", False)
|
|
||||||
EMAIL_USE_TLS = os.getenv("EMAIL_USE_TLS", not EMAIL_USE_SSL)
|
|
||||||
DEFAULT_FROM_EMAIL = os.getenv("DEFAULT_FROM_EMAIL", EMAIL_HOST_USER)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue