Interview Questions

Python - Django deploy static files

Follow the steps below to deploy static HTML files in Django server

1. create a folder named static inside the Django application folder.
2. Copy all the static html,js,image files inside the static folder.
3. Change the the following parameter in the application's file
STATIC_URL = '/appUI/'
4. Now you can access the static files using the below url

Average: 5 (1 vote)
Your rating: None