In the top of the template, add percent load static percent.
Replace the link with the percent static percent template tag.
To avoid loading several things from the same server, static resources like images, CSS, and JS files are frequently loaded via a distinct app on production webpages.
You can serve static files using Django's development server if you have DEBUG set to TRUE and are using the staticfiles app during development. The collecstatic command isn't even required.
Django looks for all static files in your apps and gathers them where you told it to, i.e. the STATIC ROOT, using the collectstatic command. In our situation, we're telling Django to collect all static files into a folder called staticfiles in our project root directory when we run python manage.py collectstatic.
Django templates are text documents or Python strings that have been marked up with the Django template language. The template engine recognises and interprets some constructs. Variables and tags are the most important. A context is used to render a template.
Learner's Ratings
4.7
Overall Rating
92%
0%
0%
0%
8%
Reviews
A
artiom bn7
5
I really like the way he is teaching us! From a bunch of courses that i learned from, this is the best
K
kareem ghazi
5
very good
D
Dheeraj Dubey
5
Yes I am very happy the way Sir is teaching Django and I have done all coding of this tutorial but I am unable to find prescribed templates for job portal project.So please assist me for this as soon
S
Shashidhar
5
where will i get code access for the project source code?
A
Anish Chandra
5
this course structure is very good. I suggest for learning to this website.
P
Prabhat Yadav
5
Superb and amazing 😍🤩 enjoyable experience.
E
Er Komal Gupta
5
thnku so much sir. after waisting so mch time in boring videos.i learned only from here.explained vry well and i will suggest evryone that learnvern is the bst online plateform where you can learnalot
K
Kaushal Kishore
5
ajax lesson was something like boring . But , learned a lot with the sunit sir . Just learned how to deal with ajax in django
Share a personalized message with your friends.