Writable Nested Serializers

2016-01-15 Thread Ashish Gupta
I am trying to use Writable Nested Serializer with AngularJS. I have image field in the related model. So its something like this: class TrackSerializer(serializers.ModelSerializer): class Meta:

OAuth Authentication

2015-06-19 Thread Ashish Gupta
I an using Django OAuth Toolkit and Django Rest for OAuth authentication for mobile app. For accessing any protected resource client id and secret of the app is required . Where should I store client secret. Storing in APK is unsafe as it can be decompiled. Even obfuscation can be reverse engin

error while using ActionForm with django-grappelli

2015-06-09 Thread Ashish Gupta
I am using Django 1.7.6 and django-grappelli 2.6.4 I have written custom admin actions and Action form which were working well in Django admin. But in grappelli when i select a admin action from the dropdown the pages reloads before i can select the values from the ActionForm in admin panel. Is

Re: Caching middleware causes default page caching

2010-11-26 Thread Ashish Gupta
yes, I mistakenly thought I need middleware to cache db objects. I guess following is enough for my needs, CACHE_BACKEND = 'locmem://' from django.core.cache import cache and cache.set('add_key', 'Initial value') >>> cache.add('add_key', 'New value') >>> cache.get('add_key') thanks On Fri, Nov

Announcing release of WoodRanch Agile Projects written in Django

2009-01-22 Thread Ashish Gupta
developing in Django and we are glad we choose Django as the framework. Thanks to all the people from Django community who participated in our Beta when we announced it on this list in October, 2008. Thanks to all the awesome Django developers and Django community for their help. Ashish Gupta CTO