DJANGO 1.1 dynamic url on static javascript

2017-05-30 Thread lenin david
*Context* I am adding a static javascript file to my **ModelForm** on this way forms.py class SomeForm(forms.ModelForm): class Media: js = ('some-javascript.js',) *Problem* On this javascript I need send a GET request to a rest endpoint hosted on same application u

DJANGO 1.1 dynamic url on static javascript

2017-05-30 Thread lenin david
## Context I am adding a static javascript file to my **ModelForm** on this way forms.py class SomeForm(forms.ModelForm): class Media: js = ('some-javascript.js',) ## Problem On this javascript I need send a GET request to a rest endpoint hosted on same application