Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gunthercox/django-bootstrap-base-template

A common base template for Django web apps using Bootstrap
https://github.com/gunthercox/django-bootstrap-base-template

bootstrap django

Last synced: 20 days ago
JSON representation

A common base template for Django web apps using Bootstrap

Awesome Lists containing this project

README

        

# django-bootstrap-base-template

A common base template for Django web apps using Bootstrap

## Why?

I created this package because every time I start a new Django
web application it requires me to set up a very similar directory
structure for templates and static files. This Bootstrap base
template lets me quickly start a new Django project with all of
the assets I need already included.

Additionally, this package simplifies the process of updating the
static files used by multiple projects.

## Installation

```
pip install django-bootstrap-base-template
```

## Django settings.py

```
INSTALLED_APPS = [
# ...
'django_bootstrap_base_template',
# ...
]
```

## my_template.html

```
{% extends 'bootstrap_base.html' %}

{% block body %}

{% endblock %}
```