Let's look at a static file django template file has been how it is configured, first of all, we create a project after project, we first need to do two things
- Configuration template directory (already configured)
- Static configuration directory (in settings.py file in the last line of their allocation)
1, a static configuration file directory
Description: Configure a static directory settings.py file in the last line item under the project
= STATICFILES_DIRS ( os.path.join (base_dir, "static"), # here the best static directory name with static, and finally need to add a comma, otherwise it will error )