Initial commit - existing project files
This commit is contained in:
commit
c49798a9ea
82 changed files with 4304 additions and 0 deletions
16
application/app/context_processors.py
Normal file
16
application/app/context_processors.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from django.conf import settings
|
||||
|
||||
from .models import Global
|
||||
|
||||
def app_version(request):
|
||||
|
||||
try:
|
||||
global_message = Global.objects.get(pk="global_message").value_string
|
||||
except Global.DoesNotExist:
|
||||
global_message = ""
|
||||
|
||||
return {
|
||||
"app_version": settings.APP_VERSION,
|
||||
"currency_suffix": settings.CURRENCY_SUFFIX,
|
||||
"global_message": global_message
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue