See our Wiki to learn about our process.
We have a Cloud9 workspace, so we can easily work on something and avoid merge conflicts. We also split up the tasks into backend, frontend, and deployment. Django also allows for separating the project into 'applications,' so we can each work on independent aspects of the project at the same time.
Heroku by default uses an ephemeral file system and does not store the uploaded photos. It works perfect temporarily and works on cloud 9.
We would need to implement buckets on an AWS S3 server and only having a 3 person group limited our capabilities. It would have been interesting to learn, but we did not have time.
- Make sure you have setup the proper environment variables (PostgreSQL, Redis, Google Auth)
- python manage.py runserver 0:8080
- If port 5432 is giving error run: sudo service postgresql start
- If port 6379 is giving error run: sudo service redis-server start
Go to website: Heroku Application Link (broken)
python manage.py test
python manage.py collectstatic
python manage.py startapp your_app_name
python manage.py makemigrations python manage.py migrate
if something on port 5432 isn't working sudo service postgresql start
if something on port 6397 isn't working sudo service redis-server start
python manage.py dumpdata --natural-foreign --exclude auth.permission --exclude contenttypes --exclude admin.logentry --indent 4 > data.json
python manage.py testserver data_test.json --addrport 0:8080
python manage.py loaddata db.json