Commit 47316a2a authored by cermak's avatar cermak
Browse files

Add django hijack

parent 46315622
......@@ -2,6 +2,7 @@
{% load bootstrap4 %}
{% load extratags %}
{% load static %}
{% load hijack_tags %}
<html>
<head>
<meta charset="utf-8">
......@@ -21,6 +22,7 @@
<link rel="stylesheet" type="text/css" href="{% static 'app/content/style.default.css' %}" id="theme-stylesheet">
<link rel="stylesheet" type="text/css" href="{% static 'app/content/custom.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'hijack/hijack-styles.css' %}" />
<link rel="shortcut icon" href="{% static 'app/favicon.png' %}">
<!-- Tweaks for older IEs--><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
......@@ -28,6 +30,7 @@
</head>
<body>
{% hijack_notification %}
{# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %}
<nav class="side-navbar">
......
......@@ -45,6 +45,8 @@ INSTALLED_APPS = [
'true_false',
'essay',
'data_browser',
'hijack',
'compat',
]
SITE_ID = 1
......@@ -155,6 +157,9 @@ BOOTSTRAP4 = {
"success_css_class": "",
}
HIJACK_USE_BOOTSTRAP = True
HIJACK_ALLOW_GET_REQUESTS = True
OAUTH2_PROVIDER = {
# parses OAuth2 data from application/json requests
# 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore',
......
......@@ -188,3 +188,8 @@ urlpatterns += (
urlpatterns += (
path("data-browser/", include("data_browser.urls")),
)
#hijack
urlpatterns += (
url(r'^spy/', include('hijack.urls', namespace='hijack')),
)
\ No newline at end of file
......@@ -16,4 +16,5 @@ git+https://github.com/me2d09/django_quiz.git
git+https://github.com/me2d09/django-data-browser.git
backports-datetime-fromisoformat
django-oauth-toolkit
requests
\ No newline at end of file
requests
django-hijack
Markdown is supported
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