Re: New entry tries to use an existing unique id

2018-10-26 Thread Michel Lavoie
3 AM UTC-4, Michel Lavoie wrote: > > Wow thank you Sanjay, this is beyond helpful! I'll try the steps you > suggested; I need the ids to remain the same. > > Michel > > On Friday, October 26, 2018 at 6:25:09 AM UTC-4, Sanjay Bhangar wrote: >> >> Hi Michel, >>

Re: New entry tries to use an existing unique id

2018-10-26 Thread Michel Lavoie
y for each table in the db seems a bit tedious, > you will find various scripts and solutions to automate the process a bit > more by searching for something like "postgres reset sequence" - this is a > fairly common problem and you should find a bunch of material online. >

New entry tries to use an existing unique id

2018-10-25 Thread Michel Lavoie
Hi, I migrated my previous sqlite3 installation to postgresql, following this discussion: https://groups.google.com/forum/#!msg/django-users/VGG8GTAX4l0/tQUW20HcAwAJ I'm not facing another weird issue: Whenever I try to create a new item (finance.models.Debtor, see https://github.com/miek770/

RE: "No such table" error, with different tablename as in query

2018-10-08 Thread Michel Lavoie
I have (tried running migrations), although I didn't change my models and I'm not sure if I did it after or before the problem started. You're probably right though, if the current database has issues but not the new one, the old one might have somehow been corrupted... It's probably a good tim

Re: "No such table" error, with different tablename as in query

2018-10-08 Thread Michel Lavoie
possible solution (i.e. manually transfer my data to a new database), but I would like to avoid that if possible. Michel Lavoie lavoie.mic...@gmail.com On Mon, Oct 8, 2018 at 11:22 AM Michal Petrucha < michal.petru...@konk.org> wrote: > -BEGIN PGP SIGNED MESSAGE----- > Hash:

Re: "No such table" error, with different tablename as in query

2018-10-08 Thread Michel Lavoie
> > *From:* django-users@googlegroups.com [mailto: > django-users@googlegroups.com] *On Behalf Of *Michel Lavoie > *Sent:* Sunday, October 7, 2018 6:17 AM > *To:* Django users > *Subject:* "No such table" error, with different tablename as in query > > > > Hi, > >

"No such table" error, with different tablename as in query

2018-10-07 Thread Michel Lavoie
Hi, I've just upgrade my Django installation from 1.11 to 2.0, and then to 2.1, and am now getting a weird bug with one of my applications. Whenever I try to execute a view that either deletes or saves a transation in my "finance" app, I get the following error: OperationalError at /finance/2/