On 5/04/2016 7:23 AM, Chris Seberino wrote:
I'm trying to create a simple stripped down skeleton Django
application.  Django ver1.9 forces
everything to be in apps which are not needed for this application.

When I try using models I get an error like the following:

"Model class doesn't declare an explicit app_label and isn't in an
application in INSTALLED_APPS."

Is there an easy sane/safe way to deal with this so Django can run
without any "apps" defined?

Just think of an app actually being a namespace rather than an app. Django uses INSTALLED_APPS entries just like a search path added to the BASE_DIR so it can find your models.

If you don't want the app name in your table name in the database I believe you can specify the db_table in your model meta options

Mike


Thanks,

Chris

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/e6414cba-ccb4-4bf0-81ca-7c2c26947467%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/e6414cba-ccb4-4bf0-81ca-7c2c26947467%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/570300B0.1080501%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to