Valentin Deniaud
8b506d4281
misc: remove some unused imports ( #52457 )
2021-03-30 14:00:27 +02:00
Valentin Deniaud
86d946adcd
misc: apply isort ( #52457 )
2021-03-30 13:59:53 +02:00
Benjamin Dauvergne
0bb88003fb
use a special logger to make DEBUG log activation dynamic ( fixes #8028 )
...
Adds a new logger called DjangoLogger which check if the level is a
SettingsLogLevel object, in this case it checks a Django setting to
known if it should return DEBUG intead of the default log level.
The authentic2.logger module must be imported before using the logging
module so that all created logger use our new class. To achieve that
import is done in authentic2-ctl and wsgi.py which are the entrypoints
for authentic2.
2015-08-06 09:49:04 +02:00
Benjamin Dauvergne
c43721be5e
Rename environment variable DJANGO_CONFIG_FILE to AUTHENTIC2_CONFIG
2015-02-15 23:46:24 +01:00
Benjamin Dauvergne
b0b5bcec0b
ctl: do not consider --help as an invalid option
2015-01-29 11:35:58 +01:00
Benjamin Dauvergne
0ab6736d6c
Set DJANGO_CONFIG_FILE only if local_settings.py exists
2015-01-21 09:44:52 +01:00
Benjamin Dauvergne
50c4737b01
Make authentic2-ctl default to load the local_settings.py file in the current directory
2015-01-20 23:51:55 +01:00
Benjamin Dauvergne
7ae6ffd6a7
Add new --config flag to authentic2-ctl ( fixes #5960 )
...
--config expects the path to the config file, it --config is not used
the environment variable DJANGO_CONFIG_FILE is used instead.
2015-01-20 12:02:59 +01:00
Benjamin Dauvergne
692a19531e
authentic2-ctl: do not set DEBUG=1 in the environment
2014-04-03 16:14:46 +02:00
Benjamin Dauvergne
106d34c7f0
manage: remove dead sys.path manipulations
2013-06-14 14:22:21 +02:00
Benjamin Dauvergne
452fd05c37
settings: take main settings from environment
2013-06-14 12:05:13 +02:00
Benjamin Dauvergne
7e24752e17
ctl: add dev settings and use them for the control script
2013-06-04 16:55:18 +02:00
Benjamin Dauvergne
3dbff0d36b
settings: fix prod settings
2013-05-30 22:31:05 +02:00
Benjamin Dauvergne
65283edc27
rename manage.py to authentic2-ctl
2013-04-14 12:04:25 +02:00