开发者

Django contentType and read only database

开发者 https://www.devze.com 2023-01-05 10:53 出处:网络
a newbie question I have a Django project wit开发者_开发百科h two applications core and nagios each with its model

a newbie question

I have a Django project wit开发者_开发百科h two applications core and nagios each with its model

I have two database connections default and nagios

The nagios database is read only

when I use python manage.py syncdb this error appears

Table 'nagios.django_content_type' doesn't exist"

why does the contentType application need to create a content_type table in the nagios database? and how can I force the contentType application to check against the default database connection only


Sounds like you just need to set up an automatic database router.

0

精彩评论

暂无评论...
验证码 换一张
取 消