dear all 

i have this error:Request Method: 

GET Request URL: http://127.0.0.1:8000/xmlmenu/ 
Exception Type: AttributeError Exception Value: 'str' object has no
attribute 'write' Exception 
Location: /var/www/xml-python/xmleditor/../xmleditor/menues/views.py in
index, line 14

when i wrote this view:

def index(request):
    output=open( '/var/www/xml-python/xmleditor/test.xml','w')
    output.write('<?xml version="1.0" encoding="iso-8859-1"?>')
    output.write('<content_topnav>')
    latest_menu_list = Menu.objects.all().order_by('-id')
    output = ', '.join([m.menu_text for m in latest_menu_list])
    output.write(output)





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to