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
I have one third-party API (a URL). To access that URL I have to give basic authentication which is username and password. How can I get data from that API usin
I am new to django and graphql, I am trying use graphql in django using the the instructions given in this site. https://docs.graphene-python.org/projects/djan
I am using windows 10 command line for a django project using python34 however, I am facing difficulties with SQL. I have already installed mysqlclient using
I have a periodic task scheduled to run every 10 minutes. Sometimes this task completes in 2-3 minutes, sometimes it takes 20 minutes. Is there any way using