Re: Revisiting MSSQL and Azure SQL Support in Django

2022-04-04 Thread Gert Burger
As a commercial user of all the builltin DB backends and the MSSQL backend (both the MS fork and its parent), I tend to agree more with Florian's arguments. Our experience with the MS MSSQL and Oracle DB backends in supporting our enterprise customers have been difficult at best, in comparison to

Re: ConditionalGetMiddleware MD5

2020-09-11 Thread Gert Burger
I'm not so sure this is a problem (wrt to using md5 hash of response content for ETags and likely also for cache keys). The probability of a naturally occurring collision with MD5 is 1.47*10-29 [1] so the risk of this scenario occurring by accident is extremely remote. If we assume that User 2 is

Re: FK field caching behavior change between 1.11.x and 2.x

2020-08-12 Thread Gert Burger
10:54, Gert Burger wrote: > Correction, it is https://github.com/django/django/pull/13281 now. > > On Fri, 7 Aug 2020 at 10:35, Gert Burger wrote: > >> I have created https://github.com/django/django/pull/13280 and I will >> need a day or so to test it against our code ba

Re: FK field caching behavior change between 1.11.x and 2.x

2020-08-07 Thread Gert Burger
Correction, it is https://github.com/django/django/pull/13281 now. On Fri, 7 Aug 2020 at 10:35, Gert Burger wrote: > I have created https://github.com/django/django/pull/13280 and I will > need a day or so to test it against our code bases. > > On Thu, 6 Aug 2020 at 18:03, char

Re: FK field caching behavior change between 1.11.x and 2.x

2020-08-07 Thread Gert Burger
ld create a ticket about it. > > Would you be interested in creating the ticket and possibly submitting a > patch Gert? > > Simon > > Le mardi 4 août 2020 à 21:23:47 UTC-4, Alex Hill a écrit : > >> I reckon stick with your first instinct SImon. >> >> I

Re: FK field caching behavior change between 1.11.x and 2.x

2020-08-04 Thread Gert Burger
Hi Simon, I think the commit is bfb746f983aa741afa3709794e70f1e0ab6040b5 "Refs #16043 -- Refactored internal fields value cache". Cheers On Tue, 4 Aug 2020 at 15:52, charettes wrote: > Hello Gert, that seems a bit surprising to me and was likely not a desired > change. >

FK field caching behavior change between 1.11.x and 2.x

2020-08-04 Thread Gert Burger
changed and must still point to foo1 # These fail on Django >= 2.0 self.assertEqual(bar1.a, foo1) self.assertEqual(bar1.a.id, bar1.a_id) -code-- and executed that via: python3.6 tests/runtests.py --parallel 1 model_fields Reg

Re: revisiting the Python version support policy

2019-01-22 Thread Gert Van Gool
) and Ubuntu 16.04 Python 3.5. While Ubuntu 18.04 and RHEL 8 have Python 3.6. -- Gert Mobile: +32 498725202 Twitter: @gvangool <http://twitter.com/gvangool> Web: http://gertvangool.be On Tue, Jan 22, 2019 at 6:11 PM Collin Anderson wrote: > Now that we've dropped Python 2, I perso

Re: Implement form.as_table, as_ul, as_p using templates

2017-02-03 Thread Gert Steyn
Hi Tim The implementation can be extremely simple as most of the heavy lifting has already been done for widget templates. The only new parts are: 1. BaseForm.get_context 2. The templates to implement as_table, as_ul and as_p 3. A little bit of glue (render etc, pretty much the same as

Implement form.as_table, as_ul, as_p using templates

2017-02-03 Thread Gert Steyn
with widgets, currently the form HTML is generated in Python code where it is hard to customise, HTML templates belong in well... templates! Thanks Gert The template_prefix gives you the ability to easily switch between different form layouts (think Bootstrap, Foundation etc). Similar idea as

Re: Template sets for widgets

2017-02-01 Thread Gert Steyn
I think something as simple as {% form your_form prefix='bootstrap' %} and {% field your_field prefix='bootstrap' %} would add huge flexibility, exactly the concept I was trying to convey! -- You received this message because you are subscribed to the Google Groups "Django developers (Contr

Re: Template sets for widgets

2017-02-01 Thread Gert Steyn
Hi Tim I did, and I agree that a TemplatesSetting renderer of sorts would most likely be the way to implement. I also think that the use case of "*Using some CSS framework*" is common enough to warrant giving developers a clean/standard way of doing this rather than letting each roll their own

Template sets for widgets

2017-02-01 Thread Gert Steyn
d easy to implement any framework of your choosing or switch from one framework to another... Your thoughts on 1) concept and 2) implementation? Regards Gert Steyn -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django it

Re: Dynamic inlines for Django ModelAdmin

2015-07-27 Thread Gert Steyn
> > While the request per se makes sense I have the feeling that the admin is > becoming a dumping ground for every possible method out there :/ > We have six views squeezed into a single class, making it customizable will inevitably require a large number of methods. My prediction is that it

Re: Dynamic inlines for Django ModelAdmin

2015-07-27 Thread Gert Steyn
Duplicating an entire method from core is the easy part, remembering to check that against the new Django code every time there is a new Django release is the actual problem. Gert > > -- You received this message because you are subscribed to the Google Groups "Django

Dynamic inlines for Django ModelAdmin

2015-07-26 Thread Gert Steyn
for inline_class in *self.get_inlines(request, obj=obj)*: Any reasons not to do this? Regards Gert -- 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 emails f

Re: SSL support for Django-admin runserver‏

2015-05-09 Thread Gert Van Gool
/deployment/wsgi/gunicorn/ -- Gert Twitter: @gvangool <http://twitter.com/gvangool> Web: http://gertvangool.be On Sat, May 9, 2015 at 4:19 PM, Steven Berry wrote: > While working with an OAuth library I was running into some issues signing > requests on a local development server du

Re: Psycopg2 version support

2015-02-16 Thread Gert Van Gool
ne who wants to run Django 1.8 needs either SCL's (software collections that are installed next to system binaries) or has access to psycopg2 2.5. So my point for CentOS/RHEL 6 can be ignored. -- Gert Mobile: +32 498725202 Twitter: @gvangool <http://twitter.com/gvangool> Web: http://gert

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 <http://twitter.com/gvangool> Web: http://gertvangool.be On Mon, Feb 16, 2015 at 9:11 AM, Florian Apolloner wrote: > Core

FormSetView and ModelFormSetView

2013-09-19 Thread Gert Steyn
of this available, all of them are slightly different and none of them seem to stand out as an obvious choice. Most Django developers don't have the same skills as the core developers, please provide your guidance with this. Regards Gert Steyn -- You received this message because yo

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: Django MEDIA url in storage.py

2012-05-16 Thread Gert Van Gool
/dev/releases/1.3/#extended-static-files-handling -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gertvangool.be On Wed, May 16, 2012 at 3:47 PM, Andre Terra wrote: > You can define a custom location for your files like the docs tell you: > https://docs.djangoproject.com/

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

AJAX generic views

2012-02-03 Thread gert
Any thoughts on this? Regards Gert -- 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-developers+unsubscr...@g

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 S

Re: Django 1.4 roadmap

2011-11-29 Thread Gert Van Gool
> http://groups.google.com/group/django-developers?hl=en. > @Thomas, GitHub provides an svn bridge: see https://github.com/blog/626-announcing-svn-support, https://github.com/blog/644-subversion-write-support and https://github.com/blog/966-improved-subversion-client-support

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:

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

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

minify static files (css and js)

2011-08-07 Thread gert
would actually be the perfect place to implement minify functionality. I think it will make minification a standard for many sites if css and js files got minified when you run collectstatic. Not sure what the implications would be just sharing a thought. Regards Gert -- You received this message be

Re: Deprecation policy for IE6

2011-06-09 Thread Gert Van Gool
gt; http://groups.google.com/group/django-developers?hl=en. > > Although I don't personally. I remember from the HTML5 doctype that some people (with app in enterprises) need the support -- Gert Mobile: +32 498725202 Twitter: @gvangool <http://twitter.com/gvangool> -- You received thi

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: Instructions for code changing to Django 1.3

2011-03-30 Thread Gert Van Gool
ges-in-1-3 -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gert.selentic.net 2011/3/30 Thiago Carvalho D' Ávila : > I have a project running in Django 1.2.5 and I want to update it (the code) > to Django 1.3. I've seen the release notes, but there is no direct > i

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.co

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'

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

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 {% tra

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 <http://twitter.com/gvangool&g

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 <http://twitter.com/gvangool> Web: http://gert.selentic.net On Thu, Dec 9, 2010 at 18:42, Luke Plant wrote: > Hi, > > First, in answer to y

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

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 <http://twitter.com/gvangool> Web

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: >

Re: 1.3: Start deprecating mod_python?

2010-06-22 Thread Gert Van Gool
y running two websites on mod_python. Both are dead-in-the-water-projects, they're only running for old-times sake on a separate server. So if they're ever revived (or get traffic), the first thing I'll do is move them to mod_wsgi. -- Gert Mobile: +32 498725202 Web: http://gert.sele

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

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

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

2010-04-23 Thread Gert Van Gool
://docs.djangoproject.com/en/dev/ref/templates/api/#id1 -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Fri, Apr 23, 2010 at 09:38, JohnHenry wrote: > Hi, all >    As I know, Django Templates got all variables through views > function with Context dict; But I read some source, Ther

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

2010-04-09 Thread Gert Van Gool
? >From what I've read in the other proposals, your timeline should be divided into weeks. It shows a better understanding of the problem. -- Gert Mobile: +32 498725202 Web: http://gert.selentic.net On Fri, Apr 9, 2010 at 20:14, nubela wrote: > Proposal Title > -- &g

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. --

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 > > ### Th

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

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 patch

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

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, me

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 lea

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, wha

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 Mo

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, 'chir

Re: view permission for contrib.admin

2008-12-18 Thread gert
> add/delete are spin-offs of that I can't argue about that add/delete is a form of change :) > popularity contest It is most certainly not that, it is about business and making money. I have been in software development for 15 years now and on more than one occasion we had to stop using a develo

Re: view permission for contrib.admin

2008-12-18 Thread gert
Jacob, the suggestion you made will most definitely work and I have no problem implementing it like that. I have to go that route no matter what the outcome of this discussion because it must be done in a couple of days :) I raised the view permission issue primarily because: 1) On a technical l

Re: view permission for contrib.admin

2008-12-18 Thread gert
Some administrators can CHANGE and DELETE If we had VIEW it would become: 1) Some administrators can ADD 2) Some administrators can CHANGE 3) Some administrators can DELETE Which was definitely what was intended on day one when the CHANGE, ADD, DELETE permissions were created. -

view permission for contrib.admin

2008-12-18 Thread gert
We have a very common situation where we have junior administrators that are only allowed to ADD news items and higher level admins that can CHANGE/DELETE them. Without a view permission it is not possible to do this, you have to give CHANGE rights to everybody (They must be able to see the list