我运行Pinax0.9.2abasic初级项目。当我转到管理面板更改站点名称时,它会正确保存并相应地显示在网页上。但是在我运行python manage.py syncdb
之后,我得到了以下输出,并且我的页面标题被重置回example.com网站。在
Creating tables ...
Creating table outfits_outfit
Installing custom SQL ...
Installing indexes ...
Installed 1 object(s) from 1 fixture(s)
我必须在管理面板中添加我最近的操作历史记录。在
编辑:问题是Pinax示例项目已经在Fixture文件夹中附带了init_data JSON文件。当然,它用example.com网站.
在管理中编辑站点实例
导出它:
manage.py dumpdata sites
为
中的站点添加JSON代码fixtures/initial_data.json
每次运行syncdb时,
fixtures/initial_data.json
都会被加载。在相关问题 更多 >
编程相关推荐