Accept thousand separator in forms.DecimalField while USE_THOUSAND_SEPARATOR is False

2020-02-26 Thread Mounir Messelmeni
In many cases I find it useful that when using localize within a *DecimalField* for example to accept thousand separator from form/user input. Turning *USE_THOUSAND_SEPARATOR* will mostly result in changing the display for numbers in all the project which in many cases does not make sense. So th

Migrations processing time of reload_model

2015-11-17 Thread Mounir Messelmeni
Hi, On one of my projects, I'm having processing time trouble to generate or run migrations even for a single app, this can take up to 3 minutes, after debugging I found that the function reload_model inside django.db.migrations.state.py take a lot of time, and this one is called when evaluati

App config on the default template for app creation

2015-06-05 Thread Mounir Messelmeni
Will it be better to add apps.py and app_config on the __init__.py file when we run ./manage.py startapp? I think this way users will know more about this feature and can also give a proper name to their apps. -- You received this message because you are subscribed to the Google Groups "Django

Re: Redirect loop detection in test client is incorrect

2015-05-01 Thread Mounir Messelmeni
from Firefox. raise RedirectCycleError("Too many redirects.", last_response=response) On Friday, May 1, 2015 at 8:24:48 PM UTC+2, Mounir Messelmeni wrote: > > I think 10 is already too much, it about redirecting to the same page N > times. Page1 to Page, Page2 to Page3 and P

Re: Redirect loop detection in test client is incorrect

2015-05-01 Thread Mounir Messelmeni
le. The additional time > to do 10 loops instead of 2 is probably trivial (and it's an unexpected > condition anyway). > > On Friday, May 1, 2015 at 1:36:32 PM UTC-4, Mounir Messelmeni wrote: >> >> This is related to the ticket #24713, I'm trying to fix this issue

Redirect loop detection in test client is incorrect

2015-05-01 Thread Mounir Messelmeni
This is related to the ticket #24713, I'm trying to fix this issue and I was thinking about using a variable to know how much time a single url can be repeated on the redirects. Is two time sufficient or we will have another case that need 3 times. If you agree using a variable is it okay to pass

Translation documentation wrong import

2015-04-28 Thread Mounir Messelmeni
I've opened a pull request for fixing an import on the translation documentation, I just changed ugettext_lazy to ungettext_lazy. You can check this PR: https://github.com/django/django/pull/4575 -- You received this message because you are subscribed to the Google Groups "Django developers (