Skip to main content

Questions tagged [django]

Django is a Python-based framework for creating web applications.

Filter by
Sorted by
Tagged with
4 votes
4 answers
168 views

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 ...
Kovy Jacob's user avatar
3 votes
1 answer
197 views

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 ...
Braiam's user avatar
  • 261
3 votes
2 answers
121 views

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 ...
user3605767's user avatar
3 votes
1 answer
128 views

Context I've been working on a Django-based Google Authentication application, designed to manage OAuth authentication without relying on libraries such as ...
Grajdeanu Alex's user avatar
2 votes
3 answers
228 views

I'm trying to learn Django by building an inventory management system, here's my final models.py. I'm looking for feedback! ...
saad.sawash's user avatar
1 vote
1 answer
132 views

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, ...
code writer 3000's user avatar
1 vote
1 answer
89 views

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 ...
Maddy's user avatar
  • 123
2 votes
2 answers
87 views

We get the most relevant feedback about a doctor depending on the speciality, intervention_type and ...
M3RS's user avatar
  • 413
3 votes
2 answers
6k views

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, ...
M3RS's user avatar
  • 413
1 vote
0 answers
91 views

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 ...
some nooby questions's user avatar
1 vote
3 answers
217 views

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 ...
some nooby questions's user avatar
1 vote
1 answer
218 views

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 ...
Ross's user avatar
  • 337
3 votes
0 answers
325 views

Here is the context first. I have a 'Stock' table, in which I record all the stocks with as information: the product, the ...
Tobin's user avatar
  • 131
3 votes
1 answer
240 views

My program is working properly but I'm unconfortable with code repetition. ...
Felipe Dourado's user avatar
1 vote
0 answers
42 views

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 ...
Mr Meeseeks's user avatar
1 vote
1 answer
135 views

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 ...
atiabbz's user avatar
  • 15
4 votes
1 answer
150 views

This is my second Django project for an actual client and I want some review on one of my important models. This model will be responsible for authenticating users using their E-Mail Addresses and ...
user avatar
2 votes
0 answers
63 views

I am creating a website for users to track their Magic the Gathering inventory. I have created some functionality to import a csv to easily add cards to their inventory. The functionality works as ...
Ross's user avatar
  • 337
1 vote
0 answers
69 views

my models ...
Headmaster's user avatar
6 votes
1 answer
233 views

I have written the following function which works as expected but I still see there is some room for improving its readability ...
E_K's user avatar
  • 163
2 votes
0 answers
708 views

For Django sites with URLs structured in a hierarchical way I found it helpful to have an app to quickly transform an URL like ...
marcanuy's user avatar
  • 305
2 votes
1 answer
96 views

Can some one help me on how to eliminate repetition to reduce duplication score on the below classes created in the code ...
Sherlock 's user avatar
1 vote
0 answers
47 views

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 ...
Amit Yadav's user avatar
3 votes
0 answers
61 views

I'm hoping to get feedback on my current code from someone more experienced in Django, and in the concepts I'm trying to implement. Let me preface by saying that I am a novice to Django. This is my ...
nick_rinaldi's user avatar
3 votes
1 answer
421 views

As per the title, I'm making a webapp that is intended to use as a JS exercise platform. Problems are shown to users, they submit code, that code is run against a few test cases, and a report of the ...
Samuele B.'s user avatar
3 votes
1 answer
695 views

I'm trying to build an email verification for user signup using CreateView. This view check whether the user is a new or already existing inactive user? and resend ...
Avishka Dambawinna's user avatar
3 votes
1 answer
82 views

I'm beginner in django and python. I have models : ...
whiteRice's user avatar
3 votes
1 answer
572 views

I've been working on probably my biggest project yet, and I'd like you guys to give me some feedback on the code I wrote so far. It's an eLearning app which offers users a host of functionalities to ...
Samuele B.'s user avatar
1 vote
0 answers
70 views

Currently, I can set the current_user in the views.py for a form, which requires the user ...
nonamorando's user avatar
3 votes
1 answer
249 views

I am using Django Rest Framework and below is the code of one of the API Endpoints. The code creates generates the PUBLIC and SECRET Values based on Stellar SDK. ...
Volatil3's user avatar
  • 131
1 vote
1 answer
227 views

I have a function with multiple if else statements that I'm trying to simplify in Django Is there a pattern or maybe a better modeling approach that I could use here? The idea behind is to have a ...
Laycoonz's user avatar
  • 133
2 votes
3 answers
279 views

I wrote my first web app. Please let me know what I should improve. I want to write as clean code as possible. App is about adding and removing tasks from list. Backend is written in Django, frontend ...
Damian Tułacz's user avatar
3 votes
0 answers
66 views

Django implements a System Check framework that enables apps to perform checks on settings, runtime, etc. When creating an app, one can plug checks with the framework by following some requirements, ...
André Fratelli's user avatar
0 votes
2 answers
65 views

This is my working template file which I manually edit to create new properly formatted webpages for my personal website. I am interested in what advantages if any could be realized by placing the CSS ...
stacker's user avatar
6 votes
2 answers
1k views

I have two csv files, pricat.csv which contains objects I need to populate my DB with, and mapping.csv which specifies how the ...
Adamantoisetortoise's user avatar
2 votes
0 answers
54 views

I have built this Django Package which is an alternative for sending mail to users using Gmail API. Everything is working fine. But the verify(self, request) method inside ...
NikzJon's user avatar
  • 121
4 votes
1 answer
760 views

I am building a doctor appointment app with Django and Django Rest Framework. The app will have the functionality for secretaries to add appointments to a Doctor's calendar, and each Doctor may have ...
uber's user avatar
  • 261
5 votes
1 answer
109 views

I created a project for academic purposes that works on Twitter data. It should: Get all friends and follows of the user Store them in MongoDB Display them in a table I'm using django + plain HTML, ...
Antokios's user avatar
2 votes
1 answer
3k views

I started learning Django and now I want to write some tests for my application. After reading some blog posts and watching youtube tutorials I wrote tests for URLs. Look at below. urls.py ...
K.Oleksy's user avatar
  • 161
6 votes
0 answers
516 views

I'm not actually that new to writing Python. But I've no formal training and have only learnt to build applications to solve problems for my job out of necessity. Starting to bring my existing skills ...
Simon's user avatar
  • 61
2 votes
0 answers
238 views

In an app which it is possible to transfer money between accounts I have the following logic: View: ...
37dev's user avatar
  • 21
3 votes
0 answers
49 views

What I'm Doing I'm writing a command line utility for starting Django projects and apps with custom files. The custom files build upon what Django offers, to make sure things like a custom auth user ...
mfonism's user avatar
  • 131
2 votes
1 answer
505 views

I'm working on a Django project for which I'll need to store the historic information of many models. So far, I'm using the following strategy: Memoize the relevant values in ...
Barranka's user avatar
  • 131
1 vote
0 answers
37 views

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 ...
creyD's user avatar
  • 165
3 votes
1 answer
77 views

I have built a website in Django in which I tried for the first time to create a complex app. It's an app that scrapes weather conditions on a peak in mountains, which are 17. I wanted to show a ...
Bartek Kobylinski's user avatar
2 votes
0 answers
2k views

The Django ModelAdmin offers a filter_horizontal (or filter_vertical) interface for many-to-many relations, which allows the ...
djvg's user avatar
  • 161
3 votes
1 answer
227 views

This has been my approach for "simplifying" MongoDB aggregation queries in a pythonic syntax - was my intent, at the very least: ...
Rfroes87's user avatar
  • 133
1 vote
1 answer
1k views

I have been designing websites with Django for a while and I have also designed various sites. But here is a question that comes to mind at the beginning of any new project: What is the best URLs ...
rahnama72's user avatar
  • 113
3 votes
2 answers
282 views

Please ignore the comments in the code for the purpose of reviewing. I just require tips on using SOLID principles and how classes can be used in this code.Comments in the code are for mapping the ...
Vishesh Mangla's user avatar
3 votes
0 answers
1k views

I have design a model for product apps. This is the first time I am trying to create a product's database schema and then model it in Django. My code handles the following: A product type can have ...
Serenity's user avatar
  • 211

1
2 3 4 5
7