Re: please help me about enum attribute..

2010-01-12 Thread Gert Van Gool
You should use instance.get_gender_display(). See http://www.djangoproject.com/documentation/models/choices/ for more information... I do believe this is more a question for django-users. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Tue, Jan 12, 2010 at 12:38, 'chiru'tha wrot

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-15 Thread Gert Van Gool
Isn't the idea of row based permission that you don't need a special model for that? -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Fri, Jan 15, 2010 at 13:55, Anton Bessonov wrote: > Hello, > > It's a false place. All what you need - one Model for Settings. > > if SettingsMod

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-18 Thread Gert Van Gool
@Noah, You could also look at it as what a AnonymousUser can't do on some objects (while it's possible on others). -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net 2010/1/19 Noah Silas : > I'm not certain I understand - if anyone can perform some action, what's the > point of protec

Re: Feedback on ticket #12399

2010-01-26 Thread Gert Van Gool
The second patch [1] fixes the memcached backend. [1] http://code.djangoproject.com/attachment/ticket/12399/memcached-timeout-fixes.diff -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Wed, Jan 27, 2010 at 08:28, Kristian Klette wrote: > > It's a nasty bug which leads to a 100%

Re: Add Mod(%) Operator to If Tag

2010-02-10 Thread Gert Van Gool
Why do you need new operators? You can use normal templatefilters according to the documentation. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Wed, Feb 10, 2010 at 20:00, Jonas Obrist wrote: > Alex Gaynor wrote: >> >> On Wed, Feb 10, 2010 at 12:10 PM, megaman821 wrote: >> >

Re: Using dajaxice to get my data to javascript

2010-02-16 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Tue, Feb 16, 2010 at 0

Re: 2 small tickets

2010-03-02 Thread Gert Van Gool
I believe you still need test cases for both tickets. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Wed, Mar 3, 2010 at 08:41, Jared Forsyth wrote: > I found some bugs, wrote come patches, submitted some tickets. =) Is that > all that's needed? > The two patches I wrote are v

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

2010-03-15 Thread Gert Van Gool
There is a ticket for something similar #8896 (http://code.djangoproject.com/ticket/8896). Let urlresolvers also route according to hostname. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net 2010/3/15 jens : > On Mar 15, 3:44 pm, Yuri Baburov wrote: >> How do you like the following

Re: GSoC10 Idea: Additional queryset methods

2010-03-19 Thread Gert Van Gool
What would be the difference with the new raw method on manager (http://docs.djangoproject.com/en/dev/topics/db/sql/#django.db.models.Manager.raw)? -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Fri, Mar 19, 2010 at 13:39, Sh4wn wrote: > ## The Django ORM > > ### The Problem >

Re: Templates by app

2010-03-20 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. But to quickly answer, yes. Especially if you're using many 3rd party apps. -- Gert Mob

Re: GSoC Proposal: Web Unifying Markup (templating) Language, or WUML

2010-04-09 Thread Gert Van Gool
I have some remarks/thoughts. - How does this make code re-use better? For instance, how do you use the same CSS styles along different files. Or am I required to move the re-usable CSS/JS code in a normal file? - Can you give an example on how you see the template tags being used in here?

Re: How can transmit variable and values to Django template other then Context?

2010-04-23 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. However you should take a look at template context processor[1] [1]: http://docs.djangop

Re: Proposal: Replace django.contrib.formtools.wizard

2010-05-31 Thread Gert Van Gool
MEDIA_ROOT isn't a good solution. It should use a StorageBackend. For instance, when you use a load-balancer there is no guarantee that your session hits the same server twice. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Mon, May 31, 2010 at 10:36, Gregor Müllegger wrote: >

Re: proposal: abstract file upload/download handling

2010-06-22 Thread Gert Van Gool
What's wrong with the current StorageBackends? Apart from the fact that everything goes through Django first, which imho isn't a bad default solution (easier for parsing and the like...). -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Tue, Jun 22, 2010 at 08:55, Waldemar Kornewa

Re: 1.3: Start deprecating mod_python?

2010-06-22 Thread Gert Van Gool
You could release the "officially endorsed" external package together with 1.3. So people can start migrating towards that. However, I assume that people who're still using mod_python, won't be upgrading to 1.4/1.5 without updating the rest of the system... We're currently running two websites on

Re: Making WSGIHandler the only handler / mod_python support

2010-06-23 Thread Gert Van Gool
So in theory, if you change the mod_python handler to one of the projects mentioned (like paste.modwsgi). mod_python is "promoted" to the same status as FastCGI? -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Wed, Jun 23, 2010 at 13:43, Russell Keith-Magee wrote: > On Wed, Jun

Re: Django 1.4 roadmap

2011-11-29 Thread Gert Van Gool
On Tue, Nov 29, 2011 at 13:40, Tomek Paczkowski wrote: > What happend to "SVN is least common denominator"? > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/d

Re: Python 3 port - all tests now pass on 2.7.2 and 3.2.2 with the same codebase

2011-12-10 Thread Gert Van Gool
What I would love as a developer in the documentation is, what do I need to do so my code "could" run on Python 3. It might not work, but most obvious issues (like b() and u()) would be out of the way. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gertvangool.be On Sat, Dec 10,

Re: Authentication page

2012-05-15 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gertvangool.be On Tue, Ma

Re: Django MEDIA url in storage.py

2012-05-16 Thread Gert Van Gool
The usage of MEDIA_ROOT is by design. According to the release notes from 1.3 [1], the intention is to have uploaded files in MEDIA_ROOT and assets/static files in STATIC_ROOT. Nothing stops you from doing: MEDIA_ROOT = STATIC_ROOT MEDIA_URL = STATIC_URL [1] https://docs.djangoproject.com/en/d

Re: Psycopg2 version support

2015-02-16 Thread Gert Van Gool
For what it's worth, CentOS 6 (supported until November 30, 2020) ships with 2.0.14. CentOS 7 has 2.5.1. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gertvangool.be On Mon, Feb 16, 2015 at 9:11 AM, Florian Apolloner wrote: > Core could stay at 2.4.

Re: Psycopg2 version support

2015-02-16 Thread Gert Van Gool
In CentOS 6, you can't run Django 1.8 anyway. It ships Python 2.6. So if you want to run Django 1.8 on CentOS 6, you need to compile Python yourself. In that case I don't think they'll complain about having to build psycopg2 separately as well. In the RHEL/CentOS universe, anyone who wants to run

Re: SSL support for Django-admin runserver‏

2015-05-09 Thread Gert Van Gool
Hi Steven, It might be handier to use gunicorn with SSL support[1] and since there is already a section in the Django documentation on how to use gunicorn in a project[2]. [1]: http://gunicorn-docs.readthedocs.org/en/latest/settings.html#ssl [2]: https://docs.djangoproject.com/en/1.8/howto/deplo

Re: be localflavor Belgium

2010-09-29 Thread Gert Van Gool
IMHO I would allow a non-spaced version. My typing my phone number as 0498725202 should also work. Second thing, wrap the long lines :) Relevant ticket is #14349 (http://code.djangoproject.com/ticket/14349) -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http:

csrf_token on 404 page

2010-10-22 Thread Gert Van Gool
I'm unsure whether this is a bug or not. So I'm checking here first. But it seems impossible to use {% csrf_token %} on a 404 page? On a 500 page, it's works though. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gert.selentic.net -- You received this message because you are subsc

Re: Should i report this like bugs in TRAC? Generic Views issue? django.13 alpha and svn

2010-12-09 Thread Gert Van Gool
BTW: what happens when your verbose_name_plural contains a quote (single or double)? -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gert.selentic.net On Thu, Dec 9, 2010 at 18:42, Luke Plant wrote: > Hi, > > First, in answer to your question in the

Re: more than one querys LIKE in the same field

2010-12-14 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http

Re: i18n bug in template rendering.

2011-01-05 Thread Gert Van Gool
So for the sake of the argument I've changed the template code to use "{% load i18n %}" and also added a filter, since that is our use-case. http://dpaste.com/294778/ I thought that if you wanted to apply a filter to a string in a template that you had to use _ instead of {% trans %}. -- Gert Mo

Re: Issue 14878 And Changeset 15133

2011-01-06 Thread Gert Van Gool
Not really related to #5373, since it's related to the new generic views code. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gert.selentic.net On Fri, Jan 7, 2011 at 00:26, Lachlan Musicman wrote: > > 2011/1/7 Diego Andrés Sanabria Martín : > > A few weeks ago i report this issu

Re: Feature request: Abstract ManyToManyField

2011-02-03 Thread Gert Van Gool
Can you give an example of the model(s) you're talking about? -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gert.selentic.net On Thu, Feb 3, 2011 at 22:36, Mike Lindsey wrote: > I'm doing something with bidirectional ManyToManyFields, in a project > I'm working on, that is resu

Re: ANN: Django 1.3 released

2011-03-22 Thread Gert Van Gool
Congratualations to all involved! -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gert.selentic.net On Wed, Mar 23, 2011 at 07:15, James Bennett wrote: > It's here! > > Django 1.3 has been officially released. > > Blog post here: http://www.djangoproject.com/weblog/2011/mar/23/13

Re: Instructions for code changing to Django 1.3

2011-03-30 Thread Gert Van Gool
What's wrong with the release notes[1]? They contain a list of backwards incompatible changes [2], which is the only this you'd need to change. [1]: http://docs.djangoproject.com/en/dev/releases/1.3/ [2]: http://docs.djangoproject.com/en/dev/releases/1.3/#backwards-incompatible-changes-in-1-3 --

Re: sitemaps and prepend_www

2011-04-26 Thread Gert Van Gool
Usually you would create a ticket on trac [1] which describes your problem and reasoning. And you can attach a patch file to it. This way, it will go through the normal triaging and feature requests. [1] http://code.djangoproject.com/newticket -- Gert Mobile: +32 498725202 Twitter: @gvangool

Re: Deprecation policy for IE6

2011-06-09 Thread Gert Van Gool
On Thu, Jun 9, 2011 at 12:32, Idan Gazit wrote: > I'm looking at admin tickets, and I realize that some defined policy for > when we can safely start to break IE6 would be very helpful. > > I'd like to simply declare that going forward, the admin need not work > perfectly in IE6. That leaves our

Re: Drag and drop functionality?

2011-08-24 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gertvangool.be On Wed, A

Re: Google Contacts API

2011-08-24 Thread Gert Van Gool
django-developers is for the discussion of the development of Django itself, not development with Django. As such this mailing list is not appropriate for this message, django-users would be more appropriate. -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gertvangool.be On Wed, A

Re: ticket 13125 is waiting for a design decision for 18 months

2011-09-09 Thread Gert Van Gool
Well, we - and I imagine many others - are actively using this behavior. So our use-case is simple: a user registers, the user remains inactive until they click on a link in their mailbox. That is the behavior is "defined" by django-registration. -- Gert Mobile: +32 498725202 Twitter: @gvangool W

Re: Is "transaction.atomic" in 1.6 supposed to work this way?

2013-09-19 Thread Gert Van Gool
If the `innocent_looking_function` would use transactions. And thus handles the `IntegrityError by` issuing a rollback, just like `get_or_create` does ( https://github.com/django/django/blob/1.6b4/django/db/models/query.py#L360-L390 ). Do you see the same behaviour in `my_func`? -- Gert Mobile: +

Re: revisiting the Python version support policy

2019-01-22 Thread Gert Van Gool
We can look at the larger distros (Debian, Ubuntu, RHEL). For RHEL, their derivatives include CentOS , Scientic Linux, Amazon Linux, Oracle Linux. RHEL 7 has no (main) Python 3 support. It's only introduced in RHEL 8 (which is currently in beta). That gives us for Debian Stretch (stable) and Ubunt