Skip to main content

All Questions

0 votes
0 answers
34 views

How to architect the external evnets and Django models?

I'm building a django backend app and I have a few different models in my app. One of these models is a Driver and I want to do the following when calling the create-driver endpoint: create the ...
Morez's user avatar
  • 2,239
1 vote
1 answer
262 views

Maintaning isolation between modules in Django monolith

In our company, we have a monolith. Right now is not that big but we are already seeing some problems with the isolation between the modules we have. Our setup is pretty similar to other Django ...
Antonio Gamiz Delgado's user avatar
1 vote
1 answer
481 views

Django With Clean Architecture

I'm trying to build a python application using Clean Architecture principles. I already have the following structure: app/ ├── src │ ├── dependencies │ │ ├── dependencies.py │ │ └── __init__....
Maycol Teles's user avatar
0 votes
1 answer
48 views

Where to save this class?

Updated models.Model: class GetOrNoneManager(models.Manager): """returns none if object doesn't exist else model instance""" def get_or_none(self, **kwargs): ...
Bte Deni's user avatar
1 vote
2 answers
3k views

How to generate 10 digit unique-id in python?

I want to generate 10 digit unique-id in python. I have tried below methods but no-one worked get_random_string(10) -> It generate random string which has probability of collision str(uuid.uuid4())...
SHIVAM JINDAL's user avatar
3 votes
0 answers
1k views

How to setup multiple django projects to access the same database and models

I have one django project that serves as an API and contains a database and multiple apps with models, database migrations and so on. I want to have a custom admin interface as well as django-admin ...
fullstacknoob's user avatar
2 votes
1 answer
299 views

Django architecture for different clients/technologies using same models

My team and I are having a hard time defining the architecture for my backend environment using Django. To contextualize a little, we built an application similar to an App Store, for all our ...
Gabriela Palhares Macedo's user avatar
0 votes
0 answers
333 views

Django create model variable based on another model?

I'm new in Django and I have a question about architecture. I'm not looking for a ready solution, just for some explanations in a simple way, and maybe tips about architecture. I want to create a ...
martin's user avatar
  • 1,185
0 votes
0 answers
66 views

Create accounts and API tokens for live mode and test mode

I want to create a system that works similar to stripe. There'll be live API keys, as well as test API keys. I have been thinking of how to implement this architecture, and I am not sure the best way ...
Alexis's user avatar
  • 61
0 votes
0 answers
33 views

Web architecture for "sharing" API calls between users

I recently posted a question: How to dynamically create and close infinitely running Celery tasks using Django Channels . But Django channels seems to be a fairly niche area of development so I'd like ...
Jamie T's user avatar
  • 56
9 votes
4 answers
2k views

Is there any library like arch unit for Django?

I've been searching for a library or tool to test my Django project architecture, check the dependencies, layers, etc. like Arch Unit for Java. But until now, I didn't find anything. I don't even know ...
Yuri Costa's user avatar
0 votes
1 answer
228 views

What would be the best architectural pattern to store user files in Django?

I am looking to make a Django-Rest web application that allows users to store files and folders, which they can view afterwards in my frontend (think: Dropbox, Google Drive, etc). I understand that ...
privmox's user avatar
  • 23
0 votes
1 answer
56 views

Accessing a public text file by passing a key in Django

I am looking to host a text file that will be publicly accessible on a Django application: http://www.example.com/textfile However, when someone is accessing this text file, they need to to pass an ...
Rutnet's user avatar
  • 1,673
0 votes
1 answer
250 views

Architecture suggestions - How to implement autoscaled async tasks

We have a large application, which uses django as an ORM, and celery as a task running infrastructure. We run complex pipelines triggered by events (user driven or automatic), which look something ...
ori silberberg's user avatar
0 votes
0 answers
80 views

how to manage huge task for a huge number of users in django

I have a system developed in django where a lot of calculations have to be done for each user. The process takes almost 5 to 6 seconds for each user to complete the calculations. Currently I am using ...
cjahangir's user avatar
  • 1,797

15 30 50 per page
1
2 3 4 5