Bootstrap and Static Files Setup

  Рет қаралды 6,009

CodingWithMitch

CodingWithMitch

Күн бұрын

Пікірлер: 14
@donnmeroo
@donnmeroo 4 жыл бұрын
you are the best django teacher in youtube, appreciate
@cainabel2009
@cainabel2009 3 жыл бұрын
12:45 The reason why the Js tags scripts are added at the bottom of the body tag is because this guarantees that the entire page which might or might not contain JS is loaded before the Javascript script is called. If the JS tags are placed in the head tag and the body of the page contains Javascript this means that JS tag in the head will be called and since the page containing the JS has not yet loaded this will result in an error. Now, depending on how fast your computer or network the JS in the body can be loaded before the JS tag in the head is called this will result in it work but if not this will result in an error. Since you don't want your JS script tags to depend on how fast the page loads it is better to place it at the bottom of the body tag this ensure that the entire page has been rendered.
@13yadav
@13yadav 4 жыл бұрын
12:45 the reason is that css is needed at time of loading the site(i.e. designs etc ) but js is only needed when the website is fully loaded to perform click actions or other type of actions. if we place js at the top the site will take time to load ~ i think
@HoraceBentley
@HoraceBentley 4 жыл бұрын
Pretty much! You want css to already be in place when html elements are instantiated; otherwise, you could see vanilla 1995 html briefly before css reformats the whole screen. Likewise, you want all of your html to be in place when the js starts work so that when js looks for elements, they will be there, thus avoiding 'abc() is not a function of undefined' and friendly little error msgs like that.
@keshavkhandelwal8316
@keshavkhandelwal8316 3 жыл бұрын
script src="{% static 'bootstrap/js/jquery.min.js' %}"> there is no jquery.js in this directory
@tennis0037
@tennis0037 4 жыл бұрын
I did python manage.py collectstatic. It collected the same amount of files as you. It created the admin folder but it did not create the bootstrap folder. My bootstrap properties are not showing up on my site. I'm using bootstrap 4.5.3. Not sure if that matters. But I did everything else the same.
@tennis0037
@tennis0037 4 жыл бұрын
I put FILES_DIRS instead of STATICFILES_DIRS. It works now (:
@devnextbd
@devnextbd 4 жыл бұрын
Thank you so much
@zyz1153
@zyz1153 4 жыл бұрын
there is no jquery.js in this directory
@joemurawski3790
@joemurawski3790 3 жыл бұрын
I am currently having problems with the next vid due to this
@KevinTempelx
@KevinTempelx 4 жыл бұрын
Thanks!
@erdemsym
@erdemsym 3 жыл бұрын
Would you upload english subtitle? thank you, best.
@HienNguyen-xn7tr
@HienNguyen-xn7tr 4 жыл бұрын
another one
@mukhtarkakimbay5907
@mukhtarkakimbay5907 2 жыл бұрын
please, who have the source code? send me please!
Header and Footer Bootstrap Style Guide
41:21
CodingWithMitch
Рет қаралды 7 М.
The Story of BootStrap
6:14
CodeSource
Рет қаралды 94 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
DO NOT do this in a Software Engineering Interview
7:59
CodingWithMitch
Рет қаралды 9 М.
Why & When to Use Semantic HTML Elements over Divs
12:01
ByteGrad
Рет қаралды 120 М.
Advice from a Principal Software Engineer at Amazon (Steve Huynh)
22:45
How To PLAN your Game as a Solo Developer
16:26
Heartbeast
Рет қаралды 539 М.
How to link  Static Files(CSS) in Django  with template(HTML)
5:13
Travel Plus Coding
Рет қаралды 133 М.
x86 Assembly: Hello World!
14:33
John Hammond
Рет қаралды 1,4 МЛН
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
Andy Sterkowitz
Рет қаралды 726 М.
Learn CSS Positioning Quickly With A Real World Example
8:32
Slaying The Dragon
Рет қаралды 722 М.
5 CSS Tips & Tricks for better Responsive Web Design
9:39
Coding2GO
Рет қаралды 60 М.