Re: ProgrammingError - relationship does not exist

2021-07-21 Thread Stathis Angelou
good evening all, I was wondering whether any of you had the chance to review my code and identify what the issue seems to be Thank you once again Stathis On Tuesday, July 13, 2021 at 11:56:27 AM UTC+1 Stathis Angelou wrote: > Good morning all and thank you for your time in this, as suggested on

Re: ProgrammingError - relationship does not exist

2021-07-13 Thread Stathis Angelou
Good morning all and thank you for your time in this, as suggested once again I did delete my migrations and re-run them again, I am still getting the same error message though and that is when I try to add data to my app. as mentioned before you can find my code on the link below: https://gith

Re: ProgrammingError - relationship does not exist

2021-07-08 Thread Lalit Suthar
you can try this https://stackoverflow.com/questions/26283159/django-1-7-migrations-how-do-i-clear-all-migrations-and-start-over-from-scrat#comment41239691_26283159 if that also doesn't work and you are working on a personal project then you can try deleting your db, migration files and re running

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Stathis Angelou
Good evening all and thank you for your messages, as suggested i did delete all migrations in my shops project and did do them again, but i'm getting the same error message, i did use again makemigrations and migrate. show migrations show everything applied ok. if it makes it easier for you

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Oh actually, it looks like the table doesn't exist. I misread the SQL. Something is wrong with your migrations. Are you sure you ran "makemigrations" after creating the shop model? On Wed, Jul 7, 2021, 11:03 AM Jacob Greene wrote: > Do you have any other attributes set in the modeladmin? Somethi

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Do you have any other attributes set in the modeladmin? Something is telling the ORM to do a query on the "shop" field, and that field doesn't exist in the DB and it's not defined in the model. Possibly a filter field in the ModelAdmin class? A full back trace might help illuminate where you have t

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Samin Serge
in admin.py put this code to see. @admin.site.register (shop) Le mer. 7 juil. 2021 à 00:16, Stathis Angelou a écrit : > Good evening all, i have created a new app and added a model. Added the > app under installed apps, and run python manage.py makemigrations and > migrate and everything worked

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Lalit Suthar
If this is your personal project delete all migrations inside shops app and run makemigrations, migrate again Not sure but this may work I had similar error some time ago On Wed, 7 Jul 2021 at 14:19, Stathis Angelou wrote: > Good morning Jacob and thank you for your reply, i really do appreciate

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Stathis Angelou
Good morning Jacob and thank you for your reply, i really do appreciate your time in looking into this, I am attaching my models.py: # Create your models here. from django.contrib.gis.db import models class Shop(models.Model): name = models.CharField(max_length=100) location = models.Po

Re: ProgrammingError - relationship does not exist

2021-07-06 Thread Jacob Greene
The issue is with the model not the admin page. I suspect you haven't ran migrations for the "Shop" model. You defined a "shop" field in the model, but the database doesn't know anything about it. On Tue, Jul 6, 2021, 7:16 PM Stathis Angelou wrote: > Good evening all, i have created a new app