python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Hi guys! simple error with AUTH_USER_MODEL
I created a User model in apps.accounts.models,
added it to installed_apps
specified it as AUTH_USER_MODEL
INSTALLED_APPS = [
'apps.accounts'
]
AUTH_USER_MODEL = 'accounts.User'
and got an error...
Kana
Votes: 0
Answers: 1
Django JWT auth without migration
I have 2 projects written by Django : 1- Authentication(P1) and 2- my_API(P2). in P1 I use DRF-simplejwt and 'dj-rest-auth' to register,login,logout,reset password ,... for P2 I need authentication. M...
Ali Darvishi
Votes: 0
Answers: 1
AttributeError: 'NoneType' object has no attribute '_meta' while updating data using nested serializers via PATCH call in Django Rest Framework
I want to update the Model data using nested serializers via PATCH call in DRF.
I have custom User Model, Country, City, Detail Model.
I have MainUserSerializer, CountrySerializer, CitySerializer and ...
Neha AK
Votes: 0
Answers: 1
Django - BaseSerializer.is_valid() missing 1 required positional argument: 'self'
I am creating a base viewset class and trying to use it in two classes.
The viewset has a create method which uses the get_serializer_class() to get the serialzer and creates the object.
But the is_va...
Sardar Faisal
Votes: 0
Answers: 1