Verified Commit 038dc91d authored by Elger Jonker's avatar Elger Jonker
Browse files

try different jet admin urls, remove non working js solution

parent 5f05299d
Pipeline #622381298 failed with stages
in 6 minutes and 44 seconds
{% extends "admin/base.html" %}
{% block extrahead %}
{% load static %}
<script>
// Fix for gettext issues
django.gettext = window.gettext
</script>
<!-- Inject admin action dropdown conversion to button for all admin pages. -->
<script type="text/javascript" src="{% static 'js/vendor/node_modules/vue/dist/vue.js' %}"></script>
<!-- add some CSS to make sure the action buttons are not overlapping the list of items -->
......
......@@ -42,8 +42,9 @@ def trigger_error(request):
admin_urls = [
path("sentry-debug/", trigger_error),
path("jet/", include("jet.urls", "jet")), # Django JET URLS
path("jet/dashboard/", include("jet.dashboard.urls", "jet-dashboard")), # Django JET dashboard URLS
# add static resources to the admin directory, so routing on the production servers hits the application.
path("admin/jet/", include("jet.urls", "jet")), # Django JET URLS
path("admin/jet/dashboard/", include("jet.dashboard.urls", "jet-dashboard")), # Django JET dashboard URLS
re_path(r"^admin/", admin.site.urls),
re_path(r"^admin/doc/", include("django.contrib.admindocs.urls")),
re_path(r"^nested_admin/", include("nested_admin.urls")),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment