Django web app reaching rest api and CORS problem

2016-11-02 Thread Oguz Yarimtepe
I have a django app and at the template part i have javascript function calling the rest api: http://komandor.app.gittigidiyor.net:8000/static/js/select-autofiller.js>"> At the js file i am filling a select box according to the returned json response $('#field1').change(function(){ var

filling model choices field according to language code

2010-08-30 Thread Oguz Yarimtepe
lform as def clean_faculty(self): data = self.cleaned_data['faculty'] return 0 the error related with faculty is gone. So it seems modelform is creating the choices with (0, "") which is defined at the model. How can i fix it like at the view part so that

matplotlib usage problem

2009-11-09 Thread Oguz Yarimtepe
ost probably because of the apache user is not able to access the X server. Indeed at my distro it doesn't have shell account. I don't want to define X access to apache user. So what do you suggest? -- Oguz Yarimtepe --~--~-~--~~~---~--~~ You receive

strange javascript problem at IE

2009-09-18 Thread Oguz Yarimtepe
ation. The code is working of Firefox but when i tested with IE, i dont see any messages. I didn't find a solution yet. Anybody encounter with the same issue before? -- Oguz Yarimtepe --~--~-~--~~~---~--~~ You received this message because you are subscr

strange javascript problem at IE

2009-09-18 Thread Oguz Yarimtepe
ation. The code is working of Firefox but when i tested with IE, i dont see any messages. I didn't find a solution yet. Anybody encounter with the same issue before? -- Oguz Yarimtepe --~--~-~--~~~---~--~~ You received this message because you are subscr

javascript problem

2009-09-17 Thread Oguz Yarimtepe
ng onload functions at templates at Django? Or should it normaly work but am i doing something wrong? -- Oguz Yarimtepe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

session management problem

2009-08-11 Thread Oguz Yarimtepe
st.user.is_authenticated(): return HttpResponse("nok") else: return HttpResponse("ok") So i am gettig alwasy nok on the screen. How can i keep accesing session values from not posted sites? -- Oguz Yarimtepe --~--~-~--~~~---~--

Re: ajax toolkit suggest request

2008-01-23 Thread Oguz Yarimtepe
> If you have not already, go to new.djangobook.com and read chapter 7 > on form processing. Make sure you understand it. Visit the excellent > newforms reference in the Django doc. Look at the onchange attribute > for checkboxes to see how to make a form autosubmit on a change to a > field, a

ajax toolkit suggest request

2008-01-20 Thread Oguz Yarimtepe
Hi, I need some ajax help at my Django application. I haven't used ajax before so it will be good if someone suggest me some toolkits so that i won't spend time reading all ajax things. One thing that i want to do is filling a text box by clicking a button. It will be good if another Djang