dpaste/manage.py
2013-11-29 19:35:23 +01:00

15 lines
467 B
Python
Executable file

#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
# If a 'settings_local' file is present, use it
try:
from dpaste.settings import 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)