Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (20 sloc) 829 Bytes
#!/usr/bin/env python
from os import environ, listdir
from os.path import join, dirname, abspath, exists
import sys
if __name__ == "__main__":
# Try to discover project name and set the default settings module
# based on it. If discovery fails, DJANGO_SETTINGS_MODULE environment
# variable must be set.
root = dirname(abspath(__file__))
settings_module = None
for name in listdir(root):
full_name = join(root, name)
if exists(join(full_name, 'settings', '')):
settings_module = name + '.settings'
if settings_module is not None:
environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
from import execute_from_command_line