#11 Django tutorials | Static Files – 2



Python Tutorials for beginner :
Django Tutorials :

Django is a high-level Python-based free and open-source web framework, which follows the model-view-template (MVT) architectural pattern.
It is maintained by the Django Software Foundation (DSF).
Django’s primary goal is to ease the creation of complex, database-driven websites.
Some well-known sites that use Django include the…

, , , ,

38 thoughts on “#11 Django tutorials | Static Files – 2

  1. Thanks for the tutorial.
    In video #10 (Static File- 2) I get the following error for 'collectstatic' command:
    > python mange.py collectstatic
    .
    .
    File "E:Program FilesPython37libntpath.py", line 526, in abspath

    return normpath(_getfullpathname(path))

    TypeError: _getfullpathname: path should be string, bytes or os.PathLike, not list

    (I use python 3.7.3 and django 2.2)
    What could be wrong?

  2. <link rel="stylesheet" type="text/css" href="{% static 'styles/bootstrap4/bootstrap.min.css' %}">

    <link href="{% static 'plugins/font-awesome-4.7.0/css/font-awesome.min.css' %}" rel="stylesheet" type="text/css">

    <link rel="stylesheet" type="text/css" href="{% static 'plugins/OwlCarousel2-2.2.1/owl.carousel.css' %}">

    <link rel="stylesheet" type="text/css" href="{% static 'plugins/OwlCarousel2-2.2.1/owl.theme.default.css' %}">

    <link rel="stylesheet" type="text/css" href="{% static 'plugins/OwlCarousel2-2.2.1/animate.css' %}">

    <link rel="stylesheet" type="text/css" href="{% static 'styles/main_styles.css' %}">

    <link rel="stylesheet" type="text/css" href="{% static 'styles/responsive.css' %}">

    <img src="{% static 'images/destination_1.jpg' %}" alt="">
    <img src="{% static 'images/destination_2.jpg' %}" alt="">
    and so on…
    <img src="{% static 'images/destination_6.jpg' %}" alt="">

    there i'm getting error

  3. sir how you fixed the error
    line number 104: <div class="background_image" style="background-image:url(images/home_slider.jpg)"></div>
    Where to add static here? I have tried a lot but failed.
    Hope for your reply. thanks in advanced.

  4. Good tutorials always!!! But please upload a combined video on static files with proper steps without errors… Errors make me confuse 😅 BTW when r u uploading next video 😁

Leave a Reply

Your email address will not be published. Required fields are marked *