Source

django-environments / scripts / initenv_example

Full commit

# Initialize the settings environment
#
# Should be sourced with the 'source' command, e.g. 'source initenv'
# The source command can be performed within virtualenvwrapper's
# bin/postactivate, but it's often easier to just copy the following
# lines to bin/postactivate. Alternatively, you may also symlink
# bin/postactivate to a custom version of this file.

#DOMAIN=local.mysite.org # Domain for virtual host configuration - optional
PROJECT_ROOT=/Users/grone/repos/django-environments
DJANGO_PROJECT=mysite
DJANGO_SETTINGS=settings.env.development
SHOW_DJANGO_ENVIRONMENT=yes

# These two lines help greatly when using pip with virtualenv, see
# http://pip.openplans.org/
export PIP_REQUIRE_VIRTUALENV=true PIP_RESPECT_VIRTUALENV=true

# Pass additional directories for sys.path as arguments to
# initenv_generic, e.g.
# source $PROJECT_ROOT/scripts/initenv_generic $PROJECT_ROOT/apps
source $PROJECT_ROOT/scripts/initenv_generic
[ ! $? -eq 0 ] && return 1