mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
15 lines
467 B
Python
Executable file
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 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)
|