Loading docs/faq/admin.txt +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ allows access to users with those two fields both set to True. How can I prevent the cache middleware from caching the admin site? ------------------------------------------------------------------- Set the :setting:``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting to ``True``. See the Set the :setting:`CACHE_MIDDLEWARE_ANONYMOUS_ONLY` setting to ``True``. See the :ref:`cache documentation <topics-cache>` for more information. How do I automatically set a field's value to the user who last edited the object in the admin? Loading docs/ref/contrib/databrowse.txt +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ How to use Databrowse more. * Otherwise, determine the full filesystem path to the `:file:`django/contrib/databrowse/templates` directory, and add that :file:`django/contrib/databrowse/templates` directory, and add that directory to your :setting:`TEMPLATE_DIRS` setting. 2. Register a number of models with the Databrowse site:: Loading docs/ref/contrib/sites.txt +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ In this case, you'd have to create :file:`subject.txt` and :file:`message.txt` t files for both the LJWorld.com and Lawrence.com template directories. That gives you more flexibility, but it's also more complex. It's a good idea to exploit the :class:`~django.contrib.sites.models.Site`` It's a good idea to exploit the :class:`~django.contrib.sites.models.Site` objects as much as possible, to remove unneeded complexity and redundancy. Getting the current domain for full URLs Loading docs/ref/databases.txt +5 −5 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ SQLite and is not affected by this issue. If you are in such platform and find yourself in the need to update ``pysqlite``/SQLite, you will also need to manually modify the ``django/db/backends/sqlite3/base.py`` file in the Django source tree so it attempts to import ``pysqlite2`` before that ``sqlite3`` and so it can take attempts to import ``pysqlite2`` before than ``sqlite3`` and so it can take advantage of the new ``pysqlite2``/SQLite versions. .. _oracle-notes: Loading docs/ref/models/querysets.txt +2 −2 Original line number Diff line number Diff line Loading @@ -627,7 +627,7 @@ of the arguments is required, but you should use at least one of them. .. versionadded:: 1.0 In some rare cases, you might wish to pass parameters to the SQL fragments in ``extra(select=...)```. For this purpose, use the ``select_params`` in ``extra(select=...)``. For this purpose, use the ``select_params`` parameter. Since ``select_params`` is a sequence and the ``select`` attribute is a dictionary, some care is required so that the parameters are matched up correctly with the extra select pieces. In this situation, Loading Loading
docs/faq/admin.txt +1 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ allows access to users with those two fields both set to True. How can I prevent the cache middleware from caching the admin site? ------------------------------------------------------------------- Set the :setting:``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting to ``True``. See the Set the :setting:`CACHE_MIDDLEWARE_ANONYMOUS_ONLY` setting to ``True``. See the :ref:`cache documentation <topics-cache>` for more information. How do I automatically set a field's value to the user who last edited the object in the admin? Loading
docs/ref/contrib/databrowse.txt +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ How to use Databrowse more. * Otherwise, determine the full filesystem path to the `:file:`django/contrib/databrowse/templates` directory, and add that :file:`django/contrib/databrowse/templates` directory, and add that directory to your :setting:`TEMPLATE_DIRS` setting. 2. Register a number of models with the Databrowse site:: Loading
docs/ref/contrib/sites.txt +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ In this case, you'd have to create :file:`subject.txt` and :file:`message.txt` t files for both the LJWorld.com and Lawrence.com template directories. That gives you more flexibility, but it's also more complex. It's a good idea to exploit the :class:`~django.contrib.sites.models.Site`` It's a good idea to exploit the :class:`~django.contrib.sites.models.Site` objects as much as possible, to remove unneeded complexity and redundancy. Getting the current domain for full URLs Loading
docs/ref/databases.txt +5 −5 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ SQLite and is not affected by this issue. If you are in such platform and find yourself in the need to update ``pysqlite``/SQLite, you will also need to manually modify the ``django/db/backends/sqlite3/base.py`` file in the Django source tree so it attempts to import ``pysqlite2`` before that ``sqlite3`` and so it can take attempts to import ``pysqlite2`` before than ``sqlite3`` and so it can take advantage of the new ``pysqlite2``/SQLite versions. .. _oracle-notes: Loading
docs/ref/models/querysets.txt +2 −2 Original line number Diff line number Diff line Loading @@ -627,7 +627,7 @@ of the arguments is required, but you should use at least one of them. .. versionadded:: 1.0 In some rare cases, you might wish to pass parameters to the SQL fragments in ``extra(select=...)```. For this purpose, use the ``select_params`` in ``extra(select=...)``. For this purpose, use the ``select_params`` parameter. Since ``select_params`` is a sequence and the ``select`` attribute is a dictionary, some care is required so that the parameters are matched up correctly with the extra select pieces. In this situation, Loading