Django QuickStart Web Application for Beginners

Поделиться
HTML-код
  • Опубликовано: 12 июн 2024
  • 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
  • НаукаНаука

Комментарии • 260

  • @MichaelSwartout
    @MichaelSwartout Год назад +6

    Why do you put a forward slash after the variable you defined, which was called in the path method?

    • @PythonSimplified
      @PythonSimplified  Год назад +17

      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 Год назад +1

      @@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 Год назад +1

      yo yo yo
      😂😂😂
      You are unique.
      I wish you all the best.

  • @vinni_codes
    @vinni_codes Год назад +10

    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  Год назад +1

      Yeeeyyy! Thank you so much! Super happy you find my tutorials useful! 😃😃😃

    • @PythonSimplified
      @PythonSimplified  Год назад +2

      Yeeyyyy!!! Thank you so much!! Super happy you find my tutorials useful! 😃😃😃

  • @deepak2950
    @deepak2950 Год назад +9

    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!

  • @yuliyaapukhtina4382
    @yuliyaapukhtina4382 8 месяцев назад +1

    It's the best Django explanation that I've met ever, thank you Mariya

  • @jessepersinger9821
    @jessepersinger9821 Год назад +4

    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  Год назад +2

      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 😅

  • @vadymmudryi7978
    @vadymmudryi7978 Год назад +1

    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.

  • @user-he2cu7io5n
    @user-he2cu7io5n 8 месяцев назад +1

    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:)

  • @remomagalhaes4707
    @remomagalhaes4707 Месяц назад

    thank you very much from Brazil. I really appreciate your effort, Mariya. I feel lucky that the youtube algorithm recommended your channel to me.

  • @JosephBabatunde-xw4vx
    @JosephBabatunde-xw4vx 2 месяца назад

    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.

  • @billu8754
    @billu8754 3 месяца назад +1

    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 !

  • @KhalidThwiny
    @KhalidThwiny Год назад +4

    Your videos are amazing! Thank you sooo much 😊

  • @TrueSQN
    @TrueSQN Год назад +9

    I love you for that "CTRL + Reload"

    • @PythonSimplified
      @PythonSimplified  Год назад +3

      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 Год назад +1

      @@PythonSimplified i wonder why you have such small amount of views. You should be top in youtube as best female python developer :)

  • @user-cc5ro7mt4x
    @user-cc5ro7mt4x 2 месяца назад +1

    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  2 месяца назад

      Thank you so much for the incredible feedback! 😃

  • @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!

  • @CARLOSRAMIREZ-kb4hp
    @CARLOSRAMIREZ-kb4hp Год назад

    thks you so much, I love the simple way to teaching us..!!

  • @odanilomedeiros
    @odanilomedeiros Год назад

    My goodness! You rock Maryia! Thanks a bunch

  • @jeuxmathinfo9578
    @jeuxmathinfo9578 Год назад +1

    Very clear explanation! Very useful ! Thank you so much !!! 🏆🏆🏆🏅🏅🏅🙏

  • @wagnerjosegertrudesmuitoal3638

    Great video, very clear and complete, and the teacher has the most beautiful eyes in the world, thank you

  • @johanneszwilling
    @johanneszwilling 8 месяцев назад

    Refreshing different approach,...thank you!

  • @vladimiraleksic4066
    @vladimiraleksic4066 3 месяца назад +1

    Yo yo yo, you are the bestyo develepoyo teacheryo. Thank you a lot.

  • @zameerahmed1775
    @zameerahmed1775 Год назад

    Awesome explanation ................ U made Django so easy. Keep up the good work.
    Love frm India ❣❣❣❣

  • @Vernietig56
    @Vernietig56 Год назад

    thank you so so much for this - so refreshing and engaging

  • @unhhgcrxexhjvuvujchcrzwzwz7956
    @unhhgcrxexhjvuvujchcrzwzwz7956 6 месяцев назад +1

    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

  • @mohanedAlsheikh
    @mohanedAlsheikh 8 месяцев назад

    yo yo yo this was amazing :D , THANK YOU

  • @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

  • @faresabdelghany6114
    @faresabdelghany6114 Год назад

    thank you so much, this helped me a lot

  • @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!

  • @juliencarrier5252
    @juliencarrier5252 3 месяца назад

    very helpful ! thanks

  • @OlivierBrisson
    @OlivierBrisson Год назад

    Thank you so much. I really hope you'll continue this django serie.

  • @patrycjamx9340
    @patrycjamx9340 Год назад +6

    And I hope for more Django tutorials especially with Forms. 🙂 Your job is just GREAT!!!

    • @PythonSimplified
      @PythonSimplified  Год назад +6

      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 Год назад +1

      @@PythonSimplified please continue it

  • @gideonz74b
    @gideonz74b Год назад +1

    Yo yo yo! You sure have some explanation skills there! You don't only show the what, but also the why. Excellent!

  • @mohamedaitalla6312
    @mohamedaitalla6312 Год назад

    Awesome Mariya !

  • @mt1133
    @mt1133 Год назад

    thank you so much
    and please do more Django tutorials 🤩

  • @jamesl6000
    @jamesl6000 Год назад

    this was great. Thanks

  • @nicholasedgarkiwanuka2588
    @nicholasedgarkiwanuka2588 Год назад

    Amazing tutorial, I am now a confident beginner.

  • @return_1101
    @return_1101 Год назад +1

    AWESOME. Thank you.

  • @fadyfelias
    @fadyfelias Год назад

    Thanks very good tutorial, waiting next video

  • @phon_o_rama2169
    @phon_o_rama2169 Год назад +1

    Django is awesome! Thanks!

  • @chia-peiho1630
    @chia-peiho1630 Год назад

    very nice explanation! thank you

  • @Ahmed-iam
    @Ahmed-iam 5 месяцев назад

    Really well explained. No endless BS fr.

  • @sakibcoder
    @sakibcoder Год назад

    i was waiting for this video!

  • @InfernalPasquale
    @InfernalPasquale Год назад

    you are an excellent teacher and incredible human

  • @GameDownloader112
    @GameDownloader112 5 месяцев назад

    Not sure why I clicked this video, even watched few cut scenes, anyway, very high energy and concise method of teaching!

  • @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

  • @johnmamodu6650
    @johnmamodu6650 Год назад +3

    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🤟

  • @davidcohen8888ify
    @davidcohen8888ify Год назад

    this is outrageous! I'm trying to learn here, and I keep looking at her! 😉

  • @brendansullivan4872
    @brendansullivan4872 Год назад

    Thats awesome we got the same monitor (curved). Also this was a really good video!

  • @ahmedmadhi5005
    @ahmedmadhi5005 Год назад

    It's amazing 🤩

  • @scorheim
    @scorheim Год назад

    Good stuff! Thanks!

  • @user-db7kz5un3x
    @user-db7kz5un3x Год назад

    It is a pleasure to comment this video.

  • @bc4198
    @bc4198 Год назад +1

    Thanks! Your tutorials are excellent.
    Yo yo yo.

  •  4 месяца назад

    Excellent vidéo !

  • @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.

  • @MrPennywise1540
    @MrPennywise1540 Год назад

    Thank you for your help!!!

  • @alexcaruajulca
    @alexcaruajulca Год назад

    thanks for the subtitles

  • @PrernaVikram
    @PrernaVikram 2 месяца назад

    many thanks love.

  • @patrycjamx9340
    @patrycjamx9340 Год назад +1

    Thank you very much :) I'm learning Django right now, so your video is very helpful.

  • @diwakar_tsn
    @diwakar_tsn Год назад +2

    This will help me alot ❤️💙

  • @facundonieto1396
    @facundonieto1396 Год назад

    You are the best person ever

  • @bckzilla
    @bckzilla Год назад +2

    As usual you are amazing. Thanks for that.

  •  4 месяца назад

    Super vidéo !

  • @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.

  • @secureless
    @secureless Год назад +2

    Thanks Maria for the best lesson :)

  • @chadbarcelo8469
    @chadbarcelo8469 6 месяцев назад

    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.

  • @richardvanos8853
    @richardvanos8853 5 месяцев назад

    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.

  • @Thee_Computer_Guy
    @Thee_Computer_Guy 8 дней назад

    Mariya you the best!

  • @omkarcode
    @omkarcode 2 месяца назад

    realy amezing🥰

  • @rickeyestes
    @rickeyestes Год назад

    Thanks!

  • @detsureg
    @detsureg 8 месяцев назад

    yo yo yo awesome 😎🤘

  • @griffith68
    @griffith68 Год назад

    Thank you for simplifying Python 💯🤙🏾
    Awesome content. Can you please do one on Django and MongoDB? 😊👊🏾

  • @IzMroen
    @IzMroen Месяц назад

    yo yo yo 🙌 , thank u Maria

  • @MrPioneer7
    @MrPioneer7 11 месяцев назад

    Thank you

  • @ChaosArtist
    @ChaosArtist Год назад

    Nice video.

  • @jacobbj
    @jacobbj Год назад

    I love your voice and accent!

  • @DaisyRahman
    @DaisyRahman 10 месяцев назад

    Yo yo yo! Thank you

  • @sammox7346
    @sammox7346 Год назад +2

    Hello sweety, thanks for your videos 🥳

  • @jackthewisedog5171
    @jackthewisedog5171 Год назад

    Like your video but I will need to watch and again but it's a great video for starters

  • @FidelMorenoC
    @FidelMorenoC Год назад +2

    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 Год назад +1

      hahah nice, q positivo el impacto de tu comment!!!

    • @PythonSimplified
      @PythonSimplified  Год назад +1

      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.

  • @user-ng8rl3jb1i
    @user-ng8rl3jb1i 9 месяцев назад

    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..

  • @cosmicblack
    @cosmicblack Год назад +1

    good one.

  • @roelofcoertze9453
    @roelofcoertze9453 Год назад +1

    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?

  • @MdMozammelHossain
    @MdMozammelHossain Месяц назад

    Hi, thank for you simplifiend videos, is there any followup video on Django ?

  • @dhirajkeswani6569
    @dhirajkeswani6569 Год назад

    Amazing QuickStart.
    Is the next part coming???

  • @CharlesBLim
    @CharlesBLim Год назад

    I hope more features and more devs will use DJ.

  • @kasondekasondel2885
    @kasondekasondel2885 Год назад

    Hi Maria, I am Kasondel from Zimbabwe 🏳‍🌈 Thanks for your videos, very educative.

  • @SamiSabirIdrissi
    @SamiSabirIdrissi 7 месяцев назад

    i think i am in love.

  • @salmanakhtar506
    @salmanakhtar506 Год назад +1

    Nice tutorial

  • @DhruvilAntala
    @DhruvilAntala 11 месяцев назад

    Why do you put a forward slash after the variable you defined, which was called in the path method?

  • @ytdavide
    @ytdavide Год назад

    Thanks...Could you continue?

  • @skysaville
    @skysaville Год назад

    So much great Python content! Any thoughts on FastAPI?

  • @alkomorphis2128
    @alkomorphis2128 6 месяцев назад

    what preferably to use with django: conda or pip+virtualenv?

  • @kingcogles
    @kingcogles Год назад +1

    Yo yo yo! 😄

  • @user-vk9vc8kb1b
    @user-vk9vc8kb1b Год назад

    謝謝🙏分享

  • @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.

  • @PrernaVikram
    @PrernaVikram 2 месяца назад

    do we need to follow the same process if we use pycharm, there if I import Django , do I still need to follow these steps

  • @betterstack
    @betterstack 2 месяца назад

    Great video Mariya! 🚀 If anyone’s looking for more Python tutorials, we’ve released Loguru logging, task scheduling, and more to help the community too 💪

  • @swapnilm
    @swapnilm Год назад

    Yo yo yo! ❤

  • @LatinoWebStudio
    @LatinoWebStudio Год назад

    Are you using Conda as in Anaconda? Is that like saying python3 -m pip install django?

  • @mehranaliyari9866
    @mehranaliyari9866 9 месяцев назад

    My problem is that when I call my management folder, it says that there is no such folder. I searched Stackoverflow and found the answer, but it was for Linux, I don't know how to fix the answer in Windows. I have this issue in other parts of the program, but when I look, the other parts are also formed. Please help me, what he wrote seems to be not path correct, I could not translate the codes to windows cmd codes