mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-21 23:45:16 +00:00
Adds a template tag for testing if the server is running in demo mode
This commit is contained in:
1 parent
4aeac79ba5
commit
1f5e4a1e6b
2 files changed
+13
-12
No files matched your search
@@ -89,6 +89,12 @@ def inventree_in_debug_mode(*args, **kwargs):
|
||||
|
||||
return djangosettings.DEBUG
|
||||
|
||||
@register.simple_tag()
|
||||
def inventree_demo_mode(*args, **kwargs):
|
||||
""" Return True if the server is running in DEMO mode """
|
||||
|
||||
return djangosettings.DEMO_MODE
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def inventree_docker_mode(*args, **kwargs):
|
||||
|
||||
Reference in new issue
Block a user