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