All Questions
306 questions
4
votes
4
answers
122
views
Alerts by phone calls for location-relevant Israel Home Front Command alerts
This code checks the Israeli Home Front Command API, and when there is a new alert for specific areas it sends a request to a Django app which I am hosting in the cloud. The Django app then sends a ...
3
votes
1
answer
177
views
Serialized document inventory management splicing/slicing function
Unlike other inventory management systems that their items are fungible, in this system they are not supposed to. Each item is serialized and tracked since the printing press. We are trying to move ...
3
votes
2
answers
107
views
SEO Page Analysis Tool built in Python and Django
Objective: Develop an SEO analysis tool, for a website built in Django, that allows users to input a URL and receive an SEO report containing information about the page's optimization strengths and ...
3
votes
1
answer
115
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 ...
2
votes
3
answers
216
views
Inventory Management System
I'm trying to learn Django by building an inventory management system, here's my final models.py.
I'm looking for feedback!
...
1
vote
1
answer
116
views
Python Django image upload API with 6 fixed slots
I built an image upload API with Python Django. There are a fixed number of 6 slots, which can either be null or filled with something. There are two entities, Profile, which contains the six photos, ...
1
vote
1
answer
78
views
Django Code Repetition due to Multiple objects in JSON
I have the following code which works as expected i.e saves data to the db as I would like it to, however, there is a lot of code repetition and I am unable to find a way to shorten the code
I have ...
2
votes
2
answers
77
views
Filter based on different criteria until a match is found
We get the most relevant feedback about a doctor depending on the speciality, intervention_type and ...
3
votes
2
answers
6k
views
Django, filtering on reverse foreign key
We have Projects, which can each have many Entries. We want a report where we see the completion_date of the newest Entry associated with a given Project. However, ...
1
vote
0
answers
83
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
3
answers
173
views
Reset user's password fine
I wrote a code to reset user password. I just want to ask if it is a good and secure way to do this? Can I make any improvements here?
I use ...
1
vote
1
answer
195
views
Get Gzip file from endpoint, extract data and add to database
I currently have a script that fires a request to an API endpoint which returns a csv.gzip file - which roughly contains 75,000 rows and 15 columns. I download this ...
3
votes
0
answers
314
views
Django form for product stock, where products from the same batch must be merged
Here is the context first. I have a 'Stock' table, in which I record all the stocks with as information: the product, the ...
3
votes
1
answer
188
views
Summing categories of financial records per month in a query
My program is working properly but I'm unconfortable with code repetition.
...
1
vote
0
answers
34
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 ...