mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-19 00:09:21 +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.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)
|