Django Static Files CSS Stylesheets | Django Project | djblogger | 24

Поділитися
Вставка
  • Опубліковано 3 січ 2023
  • In this tutorial, we create static files for our project. More specifically, we connect a CSS stylesheet to our templates.
    Udemy Course Link:
    www.udemy.com/course/django-p...
    UA-cam Ed Course Link:
    • Django Project: djblogger
    Developing applications can be a fun and effective way of learning a language and framework. In this course, we build a blog application Introducing you to Python Django Framework, Django Templating, the Bootstrap framework, HTMX, CSS, and HTML. In addition, this course introduces testing aspects of a Django project.
    This course is primarily designed for anyone looking for a journey learning the Django Framework or developing web applications with Python. This course is a great starting point or a good first step after first learning about any of the technologies that this course features.

КОМЕНТАРІ • 36

  • @PUbaidUrRehman
    @PUbaidUrRehman 2 місяці тому +1

    good work sir literally i stuck in it from so many days

  • @Faheemqazi-tv4rs
    @Faheemqazi-tv4rs 2 місяці тому +1

    You save my life bro.

  • @Youu88Tubee
    @Youu88Tubee Місяць тому

    Thank you. It works !🙏

  • @andrewhenderson593
    @andrewhenderson593 11 місяців тому

    How can we link a CSS file with a Python file without using HTML files? If for example we want to create a Dash Web App with Python and we want to style it with a CSS file?

  • @digitalzone5099
    @digitalzone5099 Рік тому

    Thanks it worked for me

  • @abyssinia_entertainment
    @abyssinia_entertainment Рік тому

    how to fix internal server Error in Django sub route like home/, about/. when I am try to host in server but after installation the sub route not work. The error is 500 Internal Server Error.

  • @pillisusmitha3590
    @pillisusmitha3590 Рік тому +1

    Thank you so much 🙏❤

  • @madusan1
    @madusan1 Рік тому +4

    You were pointing to the static_url setting not the folder containing the static files. This is usually set with static_root and this is where collectstatic will collect all the locations identified in staticfiles_dirs

    • @veryacademy
      @veryacademy  Рік тому +2

      Thank you again. Not the smoothest of executions in this tutorial. I aim to use alternative approaches on deployment.

  • @toddgilbey3979
    @toddgilbey3979 9 місяців тому +2

    "The static file is in the inner djblogger folder, but it's in the outer djblogger folder, but just to be clear it's in the inner djblogger folder and it's no longer in the outer djblogger file. We'll move this to the outer djblogger file so its no longer in the inner djblogger file. So we'll delete the static file from the inner djblogger file and create it in the inner djblogger file, but then we'll remove the static file from the inner dj blogger file and put it in the outer djblogger file..."
    That's pretty much all I got from this tutorial.
    Thank God I'm not paying for this...

    • @veryacademy
      @veryacademy  9 місяців тому

      Don’t forget to move it to the outer djblogger file and then the inner and then back to the outer. That’s the trick. 😜 when you say file you mean folder? Wish you all the best Todd.

    • @toddgilbey3979
      @toddgilbey3979 9 місяців тому

      @@veryacademyyou raise a very good point here, but you missed out the bit where you have to be riding a unicycle with only your right leg whilst doing all this 😉

    • @veryacademy
      @veryacademy  9 місяців тому

      Oh you watched this too ua-cam.com/video/WBQjEXd93Ds/v-deo.htmlsi=dOBt-FVBOkf3IXD_ ☺️

    • @toddgilbey3979
      @toddgilbey3979 2 місяці тому

      @@veryacademy beautiful 🤣

  • @andersonzapata4516
    @andersonzapata4516 5 місяців тому +1

    Thanks! I it took a long time keeper do this but I don't understood. Very thanks teacher.

  • @aliahmad-zi5co
    @aliahmad-zi5co Рік тому

    THANKSSSSSSSSSSSSSSSSSSS

  • @djangodeveloper07
    @djangodeveloper07 Рік тому +2

    Great Tutorial as always.
    can we expect advance django tutorials soon ?

    • @veryacademy
      @veryacademy  Рік тому

      We are slowly getting there! I know, the wait has been far too long!

    • @djangodeveloper07
      @djangodeveloper07 Рік тому

      @@veryacademy waiting

    • @PiyushM3845J
      @PiyushM3845J Рік тому

      python is asking for django tutorials 😂😂🤣🤣

    • @djangodeveloper07
      @djangodeveloper07 Рік тому

      @@PiyushM3845J if this comment is funny for you. you need a doc child.

  • @adnanchalwati7643
    @adnanchalwati7643 Рік тому +1

    thanks

  • @arunbabu995
    @arunbabu995 10 місяців тому

    my admin page has no css?

    • @dotcon70
      @dotcon70 9 місяців тому

      mine either, did you fix it?

  • @jamescapparell5673
    @jamescapparell5673 Рік тому +4

    I guess making things more complicated then necessary is part of your teaching approach. The truly stupid directory layout even confuses you so maybe you can imagine what frustration a beginner feels. the djblogger folder ...sorry.. the blog folder....sorry...remove the .parent added just to point out something for the sake of confusion that we then delete....sorry. Others seem to enjoy the digressions and redos - I just don't happen to be among them....sorry.

    • @toddgilbey3979
      @toddgilbey3979 10 місяців тому

      I agree. This tutorials just idiotic.

    • @medui
      @medui Місяць тому

      Exactly... Maybe there's some big production reason to do it but even then it's not a good idea to include it in the beginners tutorial. We watched 17 videos before we created first app and then we spent one single video on creating models. I feel like the author is just flexing he can do all that stuff the dumbest way possible.

  • @medui
    @medui Місяць тому

    I think this whole series is a bit too much confusing, I'm gonna finish it, because I'm deep and don't want to completely waste the time I've spent doing it but this really is not quality content.

  • @roykeane5959
    @roykeane5959 9 місяців тому +1

    Wasted 15 mins of my life.

  • @nino12729
    @nino12729 9 місяців тому +2

    i have never seen such a bad tutorial.

  • @naciraboussoualim8638
    @naciraboussoualim8638 6 місяців тому +1

    It doesn’t work until I changed the STATIC_URL=“/static/”
    Good luck every and thank you @veryacademy 🙏

  • @xudayfitechoffiaicl5125
    @xudayfitechoffiaicl5125 Рік тому

    thanks pro you help me