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
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
-----
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
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
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
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
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
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
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
<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
= 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()
---
.
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
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.
"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
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
15 matches
Mail list logo