Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Commit

Permalink
Linter-friendly way to set up the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Sandøy committed Jan 13, 2019
1 parent 64f6703 commit e613898
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,21 @@ of adding support for Django 2.0+, as well as for components found in the bulma-

You can install it from [PyPI](https://pypi.org/project/django-crispy-bulma/) with `pip install django-crispy-bulma`

Add package settings to your project settings file
`from crispy_forms_bulma.settings import *` **# TODO: Find a linter-friendly way to do this**
First make sure you have `django-crispy-forms` installed, as this will not work without it.

In order to activate it, you should add the following to your project `settings.py` file:
```python
CRISPY_ALLOWED_TEMPLATE_PACKS = (
"bootstrap",
"uni_form",
"bootstrap3",
"bootstrap4",
"bulma",
)

CRISPY_TEMPLATE_PACK = "bulma"
```


UploadField
-----------
Expand Down
10 changes: 0 additions & 10 deletions django_crispy_bulma/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,4 @@
Requested settings, but settings are not configured.
"""

CRISPY_ALLOWED_TEMPLATE_PACKS = (
"bootstrap",
"uni_form",
"bootstrap3",
"bootstrap4",
"bulma",
)

CRISPY_TEMPLATE_PACK = "bulma"

SECRET_KEY = "I'm sure there's a better way to do this..."
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='django-crispy-bulma',
version='0.0.3',
version='0.1.0',
description='Django application to add \'django-crispy-forms\' layout objects for Bulma.io',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit e613898

Please sign in to comment.