Skip to content

devangmundhra/alltoez

Repository files navigation

Repository for Django project for Alltoez

To setup development environment:

Clone the project Install dependencies by "pip install -r requirements.txt" MUST RUN sudo npm install -g less Make sure Postgres is running and create a database named alltoez_dev Run "python manage.py syncdb" Start Redis and run "celery -A alltoez worker -l info -B" (-B option is for celerybeat) Run "python manage.py runserver" To run tests:

python manage.py test

If syncdb fails due to GEOSException error, postgis installation might be needed. For Ubuntu, check http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt For Mac/Windows, https://docs.djangoproject.com/en/1.6/ref/contrib/gis/install/#macosx

Whenever you pull the latest version of the code, if there are any static changes (i.e. to images, css or JS files) then you will need to collect static:

python manage.py collectstatic

Additionally, we have added a deployment script to fabfile.py (in the root of this project). Simply execute (on your local machine):

fab heroku_deploy

This will then ask you for the password on the server. Once entered it will run through a sequence of procedures to update the server with the latesat code... namely:

  • Pull latest version of the code from git
  • Run collectstatic
  • Run 'migrate'
  • Restart the webserver

About

Repository for Django project for Alltoez

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published