Thanks so much for your help. I'm sorry to ask another question, but I
am getting an error and have spent a few hours trying to figure it
out. Googling has not helped me.
Environment:
Request Method: GET
Request URL:
http://127.0.0.1:8000/
Django Version: 1.1.1
Python Version: 2.6.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'discvideos.videos']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
site-packages/django/core/handlers/base.py" in get_response
92. response = callback(request, *callback_args,
**callback_kwargs)
File "/Users/matt/Sites/discvideos/../discvideos/videos/views.py" in
home_page
21. tree = ET.parse(feed)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
xml/etree/ElementTree.py" in parse
862. tree.parse(source, parser)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
xml/etree/ElementTree.py" in parse
586. parser.feed(data)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
xml/etree/ElementTree.py" in feed
1245. self._parser.Parse(data, 0)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
xml/etree/ElementTree.py" in _default
1201. self._parser.ErrorColumnNumber)
Exception Type: ExpatError at /
Exception Value: undefined entity …: line 198, column 55
Here is my home_page:
http://utilitybase.com/paste/23116
http://diveintopython3.org/xml.html seems to be explaining the problem
but I haven't gotten the code there to work for me yet. Thank you.
On Dec 5, 11:40 pm, Sam Lai <
samuel....@gmail.com> wrote:
> Inline.
>
> 2009/12/6 sleepjunk <
sleepj...@gmail.com>:
>
> > Thank you for the response. I don't believe I explained well enough
> > exactly what I'm trying to do.
>
> > I have table Video with a field vimeo_code. Each vimeo_code has its
> > own XML file. The XML file I used in my views.py is just a random
> > video I saw on vimeo. I need to replace the vimeo_code so the XML file
> > I'm parsing looks likehttp://
vimeo.com/api/v2/video/vimeo_code.xml