PageRenderTime 33ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

Plain Text | 124 lines | 93 code | 31 blank | 0 comment | 0 complexity | dc63cb08d66ed4e6f1bc8c2fc803efa8 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. =================================
  2. Django version 0.95 release notes
  3. =================================
  4. Welcome to the Django 0.95 release.
  5. This represents a significant advance in Django development since the 0.91
  6. release in January 2006. The details of every change in this release would be
  7. too extensive to list in full, but a summary is presented below.
  8. Suitability and API stability
  9. =============================
  10. This release is intended to provide a stable reference point for developers
  11. wanting to work on production-level applications that use Django.
  12. However, it's not the 1.0 release, and we'll be introducing further changes
  13. before 1.0. For a clear look at which areas of the framework will change (and
  14. which ones will *not* change) before 1.0, see the api-stability.txt file, which
  15. lives in the docs/ directory of the distribution.
  16. You may have a need to use some of the features that are marked as
  17. "subject to API change" in that document, but that's OK with us as long as it's
  18. OK with you, and as long as you understand APIs may change in the future.
  19. Fortunately, most of Django's core APIs won't be changing before version 1.0.
  20. There likely won't be as big of a change between 0.95 and 1.0 versions as there
  21. was between 0.91 and 0.95.
  22. Changes and new features
  23. ========================
  24. The major changes in this release (for developers currently using the 0.91
  25. release) are a result of merging the 'magic-removal' branch of development.
  26. This branch removed a number of constraints in the way Django code had to be
  27. written that were a consequence of decisions made in the early days of Django,
  28. prior to its open-source release. It's now possible to write more natural,
  29. Pythonic code that works as expected, and there's less "black magic" happening
  30. behind the scenes.
  31. Aside from that, another main theme of this release is a dramatic increase in
  32. usability. We've made countless improvements in error messages, documentation,
  33. etc., to improve developers' quality of life.
  34. The new features and changes introduced in 0.95 include:
  35. * Django now uses a more consistent and natural filtering interface for
  36. retrieving objects from the database.
  37. * User-defined models, functions and constants now appear in the module
  38. namespace they were defined in. (Previously everything was magically
  39. transferred to the django.models.* namespace.)
  40. * Some optional applications, such as the FlatPage, Sites and Redirects
  41. apps, have been decoupled and moved into django.contrib. If you don't
  42. want to use these applications, you no longer have to install their
  43. database tables.
  44. * Django now has support for managing database transactions.
  45. * We've added the ability to write custom authentication and authorization
  46. backends for authenticating users against alternate systems, such as
  47. LDAP.
  48. * We've made it easier to add custom table-level functions to models,
  49. through a new "Manager" API.
  50. * It's now possible to use Django without a database. This simply means
  51. that the framework no longer requires you to have a working database set
  52. up just to serve dynamic pages. In other words, you can just use
  53. URLconfs/views on their own. Previously, the framework required that a
  54. database be configured, regardless of whether you actually used it.
  55. * It's now more explicit and natural to override save() and delete()
  56. methods on models, rather than needing to hook into the pre_save() and
  57. post_save() method hooks.
  58. * Individual pieces of the framework now can be configured without
  59. requiring the setting of an environment variable. This permits use of,
  60. for example, the Django templating system inside other applications.
  61. * More and more parts of the framework have been internationalized, as
  62. we've expanded internationalization (i18n) support. The Django
  63. codebase, including code and templates, has now been translated, at least
  64. in part, into 31 languages. From Arabic to Chinese to Hungarian to Welsh,
  65. it is now possible to use Django's admin site in your native language.
  66. The number of changes required to port from 0.91-compatible code to the 0.95
  67. code base are significant in some cases. However, they are, for the most part,
  68. reasonably routine and only need to be done once. A list of the necessary
  69. changes is described in the `Removing The Magic`_ wiki page. There is also an
  70. easy checklist_ for reference when undertaking the porting operation.
  71. .. _Removing The Magic:
  72. .. _checklist:
  73. Problem reports and getting help
  74. ================================
  75. Need help resolving a problem with Django? The documentation in the distribution
  76. is also available online_ at the `Django Web site`_. The :doc:`FAQ </faq/index>`
  77. document is especially recommended, as it contains a number of issues that come
  78. up time and again.
  79. For more personalized help, the `django-users`_ mailing list is a very active
  80. list, with more than 2,000 subscribers who can help you solve any sort of
  81. Django problem. We recommend you search the archives first, though, because
  82. many common questions appear with some regularity, and any particular problem
  83. may already have been answered.
  84. Finally, for those who prefer the more immediate feedback offered by IRC,
  85. there's a #django channel on that is regularly populated by
  86. Django users and developers from around the world. Friendly people are usually
  87. available at any hour of the day -- to help, or just to chat.
  88. .. _online:
  89. .. _Django Web site:
  90. .. _django-users:
  91. Thanks for using Django!
  92. The Django Team
  93. July 2006