Re: How not to explicly write very very big json object when rendering page in django template ?

2015-01-15 Thread Matlau Issu
OK. AJAX is the solution. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-

Get django default model field value to be a parent attribute value

2014-11-16 Thread Matlau Issu
I want the default modB localField value to be the modA wantedField value corresponding to the foreign key. This would gives : class modA(models.Model): wantedField = models.CharField(max_length=9) [ ... other fields ...] def asDefault(): return wantedField

Re: How not to explicly write very very big json object when rendering page in django template ?

2014-11-03 Thread Matlau Issu
2014 at 6:59 PM, Matlau Issu > wrote: > >> I mean, in my views.py i do : >> return render(request, 'myapp/detail.html', { pydic_jsonized : >> json.dumps(python_dict) } ) >> >> then in my html, i get pydic_jsonized with >> >> var jso

How not to explicly write very very big json object when rendering page in django template ?

2014-11-02 Thread Matlau Issu
I mean, in my views.py i do : return render(request, 'myapp/detail.html', { pydic_jsonized : json.dumps(python_dict) } ) then in my html, i get pydic_jsonized with var json = {{ pydic_jsonized }}; But pydic_jsonized is just furiously big, and is written as harded coded data in the

Re: Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Matlau Issu
import sys ; print sys.path gives me : ['C:\\Python27\\lib\\site-packages\\pip-1.5.6-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\psutil-2.1.1-py2.7-win32.egg', 'C:\\Windows\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\li

Copied/pasted django site from windows 7 to 8.1 issu.

2014-08-15 Thread Matlau Issu
Hi everyone, All in the title, My site works perfectly on my windows 7 environnement. I just dont figure out what the problem is. I do not have any special characters in the considered path. Any idea ? Thanks Tracesbacks : _