project-organization

Can I have a main models file in a django project?

Can I have a main models file in a django project? Question: The Problem I’m working on a django project in which I need to share the same database models over multiple apps, for example when a user opens a page the page is displayed depending on user settings, which can be changed by the …

Total answers: 1

How to organize a Python Project?

How to organize a Python Project? Question: I’m new to Python and I’m starting a mini Project, but I have some doubts on how to organize the folders in the "Python Way". I’m using PyDev in my Development Environment, and when I create a new project a folder is created called src + src Now, …

Total answers: 8

Django: "projects" vs "apps"

Django: "projects" vs "apps" Question: I have a fairly complex “product” I’m getting ready to build using Django. I’m going to avoid using the terms “project” and “application” in this context, because I’m not clear on their specific meaning in Django. Projects can have many apps. Apps can be shared among many projects. Fine. I’m …

Total answers: 6

The Pythonic way of organizing modules and packages

The Pythonic way of organizing modules and packages Question: I come from a background where I normally create one file per class. I organize common classes under directories as well. This practice is intuitive to me and it has been proven to be effective in C++, PHP, JavaSript, etc. I am having trouble bringing this …

Total answers: 5

Organising my Python project

Organising my Python project Question: I’m starting a Python project and expect to have 20 or more classes in it. As is good practice I want to put them in a separate file each. However, the project directory quickly becomes swamped with files (or will when I do this). If I put a file to …

Total answers: 4