Jonathan Buchanan napisaĆ(a): >> I have an application named "news". Running python manage.py sqlall news >> I just discovered that django would create a table I did not define in >> my models.py - "news_news" (no, there's no M2M fields there). What's >> that? Why? I even don't have a model for this data. > > Do you have a Model called "News"? > > If you don't provide a table name manually, Django prefixes the name > of any tables it generates with the application's name, which is how > you'd end up with "news_news" if you had a "News" model in a "news" > application.
No, I don't have such model. There's only one, NewsSource, and Django would eventually create table news_newssource for it. In whole project I don't have any "News" model nor any other model in any application uses the table news_news. -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (Tim Peters) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---