Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0f8c4af69b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (19 sloc) 0.596 kb
#!/usr/bin/env python
### We must chdir() up one level.
import os
import os.path
import sys
THIS_FILE=os.path.abspath(__file__)
THIS_DIR=os.path.dirname(THIS_FILE)
UP_ONE_DIR=os.path.join(THIS_DIR, '..')
sys.path.append(UP_ONE_DIR)
# Use the modules in vendor/
import vendor
vendor.vendorify()
# Now we can import from third-party libraries.
from django.core.management import execute_manager, setup_environ
import mysite.settings
# The first thing execute_manager does is call `setup_environ`.
setup_environ(mysite.settings)
if __name__ == "__main__":
execute_manager(mysite.settings)
Jump to Line
Something went wrong with that request. Please try again.