Django Project - Simple Blog App

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025
  • This is a beginners Django and Python project - building a simple blog app.
    If you need to setup your environment similar to what is demonstrated in this tutorial please go ahead and first following the Installing Python, the virtual environment and Django tutorial:
    • Django web development...
    Project files:
    github.com/ver...

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

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

    For me, this is by far the simplest and logical explanation of the inner workings of Django, thank you.

  • @investopediac
    @investopediac 2 года назад

    You're so far the best teacher on youtube

  • @ananjayram2222
    @ananjayram2222 4 года назад +2

    You know what, You teach django best in RUclips because you I was searching a good channel for django but I didn't got anything but one day I got your channel and I amazed by your skills
    You will grow so big

    • @veryacademy
      @veryacademy  4 года назад +1

      Happy to help! Thank you Ananjay.

    • @ananjayram2222
      @ananjayram2222 4 года назад +1

      @@veryacademy Thank you for your help to teach me the django

  • @luinilbleue
    @luinilbleue 3 года назад +1

    I just put the video speed to x1.5 , and here I am learning Django with Travis Miles from Diamond City Radio (Fallout 4). Great stuff :D

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

    This knowledge depth and clear explanation is one of the best i've seen. Keep going.

  • @davidrosen2705
    @davidrosen2705 4 года назад +3

    by far this channel is the best to learn django , and the irony is that he got less then 1000 sub

    • @veryacademy
      @veryacademy  4 года назад +1

      Thanks David. Been interesting the amount that have commented about sub numbers, things are starting to warm up - its only been a few months now. For me its a good thing right now, am still slowly making progression with working out how to deliver better tutorials, the format, sound etc. Its a learning curve for sure. Still more great content to come. What I/we have done so far is just setting the groundwork for much more polished code and practices using Django and indeed other technologies! Once the website and app starts up you will be able to (always for free) follow different Django progression paths, have the option to read tutorials if you prefer that and have assessment tools to check knowledge learnt. Be a while yet with juggling work family etc but I will get some others on board at some point and away we go. Any suggestion or features would be most welcome.

    • @davidrosen2705
      @davidrosen2705 4 года назад

      @@veryacademy your content is so good that i would buy it , by the way i love the live troubleshooting that you do other channels give this vary polish tutorial and coding is not that polish. thank you so much you are great

    • @veryacademy
      @veryacademy  4 года назад +1

      @@davidrosen2705 Thanks for the feedback David, much appreciated. No one ever does tutorials on troubleshooting...but we spend a lot of time doing just that 😂

  • @HeadsetHistorian
    @HeadsetHistorian 3 года назад +1

    This is fantastic. You're great at explaining this stuff, most other videos over complicate it or info dump way too much. Thanks!! Subscribed.

  • @mermaidcodes
    @mermaidcodes 4 года назад +6

    please show a demo of the result of project before you stat coding . i love your voice it's so relaxing :)

    • @veryacademy
      @veryacademy  4 года назад +2

      Thanks Atefeh :) glad you like it. I always try and show a preview if relevant - many of my videos like this one, in my head at least I feel doesn't need a visual intro. You can always use the timeline to skip to the end and see the final product. But I will take this on board and see if I can come up with adding this into the video timeline for all future tutorials. Thank you!

  • @paborlouise319
    @paborlouise319 4 года назад +2

    Your voice makes Django interesting. But pls do a series on user restrictions on pages, in the later videos.

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

    I am currently following this tutorial and so far the experience is good. But one thing that bugs me is that django forces us to change publish_date into publish in the Post class. Is there any certain naming rule or did i miss something in this tutorial?

  • @hacker-e7i
    @hacker-e7i 3 месяца назад

    I have Doubt In Web Development first we need to design the front end or backend

  • @infinity2creation551
    @infinity2creation551 2 года назад

    You are doing great work 😰

  • @lexborodai1639
    @lexborodai1639 3 года назад +1

    Hi again :)
    Was trying to follow the django ecommerce v2 series, but realized that I actually need to start from the very beginning to undertand what's going on there :P
    Could you please help with understanding the error @21:30? You fix it by simply changing the name "publish_date" to "publish". So every time one creates a models class (or a database table other words), there MUST be an attribute called "publish" no matter what, otherwise django breaks?

  • @tedi9759
    @tedi9759 3 года назад +1

    really good tutorial

  • @Luffy-hi6xw
    @Luffy-hi6xw 4 года назад +1

    Nice tutorial 😊 learnt new things

    • @veryacademy
      @veryacademy  4 года назад +1

      Thank you Luffy for all the of great comments! It is both motivational and helps the channel move forward. As/If this channel grows expect bigger better and more useful features and free content.

    • @Luffy-hi6xw
      @Luffy-hi6xw 4 года назад

      @@veryacademy 😇 yep your channel will grow for sure .. im watching ur other videos right now.. will make comments there too once I finish watching them...😁😇

    • @veryacademy
      @veryacademy  4 года назад +1

      @@Luffy-hi6xw Thank you!

  • @josephogbuagu2200
    @josephogbuagu2200 2 года назад

    Thank you for the class, am having issue with my single.html (It doesn't display any content) all indentations are correct.

  • @TomislavMiletic
    @TomislavMiletic 2 года назад

    Thank you! Can we, instead of creating that custom manager, just do
    published_posts = Post.objects.filter(status='published').and add something here if we need to?

  • @workoutwithvijaay
    @workoutwithvijaay 3 года назад +1

    Good explaination
    It would have been even better if u included user authentication

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

    How to use serializers in the blog project?

  • @abdulwahid3409
    @abdulwahid3409 2 года назад

    Here is little bit confusion
    1. in Models' 'Comments' Class, 2 points are confusing
    i. post(field name)
    ii. related_name="comments" (same post fk field attribute)
    ..........then in Views
    in 'get_single' method we have 2 variables
    i. post
    ii. comments
    The Questions is.......
    Do this resemblance in names(or whatever) is meaningful? or just used for Variable declaration?

  • @dipeshmandanka5607
    @dipeshmandanka5607 4 года назад +1

    you got a new subscriber ♥

  • @abhilashoommen4704
    @abhilashoommen4704 4 года назад +1

    what is the reason to use 'post' in ? Is it because of class name?

    • @veryacademy
      @veryacademy  4 года назад +1

      Think of slug as the type of data, if it were a number you were passing to the view you might use the post is the context, think of this as a variable name inside of the post variable in this case is the data that is collected from the URL so for example test.com/hello/data with hello/ the post variable as I called it is holding the value 'data' - so its just a context name that we pass to the view.py so we can extract the data from **kwargs('post') - you can change the name post to anything 👍

    • @abhilashoommen4704
      @abhilashoommen4704 4 года назад

      Thank you Sir.

  • @danieldasent-thomson5727
    @danieldasent-thomson5727 4 года назад

    What is the difference between usin auto_now or auto_now_add with models.DateTimeField() and using timezone.now?

  • @saugatrajbhandari4247
    @saugatrajbhandari4247 4 года назад +1

    great.
    please make an ecommerce project too

    • @veryacademy
      @veryacademy  4 года назад

      On my list 👍. I will share with you all the projects that we are setting out to cover very soon.

  • @georgesmith3022
    @georgesmith3022 4 года назад

    hello, why did you create NewManager class inside Post class?

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

    would be better if the entire series was 5 minutes long

  • @josevelez6865
    @josevelez6865 4 года назад

    I had some trouble using venv since I am used to using docker, but I noticed after I created my django app, using '$ python manage.py runserver' command did not work for me. I had to use $ 'python3 manage.py runserver'.

    • @veryacademy
      @veryacademy  4 года назад

      Ok noted. you running it on windows?

    • @josevelez6865
      @josevelez6865 4 года назад

      @@veryacademy Yes, I am running on Win 10.

  • @shnkbanikful
    @shnkbanikful 4 года назад +1

    It's too tough to understand what's going on if you skip different steps in the code.

    • @veryacademy
      @veryacademy  4 года назад +1

      Thank you for the feedback - I totally agree with you. I am researching different ways in which to present this type of information and will iterate through all the videos to make them more structured and clearer in future versions.

  • @nair.network4217
    @nair.network4217 3 года назад

    👍👍👍

  • @sachinlalms1
    @sachinlalms1 4 года назад

    Sir, How to deploy the blog public for free.
    Plz hlp

    • @veryacademy
      @veryacademy  4 года назад +1

      Hello Sachin, good question. There isn’t really many options, you could try pythonanywhere and heroku which offer free services that are limited. AWS is free to a point. If you are a student heroku offer a student package, that would be a solution.

    • @sachinlalms1
      @sachinlalms1 4 года назад

      @@veryacademy thank u .

  • @jeffsawma
    @jeffsawma 3 года назад

    👏

    • @jeffsawma
      @jeffsawma 3 года назад +1

      You're a very good teacher. I'm lucky that I've crossed your channel.

    • @veryacademy
      @veryacademy  3 года назад +1

      Thank you - the tutorials you are looking at here are very old - I will do an update over the next few weeks or so.

  • @abhilashoommen4704
    @abhilashoommen4704 4 года назад +1

    can u explain |safe

  • @comment.comment
    @comment.comment 2 года назад +1

    Really good tutorial

    • @veryacademy
      @veryacademy  2 года назад

      Glad it was helpful! This is in need of a major update though!

  • @paborlouise319
    @paborlouise319 4 года назад

    Your voice makes Django interesting. But pls do a series on user restrictions on pages, in the later videos.

    • @veryacademy
      @veryacademy  4 года назад +1

      This will be covered in the blog series for sure - next up is testing - then unless I can find anything else useful I will move into user authentication/user groups/restrictions

    • @paborlouise319
      @paborlouise319 4 года назад

      @@veryacademy great👍.