Questions tagged [django]
Django is a Python-based framework for creating web applications.
70 questions with no upvoted or accepted answers
2
votes
0
answers
378
views
Task for all objects in model with datetime operations
I created this quite important piece of code, but I am not pretty sure is it good enough.
Goal:
I have a big task for a database and have decided to use Django-Celery. I want to go through all ...
1
vote
0
answers
89
views
Django Google Authentication App using OAuthLib and DRF
Context
I've been working on a Django-based Google Authentication application, designed to manage OAuth authentication without relying on libraries such as ...
1
vote
0
answers
77
views
Two steps changing email system Django + Redis
I created a two steps changing email system. Firstly I show you the concept how it should work and then the code. I am using Django and React.
Main question: is it a good way to do it? Is it fine to ...
1
vote
0
answers
29
views
Django data migration - worked, but far from performant
Background: I am learning web dev and decided on the Django framework as an excuse to learn Python at the same time. (Background is stats with lots of R and ...
1
vote
0
answers
53
views
Reduce db queries
my models
...
1
vote
0
answers
131
views
Execute a third party API call for every object in my queryset in a Django ListView
I have a ListView that displays every customer (class Cliente in my code) of a company.
Every ...
1
vote
0
answers
23
views
processing webhook request coming from a 3rd party application
I need some help to evaluate whether I am doing it right. The scenario is, a 3rd party application is sending a webhook request after a successful payment but the problem is that sometimes this ...
1
vote
0
answers
31
views
Django Models for an ESL school
I am working on building a management interface for an ESL (English as a Second Language) institute, basically it is a language school where people learn English.
I have prepared my models for each ...
1
vote
0
answers
52
views
List some things that to make it less verbose and more robust
I am quite new in django forms. I am woking on problem where in function name generate_outage_form passed two parameters name settings and segment Now I have to make function less verbose and more ...
1
vote
0
answers
31
views
How to eliminate repetitive serializers and API Viewsets in Django Rest Framework
I built an backend using Django and the django-rest-framework and realized that a lot of the code snippets (mainly classes) are similar. Is there any better way? I tried to wrap them into a very ...
1
vote
0
answers
3k
views
One form for multiple models in Django
I must allow user to add city, state and country if it is not already present in the drop-down. Then I must create the respective model instances and then update the city in the userprofile. The below ...
1
vote
0
answers
43
views
normalizing django models
i try to make an app for a mobile store
...
1
vote
0
answers
33
views
Modelling articals and authors in Django
I need to understand if the way I am modelling data in a Django application is correct. The idea is of a news site that has sources, authors and articles.
I want:
...
1
vote
0
answers
124
views
Document storage models and Django Unit Testing
My question is about proper testing procedures for Django models.
The project is for a startup building a very basic HR system due to excel sheet data integrity problems. I am trying to figure out the ...
1
vote
0
answers
48
views
Listing all related details of a model object through Django ORM
How can my solution be improved / optimized?
explaination of db models :
thinkpad is a equipment of laptop subcategory.and ...
1
vote
0
answers
659
views
Putting a multichoicefield under a dropdown button
I am building a web app in Django where one of the form fields is a multiplechoicefield from a many2many object that I use to select users that are allowed to edit the post. In standard form the field ...
1
vote
0
answers
4k
views
Django model for an inventory management system
The usecase of my app I am trying to build is about Inventory Management System for a single company. I have
attached a layout depicting what table or model should look like. I have designed the model ...
1
vote
0
answers
536
views
Using 12-Factor Configuration Standard in a Python (Django) Project
I am currently learning practices from the 12-Factor guide using one of the Django apps that I am running in production.
In short, after reading the theory and doing my best to understand the work ...
1
vote
1
answer
1k
views
React + Django (session) authentication
Is authentication implemented correctly?
At the entry point to the app, which is App.js, query the Django server, which responds whether the current user is ...
0
votes
0
answers
35
views
Django convert function-based views into class-based views
How would I go about converting these function-based views into class-based views?
...