Questions tagged [django]
Django is a Python-based framework for creating web applications.
329
questions
3
votes
2
answers
89
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 ...
1
vote
0
answers
73
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 ...
0
votes
0
answers
33
views
Django convert function-based views into class-based views
How would I go about converting these function-based views into class-based views?
...
1
vote
3
answers
150
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
94
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
63
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 ...
1
vote
2
answers
57
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 ...
2
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
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 ...
0
votes
3
answers
156
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 ...
0
votes
1
answer
183
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
304
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
174
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
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
1
answer
111
views
Python module to generate context for Django template using data requested from API
As part of a university assignment, I have been tasked with populating and rendering a provided Django template with COVID-19-related quarantine data retrieved from a government API. To challenge ...