Re: django.db.utils.OperationalError: no such table abc

2021-10-24 Thread David Nugent
On Fri, Oct 22, 2021 at 7:09 AM Ammon Quackenbush wrote: > I think you are right. I did delete the initial migration. How do I > restore the initial migration? > > Can't you restore it from your git repo? If you're not running any sort of version control you've just hit the reason why doing so i

Re: django.db.utils.OperationalError: no such table abc

2021-10-22 Thread Lakshyaraj Dash X-D 25
Bro, you will need the initial migration in order to make another migration. On Fri, Oct 22, 2021, 18:37 MR INDIA wrote: > > After deleting the migration to make it again just Try Running the > makemigrations command. > On Friday, 22 October 2021 at 06:58:12 UTC+5:30 dashlaksh...@gmail.com > wr

Re: django.db.utils.OperationalError: no such table abc

2021-10-22 Thread MR INDIA
After deleting the migration to make it again just Try Running the makemigrations command. On Friday, 22 October 2021 at 06:58:12 UTC+5:30 dashlaksh...@gmail.com wrote: > Just search for it in the recycle bin , if you have not permanently > deleted the migration, else give me the code in my

Re: django.db.utils.OperationalError: no such table abc

2021-10-21 Thread Lakshyaraj Dash X-D 25
Just search for it in the recycle bin , if you have not permanently deleted the migration, else give me the code in my personal gmail dashlakshyaraj2...@gmail.com and I will correct it. On Fri, Oct 22, 2021, 01:38 Ammon Quackenbush wrote: > I think you are right. I did delete the initial migrati

Re: django.db.utils.OperationalError: no such table abc

2021-10-21 Thread Ammon Quackenbush
I think you are right. I did delete the initial migration. How do I restore the initial migration? On Wednesday, October 20, 2021 at 6:18:31 PM UTC-6 dashlaksh...@gmail.com wrote: > It will happen if you have deleted the initial migration or check your > settings properly. > > On Thu, Oct 21,

Re: django.db.utils.OperationalError: no such table abc

2021-10-20 Thread Lakshyaraj Dash X-D 25
It will happen if you have deleted the initial migration or check your settings properly. On Thu, Oct 21, 2021, 04:21 Ammon Quackenbush wrote: > I am working on a django project and I am getting this error when I > attempt to run the "python manage.py makemigrations" command: > > django.db.utils

django.db.utils.OperationalError: no such table abc

2021-10-20 Thread Ammon Quackenbush
I am working on a django project and I am getting this error when I attempt to run the "python manage.py makemigrations" command: django.db.utils.OperationalError: no such table: myApp_tableStatus The table tableStatus exists in my models.py. Any ideas what I can do to fix this problem? I trie

Getting children of an ABC

2012-01-01 Thread Knight Samar
I am using Django 1.3.1 and I have the following piece of models: class masterData(models.Model): uid = models.CharField(max_length=20,primary_key=True) class Meta: abstract = True; class Type1(masterData): pass; class Type2(masterData): pass; Now, I am trying to get

Re: abc

2011-06-09 Thread jaspreet kaur
k thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this g

Re: abc

2011-06-09 Thread Iván Raskovsky
Hello, why don't you start with the first steps[0]? https://docs.djangoproject.com/en/1.3/#first-steps On Thu, Jun 9, 2011 at 3:29 PM, jaspreet wrote: > i m new to django ...i need the help > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group

abc

2011-06-09 Thread jaspreet
i m new to django ...i need the help -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. Fo

Re: ABC/MTI and Generic Date Based Views

2009-02-09 Thread seanbrant
Thanks I'll deal with the performance hit for now, and keep my figures crossed :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.co

Re: ABC/MTI and Generic Date Based Views

2009-02-09 Thread Alex Gaynor
On Tue, Feb 10, 2009 at 12:22 AM, seanbrant wrote: > > Sorry about my initial post, Im new here. I'll try harder next time ;) > > I choose MTI and added a entry_type field to the main Entry model. > > > ...(note that this could turn > a Base.objects.all() query into O(n) queries). > > Is there a

Re: ABC/MTI and Generic Date Based Views

2009-02-09 Thread seanbrant
Sorry about my initial post, Im new here. I'll try harder next time ;) I choose MTI and added a entry_type field to the main Entry model. > ...(note that this could turn a Base.objects.all() query into O(n) queries). Is there a way out of the box to preform joins up front, when going from child

Re: ABC/MTI and Generic Date Based Views

2009-02-09 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 9:11 PM, Malcolm Tredinnick wrote: > > On Sat, 2009-02-07 at 12:40 -0800, seanbrant wrote: > > Im have troubling figuring about a good solution for blog posts. I > > have created a ABC called Entry which Post, Link, Photo, Quote > > inherit. >

Re: ABC/MTI and Generic Date Based Views

2009-02-09 Thread Malcolm Tredinnick
On Sat, 2009-02-07 at 12:40 -0800, seanbrant wrote: > Im have troubling figuring about a good solution for blog posts. I > have created a ABC called Entry which Post, Link, Photo, Quote > inherit. It would help others to define a few terms here before leaping into the acronyms: ABC =

ABC/MTI and Generic Date Based Views

2009-02-07 Thread seanbrant
Im have troubling figuring about a good solution for blog posts. I have created a ABC called Entry which Post, Link, Photo, Quote inherit. I first tired it with MTI and set Entry.objects.all() as the queryset attribute. This will pass the list of Entry's to the template which I can iterate