Re: django handling requests - getting CSRF verification failed. Request aborted.

2015-05-28 Thread Shekar Tippur
Larry, I think I needed to append as_view() to the url. url(r'^setProfile/', AddToUserProfile.as_view()), I will try the other curl option as well. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: django handling requests - getting CSRF verification failed. Request aborted.

2015-05-28 Thread Larry Martell
On Thu, May 28, 2015 at 9:31 AM, Shekar Tippur wrote: > Hello, > > I am trying to post a request via curl. I get a CSRF verification failed > message. > > Here is the entry in my urls.py > > url(r'^setProfile/', AddToUserProfile), > > > class

django handling requests - getting CSRF verification failed. Request aborted.

2015-05-28 Thread Shekar Tippur
Hello, I am trying to post a request via curl. I get a CSRF verification failed message. Here is the entry in my urls.py url(r'^setProfile/', AddToUserProfile), class AddToUserProfile(generics.ListAPIView): queryset = UserPrefs.objects.all() serializer_class = UserPrefSerializer