0
正如標題所述,我創建了一個「子」頁面和BAM:500.以下是我相信的實際回溯,以及我相信500頁上的一些信息與這個話題密切相關。創建了一個子頁面並獲得了一個500
有什麼我可以做的嗎?我試圖手動刪除該頁面後,以無任何爭議。 (別擔心,我修改了數據庫的副本)。
AssertionError at /admin/cms/page/
Negative indexing is not supported.
Request Method: GET
Request URL: http://192.168.56.101:8080/admin/cms/page/
Django Version: 1.3.1
Exception Type: AssertionError
Exception Value:
Negative indexing is not supported.
Exception Location: /usr/local/lib/python2.7/dist-packages/django/db/models/query.py in __getitem__, line 157
Python Executable: /usr/bin/python
Python Version: 2.7.3
Environment:
Request Method: GET
Request URL: http://192.168.56.101:8080/admin/cms/page/
Django Version: 1.3.1
Python Version: 2.7.3
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.staticfiles',
'cms',
'menus',
'mptt',
'south',
'cms.plugins.text',
'cms.plugins.picture',
'cms.plugins.link',
'cms.plugins.file',
'cms.plugins.snippet',
'cms.plugins.googlemap',
'sekizai',
'registration',
'cms_themes']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py" in wrapper
307. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
93. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
79. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner
197. return view(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/cms/admin/pageadmin.py" in changelist_view
657. cl.set_items(request)
File "/usr/local/lib/python2.7/dist-packages/cms/admin/change_list.py" in set_items
198. children[-1].last = False
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in __getitem__
157. "Negative indexing is not supported."
Exception Type: AssertionError at /admin/cms/page/
Exception Value: Negative indexing is not supported.
我在我的ubuntu機器上運行'sudo pip install django-mptt --upgrade',並得到'Requirement already up date:django mptt in *',我應該嘗試手動重新安裝嗎?或者這樣做有危險嗎? – abkai