Learn Django Python - Configure Static Files Path on a Development Server

preview_player
Показать описание
In this Django Python tutorial we learn to configure the static folder so that we can server files such as CSS, JS or images to our web application. This tutorial is intended for beginners and represents an initial configuration for a development server. In production, there of course many different strategies to deploy static files to your application.

In this tutorial the project has already been built, it is assumed you have an existing project to apply these settings to.

Learn Django – Check out my other Django tutorials for beginners
If you like this Django tutorial you will love our Django tutorial series where we hope to teach you some of the basic functionality of Django in a practical and fun way.

SUBSCRIBE to get more free tutorials, courses and code snippets!

Follow us on Facebook

Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

How do I do this if my static image is a link?

ruler
Автор

Thank you so much sir, you have made this video for me. You foreigner ??
I am Indian sir. Now static file are working but which images will be uploaded by admin (image=models.FileField(blank = False, null = True, default='noimage.jpeg') these images are not showing in site with debug=false, for this i have to use any server like *apache* so i am leaving this project sir.


Thanks for your kind help sir, you are appreciable. You can check my site here, it is with degub=true.

Singh_And_Sharms_Love
Автор

If you want to login in admin page then please let me know, i will provide id password.

Singh_And_Sharms_Love