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
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
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
3 matches
Mail list logo