mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Django changes to serve ansible-ui.
This commit is contained in:
parent
61821faa00
commit
68f56570ae
@ -290,7 +290,7 @@ TEMPLATES = [
|
||||
],
|
||||
'builtins': ['awx.main.templatetags.swagger'],
|
||||
},
|
||||
'DIRS': [os.path.join(BASE_DIR, 'templates'), os.path.join(BASE_DIR, 'ui', 'build'), os.path.join(BASE_DIR, 'ui', 'public')],
|
||||
'DIRS': [os.path.join(BASE_DIR, 'templates'), '/var/lib/awx/public/static/controller/', os.path.join(BASE_DIR, 'ui', 'build'), os.path.join(BASE_DIR, 'ui', 'public')],
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@ -9,6 +9,10 @@ class IndexView(TemplateView):
|
||||
|
||||
template_name = 'index.html'
|
||||
|
||||
class ControllerView(TemplateView):
|
||||
|
||||
template_name = 'index_controller.html'
|
||||
|
||||
|
||||
class MigrationsNotran(TemplateView):
|
||||
|
||||
@ -27,4 +31,4 @@ class MigrationsNotran(TemplateView):
|
||||
|
||||
app_name = 'ui'
|
||||
|
||||
urlpatterns = [re_path(r'^$', IndexView.as_view(), name='index'), re_path(r'^migrations_notran/$', MigrationsNotran.as_view(), name='migrations_notran')]
|
||||
urlpatterns = [re_path(r'^$', IndexView.as_view(), name='index'), re_path(r'^controller/.*$', ControllerView.as_view(), name='index'), re_path(r'^migrations_notran/$', MigrationsNotran.as_view(), name='migrations_notran')]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user