DRF without login

26 views
Skip to first unread message

Prabath Peiris

unread,
Aug 13, 2015, 5:06:26 PM8/13/15
to Django users
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)

Thanks 
Prabath 

Xavier Ordoquy

unread,
Aug 13, 2015, 5:11:35 PM8/13/15
to django...@googlegroups.com

Le 13 août 2015 à 23:06, Prabath Peiris <pra...@peirisclothing.com> 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)

Regards,
Xavier,
Linovia.

Prabath Peiris

unread,
Aug 14, 2015, 3:45:27 PM8/14/15
to Django users
I set this in my setting.py file and it worked 

REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': [],
    'DEFAULT_PERMISSION_CLASSES': [],
}

Thank You 
Prabath 
Reply all
Reply to author
Forward
0 new messages