Re: The state of per-site/per-view middleware caching in Django

2011-10-20 Thread Jens Diemer
Hi... For PyLucid i made a simple cache middleware [1] simmilar to Django per-site cache middleware [2]. But i doesn't vary on Cookies and don't cache cookies. I simply cache only the response content. Of course: This doesn't solve the problem if "csrfmiddlewaretoken" in content. Here some p

Re: Adding Support for PyMySQL (for Python 3)

2011-12-08 Thread Jens Diemer
users/browse_thread/thread/cbef429d014c1ad9/ -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubs

Re: Suppressed template errors in admin

2011-09-06 Thread Jens Diemer
So you can use TEMPLATE_STRING_IF_INVALID, but it's excluded from django admin ;) -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send em

Re: PHP-inspired user-friendly in-browser DJango install

2011-09-09 Thread Jens Diemer
<http://www.pylucid.org/permalink/333/1a1-create-a-pylucid-environment-with-pylucid-boot> -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send ema

CSRF token not validated?

2011-09-12 Thread Jens Diemer
= re.sub('[^a-zA-Z0-9]', '', str(token.decode('ascii', 'ignore'))) if token == "": # In case the cookie has been truncated to nothing at some point. return _get_new_csrf_key() ---

Re: CSRF token not validated?

2011-09-13 Thread Jens Diemer
. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developer

form validation in contrib.auth

2015-05-12 Thread Jens Diemer
led login. Also if the form is not valid. -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving e

Custom Model field, to_python() / from_db_value() and unittests...

2015-06-16 Thread Jens Diemer
arning) django.utils.deprecation.RemovedInDjango20Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead. Maybe i miss something to handle warnings with tests, but didn't find something about warnings here: https://docs.djangoproject.com/en/dev/internals/contributing/writing-

Re: Custom Model field, to_python() / from_db_value() and unittests...

2015-06-17 Thread Jens Diemer
o remove the first two examples and leave only the six.with_metaclass() example?!? I made also a ticket/pull request for this: * https://code.djangoproject.com/ticket/24992 * https://github.com/django/django/pull/4873 On Tuesday, June 16, 2015 at 12:30:05 PM UTC-4, Jens

Re: Custom Model field, to_python() / from_db_value() and unittests...

2015-06-17 Thread Jens Diemer
rying to write a portable third-party field. Thanks for you suggestion. I "moved" it to django-user list ;) -- Mfg. Jens Diemer http://www.jensdiemer.de -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to D