I set this in my setting.py file and it worked
On Thursday, August 13, 2015 at 5:11:35 PM UTC-4, Xavier Ordoquy wrote:
-- REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [],
'DEFAULT_PERMISSION_CLASSES': [],
}
Thank You
Prabath
On Thursday, August 13, 2015 at 5:11:35 PM UTC-4, Xavier Ordoquy wrote:
Le 13 août 2015 à 23:06, Prabath Peiris <pra...@peirisclothing.com> a écrit :HiHiI am trying to implement a DRF in existing django project. I installed the drf and set up APiView (class based) and add the get() to the class. When I call this get method I get an error as "Exception Value: no such table: auth_user" and also create a db.sqlite3 database. how can I just simply have a api (without models or without any authentications)You probably want to turn off the DRF authentication / permissions system (http://www.django-rest-framework.org/api-guide/ and httpauthentication/#setting-the- authentication-scheme ://www.django-rest-framework. )org/api-guide/permissions/# setting-the-permission-policy . ThanksPrabathRegards,Xavier,Linovia.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/703dde50-11da-4da9-a39c-e21bbbf5491d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment