Re: Using multiple model files per app with the Improved Multiple Model Files Django Snippet

2013-06-01 Thread Doug S
Awesome, thanks, I love python but I am not (yet) skilled at the art of incantation. The snippet above: http://djangosnippets.org/snippets/1838/ did have some incantation but the post was fairly old in terms of django/python's history. I can't tell one incantation from another but I can tell a dj

Re: Using multiple model files per app with the Improved Multiple Model Files Django Snippet

2013-05-30 Thread Mike Dewhirst
On 30/05/2013 10:43pm, Doug S wrote: I'm trying to use multiple files for my models in a single app. I found a nice solution on Django Snippets : http://djangosnippets.org/snippets/1838/ but I'm not able to get it to work. The docs assume that I know more than I do abo

Using multiple model files per app with the Improved Multiple Model Files Django Snippet

2013-05-30 Thread Doug S
I'm trying to use multiple files for my models in a single app. I found a nice solution on Django Snippets : http://djangosnippets.org/snippets/1838/ but I'm not able to get it to work. The docs assume that I know more than I do about how this solution works. Its involve

Re: multiple model files

2005-09-02 Thread Maniac
Adrian Holovaty wrote: "django-admin.py sql" shows SQL statements for the given model module. So if your models are split across multiple modules, you'll have to do each one at a time. Ah! That's why... The confusion is caused by django-admin.py saying in --help that 'sql' command requires

Re: multiple model files

2005-09-02 Thread Adrian Holovaty
On 9/2/05, asrenzo <[EMAIL PROTECTED]> wrote: > I tried to do what's written in the doc (or in this group) to split my > Poll.py model into several sub-files. I changed the __init__.py of my > app to look for all other files. > > __ALL__ = ['Poll', 'Choices'] > > but a django-admin sql Poll only

multiple model files

2005-09-02 Thread asrenzo
Hi, I tried to do what's written in the doc (or in this group) to split my Poll.py model into several sub-files. I changed the __init__.py of my app to look for all other files. __ALL__ = ['Poll', 'Choices'] but a django-admin sql Poll only shows sql statments for Poll model. And this even if I