This website requires JavaScript.
Explore
Help
Register
Sign in
DGNum
/
gestioCOF
Watch
16
Star
2
Fork
You've already forked gestioCOF
1
Code
Issues
78
Pull requests
14
Projects
Releases
12
Packages
Wiki
Activity
8191d72d7c
gestioCOF
/
kfet
/
context_processors.py
6 lines
99 B
Python
Raw
Normal View
History
Unescape
Escape
Use django-djconfig for kfet app. Old configuration(/settings), based on Settings model, system is deleted: SettingsForm, Settings. New system use `django-djconfig` module. - `kfet.config` module provides `kfet_config` to access configuration concerning kfet app. - Views, forms, models, etc now use this object to retrieve conf values. - Views no longer add config values to context, instead templates use `kfet_config` provided by a new context_processor. - Enhance list and update views of settings. - Fix: settings can directly be used without having to visit a specific page... Misc - Delete some py2/3 imports - Delete unused imports in kfet.models and kfet.views - Some PEP8 compliance
2017-04-03 20:32:16 +02:00
from
kfet
.
config
import
kfet_config
def
config
(
request
)
:
core -- Apply black + isort to all files
2018-10-06 12:35:49 +02:00
return
{
"
kfet_config
"
:
kfet_config
}
Reference in a new issue
Copy permalink