Dynamic forms with custom javascript

2012-04-10 Thread Pratik Mandrekar
I need to create a flow where the screen element transitions between several forms and video (Eg. Video - form - Video -form ...). So I don't render them as separate pages but rather as a single page with different visible and hidden elements that vary depending on the page state. The problem is

Re: Display Video inside a Text field -Django Templates

2012-04-28 Thread Pratik Mandrekar
player and use youtube api's if needed to render and load. Pratik Mandrekar On Apr 28, 7:56 am, Nikhil Verma wrote: > Hi All > > I have a TextField to which after applying css it looks like a markup > editor where i write some text, paste file links upload image etc.Now  if > th

Django Badges app

2012-05-25 Thread Pratik Mandrekar
Hi, I have been looking at the Badges app in django - https://github.com/eldarion/brabeion/blob/master/docs/usage.txt and while it seems to be good at tracking the user's badges It doesn't have an easy way to associate images with badges. I tried inheriting the BadgeDetails class and using i

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-28 Thread Pratik Mandrekar
Yes 0.0.0.0:8000 is correct. You would need to disable firewall for that port. In Ubuntu I used the Uncomplicated Firewall utility. You can try something like http://download.cnet.com/Windows-7-Firewall-Control/3000-10435_4-10618117.html for Windows 7 On Friday, July 27, 2012 6:42:18 PM UTC+

Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-10 Thread Pratik Mandrekar
Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs once a user has been authenticated using the Session based authen

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thank you for the response! As Nick & Jani have pointed out, I figured out that there is no RESTFul way for authentication. Neither is there one good way all clients could access the api i.e Browsers can use Session Based Authentication while Mobile clients are better of using API based/digest aut

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
gt; one of them. > > On Wed, Mar 13, 2013 at 8:06 PM, Pratik Mandrekar > wrote: > > Thank you for the response! > > > > As Nick & Jani have pointed out, I figured out that there is no RESTFul > way > > for authentication. Neither is there one good way a

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
of an openid > user which openid consumer is allowed to use the openid_provider for > authentication. > > And in the API Part, we use backend dedicated api users with a static ip > key combination. > You could use guardian for the access to resources. > > Hope that helps >

POSTing JSON to Tastypie from Android

2013-03-22 Thread Pratik Mandrekar
Hello, I'm unable to get the POST json to tastypie from an android http client to work. *I have tried with HttpURLConnection* urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setDoInput(true); urlConnection.setDoOutput(true); urlConnection.setRequestProperty("Content-

Re: POSTing JSON to Tastypie from Android

2013-03-23 Thread Pratik Mandrekar
ve you tried a breakpoint in the view? Might it be a CSRF problem? > > On Fri, Mar 22, 2013 at 2:22 PM, Pratik Mandrekar > > > wrote: > >> Hello, >> >> I'm unable to get the POST json to tastypie from an android http client >> to work. >> &

Re: POSTing JSON to Tastypie from Android

2013-03-23 Thread Pratik Mandrekar
hat you usually only use the first 5 of > them. (There are more, for when you want to be a pdb expert.) And > remember to start with a p or pp when you want to see the value of an > expression, lest your expression be interpreted as one of the other > commands. > > Bill > &

Re: POSTing JSON to Tastypie from Android

2013-03-24 Thread Pratik Mandrekar
bs (like > uploading files), but it looks as though the first method would work for > you. You'll have to dig down into the android API to see how to do it > there, but it probably involves a particular value in the content-type > header. > > Bill > > On Sat, Mar 2

How to build RESTful API for django.contrib.comments?

2013-03-29 Thread Pratik Mandrekar
Hello, I have a Generic Relationships in tastypie and incorporated the same in my resource for django.contrib.comments.models.Comment My resource looks like this. It works fine for GET without the generic

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-06-23 Thread Pratik Mandrekar
Has anyone been able to resolve this? I am facing the same issue. On Sunday, March 24, 2013 8:46:26 PM UTC+5:30, Dan Gentry wrote: > > Andrei, I once received this error when the problem was actually in > another python module being imported - in my case views.py. Hope this > helps, Dan -- Y

AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'

2013-07-02 Thread Pratik Mandrekar
Hello, I keep getting the error *AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module' *and the only trace available is as shown below: 'RegexURLResolver' object has no attribute '_urlconf_module' My Sentry Error reporting normally shows the above error along with anothe

Re: AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'

2013-07-02 Thread Pratik Mandrekar
to fix it. Thanks, Pratik On Tuesday, July 2, 2013 4:53:09 PM UTC+5:30, Tom Evans wrote: > > On Tue, Jul 2, 2013 at 12:14 PM, Pratik Mandrekar > > wrote: > > > > Hello, > > > > > > I keep getting the error AttributeError: 'RegexURLResolver'

Re: How to add CSRF to context when using test client???

2013-10-12 Thread Pratik Mandrekar
I'm getting a 401 (Which is technically an Authorization error) after doing this. c = Client(enforce_csrf_checks=True) response = c.get(a_url_that_requires_login) csrfmiddlewaretoken = '%s' %response.context['csrf_token'] response = c.post(url, data=json.dumps(body), content_type='applicatio