كيف اولد ملف xml ويكون بامتدام owl
ربما تحتاج لكتابة serializer خاص بك ، أو إستخدام django-rdf
(map share people)
فضلا لاتقم بمراسلتي من أجل أسئلة لها أقسامها في المنتدى حتى تعم الفائدة على الجميع وللحصول على إجابات أفضل من أعضاء أكثر خبرة.
Weblog
@bitbucket
@xmonader
المشكلة لم اعرف طريقة الاستخدام
وملف read me فارغ
طيب ما رأيكم بعملها عبر الدالة render_to_string
لكن المشكلة الكود يعطيني خطأ
def html(request):
context = {'inf': Itype.objects.all()}
return render_to_string('smg/owl.html',context)جربها على النحو التالي:
def html(request):
ctext = Context({'inf': Itype.objects.all()})
return render_to_string('smg/owl.html', context_instance=ctext)Everything will be fine when we TALK LESS, DO MORE
مازالت المشكلة قائمة
'SafeText' object has no attribute 'status_code'
حاليا استخدم الاصدار 1.5
وجربت الاصدار 1.4
وايضا نفس المشكلة مع تغيير كلمة SafeText الى كلمة اخرى
نسيت اضافة HttpResponse إليها - طبعا ستحتاج لعمل import لها - بهذا الشكل المفترض ان تعمل:
def html(request):
ctext = Context({'inf': Itype.objects.all()})
return HttpResponse(render_to_string('smg/owl.html', context_instance=ctext))أو يمكنك مباشرة استخدام render_to_response بدلا من render_to_string!
Everything will be fine when we TALK LESS, DO MORE
نفس الخطأ !!!!