| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
| |
The workaround added in fe8484efda257e151d9c1ca5151e546c9262bf0f
seems unnecessary as the Python bug is fixed in Python 3.4.
|
|
|
|
| |
__safe_for_unpickling__ attribute.
|
|
|
|
|
|
|
|
| |
wrapping a model.
Pickling a `SimpleLazyObject` wrapping a model did not work correctly; in
particular it did not add the `_django_version` attribute added in 42736ac8.
Now it will handle this and other custom `__reduce__` methods correctly.
|
|
|
|
|
|
| |
for LoaderOrigin and StringOrigin.
Thanks Simon Charette for the DeprecationInstanceCheck class.
|
| |
|
|
|
|
| |
deprecation timeline.
|
|
|
|
| |
related functions per deprecation timeline.
|
|
|
|
|
|
|
| |
Without an explicit 'level', only messages at WARNING or higher
are handled. This makes the config consistent with the docs
which say, "The django catch-all logger sends all messages at
the INFO level or higher to the console."
|
| |
|
|
|
|
| |
enclosure feed tests
|
|
|
|
| |
list/tuple of decorators.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Atom feeds.
The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is
then used by the feed builder. If the feed is a RSS feed, an exception is
raised as RSS feeds don't allow multiple enclosures per feed item.
The ``item_enclosures`` hook defaults to an empty list or, if the
``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure``
built from the ``item_enclosure_url``, ``item_enclosure_length``, and
``item_enclosure_mime_type`` hooks.
|
|
|
|
|
|
|
| |
CSRF_COOKIE_DOMAIN.
Thanks Seth Gottlieb for help with the documentation and
Carl Meyer and Joshua Kehn for reviews.
|
|
|
|
| |
that take arguments.
|
|
|
|
| |
trans %} tags that use template filters.
|
| |
|
| |
|
|
|
|
| |
Refs #24704.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With this change, it's expected to survive anything except errors
that make it impossible to import the settings. It's too complex
to fallback to a sensible behavior with a broken settings module.
Harcoding things about runserver in ManagementUtility.execute is
atrocious but it's the only way out of the chicken'n'egg problem:
the current implementation of the autoreloader primarily watches
imported Python modules -- and then a few other things that were
bolted on top of this design -- but we want it to kick in even if
the project contains import-time errors and django.setup() fails.
At some point we should throw away this code and replace it by an
off-the-shelf autoreloader that watches the working directory and
re-runs `django-admin runserver` whenever something changes.
|
|
|
|
|
| |
This also fixes a test failure on Python 2 when Django is installed in a
non-ASCII path. This problem cannot happen on Python 3.
|
|
|
|
|
|
|
| |
* When some old files contain errors, the second call to
gen_filenames() should return them.
* When some new files contain errors, the first call to
gen_filenames(only_new=True) should return them.
|
|
|
|
|
|
| |
language override
Thanks David Nelson Adamec for the report and Tim Graham for the review.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refactored tests to use a sample project.
Updated extraction:
* Removed special handling of single percent signs.
* When extracting messages from template text, doubled all percent signs
so they are not interpreted by gettext as string format flags. All
strings extracted by gettext, if containing a percent sign, will now
be labeled "#, python-format".
Updated translation:
* Used "%%" for "%" in template text before calling gettext.
* Updated {% trans %} rendering to restore "%" from "%%".
|
| |
|
|
|
|
| |
classes.
|
|
|
|
|
|
| |
SlugField.
Thanks Flavio Curella and Berker Peksag for the initial patch.
|
|
|
|
| |
in error reporting.
|
|
|
|
| |
utils.datastructures.OrderedSet.__len__()
|
|
|
|
|
|
|
|
|
|
|
|
| |
using inotify polling
Commit 15f82c7 ("used pyinotify as change detection system when
available") introduced a regression where editing a file in vim with
default settings (writebackup=auto) no longer causes the dev server
to be restarted. On a write, vim moves the monitored file to a backup
path and then creates a new file in the original. The new file is not
monitored as it has a different inode. Fixed this by also watching for
inotify events IN_DELETE_SELF and IN_MOVE_SELF.
|
| |
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
|
|
|
|
|
| |
Implemented __str__() to return the string-representation of the
proxied object, not the proxy itself, if the lazy object didn't have
a string-like object in its resultclasses.
|
|
|
|
|
|
| |
outputting unserializable chars
Thanks Tim Graham for the review.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
fixture paths
|
|
|
|
| |
accessible from class
|
|
|
|
| |
utils.module_loading.import_string()
|
| |
|
|
|
|
| |
django.utils.timesince()
|
|
|
|
|
|
|
| |
syndication feeds
Renamed the mime_type properties of RssFeed and Atom1Feed to
content_type and start deprecation for the old names.
|
|
|
|
| |
template tag/filter.
|
|
|
|
| |
with DurationField
|
| |
|