contenttypes

stale content types while syncdb in Django

拟墨画扇 提交于 2020-01-12 04:32:46
问题 While I'm trying to syncdb for my django project, I'm seeing following complains: The following content types are stale and need to be deleted: myapp | Any objects related to these content types by a foreign key will also be deleted. Are you sure you want to delete these content types? If you're unsure, answer 'no'. While I've also read the similar problem django-syncdb-many-to-many-stale, but I cannot risk myself typing yes since I'm on prod instance. Would yes safely delete those stale

Orchard CMS - Extending Users with Fields - exposing values in Blog Post

只谈情不闲聊 提交于 2019-12-11 00:28:32
问题 I'd like to extend the users content definition to include a short bio and picture that can be viewed on every blog post of an existing blog. I'm unsure of what the best method to do this is. I have tried extending the User content type with those fields, but I can't seem to see them in the Model using the shape tracing tool on the front end. Is there a way to pass through fields on the User shape in a blog post? If so, what is the best way to do it? 回答1: I also have done this a lot, and