Re: Python Django Training

2020-02-22 Thread Matthieu Angeli
Hello, Thank you for the message. Me too I would be interested in joining these sessions. Cheers, Matt Il giorno ven 21 feb 2020 alle ore 13:55 Emmanuel klutse ha scritto: > Hello, I’m also interested. Please add me to the list. > Thanks > > On Fri, 21 Feb 2020 at 1:52 PM, Irfan Khan wrote:

Django Pytest with multiple db including legacy one

2019-09-25 Thread Matthieu Texier
Hi Guys, Not sure this question is on purpose as not purely Django related … I am building a frontend using two databases : one for Django and a legacy database my frontend needs to access to (read-only). As such, I do have managed models with a Django managed db and unmanaged models in an unm

Re: [Model, ORM] Disabling a field before actually removing it

2019-06-29 Thread 'Matthieu Rudelle' via Django users
For Info, the discussion on django-developers : https://groups.google.com/forum/#!topic/django-developers/Gr9x2OlWYN4 On Monday, June 24, 2019 at 3:01:55 PM UTC+2, Matthieu Rudelle wrote: > > From the tests we conducted, even fields that are nullable and that are > not used in the cod

Re: [Model, ORM] Disabling a field before actually removing it

2019-06-24 Thread Matthieu Rudelle
the table is missing with a 500. On Monday, June 24, 2019 at 2:20:38 PM UTC+2, Vinicius Assef wrote: > > I would, before everything, deploy code to stop using the field. > > After that, I would make it nullable and, then, remove it from the table. > > On Mon, 24 Jun 2019 at 05

Re: [Model, ORM] Disabling a field before actually removing it

2019-06-24 Thread Matthieu Rudelle
> > Then you create a new deploy (not PR) that stops using the field > altogether from all the codebase. You can remove the reference to the field > or comment it out. Do not `makemigrations`. Deploy. > > Create the last step, which is the migration to drop the field from the

Re: [Model, ORM] Disabling a field before actually removing it

2019-06-20 Thread Matthieu Rudelle
code. So when the 3 step is called, the older release will fail. Best, Matthieu On Thursday, June 20, 2019 at 3:07:54 PM UTC+2, Aldian Fazrihady wrote: > > My solution to this problem was by adding more migrations steps: > 1. Step to make the field nullable. > 2. Backward step to fill

[Model, ORM] Disabling a field before actually removing it

2019-06-20 Thread Matthieu Rudelle
o-migrations-without-downtimes/#django-wishlist Best, Matthieu -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To pos

DatabaseRouter, add on runtime add new items to db.connections

2017-02-23 Thread Matthieu Guffroy
;s the recommended way ? or if their is a better way ? Thanks a lot, for all you feedback, Matthieu -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an em

DatabaseRouter and connections

2017-02-23 Thread Matthieu Guffroy
E': name, 'USER': user, 'PASSWORD': password, 'HOST': host, 'CONN_MAX_AGE': 0 } or is they a better way to load new databases configurations ? Thanks a lot for your answers, Matthieu -- You received this messag

Re: How to load an object created from a model outside the project ?

2015-05-14 Thread Matthieu
d on this, you may want to look at [2] or [3]. > > Best, > Gergely > > [1] https://docs.djangoproject.com/en/1.8/topics/serialization/ > [2] https://django-restless.readthedocs.org/en/latest/ > [3] http://www.django-rest-framework.org/ > > 2015-05-14 12:06 GMT+02:00 Mat

Re: How to load an object created from a model outside the project ?

2015-05-14 Thread Matthieu
Hi Gergely, Thanks for you answer. I don't need to modify the object. I also tried with "dill" package but it's not working either. How can I use serialization with my example ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

How to load an object created from a model outside the project ?

2015-05-13 Thread Matthieu
NGO_SETTINGS_MODULE or call settings.configure() before accessing settings My question is : how can i read this object (and access to its attributes) with Python without Django ? Thanks for your help, Matthieu -- You received this message because you are subscribed to the Google Groups "

Re: metaclass on model class calling db.models.options method vs django 1.7

2014-11-26 Thread Matthieu Rigal
jango/apps/registry.py", line 168, in get_models self.check_models_ready() File "/Users/mrigal/dev/_virtualenvs/dj-1.7/lib/python2.7/site-packages/django/apps/registry.py", line 131, in check_models_ready raise AppRegistryNotReady("Models aren't loaded yet.") d

metaclass on model class calling db.models.options method vs django 1.7

2014-11-25 Thread Matthieu Rigal
e, those are metaclasses) in order to get the list of fields. Maybe some code snippets running on Django 1.7 and using models with metaclasses could already help. Thanks in advance, Matthieu PS: I know it is a bit uncommon to do so and if you don't need to do so and use these metaclasses,

Re: Ticket #7231, join in extra for querysets ?

2014-03-11 Thread Matthieu Rigal
Hi Russel, On Tuesday, March 11, 2014 1:16:19 AM UTC+1, Russell Keith-Magee wrote: > > > On Tue, Mar 11, 2014 at 2:14 AM, Matthieu Rigal > > > wrote: > >> Hi guys, >> >> I wanted to talk about the ticket >> https://code.djangoproject.com/ti

Ticket #7231, join in extra for querysets ?

2014-03-10 Thread Matthieu Rigal
Even if extra joins shouldn't be used for production code, it could be very helpful for some edge-cases like for the admin interface. Best, Matthieu -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: Supporting a wider range of awesome PostgreSQL features in Django - including hstore, JSON and full text search

2014-03-10 Thread Matthieu Rigal
Is it somehow planned that Django Users can dialog with him to express some desires ? For example, I would be very happy to see a reimplementation of the annotate and aggregate functions, as they make the queries so slow by grouping by all the fields that I always have to use raw SQL to group o

migration problem when running test on RC1

2013-10-24 Thread Matthieu Rigal
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/backends/utils.py", line 61, in execute return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: relation "south_migrationhistory" does not exist LINE 1: ...gration", "south_migrationhist

Re: Django 1.6b4 fails to run tests with runner test.simple trying to import TransRealMixin

2013-10-23 Thread Matthieu Rigal
Hi Ramiro, Thanks for the fix ! I've checked the diff and this looks great :-) Also no need to add i18n anymore to the pip, you save some MB and some install time :-) BUT I actually couldn't test it, because some other changes just prevent me to run any test with any runner... It tries to appl

Fwd: [ANNOUNCE] Django 1.6 release candidate available

2013-10-23 Thread Matthieu Rigal
On Wednesday, October 23, 2013 12:14:45 PM UTC+2, Matthieu Rigal wrote: > > Do you plan to release the C1 with a tag also on Github ? I'm used to grab > versions from there... > https://github.com/django/django/releases > > Thanks, > Matt > > On Wednesday, O

Re: [ANNOUNCE] Django 1.6 release candidate available

2013-10-23 Thread Matthieu Rigal
Do you plan to release the C1 with a tag also on Github ? I'm used to grab versions from there... https://github.com/django/django/releases Thanks, Matt On Wednesday, October 23, 2013 5:08:33 AM UTC+2, James Bennett wrote: > > It's almost here! > > Tonight we've issued a release candidate for Dj

Django 1.6b4 fails to run tests with runner test.simple trying to import TransRealMixin

2013-10-22 Thread Matthieu Rigal
envs/myo_1.6/src/django/django/utils/importlib.py", line 35, in import_module __import__(name) File "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/contrib/humanize/tests.py", line 22, in from i18n import TransRealMixin ImportError: cannot import name TransRealMixin

Custom Filter in Django (1.5.1) Admin returns SuspiciousOperation

2013-07-02 Thread Matthieu Rigal
propose a solution to overcome the SuspiciousOperation error ? http://stackoverflow.com/questions/17409540/custom-filter-in-django-admin-returns-suspiciousoperation Best Regards, Matthieu -- You received this message because you are subscribed to the Google Groups "Django users"

Re: ManyToMany relationship and raw sql queries

2013-04-25 Thread Matthieu Bouron
On Thursday, April 11, 2013 5:39:57 PM UTC+2, Tom Evans wrote: > > On Thu, Apr 11, 2013 at 3:42 PM, Matthieu Bouron > > wrote: > > Hello, > > > > Is there a way to handle many-to-many relationship with raw sql queries > ? > > I have the following model:

ManyToMany relationship and raw sql queries

2013-04-11 Thread Matthieu Bouron
many-to-many relationship can be used. Thanks in advance, Matthieu -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googleg