摘要:
1.在setting.py文件中将'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware'添加至MIDDLEWARE_CLASSES中2.INSTALL_APPS中确定包含了'django.contrib.admin','django.contrib.flatpages','django.contrib.sites'3.运行python manage.py syncdb 创建必要的数据表5.打开admin后台看是否有flatpages项setting.py中的 阅读全文