Note that there are some explanatory texts on larger screens.

plurals
  1. POOccasionally, Django messages are repeated across requests (i.e., they are not cleared)
    primarykey
    data
    text
    <p>Very rarely, a <a href="https://www.djangoproject.com/">Django</a> message is rendered in an <code>HTML</code> response. Then, the user <code>GET</code>s another page, and the Django message is rendered again. Sometimes, the user will <code>GET</code> another page thereafter, and the same message will display once again.</p> <p>This happens very rarely, but when it does, most users see the same behavior for a few moments. (It happened once in a group cross-browser test, and everyone in the room saw the same behavior on each of their computers for about five minutes before going away.)</p> <p>This behavior has occurred with many different views; and besides, each view adds them in the same way (see below).</p> <p>I've been unable to reliably reproduce the error, either in our deployed environment (running <code>wsgi.py</code>) or when running the project on a local environment (running <code>manage.py</code>). (I will note that I've never seen this problem locally.)</p> <p>Does anyone have any idea why this might be happening?</p> <p><em>Example of a success message being added.</em></p> <pre><code> messages.success( request, "Changes to {form} {request} were successfully saved."\ .format(form=self.form.display_name, request=serv_request_id_as_url(self.serv_request)) ) </code></pre> <p><em>This is the template code which renders the message:</em></p> <pre><code>&lt;div id="messages"&gt; {% for message in messages %} &lt;div class="alert alert-{{ message.tags }}"&gt; &lt;a class="close" data-dismiss="alert" href="#" title="Close"&gt;&lt;span class="accessibility"&gt;Close this message.&lt;/span&gt;&amp;times;&lt;/a&gt; &lt;strong&gt;{{ message.message|safe }}&lt;/strong&gt; &lt;/div&gt; {% endfor %} &lt;/div&gt; </code></pre> <p><em>Relevant settings:</em></p> <pre><code>MIDDLEWARE_CLASSES = ( 'django.middleware.gzip.GZipMiddleware', 'django.middleware.common.CommonMiddleware', 'outage.middleware.OutageMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'utdirect.middleware.HttpHeaderMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ... ) MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' DATABASES = {'default': {'ENGINE': 'django.db.backends.oracle', ...}} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload