Django rest framework - error 'TokenAuthentication' object has no attribute 'has_permission

2015-11-28 Thread Shekar Tippur
Hello, I am trying to use oauth2 provider as described in http://django-oauth-toolkit.readthedocs.org/en/latest/rest-framework/getting_started.html#step-1-minimal-setup 'TokenAuthentication' object has no attribute 'has_permission. Curl - curl -H "Authorization: Bearer $access_token" -H "Con

Re: Unresolved references error in Pycharm Community edition

2015-11-28 Thread Dan Tagg
Agreed, but it is very good to use virualenv, a requirements file and then set the PyCharm project interpreter to your virtualenv one, then PyCharm picks up all the imports and can alert you if you're importing something wrongly or if you want to view the declaration of a function. I also really li

Re: Unresolved references error in Pycharm Community edition

2015-11-28 Thread aftnix
On শুক্রবার 27 নভে 2015 03:04 অপরাহ্ণ, Sneha R wrote: Hi, I am new to Pycharm and I am trying to run a Django project in Pycharm Community edition 5.0.1 but there are few import errors saying ''Unresolved reference'" . I am using Python 2.7. How do I solve this error ? -- You received this mess

Re: Correct way to do async forms

2015-11-28 Thread Abu Ashraf Masnun
Hi, If you want to do it async, you need to use JavaScript to make ajax requests. And you need an endpoint that would respond to your ajax request. You can use the same django view to both serve the html and handle the JS request. However, that might make the business logic more complex. I wou