.env 1.06 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#find the virtual environment in the current directory
VE=`ls -d venv-* 2>/dev/null`

if [ `echo "$VE" | wc -w` -eq 1 ]
then
    if [ "$VE_VERBOSE" = "TRUE" ]
    then
        echo "************************************************************************"
        echo "*** Activating $VE virtual environment "
        echo "************************************************************************"
    fi
    # activate virtual environment
    source $VE/bin/activate

    # Set environment variables for this VE
    export DEFAULT_FROM_EMAIL="web@pkimber.net"
    export DJANGO_SETTINGS_MODULE="example_${PWD##*/}.dev_`id -nu`"
    export MAIL_TEMPLATE_TYPE="django"
    export MAILGUN_SERVER_NAME="pkimber.net"
    export RECAPTCHA_PRIVATE_KEY="your private key"
    export RECAPTCHA_PRIVATE_KEY="your private key"
    export RECAPTCHA_PUBLIC_KEY="your public key"
    export RECAPTCHA_PUBLIC_KEY="your public key"
    export SECRET_KEY="the_secret_key"
    export STRIPE_PUBLISH_KEY="your_stripe_publish_key"
    export STRIPE_SECRET_KEY="your_stripe_secret_key"
    source .private
fi