Django Tutorial: Build Your First App Fast & Free!

Enroll in this free step-by-step walkthrough of the official Django tutorial (in python). Additional content included.
3.7 (148 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
5,101 students enrolled
$19
$20
5% off
Take This Course
  • Lectures 27
  • Length 2.5 hours
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 9/2015 English

Course Description

Come join me as we create our first scalable Django application ... in only 3 hours!

Django is used by some of the largest websites on the internet, including Instagram, Pinterest, and Disqus— serving multiple billion page views, and unique visitors a month on Django stacks.

I've loved working with Django these last couple years and would now like to help you join the club by walking you through the official tutorial, for free!

What this course is not:

I do not cover programming fundamentals or python syntax. You do not need to be an expert by any means but you should be comfortable with the basics of at least one programming language so that we can focus on Django and not programming in general. (You can take this course if you're new to programming but expect to look up some of the basics on your own as this will not be covered.)

I may not be able to "look at your code" and "tell you what's wrong". I will if I can, but keep in mind that this course is free and I may not be able to spend too much time debugging your code.

If you're looking for advanced topics, you may want to download the source code of this course first and see if you could produce it on your own.

But, if you want to add Django to your tool belt - remember it's used on some of the busiest sites on the net - and you haven't yet taken the official tutorial, you need to download this course this minute.

Stop DELAYING and try Django!

What are the requirements?

  • Basic programming knowledge
  • Basic HTML / CSS
  • Note: If you are new to python but not to programming, expect to look up the syntax online while going through the tutorial

What am I going to get from this course?

  • Know how to build your own Django projects with ease
  • Create web applications on a highly powerful, popular, & scalable infrastructure
  • Create a mobile-friendly (responsive) site with Twitter Bootstrap
  • Setup Applications in your Django Project
  • Connect a (MySQL) database to your website
  • Design models (database schema) in Django
  • Create a URL mapping configuration for your project
  • Create custom views
  • Leverage templates to separate python logic from website design
  • Use generic views to simplify tedious, redundant pages
  • Create automated tests that can ensure your site works before publishing
  • Add static files (CSS / JS / Images) to make your site look beautiful

What is the target audience?

  • Anyone who would like to go over the official Django tutorial with helpful suggestions
  • Entrepreneurs who would like to quickly learn how to setup a website in an environment that can scale (it's great for MVP's)
  • Coders with PHP / Ruby or other web experience who would like to try Django
  • Self-starters who don't have much programming experience but want to give it a try (with some free help)
  • *NOT FOR YOU IF*: you've already completed the official tutorial (you'll find this repetitive)
  • *NOT FOR YOU IF*: you run a non-Mac computer AND don't know how to open the command line on your system or install Python or MySQL without visual help. (I can take you to the download page but you won't be able to watch me perform the installation on my system as I only have my Mac.)

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction
05:05

Learn what makes Django a great web dev framework and why it may or may not be right for you.

01:09

Learn why you might want to try this free course and what you should know after your complete it.

Section 2: Getting Started
02:17

Check and see whether or not you need to install python and then download the python installer if it is not already installed.

Windows users may want to use this post as an additional resource:
http://www.howtogeek.com/197947/how-to-install-python-on-windows/

02:22

Check and see whether or not you already have Django installed and remove previous versions, if you do. Afterwards, download and update a tool called "pip" and then install Django with one line of code.

Note: Installing MySQL on Windows
Article
02:29

Check and see whether or not you need to install MySQL and then download the appropriate installer if it is not already installed. Additionally, download a MySQL GUI (Graphical User Interface) to make managing your database easier.

Section 3: Project Setup
03:04

Create your first project and hear about the different files that are created automatically.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial01/ for more information.

What is the command to create a project in Django from the command line?
1 question
08:44

Create an empty MySQL database then download the correct binding to get python to interact with MySQL and finally connect a MySQL database to your Django project.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial01/ for more information.

01:46

Learn how to fire up the development server that ships with Django. You'll be using this all the time.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial01/ for more information.

What is the terminal command to start the dev server?
1 question
Section 4: Application Setup
02:48

Use manage.py to create your first Django application and hear how applications fit in a project

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial01/ for more information.

What is the terminal command to create a Django application?
1 question
04:52

Understand that models are textual representations of your database schema. Learn how to write your own models & model fields.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial01/ for more information.

09:41

Learn how to use the Django shell to interact with your project via python. Via the shell we will add / query / and delete objects in our database.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial01/ for more information.

Section 5: Site Administration
05:34

Learn how to create superusers to login to your admin panel, an amazing feature of Django.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial02/ for more information.

20:31

Learn how to register your applications to the admin panel, use Inline Classes to combine foreign-key-related objects on a single form, modify your polls' admin template, make project-wide admin customizations, such as changing the title, and more.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial02/ for more information.

Section 6: URLS & Views
07:20

Modify our main url config file to send urls that start with "/polls" to our polls' config file. Modify our polls' urls.py file to map empty expressions to a view. Create a view called index that displays Hello World.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial03/ for more information.

05:00

Create 3 new views that take a variable passed from our urls. Then modify the urls config to pass the variable to our views.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial03/ for more information.

Section 7: Templates, Views & Forms
07:40

Modify our views so that they display information about our Questions, Create a template, & Learn how to use convenience methods.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial03/ for more information.

07:37

We will add error handling to our detail view and create a base template that we can extend in all future templates. Reusing template elements will be crucial for all scalable applications.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial03/ for more information.

03:00

Use a convenience method to pull an object from a database and return a 404 error if the expected object does not exist. Also learn how to namespace your views to avoid naming conflicts in large applications.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial03/ for more information.

10:08

Create a form inside your vote's template that lets users select choices to vote for on each question and then process the form by updating the selected choices with their new votes.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial04/ for more information.

03:40

Learn how to save yourself time writing tedious views. Use generic.ListView and generic.DetailView to provide the same view functionality we currently have but now in only 12 lines code.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial04/ for more information.

Section 8: Testing
06:09

Create automated tests in Django that assert various conditions to be true or false so you know your code is working before going live.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial05/ for more information.

14:09

Use setup_test_environment and Client() to test your views in the Django shell and then create automated tests to uncover bugs in your views as well.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial05/ for more information.

Section 9: Static Files (CSS, Javascript, ...)
06:37

Use the load static and static template tags to reference the static folder in your templates. Then add CSS and images to your project.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial06/ for more information.

10:51

Make your project look pretty and work on all device sizes by downloading twitter bootstrap from getbootstrap.com and creating a responsive design based off of one of the examples on twitter-bootstrap's getting started guide.

Visit https://docs.djangoproject.com/en/1.8/intro/tutorial06/ for more information.

Section 10: Thank You
Lesson is complete - If this series helped you, please rate it!
00:47
Source Files
Article

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

BlueApple Courses, Developers, Entrepreneurs

BlueApple offers software courses for entrepreneurs and web developers designed to speed up your understanding of new frameworks and tools. A huge part of learning is figuring out where to find the information that you need and our courses bundle this information into digestible lessons. Time is money, so why make it harder for yourself to learn the fundamentals of anything.

Jacob and Joshua have 10+ years of software experience involving technical consulting, mobile development, web development, and academic research.

In college, they performed software research at some great institutions, including: UCI's Beckman Laser Institute and UCBerkeley's Nuclear Engineering Department.

After graduating, they Co-Founded a funded mobile gaming company where we used Cocos2D, Objective-C, Java & Python to create mobile games on both iPhones and Androids.

Recently, after a two-year stint as a management consultant, they've founded their own company called BoostLegal which runs a scalable platform on Django and AWS.

In their spare time, they love to Kitesurf, Surf, Hike, & Sail


Ready to start learning?
Take This Course