Home

Boilerplate: Add Basic Template And Static File Handling In Django

Introduction

This boilerplate is designed to be run after Boilerplate: Create A New Django Site/Project . It sets up the site/project to be able to use a top level templates directory.

Boilerplate Steps

  1. Make sure you've started the Python venv and are in the directory with: manage.py

    TODO: Write up how to make sure you're in the proper venv

    terminal commands
    mkdir templates
  2. Update DIRS inside TEMPLATE = [] in the site_files/settingsl.py file

    Change:

    site_files/settings.py - original value
    "DIRS": [],

    To:

    site_files/settings.py - updated line
    "DIRS": [BASE_DIR / "templates"],

Next Steps

If you're building a site/project for a boilerplate example the next step is:

Boilerplate: Add Basic User Authencation To A Django Site

Boilerplate Details

~ fin ~