visit index error "IndexError at /"

27 views
Skip to first unread message

Zhigoo Wang

unread,
Mar 13, 2012, 4:48:31 AM3/13/12
to django-lfc
Hi after install lfc, the server run well, but i visit the site i meet
such error
IndexError at /
list index out of range
Request Method: GET
Request URL: http://10.1.6.14/
Exception Type: IndexError
Exception Value:
list index out of range
Exception Location: /root/lfc-installer/parts/django/django/db/models/
query.py in __getitem__, line 160
Python Executable: /usr/bin/python
Python Version: 2.7.2
Python Path: ['/root/lfc-installer/eggs/django_lfc-1.0.5-py2.7.egg', '/
root/lfc-installer/eggs/lfc_blog-1.0-py2.7.egg', '/root/lfc-installer/
eggs/Pillow-1.7.6-py2.7-linux-x86_64.egg', '/root/lfc-installer/eggs/
djangorecipe-1.1.2-py2.7.egg', '/root/lfc-installer/eggs/
zc.recipe.egg-1.3.2-py2.7.egg', '/root/lfc-installer/eggs/
zc.buildout-1.5.2-py2.7.egg', '/root/lfc-installer/eggs/
distribute-0.6.25-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/
lfc_theme-1.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/
feedparser-4.1-py2.7.egg', '/root/lfc-installer/eggs/tagging-0.5-
py2.7.egg', '/usr/local/lib/python2.7/dist-packages/
django_workflows-1.0.2-py2.7.egg', '/usr/local/lib/python2.7/dist-
packages/django_portlets-1.0-py2.7.egg', '/usr/local/lib/python2.7/
dist-packages/django_pagination-1.0.7-py2.7.egg', '/usr/local/lib/
python2.7/dist-packages/django_contact_form-0.3-py2.7.egg', '/usr/
local/lib/python2.7/dist-packages/django_permissions-1.0.3-py2.7.egg',
'/root/lfc-installer/parts/django', '/root/lfc-installer', '/root/lfc-
installer/lfc_project', '/root/lfc-installer/bin', '/usr/local/lib/
python2.7/dist-packages/django_cms-2.2-py2.7.egg', '/usr/local/lib/
python2.7/dist-packages/django_sekizai-0.5-py2.7.egg', '/usr/local/lib/
python2.7/dist-packages/django_mptt-0.5.2-py2.7.egg', '/usr/local/lib/
python2.7/dist-packages/html5lib-0.95-py2.7.egg', '/usr/local/lib/
python2.7/dist-packages/South-0.7.3-py2.7.egg', '/usr/local/lib/
python2.7/dist-packages/django_classy_tags-0.3.4.1-py2.7.egg', '/usr/
local/lib/python2.7/dist-packages/django_lfc-trunk-py2.7.egg', '/usr/
local/lib/python2.7/dist-packages/lfc_theme-1.0-py2.7.egg', '/usr/
local/lib/python2.7/dist-packages/feedparser-4.1-py2.7.egg', '/usr/
local/lib/python2.7/dist-packages/django_tagging-0.3.1-py2.7.egg', '/
usr/local/lib/python2.7/dist-packages/django_workflows-1.0.2-
py2.7.egg', '/usr/local/lib/python2.7/dist-packages/
django_portlets-1.0-py2.7.egg', '/usr/local/lib/python2.7/dist-
packages/django_pagination-1.0.7-py2.7.egg', '/usr/local/lib/python2.7/
dist-packages/django_contact_form-0.3-py2.7.egg', '/usr/local/lib/
python2.7/dist-packages/django_permissions-1.0.3-py2.7.egg', '/usr/
local/lib/python2.7/dist-packages/PyLucid-0.11.2-py2.7.egg', '/usr/
local/lib/python2.7/dist-packages/django_processinfo-0.6.2-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_tools-0.21.1-
py2.7.egg', '/usr/local/lib/python2.7/dist-packages/
django_dbpreferences-0.4.4-py2.7.egg', '/usr/local/lib/python2.7/dist-
packages/python_creole-1.0.1-py2.7.egg', '/usr/local/lib/python2.7/
dist-packages/Django-1.3.1-py2.7.egg', '/usr/local/lib/python2.7/dist-
packages/django_dbtemplates-1.1.1-py2.7.egg', '/usr/lib/python2.7', '/
usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/
python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/
python2.7/dist-packages', '/usr/local/lib/python2.7/dist-packages/
setuptools-0.6c11-py2.7.egg-info', '/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-
packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/
lib/pymodules/python2.7']
Server time: Tue, 13 Mar 2012 09:43:17 +0100

can you help us two handle this problem.
thx...

zhigoo

Kai Diefenbach

unread,
Mar 13, 2012, 4:56:24 AM3/13/12
to djang...@googlegroups.com
Hi, 

please provide the whole traceback.

Regards
Kai
--
IQ++
Tel: +49 361 / 6636700
Fax: +49 361 / 6636702
Mail: kai.die...@iqpp.de
Web: http://www.iqpp.de
Skype: kai.diefenbach

Zhigoo Wang

unread,
Mar 13, 2012, 6:04:35 AM3/13/12
to djang...@googlegroups.com
Hi  can you seeing the error page ?
and did you need more info of my env ?

thx

On Tue, Mar 13, 2012 at 4:59 PM, Zhigoo Wang <zhigo...@gmail.com> wrote:
in attach 
3Q 

Kai Diefenbach

unread,
Mar 13, 2012, 6:17:19 AM3/13/12
to djang...@googlegroups.com
Hi, 

I need the whole traceback when you have set DEBUG to true.

With the information below I can't see what's wrong.

Kai

Zhigoo Wang

unread,
Mar 13, 2012, 6:22:20 AM3/13/12
to djang...@googlegroups.com
Trace Back:

Environment:

Request Method: GET
Request URL: http://10.1.6.14/
Django Version: 1.1.4
Python Version: 2.7.2
Installed Applications:
['lfc_theme',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.flatpages',
 'django.contrib.sitemaps',
 'django.contrib.comments',
 'lfc',
 'portlets',
 'tagging',
 'contact_form',
 'pagination',
 'workflows',
 'permissions',
 'lfc_blog']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.common.CommonMiddleware',
 'pagination.middleware.PaginationMiddleware',
 'lfc.utils.middleware.LFCMiddleware')


Traceback:
File "/root/lfc-installer/parts/django/django/core/handlers/base.py" in get_response
  94.                     response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/root/lfc-installer/eggs/django_lfc-1.0.5-py2.7.egg/lfc/utils/middleware.py" in process_view
  112.             portal = get_portal()
File "/root/lfc-installer/eggs/django_lfc-1.0.5-py2.7.egg/lfc/utils/__init__.py" in get_portal
  128.         portal = lfc.models.Portal.objects.filter()[0]
File "/root/lfc-installer/parts/django/django/db/models/query.py" in __getitem__
  160.             return list(qs)[-1] #point

Exception Type: IndexError at /

Kai Diefenbach

unread,
Mar 13, 2012, 7:01:09 AM3/13/12
to djang...@googlegroups.com
The Portal is missing. Seems to me that you have not run lfc_init, see: 


Regards
Kai

Zhigoo Wang

unread,
Mar 13, 2012, 11:05:29 PM3/13/12
to djang...@googlegroups.com
Wa o... IT works。lfc is really cool...

Thank you very much Kai

zhigoo

Reply all
Reply to author
Forward
0 new messages