Creating a project file structure
A consistent file structure for your projects makes you well-organized and more productive. When you have the basic workflow defined, you can get in the business logic quicker and create awesome projects.
Getting ready
If you haven't done this yet, create a virtualenvs
directory, where you will keep all your virtual environments (read about this in the Working with a virtual environment recipe). This can be created under your home directory.
Then, create a directory for your project's environment, for example, myproject_env
. Start the virtual environment in it. I would suggest adding the commands
directory for local bash scripts that are related to the project, the db_backups
directory for database dumps, and the ...
Get Django: Web Development with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.