From the course: Introduction to Django

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Django project structures

Django project structures - Django Tutorial

From the course: Introduction to Django

Django project structures

- So in lessons two and three, we looked at, you know, just using the basic Django-admin startproject, start app, what that will create for you, but that's definitely not the only kind of structure that you can use. So let's look at a couple of common ones now. The way we started the project, we created a project_folder. I created a virtual environment and then used django-admin startproject with the name of the project. And that created this folder structure with the dj_test folder, manage.py, and then another dj_test folder. First of all, two folders with the same name. That can be kind of confusing. (snickers) Second of all, like, you might want to have your virtual environment in the same folder as your manage.py so you don't have to like change directory and have this, like, extra layer. So you actually can start a project in the current directory. You created your virtual environment, that's where you'll download Django. Then you'll do start project dj_test, and then add a space…

Contents