Django QuickStart Web Application for Beginners

  Рет қаралды 79,705

Python Simplified

Python Simplified

Күн бұрын

Welcome to the QuickStart guide to Django Applications! 🤩
Where Django is a popular Python-based framework for web development and today we will set it up from scratch!
In this tutorial we will focus on some the main components of websites. We will:
1. Setup a Django development server using Python (01:46)
2. Render an HTML template (05:18)
3. Add some CSS Styling (13:26)
4. And last but not least - JavaScript client side interactions (20:24)
🛑 PLEASE KEEP IN MIND 🛑
-----------------------------------------------
This is a QUICKSTART guide with the sole purpose of connecting all the above components together! By the end of this tutorial you will have your very own template of a basic Django website and you will also learn which files and terms we use for different operations.
Or alternatively, you can just clone my code if you already have some background with Django:
github.com/MariyaSha/DjangoQu...
In the next few tutorials we will learn how to work with Django databases and templating engine! After we have all the basics covered - we will then move with creating a useful application and even hosting it online.
💻 RELATED TUTORIALS OF MINE 💻
--------------------------------------------------------------
⭐ Anaconda for Beginners:
• Anaconda Beginners Gui...
⭐ Flask Hello World Web App for Beginners:
• Simple Web App with Fl...
⭐ Simple Calculator Web App with Anvil:
• Simple Calculator with...
⭐ Advanced Web App with Flask and SQLite:
• Flask SQLite Web Appli...
⏰ TIME STAMPS ⏰
-----------------------------------------------
00:00 - intro
00:45 - install Django
01:46 - create Django project
03:04 - run Django server
03:56 - customize port number
04:37 - create Django app
05:18 - create an HTML template
06:31 - setup a templates directory
07:46 - working with views
09:19 - working with routes
13:26 - create a CSS stylesheet
14:56 - setup a static directory
15:59 - HTML file structure
17:50 - link stylesheet with templating engine
20:24 - setup JavaScript
21:18 - link JavaScript with templating engine
22:34 - thanks for watching!
🤝 Connect with me 🤝
--------------------------------------
🔗 Github:
github.com/mariyasha
🔗 Discord:
/ discord
🔗 LinkedIn:
/ mariyasha888
🔗 Twitter:
/ mariyasha888
🔗 Blog:
www.pythonsimplified.org
💳 Credits 💳
----------------------
⭐ Beautiful animated graphics by:
mixkit.co

Пікірлер: 259
@MichaelSwartout
@MichaelSwartout Жыл бұрын
Why do you put a forward slash after the variable you defined, which was called in the path method?
@PythonSimplified
@PythonSimplified Жыл бұрын
Great question Michael! 😀 I would think that if you set it to "myapp" instead of "myapp/" and then try to lead to another route after that - we won't be dealing with "localhost:8000/myapp/myview" but with "localhost:8000/myappmyview" as we never added a slash after "myapp". I might be wrong, but if we do an experiment and dispose of the backslash - we immediately get a "Page not found (404)" error. However, in the case of changing "myview/" to and empty string "" - we never had any issues as we didn't add any additional routes after it. Also note that when we looked at the myproject/urls.py file, the existing 'admin/' route included a backslash to begin with. According to this principle - I repeated it across any new route I've added on my end. Only after I've seen your question, I've started experimenting with that... I must admit that I didn't even think of it! 😊 Thank you so much for your awesome question! I'll pin it to the top to see if any Web Dev experts will be able to confirm my answer from above, as I'm not entirely sure I got it right... I would say it's a fancy guess at this point of time 😉
@manusoftar
@manusoftar Жыл бұрын
@@PythonSimplified did you try to add a backslash to the beginning of the next folder route??, I mean, in your example, if you remove the backslash at the end of "myapp", did you try to add it to the next dir, like "/myview" ???
@truth-7380
@truth-7380 11 ай бұрын
yo yo yo 😂😂😂 You are unique. I wish you all the best.
@deepak2950
@deepak2950 Жыл бұрын
Your teaching and content is top-notch and truly exceptional. I am incredibly grateful to have found it.❤️ Thank you for sharing your knowledge and expertise with the world. Keep up the great work!
@vadymmudryi7978
@vadymmudryi7978 Жыл бұрын
Yo yo yo! I watched this video to the end and it's amazing. I never thought Django is so easy to start. Thank you for explaining.
@johnmamodu6650
@johnmamodu6650 Жыл бұрын
How can one person be this beautiful, intelligent, simple and super helpful. When it gets difficult for me, all I need to do is look for your tutorial on it and its done. You are a life saver and I appreciate you. Thank you Mariya for all you do to help us simplify the process🤟
@vinni_codes
@vinni_codes Жыл бұрын
You has definitely mastered the sacred arts of simplified teaching. I learn in a single video what I don't learn in weeks of college class
@PythonSimplified
@PythonSimplified Жыл бұрын
Yeeeyyy! Thank you so much! Super happy you find my tutorials useful! 😃😃😃
@PythonSimplified
@PythonSimplified Жыл бұрын
Yeeyyyy!!! Thank you so much!! Super happy you find my tutorials useful! 😃😃😃
@markslima1557
@markslima1557 Жыл бұрын
If anyone else had issues activating djangoQS environment, I had to deactivate (base) first, then I was able to activate (djangoQS) environment - thanks for the cool video!
@johanneszwilling
@johanneszwilling 7 ай бұрын
Refreshing different approach,...thank you!
@jessepersinger9821
@jessepersinger9821 Жыл бұрын
Perfect timing! Just got added to a project that uses django at work and it’s my first time working with python backend. Thanks for the great videos.
@PythonSimplified
@PythonSimplified Жыл бұрын
Yeyyy! It will definitely save you a few hours of reading Stack Overflow posts! hahaha 😉 Django docs are very ambiguous when it comes to Static files as well as "urls.py"... I had some struggle there 😅
@user-he2cu7io5n
@user-he2cu7io5n 7 ай бұрын
Great tutorial -- clear, concise, informative, entertaining! You have a very special talent in teaching and your joyful energy is contagious! Thank you so much! I'm a new subscriber:)
@yuliyaapukhtina4382
@yuliyaapukhtina4382 7 ай бұрын
It's the best Django explanation that I've met ever, thank you Mariya
@remomagalhaes4707
@remomagalhaes4707 21 күн бұрын
thank you very much from Brazil. I really appreciate your effort, Mariya. I feel lucky that the youtube algorithm recommended your channel to me.
@billu8754
@billu8754 2 ай бұрын
Thank you so much for creating and sharing such an insightful and informative tutorial on setting up a Django development environment and creating a basic web application! Your step-by-step guidance made it incredibly easy for me as a beginner to understand the process and get started with Django. I truly appreciate the effort you put into explaining each aspect, from setting up Anaconda to adding static files. Your video has been immensely helpful in building my confidence and skills in Django development. Looking forward to more content from you! Keep up the fantastic work! yo yo yo !
@wagnerjosegertrudesmuitoal3638
@wagnerjosegertrudesmuitoal3638 Жыл бұрын
Great video, very clear and complete, and the teacher has the most beautiful eyes in the world, thank you
@TrueSQN
@TrueSQN Жыл бұрын
I love you for that "CTRL + Reload"
@PythonSimplified
@PythonSimplified Жыл бұрын
I had some nightmares when setting up stylesheets with Flask, took me quite some time to understand that the problem is refreshing the cache rather than something in my code 😉 Ever since - I mention Ctrl + Refresh in any possible opportunity hahahaha 😁
@TrueSQN
@TrueSQN Жыл бұрын
@@PythonSimplified Flask was my first ever full-stack framework :D Anyway thanks for that tip. Also i want to update: i love you for all your content *-*
@TrueSQN
@TrueSQN Жыл бұрын
@@PythonSimplified i wonder why you have such small amount of views. You should be top in youtube as best female python developer :)
@odanilomedeiros
@odanilomedeiros Жыл бұрын
My goodness! You rock Maryia! Thanks a bunch
@KhalidThwiny
@KhalidThwiny Жыл бұрын
Your videos are amazing! Thank you sooo much 😊
@JosephBabatunde-xw4vx
@JosephBabatunde-xw4vx 26 күн бұрын
Thank you very much for this video. It’s been of great help to me. It made the documentary easier to understand and work with.
@OlivierBrisson
@OlivierBrisson Жыл бұрын
Thank you so much. I really hope you'll continue this django serie.
@jmhasan5076
@jmhasan5076 Жыл бұрын
Hi !! Thank you so much for starting this , I'm learning Django right now, so now I need to Integration a third party Reporting Tools like BIR, Jasper or Crystal Reports with django project.
@mt1133
@mt1133 Жыл бұрын
thank you so much and please do more Django tutorials 🤩
@CARLOSRAMIREZ-kb4hp
@CARLOSRAMIREZ-kb4hp 10 ай бұрын
thks you so much, I love the simple way to teaching us..!!
@oddlyCT
@oddlyCT Жыл бұрын
just found your channel, you're a fantastic teacher! and my wife loves your hair. 🔥
@foustcor
@foustcor Жыл бұрын
This is amazing. Thank you so much!
@jeuxmathinfo9578
@jeuxmathinfo9578 Жыл бұрын
Very clear explanation! Very useful ! Thank you so much !!! 🏆🏆🏆🏅🏅🏅🙏
@patrycjamx9340
@patrycjamx9340 Жыл бұрын
And I hope for more Django tutorials especially with Forms. 🙂 Your job is just GREAT!!!
@PythonSimplified
@PythonSimplified Жыл бұрын
Absolutely! I'll continue this series in the near future, I think a databases video will come sooner than forms... but it's definitely on my "to-do" list! 😉
@pritnadoda4298
@pritnadoda4298 Жыл бұрын
@@PythonSimplified please continue it
@zameerahmed1775
@zameerahmed1775 Жыл бұрын
Awesome explanation ................ U made Django so easy. Keep up the good work. Love frm India ❣❣❣❣
@holy_roman_emperor01
@holy_roman_emperor01 Жыл бұрын
Thanks a lot for the video. I discovered this channel today and you make great videos. I hope you get 1 million subscribers
@Vernietig56
@Vernietig56 10 ай бұрын
thank you so so much for this - so refreshing and engaging
@nicholasedgarkiwanuka2588
@nicholasedgarkiwanuka2588 Жыл бұрын
Amazing tutorial, I am now a confident beginner.
@unhhgcrxexhjvuvujchcrzwzwz7956
@unhhgcrxexhjvuvujchcrzwzwz7956 5 ай бұрын
This is perhaps the single best tech tutorial I’ve ever come across. Additionally, your communication style is exceptionally engaging without getting distracted and annoying. Great video
@GameDownloader112
@GameDownloader112 4 ай бұрын
Not sure why I clicked this video, even watched few cut scenes, anyway, very high energy and concise method of teaching!
@user-cc5ro7mt4x
@user-cc5ro7mt4x Ай бұрын
I chan read this ;) Thank you so much! So clear and coherently. I'm happy youtube recomended you channel and now I can engoy and learn your lessons. Thank you!
@PythonSimplified
@PythonSimplified Ай бұрын
Thank you so much for the incredible feedback! 😃
@gideonz74b
@gideonz74b Жыл бұрын
Yo yo yo! You sure have some explanation skills there! You don't only show the what, but also the why. Excellent!
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you so much Gideon! 😁
@faresabdelghany6114
@faresabdelghany6114 Жыл бұрын
thank you so much, this helped me a lot
@chadbarcelo8469
@chadbarcelo8469 5 ай бұрын
i hope a you create a django crud functionality tutorial. btw you explained it so good and much easier to understand than most of the tutorials here in youtube.
@juanroccia
@juanroccia Жыл бұрын
Resulta muy útil este contenido, y a pesar de que esta lleno de tutoriales de django, este esta entre los mas actuales y atractivos.
@mohanedAlsheikh
@mohanedAlsheikh 6 ай бұрын
yo yo yo this was amazing :D , THANK YOU
@jaroslavkrbec582
@jaroslavkrbec582 Жыл бұрын
yo yo yo! Thanks for this great content! You saved my hopes that Django would be the love at (probably) fourth sight :D
@davidcohen8888ify
@davidcohen8888ify Жыл бұрын
this is outrageous! I'm trying to learn here, and I keep looking at her! 😉
@mohamedaitalla6312
@mohamedaitalla6312 Жыл бұрын
Awesome Mariya !
@user-db7kz5un3x
@user-db7kz5un3x Жыл бұрын
It is a pleasure to comment this video.
@InfernalPasquale
@InfernalPasquale Жыл бұрын
you are an excellent teacher and incredible human
@fadyfelias
@fadyfelias Жыл бұрын
Thanks very good tutorial, waiting next video
@return_1101
@return_1101 Жыл бұрын
AWESOME. Thank you.
@ahmedmadhi5005
@ahmedmadhi5005 11 ай бұрын
It's amazing 🤩
@phon_o_rama2169
@phon_o_rama2169 Жыл бұрын
Django is awesome! Thanks!
@patrycjamx9340
@patrycjamx9340 Жыл бұрын
Thank you very much :) I'm learning Django right now, so your video is very helpful.
@PythonSimplified
@PythonSimplified Жыл бұрын
Glad I caught you in the perfect timing! 😉
@jamesl6000
@jamesl6000 Жыл бұрын
this was great. Thanks
@griffith68
@griffith68 Жыл бұрын
Thank you for simplifying Python 💯🤙🏾 Awesome content. Can you please do one on Django and MongoDB? 😊👊🏾
@juliencarrier5252
@juliencarrier5252 2 ай бұрын
very helpful ! thanks
@brendansullivan4872
@brendansullivan4872 Жыл бұрын
Thats awesome we got the same monitor (curved). Also this was a really good video!
@alexcaruajulca
@alexcaruajulca Жыл бұрын
thanks for the subtitles
@vladimiraleksic4066
@vladimiraleksic4066 Ай бұрын
Yo yo yo, you are the bestyo develepoyo teacheryo. Thank you a lot.
@chia-peiho1630
@chia-peiho1630 Жыл бұрын
very nice explanation! thank you
@MrPennywise1540
@MrPennywise1540 Жыл бұрын
Thank you for your help!!!
@Ahmed-iam
@Ahmed-iam 4 ай бұрын
Really well explained. No endless BS fr.
@scorheim
@scorheim Жыл бұрын
Good stuff! Thanks!
@richardvanos8853
@richardvanos8853 4 ай бұрын
Great video! So know we have Django installed. When to expect your charming explanation on how to continue this amazing framework? I can' t wait.
@sakibcoder
@sakibcoder Жыл бұрын
i was waiting for this video!
@JeremyRefoia
@JeremyRefoia 3 ай бұрын
Excellent vidéo !
@bc4198
@bc4198 Жыл бұрын
Thanks! Your tutorials are excellent. Yo yo yo.
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you so much B C! 😃
@facundonieto1396
@facundonieto1396 Жыл бұрын
You are the best person ever
@diwakar_tsn
@diwakar_tsn Жыл бұрын
This will help me alot ❤️💙
@PrernaVikram
@PrernaVikram 27 күн бұрын
many thanks love.
@JeremyRefoia
@JeremyRefoia 3 ай бұрын
Super vidéo !
@user-ng8rl3jb1i
@user-ng8rl3jb1i 8 ай бұрын
hi nice video! very straightforward !! One question I have, is if we could possibly set one directory for static files and templates... it seems to me a little bit non trivial not to be able to access both by just setting one directory in the settings file. Don't know if I am clear..
@bckzilla
@bckzilla Жыл бұрын
As usual you are amazing. Thanks for that.
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you so much! 🙂
@FidelMorenoC
@FidelMorenoC Жыл бұрын
Increible! esto resume 3 semanas tratando de que mi app funcionara / This sums up 3 weeks of trying to set up my first website. thanks!!!
@HslSoulsick
@HslSoulsick Жыл бұрын
hahah nice, q positivo el impacto de tu comment!!!
@PythonSimplified
@PythonSimplified Жыл бұрын
I hear ya, Fidel! 😀 I had to browse through dozens of stack overflow posts to connect all the pieces of the puzzle 😅 The documentation is not very clear when it comes to Static files, most of my struggle was there... Needless to say - I'm not looking forward to exploring the database models hahahaha 🤣🤣🤣 (I might have to though, I think I'll rebuild my blog with Django, I do like how lightweight it is, especially in a combination with Jinja2)
@FidelMorenoC
@FidelMorenoC Жыл бұрын
@@PythonSimplified well you will see the nginex and gunicorn deploy xD, I have lots of problems with the statics files.
@DaisyRahman
@DaisyRahman 9 ай бұрын
Yo yo yo! Thank you
@vmas700
@vmas700 29 күн бұрын
realy amezing🥰
@dhirajkeswani6569
@dhirajkeswani6569 Жыл бұрын
Amazing QuickStart. Is the next part coming???
@rickeyestes
@rickeyestes Жыл бұрын
Thanks!
@jackthewisedog5171
@jackthewisedog5171 Жыл бұрын
Like your video but I will need to watch and again but it's a great video for starters
@secureless
@secureless Жыл бұрын
Thanks Maria for the best lesson :)
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you for the awesome comment! 😊
@IzMroen
@IzMroen 14 күн бұрын
yo yo yo 🙌 , thank u Maria
@CharlesBLim
@CharlesBLim Жыл бұрын
I hope more features and more devs will use DJ.
@cosmicblack
@cosmicblack Жыл бұрын
good one.
@MrPioneer7
@MrPioneer7 10 ай бұрын
Thank you
@sammox7346
@sammox7346 Жыл бұрын
Hello sweety, thanks for your videos 🥳
@jacobbj
@jacobbj Жыл бұрын
I love your voice and accent!
@MdMozammelHossain
@MdMozammelHossain 7 күн бұрын
Hi, thank for you simplifiend videos, is there any followup video on Django ?
@user-vk9vc8kb1b
@user-vk9vc8kb1b Жыл бұрын
謝謝🙏分享
@ChaosArtist
@ChaosArtist Жыл бұрын
Nice video.
@ytdavide
@ytdavide Жыл бұрын
Thanks...Could you continue?
@roelofcoertze9453
@roelofcoertze9453 Жыл бұрын
Excellent job!!
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you so much! happy you liked it! 😃
@biocation2739
@biocation2739 Жыл бұрын
@@PythonSimplified I have one comment though, compared to the web development I have been doing, this seems quite complicated in comparison. I know you have not talked about database work yet, but what is the actual advantage of using the Django Framework?
@detsureg
@detsureg 6 ай бұрын
yo yo yo awesome 😎🤘
@EverythingWithSami
@EverythingWithSami 6 ай бұрын
i think i am in love.
@kasondekasondel2885
@kasondekasondel2885 Жыл бұрын
Hi Maria, I am Kasondel from Zimbabwe 🏳‍🌈 Thanks for your videos, very educative.
@zakyvids6566
@zakyvids6566 Жыл бұрын
This is amazing can you please make a tutorial on opencv and selenium webdriver as well Thanks
@PythonSimplified
@PythonSimplified Жыл бұрын
Zaky I have an entire playlist on Selenium! Also, a bunch of OpenCV tutorials as well! 😉 Check them out: 1. SELENIUM: ⭐ Web Scraping Instagram with Selenium: kzbin.info/www/bejne/n3uqp4x4fZ6gmbs ⭐ Web Scraping Facebook with Selenium: kzbin.info/www/bejne/iaS7lKylmtuejJI ⭐ Web Scraping LinkedIn with Selenium: kzbin.info/www/bejne/bZKsk2mfhr-eetk ⭐ Create Twitter bot with Selenium: kzbin.info/www/bejne/gWWvcp2HnNiKi6c 2. OPENCV: ⭐ Drawing with OpenCV: kzbin.info/www/bejne/hqXZf2uXmZ6Back ⭐ A forest of Objects with OpenCV: kzbin.info/www/bejne/Y33WppyMfLRgbpo I hope it helps! 😊
@DhruvilAntala
@DhruvilAntala 10 ай бұрын
Why do you put a forward slash after the variable you defined, which was called in the path method?
@joker-ex5my
@joker-ex5my Жыл бұрын
I see you and think of felicity de arrow, I only understand 50% of what you say since I speak Spanish, but I still like your videos.
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you Joker! 😃 I'm always adding captions to my tutorials and I believe KZbin automatically translates them to different languages... Maybe give it a try the next time, it might boost it to 100%! 😉
@user-sk2rf2wx6i
@user-sk2rf2wx6i Жыл бұрын
Спасибо!
@salmanakhtar506
@salmanakhtar506 Жыл бұрын
Nice tutorial
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you! :)
@skysaville
@skysaville Жыл бұрын
So much great Python content! Any thoughts on FastAPI?
@alkomorphis2128
@alkomorphis2128 5 ай бұрын
what preferably to use with django: conda or pip+virtualenv?
@house0795
@house0795 Жыл бұрын
hey, what about data structures explained on python? There are few videos with that, vast majority of that topic basing on java or c. For example linked lists, hash tables etc.
@guimoncao
@guimoncao Жыл бұрын
Python and JavaScript/TypeScript are the best as a whole.
@PythonSimplified
@PythonSimplified Жыл бұрын
I have a feeling Pyscript will join the list very soon 😉
@chrishoeffel
@chrishoeffel Жыл бұрын
Do you have interest in including a secure setup with .env and gitignore?
@Valnurat
@Valnurat Жыл бұрын
I just love you. You are awesome. :) Small question. I very new to Python, but I need to create a small web app. That just holds some data and do a search on a flight webpage. Would you recommend to use Django or Flask for the web? What about to hold the metadata. What would recommend? The metadata I need to keep is dates and departures and destinations. Not any fancy. :)
@DhruvilAntala
@DhruvilAntala 10 ай бұрын
@kingcogles
@kingcogles Жыл бұрын
Yo yo yo! 😄
Flask vs Django in 2024 - Make a RIGHT Choice (Difference Explained)
9:32
Daniel Dan | Tech & Data
Рет қаралды 32 М.
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Рет қаралды 14 МЛН
The World's Fastest Cleaners
00:35
MrBeast
Рет қаралды 105 МЛН
[실시간] 전철에서 찍힌 기생생물 감염 장면 | 기생수: 더 그레이
00:15
Netflix Korea 넷플릭스 코리아
Рет қаралды 38 МЛН
【獨生子的日常】让小奶猫也体验一把鬼打墙#小奶喵 #铲屎官的乐趣
00:12
“獨生子的日常”YouTube官方頻道
Рет қаралды 83 МЛН
Python Django Tutorial for Beginners
1:02:36
Programming with Mosh
Рет қаралды 2,3 МЛН
Python Classes and Objects - OOP for Beginners
8:01
Python Simplified
Рет қаралды 519 М.
Python Django Explained In 8 Minutes
8:11
Dennis Ivy
Рет қаралды 241 М.
Learn Django in 20 Minutes!!
21:25
Tech With Tim
Рет қаралды 271 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 372 М.
Convert GUI App to Real Program -  Python to exe to setup wizard
23:27
Python Simplified
Рет қаралды 449 М.
Much Faster Pandas with cuDF GPU Processing - CPU vs GPU Speed Benchmarks
19:57
Convert py to exe - from code to software
5:55
Python Simplified
Рет қаралды 457 М.
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Koshyl_Live
Рет қаралды 1,2 МЛН
Компьютер подписчику
0:40
Miracle
Рет қаралды 214 М.