-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage.py
executable file
·27 lines (22 loc) · 979 Bytes
/
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Akvo RSR is covered by the GNU Affero General Public License.
See more details in the license.txt file located at the root folder of the
Akvo RSR module. For additional details on the GNU license please
see < http://www.gnu.org/licenses/agpl.html >.
"""
import os
import sys
if __name__ == "__main__":
try:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "akvo.settings")
from django.core.management import execute_from_command_line
except ImportError as e:
message = """Error: Can't find the 'settings' module, it appears you've customized things.\nYou'll have to run
django-admin.py, passing it your settings module.\n(If the settings module does indeed exist, it's causing an
ImportError somehow.)\n"""
sys.stderr.write(message)
sys.stderr.write("\nImportError: " + str(e) + "\n")
sys.exit(1)
execute_from_command_line(sys.argv)