Re: dbsettings, and user configurable app settings

2010-03-11 Thread jens
settings, e.g.: from django.conf import settings def foobar_view(request): var1 = settings.FOO.VAR1 var2 = settings.FOO.VAR2 ... ---- [1] http://code.google.com/p/django-dbpreferences/ Mfg

Re: Adding optional SITE_DOMAIN and SITE_NAME variables in settings.py

2010-03-15 Thread jens
On Mar 15, 3:44 pm, Yuri Baburov wrote: > How do you like the following idea: > startproject command puts a fixture for django.contrib.sites (and > fixture for superuser probably) to the root folder or whatever, to be > loaded with syncdb? IMHO it would be a great, if django can set the SITE_ID d

widget attribute order and unittests...

2011-05-17 Thread jens
----- see also: https://gist.github.com/976467 Should i open a ticked for this? Mfg. Jens D. -- 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@googlegroup

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

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
elds.tests.TestModel1Tests) ... ok *** 1.8.x with Py3 test_custom_model_field (custom_model_fields.tests.TestModel1Tests) ... ok test_values (custom_model_fields.tests.TestModel1Tests) ... ok *** master with Py2 - doesn't run: Traceback (most recent call last): File "/home/jens/PyLucid_env/src/django/tests/runtes

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

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

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

2011-10-20 Thread Jens Diemer
ect/middlewares/cache.py [2] https://docs.djangoproject.com/en/1.3/topics/cache/#the-per-site-cache Mfg. Jens D. -- 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.

Calling update() on EmptyQuerySet updates all rows in database

2009-11-03 Thread Jens Ådne Rydland
"bar". If I do Foo.objects.none().count() I get the expected result 0. However, Foo.objects.none().update(bar='baz') returns 42, and all 42 rows in the database have been updated. This seems to be caused by EmptyQuerySet not overriding update(), shouldn't this just return 0

contrib.contenttypes.generic importing from contrib.admin causing trouble

2012-11-05 Thread Jens Ådne Rydland
haven't really tested if it breaks anything else. And I guess this could be considered a too obscure corner case to care about, but would appreciate some feedback anyway. -- Jens Ådne Rydland -- You received this message because you are subscribed to the Google Groups "Django developers