Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django 创建了一个子页面,得到了500分_Django - Fatal编程技术网

Django 创建了一个子页面,得到了500分

Django 创建了一个子页面,得到了500分,django,Django,正如标题所述,我创建了一个“子”页面,BAM:500。以下是我认为是实际的回溯,以及500页上的一些信息,我认为这些信息与主题密切相关 有什么我能做的吗?我试图手动删除页面后,没有占上风。(别担心,我修改了数据库的一个副本) 请确保您的django mptt版本是0.5.1我在我的ubuntu机器上运行了“sudo pip install django mptt--upgrade”,并获得了“Requirement ready ready-update:django mptt in*”,我应该尝

正如标题所述,我创建了一个“子”页面,BAM:500。以下是我认为是实际的回溯,以及500页上的一些信息,我认为这些信息与主题密切相关

有什么我能做的吗?我试图手动删除页面后,没有占上风。(别担心,我修改了数据库的一个副本)


请确保您的
django mptt
版本是
0.5.1

我在我的ubuntu机器上运行了“sudo pip install django mptt--upgrade”,并获得了“Requirement ready ready-update:django mptt in*”,我应该尝试手动重新安装吗?或者这样做危险吗?
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.