tags:

views:

23

answers:

1

I am creating a Django based app and I'd like to put everything under the root in the following structure:

/path/to/my/app/
    settings.py
    models.py
    urls.py
    admin.py
    ...

One problem that I run into is the admin interface doesn't include whatever models I have that are registerd in admin.py usin

admin.site.register(models.MyModel)

Usually that's done by using auto discover in urls.py, but now I have no registered "app", the auto discover doesn't work anymore. Is there anyway I can still use the admin interface?

Thanks.

+1  A: 

Django simply doesn't work without apps. They're the fundamental building block of a Django site. A whole range of things, not just the admin, will fail to work. Why do you want to do this?

Daniel Roseman
Maybe I am thinking it wrong but my entire site is dedicated to one app. I don't want the extra dir structure.
rxin
It's only one extra directory from what you're asking for. Why are you worried about it?
sdolan