django 1.6

​Django 1.6 is out. Here are my top 10 favorite changes:

  1. better default project and settings files
    – admin is enabled
    – theres a BASE_DIR setting in
    – STATIC_URL = '/static/'
    – the annoying “sites” app is disabled
    – the default file is much simpler in general
  2. there’s now Post.objects.filter(author='collin').first() which returns None if not found, and returns the first of multiple objects.
  3. the admin now will preserve_filters that have been selected
  4. /static/admin/js/jquery.min.js has been upgraded from v1.4.2 to v1.9.1
  5. html form <input> fields use type="email"type="url"type="number", etc. (It also means the CSS selector input[type="text"] no longer works as expected.)
  6. for security, model forms need their fields specified, though you may use ‘__all__’ instead.
  7. the comments app is deprectated, and django mentiones Disqus as an alternative.
  8. there’s now a deployment checklist in the docs
  9. django now preferes pillow instead of pil for ImageFields.
  10. save() is more efficient.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s