3min chapter

Django Chat cover image

Django Stubs - Nikita Sobolev

Django Chat

CHAPTER

How Do You Like to Structure Your Jango Projects?

I start with the business context, and i spend some time asking accompanies, what contexts do they have for this application? And then i er structure my application regularly. Use models, stuff like this. I keep all my views and models as simple as possible. They do not have any business logic. My model is like just fields and may be as string method, that's it. And my views is just call in some business logic. Function. All my business logic lives in special folder called logic. And then i start to obstructure this logic folder. Sometimes it is simple. It is just like three or four files with rent names. But then i use very specific technique to separate these

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode