This repository has been archived by the owner on Apr 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathsettings.py
67 lines (56 loc) · 1.73 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright (C) 2016-2017 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from django.template.base import TemplateSyntaxError
from cuckoo.misc import cwd
class InvalidString(str):
def __mod__(self, other):
raise TemplateSyntaxError(
"Undefined variable or unknown value for: %s" % other
)
SECRET_KEY = "A"*40
ROOT_URLCONF = "web.urls"
MEDIA_ROOT = "/static/"
STATIC_URL = "/static/"
STATICFILES_DIRS = cwd("..", "web", "static", private=True)
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
"django.contrib.staticfiles.finders.DefaultStorageFinder",
)
INSTALLED_APPS = (
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
# "django.contrib.sites",
# "django.contrib.messages",
"django.contrib.staticfiles",
"django_extensions",
# Uncomment the next line to enable the admin:
"django.contrib.admin",
# Uncomment the next line to enable admin documentation:
# "django.contrib.admindocs",
"analysis",
)
MIDDLEWARE_CLASSES = (
# Cuckoo headers.
"web.middle.CuckooHeaders",
"web.errors.ExceptionMiddleware",
)
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [
cwd("..", "web", "templates", private=True)
],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": {
"django.core.context_processors.request"
},
"string_if_invalid": InvalidString("%s"),
},
},
]
# Enable debug mode.
DEBUG = True