dpaste/manage.py

16 lines
467 B
Python
Raw Normal View History

#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
# If a 'settings_local' file is present, use it
try:
from dpaste import settings_local
settings_module = "dpaste.settings_local"
except ImportError:
settings_module = "dpaste.settings"
os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)