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 settings.py

    – STATIC_URL = '/static/'

    • the annoying “sites” app is disabled
    • the default settings.py 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.
Advertisements