Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
#3 Django tutorials | First App in Django - part 1
Play lesson

Python for Beginners (Full Course) | Programming Tutorial - #3 Django tutorials | First App in Django - part 1

Unlock Python Mastery: Dive into 75+ Engaging Tutorials and Transform Your Programming Skills with Telusko Today!

5.0 (1)
23 learners

What you'll learn

Understand and set up Python development environments using PyCharm and Jupyter Notebook.
Learn to work with various Python data types, variables, and operators.
Master Python programming fundamentals, including loops, conditional statements, and functions.
Gain proficiency in file handling, error management, and utilizing Python libraries like NumPy for data manipulation.

This course includes

  • 17.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Check out our courses: Java Spring Boot AI Live Course: https://go.telusko.com/JavaSpringBootAI Coupon: TELUSKO20 (20% Discount) AI Powered DevOps with AWS - Live Course :- https://go.telusko.com/AIDevOps-AWS Coupon: TELUSKO20 (20% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Udemy Courses: Spring: https://go.telusko.com/udemyteluskospring Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF In this lecture we will learn about: #1 types of web application #3 what is inside a django project #4 how to create a first app in django #5 what is inside our calc app folder first App in Django python manage.py runserver is the command to run the server #1 we want to build web application we have two types of web application 1. static web application 2. dynamic web application Some sites you visit is static web application e.g visit first time you will get the same page in facebook, twitter, google, etc which are same for all users some sites you visit is dynamic web application e.g my bankaccount detail is different from your bankaccount detail which are different for all users for making static web application we use html, css, javascript Now for making dynamic web application we use Django Django is a python based web framework first program: print hello world using django Here we are using visual studio for our work open folder projects thats are created in our 2nd lecture which are has a separate virtual environment for each project #2 in this project we have lots of file inside projects we have a folder named as telusko inside telusko there are 3 files 1. manage.py 2.db.sqlite3 3.telusko inside telusko there are 1. __init__.py 2. settings.py 3. urls.py 4. wsgi.py 5. asgi.py and one folder __pycache__ -- To do setting open settings.py file a) we have secret key b) we have debug (remember before deployment we have to change it to false) c) we have installed apps d) we have templates e) we have databases (by default it is sqlite3) -- To do urls open urls.py file #3 we have to create a app -- to create a app open terminal and type -- to create calc app -- to change to our virtual environment -- to change directory to our project -- just go on telusko folder and open terminal and type workon test -- now we are in test -- just type python manage.py startapp calc -- now we have a folder named as calc -- inside this we have differnt file #5 what is inside our calc app folder i) in app.py we have class CalcConfig(AppConfig): name = 'calc' -- CalcConfig is a class which is important. ii) in models.py we have from django.db import models -- it is used to hold data iii) in test.py we have from django.test import TestCase -- it is used to test our application iv) in views.py we have from django.shortcuts import render -- it is used to render our html page Github :- https://github.com/navinreddy20/Python- Editing Machines & Monitors : https://amzn.to/2HA6ra8 https://amzn.to/2VMBBPw https://amzn.to/2RfKWgL https://amzn.to/2Q665JW https://amzn.to/2OUP21a. Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ Telusko Hindi : https://www.youtube.com/channel/UCitzw4ROeTVGRRLnCPws-cw Donation & Support: Indian Payment : https://www.instamojo.com/@NavinReddy/ PayPal Id : navinreddy20 Patreon : navinreddy20

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere