Skip to content
Sebastian edited this page Aug 18, 2016 · 11 revisions

IDEA

  • user generated domains via regex
  • database mysql -> should work 100% on client server
  • a LOT of the tutorial is basically copy paste for situations
  • tdd = nice?

QUESTION

  • what language is used in templates?
  • how exactly do generic views work?

COMMANDS

  • python manage.py migrate - take all unapplied migrations and run them against the database
  • python manage.py makemigrations polls - make a migration
  • python manage.py sqlmigrate polls 0001 - preview what sql migration will look like
  • python manage.py check - this checks for any problems in your project without making migrations or touching the database.

LAYOUT

Templates

  • about
  • map (?)
  • posts (public)
  • images (private)

Views

PostsView

  • get_queryset(...)[20:]
  • get_queryset(...)[50:]
  • detail -> author + publisher info

ImagesView

  • get_queryset(...)[all] (how to? maybe template -> button: "show more")
  • detail

PublishImageView

Static:

  • base.html
  • nav.html
  • imgs/..
  • style/.. (sass)
  • script/..
Clone this wiki locally