• Stars
    star
    339
  • Rank 123,925 (Top 3 %)
  • Language
    CSS
  • License
    MIT License
  • Created about 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bulma theme for Django

A Bulma Theme for Django Projects

Django Bulma

A Django base theme based on Bulma (bulma.io). Bulma is a modern CSS framework based on Flexbox.

*** work in progress ***

Installation

  1. Install the python package django-bulma from pip

pip install django-bulma

Alternatively, you can install download or clone this repo and call pip install -e ..

  1. Add to INSTALLED_APPS in your settings.py:

'bulma',

  1. If you want to use the provided base template, extend from bulma/base.html:
{% extends 'bulma/base.html' %}

{% block title %}Bulma Site{% endblock %}

{% block content %}
  Content goes here...
{% endblock content %}

  1. If you want to customize bulma sass and your own components:

    4.1 Copy bulma static files into your project's STATIC_ROOT:

    python manage.py copy_bulma_static_into_project
    

    You should see bulma dir appeared in your STATIC_ROOT. It contains two dirs:

    • sass - this is the place where you can put your own sass code and customize bulma variables
    • css - this is where compiled sass output goes, you should link this file in your base.html

    4.2 Install npm packages for sass compilation to work:

    python manage.py bulma install
    

    4.3 Start sass watch mode:

    python manage.py bulma start
    
  2. For forms, in your templates, load the bulma_tags library and use the |bulma filters:

    Example template
    {% load bulma_tags %}
    
    {# Display a form #}
    
    <form action="/url/to/submit/" method="post">
       {% csrf_token %}
       {{ form|bulma }}
       <div class="field">
         <button type="submit" class="button is-primary">Login</button>
       </div>
       <input type="hidden" name="next" value="{{ next }}"/>
    </form>

Included templates

django-bulma comes with:

  • a base template,
  • django core registration templates,

Bugs and suggestions

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.

https://github.com/timonweb/django-bulma/issues

More Repositories

1

django-tailwind

Django + Tailwind CSS = 💚
Python
1,430
star
2

pytailwindcss

Python
310
star
3

django-clearcache

Clear Django cache from admin or command line
Python
48
star
4

Django-manage.py-anywhere

Run manage.py commands from anywhere. Finds the closest to current path manage.py file and runs commands against it.
Python
34
star
5

django-dbbackup-ui

Backup database and media files via Django admin interface (includes Wagtail admin support): pip install django-dbbackup-ui
Python
33
star
6

django-debug-permissions

Get a list of all user permissions available in the system
Python
29
star
7

wagtail-non-admin-draftail

Python
18
star
8

everyblock

Python
15
star
9

django-url-or-relative-url-field

A Django model field that supports both absolute and relative URLs.
Python
10
star
10

djow

Django On Wings (DJOW): Django Project Template
CSS
6
star
11

drupal-file-permissions

Drupal File Permissions Bash Script
Shell
5
star
12

wagtailsnippetscopy

'Copy A Snippet' Feature for Wagtail CMS
Python
5
star
13

django-forgiving-collectstatic

Python
5
star
14

django-ajax-comments-xtd

An addon app to https://github.com/danirus/django-comments-xtd that makes comments submittable via ajax
HTML
4
star
15

django-vue-helper

Python
4
star
16

Druppets

Druppets is a set of commonly used snippets of Drupal 6 Code
PHP
2
star
17

django-vue-starter

Plain simple Django project preconfigured for use with Vue. Not polished. For internal usage only.
Python
1
star
18

backup-jeans

Files and db backup script powered by Duplicity and PyInvoke
Python
1
star
19

docker-cron-swissknife

Alpine based dockerfile that allows to register and execute cron tasks with ease.
Shell
1
star
20

Simple-Moderation

Simple Moderation Module for Drupal
PHP
1
star
21

django-object-admin

Adds a nice floating menu with "Add/Change/Delete/History/Go to admin" links to a current page object.
CSS
1
star