Image upvote downvote system(like instagram :P) (My first attempt on django framework)
Steps to Run:
- install django 1.8
- go to mysite dir.
- run python manage.py runserver
- copy all the photos to upvote_system/mysite/static/photos
- in upvote_system/mysite run python manage.py shell a) from votes.models import Photo b) Photo.add_photos('../static/photos')
- visit 127.0.0.1:8000/admin to create users.
- visit 127.0.0.1:8000/votes to see all the photos and votes
Sources: https://docs.djangoproject.com/en/1.8/intro/tutorial01/ http://www.effectivedjango.com/tutorial/authzn.html https://docs.djangoproject.com/en/1.8/topics/db/examples/many_to_many/ http://francoisgaudin.com/2013/08/22/decorators-in-django/