> Le 13 août 2015 à 23:06, Prabath Peiris <[email protected]> a écrit :
> 
> Hi 

Hi

> I 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/authentication/#setting-the-authentication-scheme
 
<http://www.django-rest-framework.org/api-guide/authentication/#setting-the-authentication-scheme>
 and 
http://www.django-rest-framework.org/api-guide/permissions/#setting-the-permission-policy
 
<http://www.django-rest-framework.org/api-guide/permissions/#setting-the-permission-policy>).

> Thanks 
> Prabath 
> 

Regards,
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 [email protected].
To post to this group, send email to [email protected].
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/40D4B51A-F981-4E60-A807-ABE1A1462D36%40linovia.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to