All Questions
64 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 ...
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 ...
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__....
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):
...
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())...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...