mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-17 13:31:47 -05:00
Fix lingering import statement, add context processor to expose settings to templates.
This commit is contained in:
6
lib/ui/context_processors.py
Normal file
6
lib/ui/context_processors.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.conf import settings as django_settings
|
||||
|
||||
def settings(request):
|
||||
return {
|
||||
'settings': django_settings,
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
<script src="{{ STATIC_URL }}lib/angular/angular.js"></script>
|
||||
<script src="{{ STATIC_URL }}lib/angular/angular-resource.js"></script>
|
||||
<script src="{{ STATIC_URL }}lib/angular/angular-cookies.js"></script>
|
||||
{% if not debug %}
|
||||
{% if not settings.DEBUG %}
|
||||
<script src="{{ STATIC_URL }}js/ansible.min.js"></script> <!-- FIXME: Change to whatever we end up calling the minified file. -->
|
||||
{% else %}
|
||||
<script src="{{ STATIC_URL }}js/app.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user