This basic project template includes:
- Django project
- Bourbon and Bitters
- Jeet grid system
- Webpack and Yarn setup
- Responsive crispy forms with Parsley validation
- "Chosen" UI widget for select elements
- Magnific popup for responsive modals
Version: 0.1.4
-
Clone the project or download from GitHub and open.
-
Optional: Rename 'project' in directory names, file names and settings strings with the name of your project. (Don't forget
project/project/static/bower.json
.) -
Create a virtualenv for this project:
mkvirtualenv project_name
-
Install requirements:
pip install -r requirements.txt
-
Create a database and local_settings.py based on the included local_settings_example.py
-
If necessary, install Grunt with
npm install -g grunt-cli
. -
In your Terminal, navigate to the project folder and type
npm install webpack --save-dev
-
Install npm modules with
npm install
. -
Install javascript modules with
yarn install
. -
Run Webpack by running
webpack
from the main project folder (same directory as package.json). -
In another shell, cd to your project directory/< YOUR PROJECT NAME >/ and enter:
python manage.py migrate
python manage.py runserver
GOOGLE_ACCOUNT_CODE = add your GA code to activate tracking. (Only when DEBUG=False)