Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (23 sloc) 1.209 kb
#!/usr/bin/env python
# Prepend project subdirectory 'libraries-local' to sys.path.
# This allows us to use/test any version of Django
# (e.g. Django 1.2 subversion) or any other packages/libraries.
import sys, os
project_path = os.path.dirname(os.path.abspath(__file__))
libs_local_path = os.path.join(project_path, 'libraries-local')
if libs_local_path not in sys.path: sys.path.insert(1, libs_local_path)
sys.stderr.write( 'using Python version: %s\n' % sys.version[:5])
import django
sys.stderr.write( 'using Django version: %s, from %s\n' % (
os.path.dirname(os.path.abspath(django.__file__))) )
# vanilla Django from here on:
from import execute_manager
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file '' in the directory containing %r. It appears you've customized things.\nYou'll have to run, passing it your settings module.\n(If the file does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
if __name__ == "__main__":
Jump to Line
Something went wrong with that request. Please try again.