-
Notifications
You must be signed in to change notification settings - Fork 8
/
manage.py
executable file
·36 lines (30 loc) · 1.06 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
#!/usr/bin/env python
# manage.py
# Django default management commands, with some special sauce.
#
# Author: Benjamin Bengfort <[email protected]>
# Created: Tue Jul 05 13:26:09 2016 -0400
#
# Copyright (C) 2016 District Data Labs
# For license information, see LICENSE.txt
#
# ID: manage.py [5277a6e] [email protected] $
"""
Django default management commands, with some special sauce.
"""
##########################################################################
## Imports
##########################################################################
import os
import sys
import dotenv
##########################################################################
## Main Method
##########################################################################
if __name__ == "__main__":
## Manage Django Environment
dotenv.read_dotenv()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "partisan.settings.production")
## Execute Django Utility
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)