Re: Update django 1.8 project to 2.0 lts

2018-09-24 Thread Bill-Torcaso-Oxfam
I strongly recommend this approach: My experience is that the best thing to do is to do minor upgrades - 1.8 -> 1.9.x -> 1.10.x -> 1.11.x (where x is the last patched version of each minor version). Further, at the completion of one Django version, I recommend saving a snapshot of your datab

Re: Update django 1.8 project to 2.0 lts

2018-09-24 Thread Andréas Kühne
Hi, My experience is that the best thing to do is to do minor upgrades - 1.8 -> 1.9.x -> 1.10.x -> 1.11.x (where x is the last patched version of each minor version). The reason for updating in this fashion, is that when you start the server on each version, you will get warnings about unsupported

Re: Update django 1.8 project to 2.0 lts

2018-09-23 Thread Jason
django 2.x is not lts, next LTS version is 2.2, as said before. That said, I'd break this into three chunks: migrate 1.8 to 1.11 migrate 2.7 to 3.6 (or 3.7) migrate 1.11 to 2.1 or 2.2, depending on the timing. 2.2 will be out in April 2019, which is seven months from now. I would separate fram

Re: Update django 1.8 project to 2.0 lts

2018-09-23 Thread carlos
Django 2.0 Not LTS warning!! the next LTS Django version is 2.2 Cheers On Sun, Sep 23, 2018 at 6:08 PM Mike Dewhirst wrote: > On 23/09/2018 11:15 PM, 'David Brown' via Django users wrote: > > I have a large django project built in 1.8 with about 14 apps and a > large amount of dependencies. > >

Re: Update django 1.8 project to 2.0 lts

2018-09-23 Thread Mike Dewhirst
On 23/09/2018 11:15 PM, 'David Brown' via Django users wrote: I have a large django project built in 1.8 with about 14 apps and a large amount of dependencies. I already have a good idea about how I'm going to update the 2.7 code to 3.6 or possibly just make it compatible with both, however, I

Re: Update django 1.8 project to 2.0 lts

2018-09-23 Thread Mateusz
This can take a lot of time but if you're really into this, you can see the the release notes for every version between 1.8 and 2.0 (especially for version 2.0 ) and seek for things you can change in your code that were optimised in the meanti

Re: Update django 1.8 project to 2.0 lts

2018-09-23 Thread Jani Tiainen
I suppose you do have good unittest code coverage so do gradual upgrades (which is preferred upgrade path) and read release notes on each version. 2to3 tool is great help to check some obvious issues when upgrading to Python 3. su 23. syysk. 2018 klo 16.57 'David Brown' via Django users < django-

Update django 1.8 project to 2.0 lts

2018-09-23 Thread 'David Brown' via Django users
I have a large django project built in 1.8 with about 14 apps and a large amount of dependencies. I already have a good idea about how I'm going to update the 2.7 code to 3.6 or possibly just make it compatible with both, however, I'm not sure what is the best practice and most efficient way to

Re: How to update django MultiModelForm? Please HELP

2018-06-25 Thread Django Lover
I think This is very easy anyone 1 Year experienced guy can answer it. On Monday, June 25, 2018 at 6:51:14 PM UTC+5:30, Sunil Kothiyal wrote: > > Hello All, > > I had created multiModelForm in Django, I can view, and save data, I > don't know how to Update data into the database. I want if user

How to update django MultiModelForm? Please HELP

2018-06-25 Thread Sunil Kothiyal
Hello All, I had created multiModelForm in Django, I can view, and save data, I don't know how to Update data into the database. I want if user id exists in database then update else insert.exist in the database then update else insert. This Code is working for me but I don't know how to upda

How to update Django 2 JSON FIeld?

2018-05-27 Thread Mark Phillips
I have a model called Document with a field called metadata defined as JSONField(blank=True). I want to be able to search the Document model for a certain key in the metadata field, and change that key. For example, there is a key 'People' in some of the Document objects, and I want to change that

Re: update Django

2015-12-15 Thread Andreas Kuhne
Hi, As previously stated. Give us some more details and we can probably help you. I have done upgrades from 1.3 to 1.8 and 1.5 to 1.8 in different projects, we can probably help if we get some more information :-) Regards, Andréas 2015-12-15 16:55 GMT+01:00 Ovnicraft : > > > On Tue, Dec 15, 20

Re: update Django

2015-12-15 Thread Ovnicraft
On Tue, Dec 15, 2015 at 5:57 AM, Hugo Cosme wrote: > Good morning to all, someone here has already done the update of some > version of django, as of 1.5 to 1.8 for example? I'm having some > difficulties! > Hi Hugo, please gives us more details about your problem, which steps do you follow and

Re: update Django

2015-12-15 Thread François Schiettecatte
Such as…? François > On Dec 15, 2015, at 5:57 AM, Hugo Cosme wrote: > > Good morning to all, someone here has already done the update of some version > of django, as of 1.5 to 1.8 for example? I'm having some difficulties! > > -- > You received this message because you are subscribed to the

update Django

2015-12-15 Thread Hugo Cosme
Good morning to all, someone here has already done the update of some version of django, as of 1.5 to 1.8 for example? I'm having some difficulties! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Scripts to update Django tables

2013-05-29 Thread Mike Dewhirst
On 30/05/2013 12:01am, Brian wrote: I'm new to Django (and frameworks in general) and having an issue with a project I'm working on. Basically, I want to scrape data from a sports league website on a regular schedule and add updated stats into my database. I think the way you have described th

Re: Scripts to update Django tables

2013-05-29 Thread Tom Evans
On Wed, May 29, 2013 at 3:01 PM, Brian wrote: > I'm new to Django (and frameworks in general) and having an issue with a > project I'm working on. Basically, I want to scrape data from a sports > league website on a regular schedule and add updated stats into my database. > All of the Django tuto

Re: Scripts to update Django tables

2013-05-29 Thread C. Kirby
Django models instances are python objects and are manipulated as such. Lets say you had a model: def Game(Model): team1 = TextField() team2 = TextField() date = DateField() location = TextField() In order to create new model instances and save them to a database you would do:

Re: Scripts to update Django tables

2013-05-29 Thread Avraham Serour
add your script to celery and make the necessary imports so the script can use your model just like you did in manage shell take a look at http://stackoverflow.com/questions/1310495/running-a-python-script-outside-of-django but in this case I suggest not creating a subcommand as the first answer sa

Scripts to update Django tables

2013-05-29 Thread Brian
I'm new to Django (and frameworks in general) and having an issue with a project I'm working on. Basically, I want to scrape data from a sports league website on a regular schedule and add updated stats into my database. All of the Django tutorials for models I've looked at seem to give me in

Re: question update: django auto filling some data based on model attribute

2011-01-21 Thread Tom Evans
On Thu, Jan 20, 2011 at 3:55 PM, Mo Mughrabi wrote: > Any one? please, I been researching since yesterday > http://stackoverflow.com/questions/4725685/django-auto-filling-some-data-based-on-model-attribute > I don't mean to be obvious here, but the simple answer is to provide the data that is req

question update: django auto filling some data based on model attribute

2011-01-20 Thread Mo Mughrabi
Any one? please, I been researching since yesterday http://stackoverflow.com/questions/4725685/django-auto-filling-some-data-based-on-model-attribute -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us