Commit graph

12 commits

Author SHA1 Message Date
Rodolphe Breard
af1a793965 Use python-decouple instead of custom hack 2018-02-09 18:52:37 +01:00
Rodolphe Breard
fdf879a6b3 Allow to set the SECURE_PROXY_SSL_HEADER django setting
Sometimes the django application is deployed behind a reverse-proxy
which manage HTTPS. In such case, django think the connection is plain
HTTP unless SECURE_PROXY_SSL_HEADER is set and the reverse-proxy sets
the appropriate header/value.
2018-02-04 17:12:22 +01:00
Rodolphe Breard
291f9f0910 Fix various problems with emails for account/password 2018-02-04 16:11:07 +01:00
Rodolphe Breard
71e7433040 Parse environment variables with boolean values
Simply using bool() on the string returns True for every non-empty
string. Hence, the only way to set a value to False is to set it the an
empty string, which is counter-intuitive.
This commit will instead compare the string to well-known values for
True and return accordingly. Every other non-empty string is evaluated
to False. Empty string are evaluated to the default value.
2018-02-04 11:15:02 +01:00
Rodolphe Breard
ab4eb7414c Add basic user functionalities
Users need to register, login, logout and reset their password.
2018-02-04 01:36:39 +01:00
Rodolphe Breard
0b59b4b140 Enforce some pep8 code style 2018-01-27 23:12:09 +01:00
Rodolphe Breard
72c432dd18 Add the new user model 2018-01-27 21:06:40 +01:00
Rodolphe Breard
2d40a57613 Add the log app 2018-01-27 18:58:36 +01:00
Rodolphe Breard
f075438bbe Add the STATIC_ROOT env setting 2018-01-26 19:39:28 +01:00
Rodolphe Breard
89a10d3b6a Add the navbar 2018-01-21 13:44:00 +01:00
Rodolphe Breard
e5fcd61105 Add the static pages module 2018-01-13 15:45:54 +01:00
Rodolphe Breard
71d6cee66d first commit 2018-01-13 12:29:33 +01:00