Django application for an online enquiry form.
virtualenv --python=python3 venv-enquiry source venv-enquiry/bin/activate pip install --upgrade pip pip install -r requirements/local.txt
Add the following to a .private
file in the root of your project:
export NORECAPTCHA_SITE_KEY="<your site key>" export NORECAPTCHA_SECRET_KEY="<your secret key>"
Note
Replace <your site key>
and <your secret key>
with the
actual reCAPTCHA keys.
Warning
The .private
file should not be added to a public repository,
as it contains secret information. So please do not add it to
git
or mercurial
.
Update your environment with these variables:
source venv-enquiry/bin/activate
find . -name '*.pyc' -delete py.test -x
./init_dev.sh
To login, browse to http://localhost:8000/:
user staff pass letmein
To send email, use the mail_send
management command:
django-admin.py mail_send