Im new to Django and im trying to use django in a Persian app, therefore I need users pick i a date(jalali date) and send it to server. I've used django-jalali
To solve my (kinda specific) problem, I found that I have to use Django ArrayField: https://docs.djangoproject.com/en/2.1/ref/contrib/postgres/fields/#arrayfiel
Django 2.2. Model Definition. class BlockPeriod(BaseModel): price = models.DecimalField(max_digits=20, decimal_places=10) margin = models.DecimalField(m
I am using Django to implement my web page; in this page I have a classic item list that I manage with a for loop. I also implement a filter as a form (with sea
I have django project that has a staticfile with the structure staticfiles/bundles/static/js/main.[hash of 8 random characters].js I want to get the name of mai
How to retrieve the data from Django queryset for use in a variable When an output is received in below form after running the query <QuerySet [{'name': 'J
I've got a bunch of reviews in my app. Users are able to "like" reviews. I'm trying to get the most liked reviews. However, there are some popular users on the
I'm creating my blog with django, and trying to make posts urls in slug way, after I created the models and called it in views it showed me this error: [TypeErr
models.py class Organisation(models.Model): """ Organisation model """ org_id = models.AutoField(unique=True, primary_key=True) org_name = m
Hi everyone I deployed django with channels via daphne for websocket and gunicorn for normal request http with reverse proxy nginx, I have a problem that has no
so i want when i upload a file, the file will go to media/mp3 not media/txt. how to change save file location? views.py: def homepage(request): if request.m
I try build user table with delete option I use django table2 to view the list and when I click on delete button and delete user I want to render only the tab
I am using Django-storages for storing static content in the cloud and CKEditor for a text editor and used a RichTextUploadingField field. The problem is when I
I have issue with retrieving data from POST in my django view. I send React form values with axios to my django backend. I believe data gets put into POST but s
I am making simple image of my python Django app in Docker. But at the end of the building container it throws next warning (I am building it on Ubuntu 20.04):
I am creating a quiz app using Django. The requirements are: I need to first display all the topics available for the quiz on the homepage. Clicking on a partic
I've integrated Reactjs with Django by having a function to access build/index.html. The below codes show how I do that. config/urls.py urlpatterns = [ ..
I have a Django app for online cockfights. Users can bet if their accounts on the site have balance. They do that by first buying a digital product "Online Sabo
I'm new in Django Channels and I'm trying to build a simple chat app. But when I'm trying to test my async Websocket Consumer I run into the following exception
I have encountered a problem while trying to run my django project on a new Docker container. It is my first time using Docker and I can't seem to find a good w