I have a relatively simple model in my Django project (I should note that the wording is weird in that the app itself is called 'games' and within it the model
my models class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): print(phone_number, 'phone_number')
I'm new in Django. I have 2 class tech_system adn equiptment in models.py class tech_system(models.Model): id_tech_system = models.BigAutoField(db_column='I
I try to install Django channels and I get this error how to fix it? =============================DEBUG ASSISTANCE============================= If you are s
I have two classes: Author and Book. I want class Authors to have an attribute that contains all books written by the said author, as referenced to as foreign k
I have a django project that works very well and shows all media files uploaded from the admin when debug = True but immediately i turn change to debug = False
I am stuck with my TitanDB, Django1.8 and Mogwai0.7.7 package. I have Graph database titan/cassandra on localhost dev machine, and after creating wrong queries
I am working on upgrading a Django website from Django 1.8 to Django 2.2 and have come across a problem when trying to delete an object from the Django admin ch
I am using drf-yasg package to integrate Swagger with DRF. As documentation said I used @swagger_auto_schema decorator to manually customize auto-generated endp
I have one model Dataset and another one called DatasetReview, where DatasetReview has a foreign key connection to Dataset. I would like to display all of the D
I can't make a simple Django project work at all. I get the same error as listed in this question which I found: Python/Django =- ModuleNotFoundError: No modul
I am having issues with my JavaScript code, and I am trying to get the image crop (picture) below to pop up but when I click the Choose File button but nothing
I have recently deployed a Django project to Heroku. While testing out the functionality in the browser, I've come across a new error when attempting to render
I have a angular app that sends json data to a django backend. The django app save the json data in to a DB and later pulls it out to send it back to the angula
I am trying to check if a user has a permission, which I have defined in the class Meta of the model, with a specific codename. At the moment I have: if reques
I am making use of file fields in my model and I want it to be saved as username_field.jpeg (or whatever format it is in), for example for rent_agreement I want
I am using django-rest-framework and recently I encountered a problem. I need to post such request and get 2 objects created: { "lease": 28, "date": [
I was following this tutorial on testdriven.io in order to test some async functions in django and I need to add som decorators in order to enable my async test
Sorry for my English. I have some data from another server, but I need to output this data like JSON. if i print response in console: { 'responseStatus': {
I am using Django + mongoengine I want to update the books (embedded document) count in my Bookscollection document. I want the update query to return the full