You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

17 lines
403 B

#!/usr/bin/env python
import os
import sys
SETTINGS_FILE = 'local'
if 'ENVIRONMENT' in os.environ:
SETTINGS_FILE = os.environ['ENVIRONMENT']
if __name__ == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
"shelfzilla.settings.{}".format(SETTINGS_FILE)
)
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)