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 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
-
-
-
-
-
-
(Locked)
Django architecture10m 45s
-
(Locked)
Django project structures6m 55s
-
(Locked)
Example project overview7m 53s
-
(Locked)
Deployment settings16m 17s
-
(Locked)
Django ORM: Models10m 10s
-
(Locked)
Django ORM: Queries15m 39s
-
(Locked)
Django ORM: Migrations5m 19s
-
(Locked)
The user model7m 37s
-
(Locked)
URLs8m 50s
-
(Locked)
Views11m 20s
-
(Locked)
Class-based views3m 38s
-
(Locked)
Admin8m 19s
-
(Locked)
Front end5m 14s
-
(Locked)
Templates8m 7s
-
(Locked)
Forms8m 17s
-
(Locked)
-