-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
manage.py
executable file
·36 lines (34 loc) · 1.41 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
import os
import sys
import dotenv
"""
+===================================================+
| © 2019 Privex Inc. |
| https://www.privex.io |
+===================================================+
| |
| CryptoToken Converter |
| |
| Core Developer(s): |
| |
| (+) Chris (@someguy123) [Privex] |
| |
+===================================================+
"""
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'steemengine.settings')
# Deal with the issue of conflicting dotenv packages by trying both methods...
try:
dotenv.load_dotenv()
except AttributeError:
dotenv.read_dotenv()
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)