Skip to content

Instantly share code, notes, and snippets.

@sesh
Forked from shangxiao/faq.md
Created July 21, 2016 10:44
Show Gist options
  • Save sesh/62d42a1fda3754a237f4f960dc9950a0 to your computer and use it in GitHub Desktop.
Save sesh/62d42a1fda3754a237f4f960dc9950a0 to your computer and use it in GitHub Desktop.
django faq

Frequently asked questions:

  • Why shouldn't i use mysql? / mongo?
  • Should I use jinja, I read it's faster?
  • Should I use sqlalchemy, I read it's superior?
  • How do i make this thing happen in parallel/not wait for xxx to finish?
  • Why does django ask for a default? (But my table has no data in it wtf django!?!)
    • FunkyBob | I think, perhaps, it's time I wrote a blog post on "why does a migration adding a field need a default?"
  • Why do I need to commit my migrations? Why can't I just run makemigrations on the server?
  • migrations are source, makemigrations is a helper which takes you part way
  • i've seen people accidentally lose their migrations on production…  oops now what?
  • Why can't I just use locals() for template contexts?

Frequently encountered issues:

  • lack of trailing slash: redirect causing issues with comparisons & tests; POSTs…
  • staticfiles_dirs contains static_root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment