-
Notifications
You must be signed in to change notification settings - Fork 22
/
manage.py
42 lines (33 loc) · 1.09 KB
/
manage.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
"""
© Ocado Group
Created on 12/04/2024 at 16:53:52(+01:00).
This file manages Django but also acts a settings file.
"""
# pylint: disable-next=wildcard-import,unused-wildcard-import
from codeforlife.settings import *
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"django.contrib.sites",
"codeforlife.user",
"game", # TODO: remove this
"common", # TODO: remove this
"portal", # TODO: remove this
]
MIDDLEWARE = [
"codeforlife.middlewares.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
]
ROOT_URLCONF = "codeforlife.user.urls"
if __name__ == "__main__":
import os
import sys
from django.core.management import execute_from_command_line
# Set the path of the settings file to the path of this file.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", Path(__file__).stem)
execute_from_command_line(sys.argv)