#100DaysOfWeb in Python Transcripts
Chapter: Days 45-48: Build a simple Django app
Lecture: Get Django up and running

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Time to install Django.
0:12 First, let's make a virtual environment.
0:19 Activate it and install Django.
0:28 Let's start a project and here on the slide
0:30 you see the syntax for that.
0:32 After installing Django I have a Django admin utility.
0:37 And Django you always start with a project
0:39 which is kind of the global project
0:42 with it's configuration and all the generic stuff.
0:46 And inside that project you can make one or more apps.
0:49 And in this case we're just going to do
0:51 one app called quotes.
0:53 So first make a project.
1:00 And I'm using the . because I want to create
1:03 the main app of the project called mysite
1:07 in this current directory.
1:08 And I've grown accustomed to this
1:10 because not doing it like this gave me issues
1:13 when I deployed previous Django apps to Heroku.
1:21 This gave me the manage.py which we will use later
1:25 to do the database migrations and run the server.
1:29 My venv is my virtual environment
1:31 and mysite is the main app or the project app
1:35 which has it's settings for the configuration
1:38 which we will see in the next video.
1:41 And I want to have my quotes as a separate app.
1:46 So I do start app quotes.
1:50 And now I have also quotes folder
1:53 which is the app inside the Django project.
1:55 Django comes with batteries included
1:58 so the authentication model is already there.
2:01 And I can now run the migrate command on the manage.py
2:06 to get all those models synced to the database.
2:09 And where's the database?
2:11 Well, out of the box Django comes with SQLite.
2:15 Usually I use Postgres for my projects
2:17 but getting Postgres ready is
2:19 beyond the scope of this video.
2:21 So for now to focus on Django we're going to use
2:24 the standard file base SQLite database, which you see here.
2:27 And now I can run the same manage.py command
2:31 again with run server.
2:34 And that starts the Django server on localhost
2:38 and I can now navigate to this address
2:41 and it should see a landing page
2:44 confirming that Django is installed successfully.
2:49 Awesome.
2:50 In the next video we're going to look at settings of py
2:53 to look at some common configuration settings
2:56 you want to add to a starting Django project.