开发者

How to add an app to django admin site which do not required model?

开发者 https://www.devze.com 2023-03-14 06:03 出处:网络
How to add an app to django admin site which do not required model? I mean I need to make inteface for my app. But i dont want to create any tables in databas. Actually it going to work with solr ite

How to add an app to django admin site which do not required model?

I mean I need to make inteface for my app. But i dont want to create any tables in databas. Actually it going to work with solr items.

Or mayb开发者_高级运维e someone knows any dummy model which acts like a real model.. but is not related with database table?

So then i can overwrite admin templates.


Maybe you can define a model for your app and set the managed Meta option to False so that I won't create a db for you?

From documentation: https://docs.djangoproject.com/en/1.3/ref/models/options/#django.db.models.Options.managed

0

精彩评论

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