Manual InstallationΒΆ
Firstly, open up a command line shell in your new projects directory.
- Create a virtual environment
Linux/Mac OSX:
pyvenv venv
Windows:
c:\Python34\python -m venv myenv
Python 2.7
pyvenv
is only included with Python 3.3 onwards. To get virtual environments on Python 2, use thevirtualenv
package:pip install virtualenv virtualenv venvVirtualenvwrapper
virtualenvwrapper provides a set of commands which makes working with virtual environments much more pleasant. It also places all your virtual environments in one place.
To install (make sure virtualenv is already installed):
pip install virtualenvwrapper export WORKON_HOME=~/Envs source /usr/local/bin/virtualenvwrapper.sh mkvirtualenv venvWindows:
pip install virtualenvwrapper-win mkvirtualenv venv
- Activate the virtual environment
Linux/Mac OSX:
source venv/bin/activate
Windows:
venv/Scripts/activate.bat
Virtualenvwrapper:
workon venv
- Install PIP requirements
pip install -r requirements/dev.txt
- **Create the database*
By default requirePostgreSQL
to be installed
createdb my_site
- Load the Initial Data
The cookiecutter comes with some pages already created for your
convenience including the Homepage with a working
bx_slider
slide show, contact page, events and news/blog pages. To generate these pages run:
psql -d my_site -f ansible/roles/web/files/initial_data.sql
The default Admin username is admin
The default Admin password is admin123
To copy the media directory to project root.
./manage.py copy_media
- Install Packages (Foundation, Font-Awesome etc.) using Bower package manager
We use bower for front-end dependency management. To install front dependencies use
bower install
This will install the supported version of Zurb Foundation, Font Awesome and bxSlider as well as their dependencies.
- Run the development server
./manage.py runserver
Your site is now accessible at
http://localhost:8000
, with the admin backend available athttp://localhost:8000/admin/
.