Debian Codegraph @

benchmarks/settings.py

raw
1 import os
2 import sys
3
4 import environ
5
6 env = environ.Env()
7
8
9 def abspath(*args):
10 """Join path arguments and return their absolute path"""
11 return os.path.abspath(os.path.join(*args))
12
13
14 THIS_DIR = abspath(os.path.dirname(__file__))
15 ROOT_DIR = abspath(THIS_DIR, "..")
16
17 # so the preferred guardian module is one within this repo and
18 # not system-wide
19 sys.path.insert(0, ROOT_DIR)
20
21 SECRET_KEY = "NO_NEED_SECRET"
22
23 INSTALLED_APPS = (
24 "django.contrib.auth",
25 "django.contrib.sessions",
26 "django.contrib.contenttypes",
27 "django.contrib.admin",
28 "django.contrib.sites",
29 "guardian",
30 "benchmarks",
31 )
32
33 DJALOG_LEVEL = 40
34
35 DATABASES = {"default": env.db(default="sqlite:///")}