
In this video we will learn about the tools that we will need for this course. You don't need much, just python Django and Text editor like Sublime or Atom
Let's make a hello world project using Django. This project is just to understand about the setting up of a project in Django
Next up, let's understand about the file structure that is generated using Django. It's totally a simple file structure and easy to understand.
Here are your exercise files
Moving further, Let's have our very first project. Here we will understand the command to run the server and browsing in the browser
In Django, everything is kind of app. In this video we will learn to create our first app and We will call it Hola. Also there is a small assignment.
Next we will learn about templating. Templating is way to create scalable websites. We divide our website into template so that creating new pages in easy in same theme.
So far, we were only rendering plain text, now will learn to render from an HTML page. This makes life easier and sorted.
Following the same theme, now we will add an about us page in the template. We will also learn about configuring URL.
Next up we will repeat the process using same methods that we learned in last video. This repeatation is helpful to learn things.
in this video we will learn to extend pre built templates. This vide will actually help you to understand the advantages of having a template system.
Setting up a new project in Django is easy and over time all these things will become like second nature to you. Let's create a project.
Let's create our very first database model. In Django we write our database models in a models python file, that translate it into database query.
Next thing is to register that model into admin so that we can see those fields in admin dashboard. Once done, we need to migrate our app.
Next let's learn about CRUD i.e. create read and update from admin dashboard in Django.
Articles app is a new Django project that will have static pages and will have interaction with database. Let's create this project.
Let's talk about database now. Although database design is in itself a concept but we will touch a little bit in this particular video.
Further let's learn to add our model for article in database. For this we have to write our models and then then link them to admin py file.
Next we will learn to configure a new URL for every new article. We will use a Primary key concept to get a unique URL every time.
Next let's setup a home page for this app. In this home page we will fetch the data from database and will display it.
Further we will add some static files. Every web project has some static files like some stylesheets and some Javascript files
Let's set our URL file to get a unique URL for every article. Here we will use pk, primary key concept to get a unique URL
in this project the main goal is to understand about user input and user forms. Using these forms, we can fetch data to database.
Next let's prepare a model for this project and for that we will use models py file. Further we will use admin py file to register those models
Every project face development bugs and it's a part of process. Let's fix these simple issues of programming and make this app working.
Templates so far are looking just ok but to make them great we need to import static CSS files. So let's import these CSS files
Next let's fetch data from database, we have done it in the past as well so this should be fairly simple to most of you.
This is the time that you learn about Django forms. Forms in Django are super powerful and basically we replace all of our forms with Django forms.
now that our form with Django is in place, we want to take input from the user. User input needs to be stored in the database as well.
We will start this CRUD project by using an existing project. This is the project that we have built in the past in this course
we are already having these fields but in the admin dashboard but there are ways to use these fields in the web application too
Next we will learn to update the things in database. In order to update we need a unique key. luckily Django uses primary key for this purpose.
Last but not the least, we want to delete stuff from database. So for that we will again use primary key. Also we will use reverse lazy to adjust this operation.
There are various ways to take down this TODO list application. Most of them are correct ways and if you like to do on your own, that great too.
first we would like to create models for the database as this is the easiest part of this application. We basically we need just 2 things, boolean value and todotext.
Next we would like to register this model in admin. After that we will setup our beautiful template so that it looks great.
further we ill add views to this todo, while adding views we will use a decorator as we are extending some existing functionality.
Finally let's tweak some things in our application and get this todo application up for usage.
Django is super easy for for getting a login, most of this are cooked up for you and app for login is also pre loaded.
Next we will code a simple login view. This login view is a default login view by Django, surely we can customize it .
Next we will get username after he is logged in. Also we will learn to set a logout feature. Thanks to Django it's all really simple.
Signup app is also there in Django but's it's mostly a class so we need to setup a few things to make sure that we can use Django singup
Thanks for taking this course. We are sure that we will surely catch you up in some other courses, there at Udemy!
Hi and welcome to BackEnd Development for Beginners using Django - Build 8 Projects.
Before we talk anything about this course, let’s get clear about what you should already know before taking this course.
NOTE: This course is on Django 2
1. Front end basics
If you have taken my Complete front end developer Bootcamp or any other such course where things like HTML and basics of CSS got cleared, then you are good to go for next requirement. This is a backend focused course and we will not be talking much on stuff like “How to change background color”.
2. Python Basics
Django is based on python and it will be a good idea to clear your python basics before taking this course. Things like Loops, If Else, Functions, and Classes are used in this course, with an expectation that you are aware of it. You don’t need to be a guru in python but at least syntax should be comfortable for you.
Why Django?
While designing BackEnd course, there were a lot of option but I asked a question a that If I could go back in time and suggest me the easiest backend framework to get started, what would it be. Most tech startups use Django because it is easy to implement. You can focus on what you are building instead of other framework issues.
On top of that, it is backed by Python, One of the top most favorite programming language of people at the internet.
What will we be building in this course?
This course is totally focused on beginners. Goal here is not to scare you from programming jargons. Course is totally based on projects and each project will focus on a specific issue that we will deal.
Project 1. - Getting basics of Django
Project 2. - Breaking website into templating
Project 3. - Interaction with Database
Project 4. - Blog with static pages and unique URL
Project 5. - Handling forms and taking input from user
Project 6. - A CRUD blog from user input
Project 7. - A TODO list with sqlite3
Project 8. - Login, Logout and Signup
This course is designed to take you one step closer towards backend development. So, if you are afraid of backend development, worry not. Django is going to help you a lot.
Let’s get started.