Commit 5b14e794 authored by Patrick Kimber's avatar Patrick Kimber

zsh version - order of import path does not matter

parent f4a01776
source venv-booking/bin/activate
export DJANGO_SETTINGS_MODULE=example.dev_patrick
#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
......@@ -37,3 +37,9 @@ venv-*
.mr.developer.cfg
.project
.pydevproject
# dev
.cache/
# private info
.private
......@@ -33,13 +33,12 @@ Usage
py.test -x && \
touch temp.db && rm temp.db && \
django-admin.py syncdb --noinput && \
django-admin.py migrate --all --noinput && \
django-admin.py demo_data_login && \
django-admin.py demo_data_booking && \
django-admin.py runserver
django-admin migrate --noinput && \
django-admin demo_data_login && \
django-admin demo_data_booking && \
django-admin runserver
Release
=======
https://django-dev-and-deploy-using-salt.readthedocs.org/
https://www.pkimber.net/open/
# -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'temp.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
......@@ -91,7 +91,7 @@ MIDDLEWARE_CLASSES = (
'reversion.middleware.RevisionMiddleware',
)
ROOT_URLCONF = 'example.urls'
ROOT_URLCONF = 'example_booking.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'example.wsgi.application'
......@@ -121,7 +121,7 @@ THIRD_PARTY_APPS = (
LOCAL_APPS = (
'base',
'example',
'example_booking',
'booking',
'login',
)
......
# -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'temp.db',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
# -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
......
......@@ -2,7 +2,7 @@ bleach==1.4
django-braces==1.4.0
django-compressor==1.4
django-reversion==1.8.5
django-sendfile==0.3.6
Django==1.7.1
git+https://github.com/pkimber/django-sendfile#egg=sendfile
python-dateutil==2.2
pytz==2014.2
pytz==2014.9
......@@ -6,9 +6,12 @@ beautifulsoup4
devpi-client
factory-boy
gitpython
ipdb
hgapi
ipdb
psycopg2
pytest-django
pytest-flakes
pytest-pep8
pytest-sugar
pyyaml
walkdir
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment