Skip to content

Instantly share code, notes, and snippets.

@tromboneamafone
Created December 3, 2014 17:47
Show Gist options
  • Save tromboneamafone/71bbab42113f22c1e342 to your computer and use it in GitHub Desktop.
Save tromboneamafone/71bbab42113f22c1e342 to your computer and use it in GitHub Desktop.
talking points
Django
Pros:
MVC Framework is well tested
Database abstraction
each model is a Python class that subclasses Djangos Model class
each model attribute represents a database field
provides automatically generated db access
ex: for voter in Voter.objects.all():
email(voter)
ex: firstVote = Vote.objects.filter(pk=1)
no hardcoded sql queries needed!
Django provides fully featured admin panel OOB
robust templating to reduce amount of repeated HTML
Cons:
Database abstraction requires that the Models that are represented by the db be created/implemented before other coding as changes to models create havoc. ex: having to wipe db, run the models through django, and then applying the model changes to update models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment