Errors I got in django cms configurating process
2012-09-17 09:05
381 查看
Just want to find some templates to use in django cms, then I downloaded "django-cms-themes pluggable app", followed the steps (http://www.djangocmsthemes.com/getting-started/):
install the django-cms-themes pluggable django app. The best way to do this is to use the command "pip install django-cms-themes" (if you are using pip).
Add 'cms_themes' to INSTALLED_APPS in your settings file.
Make sure you have a setting in your settings.py file called PROJECT_DIR, which should point to the root of your project in the filesystem, i.e. PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
Run "python manage.py syncdb" (or "python manage.py migrate" if you have south installed).
After this, there is no problem for python manage.py syncdb --all, but with
python manage.py migrate --fake. Similar erros as followed:
! Migration (cms, 0023_plugin_table_naming_
function_changed) should not have been applied before (googlemap, 0001_initial) but was.
...
Did not find some help from Internet (seems I need to study and understand what South actually does...). Then I decide to change the package import order in the
INSTALLED_APPS. based on the error messages.
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'mptt',
'menus',
'south',
'sekizai',
'cms.plugins.file',
'cms.plugins.flash',
'cms.plugins.googlemap',
'cms.plugins.link',
'cms.plugins.picture',
'cms.plugins.snippet',
'cms.plugins.teaser',
'cms.plugins.text',
'cms.plugins.video',
'cms.plugins.twitter',
'cms_themes',
'cms',
)
Note that 'cms' is moved from the top of 'mptt' to the bottom. Then all the migration errors disappeared!
install the django-cms-themes pluggable django app. The best way to do this is to use the command "pip install django-cms-themes" (if you are using pip).
Add 'cms_themes' to INSTALLED_APPS in your settings file.
Make sure you have a setting in your settings.py file called PROJECT_DIR, which should point to the root of your project in the filesystem, i.e. PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
Run "python manage.py syncdb" (or "python manage.py migrate" if you have south installed).
After this, there is no problem for python manage.py syncdb --all, but with
python manage.py migrate --fake. Similar erros as followed:
! Migration (cms, 0023_plugin_table_naming_
function_changed) should not have been applied before (googlemap, 0001_initial) but was.
...
Did not find some help from Internet (seems I need to study and understand what South actually does...). Then I decide to change the package import order in the
INSTALLED_APPS. based on the error messages.
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'mptt',
'menus',
'south',
'sekizai',
'cms.plugins.file',
'cms.plugins.flash',
'cms.plugins.googlemap',
'cms.plugins.link',
'cms.plugins.picture',
'cms.plugins.snippet',
'cms.plugins.teaser',
'cms.plugins.text',
'cms.plugins.video',
'cms.plugins.twitter',
'cms_themes',
'cms',
)
Note that 'cms' is moved from the top of 'mptt' to the bottom. Then all the migration errors disappeared!
相关文章推荐
- The errors I got before seeing the acutal django cms page...
- Import errors in django-cms
- Common errors in django
- 事件查看器:Too many errors in select loop. Child process exiting
- 安装django-cms报错,ImproperlyConfigured: LANGUAGE_CODE "en-us" must have a matching entry in LANGUAG解决办法
- Xenapp appcenter初始化报错:Errors occurred when using XAC-1 in the discovery process
- Print to the console in django without UnicodeEncodeErrors
- Apache无法启动 在一个非套接字上尝试了一个操作。 : Too many errors in select loop. Child process exiting.
- This generally means that another instance of this process was already running or is hung in the deb
- Django administration后台管理添加页面保持中文出错解决办法,'ascii' codec can't encode characters in position 0-4:
- clojure-jack-in : error in process filter: open-network-stream: make client process failed: Connecti
- Bash Commands - Using the [[ ... ]] rather than [ ... ] can prevent many logic errors in scripts.
- Django的第一个例子:简单的内容管理系统CMS
- Create superuser in Django
- rpmdb: Thread/process 9180/139855524558592 failed: Thread died in Berkeley DB library
- django in的一点心得
- 报错 django.db.migrations.exceptions.InconsistentMigrationHistory
- django inline
- While installing plugin in eclipse luna, “Unable to acquire PluginConverter service” and “No repository found” errors appear in logs
- Describe the process of opening a file in Linux system, what actions the operating system w