Skip to content
Advertisement

Tag: django-models

how to create row in model based on data fetched from JSON request from third-party crawling with “best practice”

describe the problem: I want to crawl data from dataforseo , and save them directly in model database through model.create() method with having multi model with multi relation with models so for instance in model A have ManyToMany relation with model B ManyToMany relation with model C ManyToMany relation with model D and model B have relation with model C

How to inherent from a class that is already inherited from AbstractBaseUser in Django

I am trying to make an inheritance from a User class that is already inherited from the AbstractBaseUser but I am receiving an error that is telling me AUTH_USER_MODEL refers to model ‘authentication.User’ that has not been installed and I am sure I added the AUTH_USER_MODEL = ‘authentication.User’ in settings.py, I wonder how can I superpass this error and successfully

Advertisement