Metadata-Version: 2.1
Name: django-simple-bulma
Version: 1.0.2
Summary: Django application to add the Bulma CSS framework and its extensions
Home-page: http://pypi.python.org/pypi/django-simple-bulma
Author: Python Discord
Author-email: staff@pythondiscord.com
License: MIT
Description: django-simple-bulma
        ===================
        [![Build Status](https://dev.azure.com/python-discord/Python%20Discord/_apis/build/status/Django%20Simple%20Bulma?branchName=master)](https://dev.azure.com/python-discord/Python%20Discord/_build/latest?definitionId=7?branchName=master)
        [![Discord](https://discordapp.com/api/guilds/267624335836053506/embed.png)](https://discord.gg/2B963hn)
        
        `django-simple-bulma` is a Django application that makes [Bulma](https://bulma.io) and [Bulma-Extensions](https://wikiki.github.io/) available to use in your Django project with as little setup as possible. The goal of this project is to make it as easy as possible to use Bulma with Django.
        
        This project currently uses **Bulma v0.7.2** and **Bulma-Extensions v4.0.0**. If you want features that are only available in newer versions of these frameworks, please [create an issue](https://github.com/python-discord/django-simple-bulma/issues), and we will be happy to update it.
        
        Installation
        ------------
        To get `django-simple-bulma`, up and running for your Django project, follow these simple steps:
        - Install it from PyPI with `pip install django-simple-bulma` (or add it to your [Pipfile](https://pipenv.readthedocs.io/en/latest/))
        - In your Django projects `settings.py` file:
          - Add `django_simple_bulma` to your `INSTALLED_APPS`
            ```python
            INSTALLED_APPS = [
              #...
              'django_simple_bulma',
              #...
            ]
            ``` 
          - Add `django_simple_bulma.finders.SimpleBulmaFinder` to your `STATICFILES_FINDERS`. This normally holds two default handlers that you will probably want to keep, so unless you have any other custom Finders, it should look like this:
            ```python
            STATICFILES_FINDERS = [
              # First add the two default Finders, since this will overwrite the default.
              'django.contrib.staticfiles.finders.FileSystemFinder',
              'django.contrib.staticfiles.finders.AppDirectoriesFinder',
          
              # Now add our custom SimpleBulma one.
              'django_simple_bulma.finders.SimpleBulmaFinder',
            ]
            ```
        - Run `python manage.py collectstatic` command in order to build Bulma and move it to your `staticfiles` folder. Please note that you will need to use this command every time you make a change to the configuration, as this is the only way to rebuild the Bulma css file. If you are not using `collectstatic`, [read up on it](https://stackoverflow.com/questions/34586114/whats-the-point-of-djangos-collectstatic) and [start using it](https://docs.djangoproject.com/en/2.1/ref/contrib/staticfiles/). 
        
          This app works fine with [Whitenoise](http://whitenoise.evans.io/en/stable/), which is a great way to serve static files without needing to mess with your webserver.
          
        - `django-simple-bulma` should now be working. In order to import it into your template, simply use the following template tags:
          ```html
            <head>
                <!-- ... -->
                {% load django_simple_bulma %}
                {% bulma %}
                <!-- ... -->
            </head>
          ```
        - You're all set! Any Bulma classes you apply should now be working!
        
        Customization
        -------------
        Bulma looks nice by default, but most users will want to customize its look and feel. For this, we've provided a super simple way to change the [Bulma variables](https://bulma.io/documentation/customize/variables/) and to choose which [Bulma extensions](https://wikiki.github.io/) you want to load into your project.
        
        In order to do this, we'll simply create a dictionary inside your `settings.py` called `BULMA_SETTINGS`, and configure it there. Here's an example of what that looks like:
        ```python
        # Custom settings for django-simple-bulma
        BULMA_SETTINGS = {
            "extensions": [
                "bulma-accordion",
                "bulma-calendar",
            ],
            "variables": {
                "primary": "#000000",
                "size-1": "6rem",
            }
        }
        ```
        
        You may here define any variable found on the [Bulma variables](https://bulma.io/documentation/customize/variables/) page, and you may use any valid SASS or CSS as the value. For example, `hsl(217, 71%, 53%)` would be a valid value for a color variable, as would `#ffff00`. Please note that any syntactically incorrect values may prevent Bulma from building correctly, so be careful what you add here unless you know exactly what you're doing.
        
        If the `extensions` key is not found, it will default to loading **all extensions**. This is 8 js files, so it may add a bit of overhead. If you don't want any extensions, simply set it to an empty list.
        
        
        Troubleshooting
        ---------------
        
        If you run into any trouble with this app, please [create an issue](https://github.com/python-discord/django-simple-bulma/issues), and we will be happy to help you with it. Alternatively, head over to our discord server at https://discord.gg/python and we'll help you figure it out over chat.
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Framework :: Django :: 2.1
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Provides-Extra: dev
