crispy-forms-foundation-0.8.0/0000755000175000017500000000000013661262315016205 5ustar carstencarstencrispy-forms-foundation-0.8.0/MANIFEST.in0000644000175000017500000000072413661262315017746 0ustar carstencarsteninclude MANIFEST.in include LICENCE.txt include README.rst recursive-include crispy_forms_foundation/templates * recursive-include crispy_forms_foundation/static * recursive-include crispy_forms_foundation/locale * recursive-include crispy_forms_foundation/test_fixtures * recursive-exclude data * recursive-exclude docs * recursive-exclude sandbox * recursive-exclude tests * recursive-exclude * .cache recursive-exclude * __pycache__ recursive-exclude * *.py[co] crispy-forms-foundation-0.8.0/setup.py0000644000175000017500000000012413661262315017714 0ustar carstencarsten#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup() crispy-forms-foundation-0.8.0/LICENCE.txt0000644000175000017500000000204013661262315020004 0ustar carstencarstenCopyright (c) 2012 David Thenon. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.crispy-forms-foundation-0.8.0/tests/0000755000175000017500000000000013661262315017347 5ustar carstencarstencrispy-forms-foundation-0.8.0/tests/004_buttons.py0000644000175000017500000000314313661262315022003 0ustar carstencarstenimport os import pytest from django.test.html import parse_html from crispy_forms_foundation.layout import (Layout, ButtonGroup, Submit, Button, ButtonElement, ButtonSubmit) from tests.forms import BasicInputForm #from tests.utils import write_output def test_buttongroup(output_test_path, render_output, rendered_template, helper, client): form = BasicInputForm() pack = helper.template_pack helper.layout = Layout( 'simple', ButtonGroup( Submit('Save', 'Save'), Button('Cancel', 'Cancel'), ) ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_buttongroup.html")) #write_output(output_test_path, pack, "test_buttongroup.html", rendered) assert parse_html(attempted) == parse_html(rendered) def test_buttonelement(output_test_path, render_output, rendered_template, helper, client): form = BasicInputForm() pack = helper.template_pack helper.layout = Layout( ButtonSubmit('Save', 'Save'), ButtonElement('Foo', 'Foo', content="""<Pong/>"""), ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_buttonelement.html")) #write_output(output_test_path, pack, "test_buttonelement.html", rendered) assert attempted == rendered crispy-forms-foundation-0.8.0/tests/005_containers.py0000644000175000017500000000340413661262315022453 0ustar carstencarstenimport os import pytest from django.test.html import parse_html from crispy_forms_foundation.layout import (Layout, TabHolder, TabItem, AccordionHolder, AccordionItem) from tests.forms import AdvancedForm #from tests.utils import write_output def test_tab(output_test_path, render_output, rendered_template, helper, client): form = AdvancedForm() pack = helper.template_pack helper.layout = Layout( TabHolder( TabItem('My tab 1', 'simple'), TabItem('My tab 2', 'opt_in'), TabItem('My tab 3', 'longtext'), css_id="meep-meep" ) ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_tab.html")) #write_output(output_test_path, pack, "test_tab.html", rendered) assert parse_html(attempted) == parse_html(rendered) def test_accordion(output_test_path, render_output, rendered_template, helper, client): form = AdvancedForm() pack = helper.template_pack # Define 'css_id' to avoid test fails with automatic generated random ID helper.layout = Layout( AccordionHolder( AccordionItem('Group 1', 'simple'), AccordionItem('Group 2', 'opt_in'), AccordionItem('Group 3', 'longtext'), css_id="meep-meep" ) ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_accordion.html")) #write_output(output_test_path, pack, "test_accordion.html", rendered) assert parse_html(attempted) == parse_html(rendered) crispy-forms-foundation-0.8.0/tests/__init__.py0000644000175000017500000000000013661262315021446 0ustar carstencarstencrispy-forms-foundation-0.8.0/tests/utils.py0000644000175000017500000000477713661262315021100 0ustar carstencarstenimport os import io from django.template import Context, Template import django from distutils.version import LooseVersion # Getting Django versions compatibilities DJANGO110_COMPAT = LooseVersion(django.get_version()) >= LooseVersion('1.10') def write_output(filepath, pack, filename, content): """ Write content to filepath+pack+filename, create filepath if it does not allready exists. This an helper to automatically rewrite HTML outputs when needed during development. Beware, using this will lose every templating instructions previously written in output attempts. """ if (filepath and filepath != '.' and not os.path.exists(os.path.join(filepath, pack))): os.makedirs(os.path.join(filepath, pack)) destination = os.path.join(filepath, pack, filename) with io.open(destination, 'w', encoding='utf-8') as f: f.write(content) return destination def render_attempted_output(path, **kwargs): """ Return compiled template from given path with given context It's a little hack to be able to use Django template stuff to conditionnate some HTML differences on Django versions. Template is readed as a simple file without using Django template engine loader select. Template context will contains some variables about Django versions compatibilities. Actually this is only about the 'required' input attribute behavior that is different from 1.9 (``required=""``) to 1.10 (``required``). """ context_kwargs = { 'DJANGO110_COMPAT': DJANGO110_COMPAT, } context_kwargs.update(**kwargs) context = Context(context_kwargs) with io.open(path, 'r', encoding='utf-8') as f: template = Template(f.read()) return template.render(context) def get_rendered_template(form, **kwargs): """ Return compiled template with given context where only 'form' is required. If crispy helper is given, it must be given as 'helper' named argument. Template is different depending helper is given or not in kwargs. """ context_kwargs = { "form": form, } context_kwargs.update(**kwargs) context = Context(context_kwargs) # Use spaceless to avoid too much unuseful white spaces tpl = """{% spaceless %}{% load crispy_forms_tags %}""" if 'helper' in kwargs: tpl += """{% crispy form helper %}""" else: tpl += """{% crispy form %}""" tpl += """{% endspaceless %}""" template = Template(tpl) return template.render(context) crispy-forms-foundation-0.8.0/tests/conftest.py0000644000175000017500000000167513661262315021557 0ustar carstencarsten""" Some fixture methods """ import os import pytest from crispy_forms.helper import FormHelper from tests.utils import get_rendered_template, render_attempted_output @pytest.fixture(scope='session') def output_test_path(pytestconfig): """Return absolute path to test outputs directory""" return os.path.join(pytestconfig.rootdir.strpath, 'tests', 'output') @pytest.fixture(scope='session') def rendered_template(): """ Return callable function to render form template """ return get_rendered_template @pytest.fixture(scope='session') def render_output(): """ Return callable function to render output template """ return render_attempted_output @pytest.fixture(scope='function', params=[ "foundation-6" ]) def helper(request): """ Parametrized fixture to return helper configured for a template pack """ helper = FormHelper() helper.template_pack = request.param return helper crispy-forms-foundation-0.8.0/tests/forms.py0000644000175000017500000000346113661262315021053 0ustar carstencarsten""" Used forms in tests """ from django import forms from crispy_forms.helper import FormHelper from crispy_forms_foundation.layout import (Layout, Row, Column, ButtonHolder, Submit) class BasicInputForm(forms.Form): """ Basic form with a single CharField field """ simple = forms.CharField(label='Simple text', widget=forms.TextInput(attrs={'required':''}), required=True) def save(self, commit=True): return class BoolInputForm(forms.Form): """ Basic form with a single BooleanField field """ opt_in = forms.BooleanField( label="Opt in", widget=forms.CheckboxInput(attrs={'required': ''}), required=True) def save(self, commit=True): return class BasicInputFormLayoutIncluded(BasicInputForm): """ Basic form with included layout """ def __init__(self, *args, **kwargs): self.helper = kwargs.pop('helper', FormHelper()) self.helper.form_action = '.' self.helper.layout = Layout( 'simple', ) super(BasicInputFormLayoutIncluded, self).__init__(*args, **kwargs) class AdvancedForm(forms.Form): """ Form with an advanced layout with some inputs """ simple = forms.CharField(label='Simple text', widget=forms.TextInput(attrs={'required':''}), required=True) opt_in = forms.BooleanField( label="Opt in", widget=forms.CheckboxInput(attrs={'required': ''}), required=True) longtext = forms.CharField(label='Address', required=False, widget=forms.Textarea(attrs={'rows': 3})) def save(self, commit=True): return crispy-forms-foundation-0.8.0/tests/003_fields.py0000644000175000017500000000431013661262315021547 0ustar carstencarstenimport os import pytest from django.test.html import parse_html from crispy_forms_foundation.layout import (Layout, InlineField, InlineSwitchField, FakeField) from tests.forms import BasicInputForm, BoolInputForm #from tests.utils import write_output def test_fakefield(output_test_path, render_output, rendered_template, helper, client): form = BasicInputForm() pack = helper.template_pack helper.layout = Layout( FakeField('simple') ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_fakefield.html")) #write_output(output_test_path, pack, "test_fakefield.html", rendered) assert parse_html(attempted) == parse_html(rendered) def test_inlinefield(output_test_path, render_output, rendered_template, helper, client): form = BasicInputForm() pack = helper.template_pack helper.layout = Layout( InlineField('simple', label_column='large-7', input_column='large-5', label_class='foobar') ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_inlinefield.html")) #write_output(output_test_path, pack, "test_inlinefield.html", rendered) assert parse_html(attempted) == parse_html(rendered) def test_inlineswitchfield(output_test_path, render_output, rendered_template, helper, client): form = BoolInputForm() pack = helper.template_pack helper.layout = Layout( InlineSwitchField('opt_in', label_column='large-8', input_column='large-4', label_class='foobar', switch_class="inline") ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_inlineswitchfield.html")) #write_output(output_test_path, pack, "test_inlineswitchfield.html", rendered) assert parse_html(attempted) == parse_html(rendered) crispy-forms-foundation-0.8.0/tests/output/0000755000175000017500000000000013661262315020707 5ustar carstencarstencrispy-forms-foundation-0.8.0/tests/output/foundation-6/0000755000175000017500000000000013661262315023220 5ustar carstencarstencrispy-forms-foundation-0.8.0/tests/output/foundation-6/test_advanced.html0000644000175000017500000000232413661262315026713 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_buttongroup.html0000644000175000017500000000106613661262315027540 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_buttonelement.html0000644000175000017500000000036613661262315030037 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_inlinefield.html0000644000175000017500000000067213661262315027434 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_inlineswitchfield.html0000644000175000017500000000114513661262315030652 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_basic.html0000644000175000017500000000061213661262315026225 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_fakefield.html0000644000175000017500000000052313661262315027057 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_layout.html0000644000175000017500000000055613661262315026470 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_tab.html0000644000175000017500000000256313661262315025721 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/output/foundation-6/test_accordion.html0000644000175000017500000000255613661262315027116 0ustar carstencarsten
crispy-forms-foundation-0.8.0/tests/002_layout.py0000644000175000017500000000423113661262315021617 0ustar carstencarstenimport os import pytest from django.test.html import parse_html from crispy_forms_foundation.layout import (Layout, Row, Column, ButtonHolder, Submit) from tests.forms import BasicInputForm, BasicInputFormLayoutIncluded, AdvancedForm #from tests.utils import write_output def test_basic(output_test_path, render_output, rendered_template, helper, client): form = BasicInputForm() pack = helper.template_pack rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_basic.html")) #write_output(output_test_path, pack, "test_basic.html", rendered) assert parse_html(attempted) == parse_html(rendered) def test_layout(output_test_path, render_output, rendered_template, helper, client): form = BasicInputFormLayoutIncluded(helper=helper) pack = helper.template_pack rendered = rendered_template(form) attempted = render_output(os.path.join(output_test_path, pack, "test_layout.html")) #write_output(output_test_path, pack, "test_layout.html", rendered) assert parse_html(attempted) == parse_html(rendered) def test_advanced(output_test_path, render_output, rendered_template, helper, client): form = AdvancedForm() pack = helper.template_pack helper.layout = Layout( Row( Column( 'simple', css_class='six' ), Column( 'opt_in', css_class='six' ), ), Row( Column( 'longtext' ), ), Row( Column( ButtonHolder(Submit('submit', 'Submit')), ), css_class="large" ), ) rendered = rendered_template(form, helper=helper) attempted = render_output(os.path.join(output_test_path, pack, "test_advanced.html")) #write_output(output_test_path, pack, "test_advanced.html", rendered) assert parse_html(attempted) == parse_html(rendered) crispy-forms-foundation-0.8.0/tests/001_ping_demo.py0000644000175000017500000000135413661262315022245 0ustar carstencarsten""" Some dummy pinging to ensure demo urls are consistent WARNING: Keep this syncrhonized with enabled urls files """ import pytest from django.urls import reverse @pytest.mark.parametrize("url_name,url_args,url_kwargs", [ ('home', [], {}), ('demo:crispy-demo-form-fieldsets', [], {'foundation_version':6}), ('demo:crispy-demo-form-tabs', [], {'foundation_version':6}), ('demo:crispy-demo-form-accordions', [], {'foundation_version':6}), ('demo:crispy-demo-success', [], {'foundation_version':6}), ]) def test_ping_reverse_urlname(client, url_name, url_args, url_kwargs): """Ping reversed url names""" response = client.get(reverse(url_name, args=url_args, kwargs=url_kwargs)) assert response.status_code == 200 crispy-forms-foundation-0.8.0/setup.cfg0000644000175000017500000000446113661262315020033 0ustar carstencarsten;; ;; crispy-forms-foundation package ;; [metadata] name = crispy-forms-foundation version = 0.8.0 description = Django application to add 'django-crispy-forms' layout objects for 'Foundation for sites' long_description = file:README.rst long_description_content_type = text/x-rst author = David Thenon author_email = sveetch@gmail.com url = https://github.com/sveetch/crispy-forms-foundation license = MIT keywords = Django, django-crispy-forms, foundation-site classifiers = Development Status :: 5 - Production/Stable Environment :: Web Environment Framework :: Django Framework :: Django :: 2.0 Framework :: Django :: 2.1 Framework :: Django :: 2.2 Framework :: Django :: 3.0 Intended Audience :: Developers License :: OSI Approved :: BSD License Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Topic :: Internet :: WWW/HTTP Topic :: Internet :: WWW/HTTP :: Dynamic Content Topic :: Software Development :: Libraries :: Python Modules [options] include_package_data = True install_requires = Django>=2.0 django-crispy-forms>=1.8.1 packages = find: zip_safe = True [options.extras_require] dev = flake8 pytest pytest-django sphinx sphinx-rtd-theme sphinx-autobuild django-debug-toolbar [options.packages.find] where = . exclude= data docs tests sandbox [wheel] universal = 0 ;; ;; Third-party packages configuration ;; [flake8] max-line-length = 80 exclude = .git, .venv, build, venv, __pycache__, */migrations/* [tool:pytest] DJANGO_SETTINGS_MODULE = sandbox.settings.tests addopts = -vv python_files = *.py testpaths = tests [tox:tox] envlist = py{36}-django{200,210,220,300} minversion = 3.4.0 [testenv] # Get the right django version following the current env deps = django200: Django>=2.0,<2.1 django210: Django>=2.1,<2.2 django220: Django>=2.2,<2.3 django300: Django>=3.0,<3.1 django200,django210: django-crispy-forms>=1.8.0,<1.9.0 django220,django300: django-crispy-forms>=1.9.0,<2.0.0 commands = pip install -e .[dev] pytest -vv tests crispy-forms-foundation-0.8.0/README.rst0000644000175000017500000000154613661262315017702 0ustar carstencarsten.. _Django: https://www.djangoproject.com/ .. _django-crispy-forms: https://github.com/maraujop/django-crispy-forms .. _Foundation for sites: http://foundation.zurb.com/ .. _Python: http://python.org/ Introduction ============ This is a `Django`_ application to add `django-crispy-forms`_ layout objects for `Foundation for sites`_. This app does not include `Foundation for sites`_ assets, you will have to install them yourself in your projects. Links ***** * Read the documentation on `Read the docs `_; * Download his `PyPi package `_; * Clone it on its `Github repository `_; Requires ======== * `Python`_ >= 3.5; * `Django`_ >= 2.0; * `django-crispy-forms`_ >= 1.8.1; * `Foundation for sites`_ >= 6.3.x; crispy-forms-foundation-0.8.0/docs/0000755000175000017500000000000013661262315017135 5ustar carstencarstencrispy-forms-foundation-0.8.0/docs/dummy_settings.py0000644000175000017500000000020213661262315022554 0ustar carstencarsten# Dummy Django settings file required to import # crispy-form-foundation when building the documentation SECRET_KEY = 'dummy-key'crispy-forms-foundation-0.8.0/docs/usage.rst0000644000175000017500000000316413661262315020777 0ustar carstencarsten============ Basic sample ============ Import **crispy-forms-foundation** then you can use the layout objects in your form : .. sourcecode:: python from crispy_forms_foundation.layout import Layout, Fieldset, SplitDateTimeField, Row, Column, ButtonHolder, Submit class YourForm(forms.ModelForm): def __init__(self, *args, **kwargs): self.helper = FormHelper() self.helper.form_action = '.' self.helper.layout = Layout( Fieldset( 'Content', 'title', 'content', ), Fieldset( 'Display settings', Row( Column('template', css_class='large-6'), Column('order', css_class='large-3'), Column('visible', css_class='large-3'), ), ), Fieldset( 'Publish settings', 'parent', Row( Column(SplitDateTimeField('published'), css_class='large-6'), Column('slug', css_class='large-6'), ), ), ButtonHolder( Submit('submit_and_continue', 'Save and continue'), Submit('submit', 'Save'), ), ) super(YourForm, self).__init__(*args, **kwargs) Embedded templates are in ``crispy_forms_foundation/templates/foundation-5`` or ``crispy_forms_foundation/templates/foundation-6`` depending of your template pack. crispy-forms-foundation-0.8.0/docs/layout/0000755000175000017500000000000013661262315020452 5ustar carstencarstencrispy-forms-foundation-0.8.0/docs/layout/grid.rst0000644000175000017500000000013113661262315022124 0ustar carstencarsten.. automodule:: crispy_forms_foundation.layout.grid :members: :show-inheritance: crispy-forms-foundation-0.8.0/docs/layout/containers.rst0000644000175000017500000000013713661262315023352 0ustar carstencarsten.. automodule:: crispy_forms_foundation.layout.containers :members: :show-inheritance: crispy-forms-foundation-0.8.0/docs/layout/base.rst0000644000175000017500000000013113661262315022111 0ustar carstencarsten.. automodule:: crispy_forms_foundation.layout.base :members: :show-inheritance: crispy-forms-foundation-0.8.0/docs/layout/buttons.rst0000644000175000017500000000013413661262315022700 0ustar carstencarsten.. automodule:: crispy_forms_foundation.layout.buttons :members: :show-inheritance: crispy-forms-foundation-0.8.0/docs/layout/fields.rst0000644000175000017500000000013313661262315022447 0ustar carstencarsten.. automodule:: crispy_forms_foundation.layout.fields :members: :show-inheritance: crispy-forms-foundation-0.8.0/docs/install.rst0000644000175000017500000000172213661262315021337 0ustar carstencarsten.. _django-crispy-forms: https://github.com/maraujop/django-crispy-forms .. _Foundation: http://github.com/zurb/foundation .. _install-intro: ======= Install ======= #. Get it from PyPi: :: pip install crispy-forms-foundation #. Register app in your project settings: .. sourcecode:: python INSTALLED_APPS = ( ... 'crispy_forms', 'crispy_forms_foundation', ... ) #. Import default settings at the end of the settings file: .. sourcecode:: python from crispy_forms_foundation.settings import * Default template pack name used will be ``foundation-6``. All other `django-crispy-forms`_ settings option apply, see its documentation for more details. #. Finally you will need to install Foundation assets in your project. For novices, a quick way is to use last `Foundation compiled version from CDN links `_.crispy-forms-foundation-0.8.0/docs/abide.rst0000644000175000017500000000541613661262315020741 0ustar carstencarsten.. _Abide: http://foundation.zurb.com/docs/components/abide.html =============================== Use Foundation Abide validation =============================== You can use `Abide`_ validation in your form but note that there is no support within the layout objects. You will have to add the ``required`` attribute (and eventually its validation pattern) on your field widgets in your form like this: .. sourcecode:: python title = forms.CharField(label=_('Title'), widget=forms.TextInput(attrs={'required':''}), required=True) To enable `Abide`_ on your form, you'll have to load its Javascript library (if you don't load yet the whole Foundation library) then in your form helper you will have to add its attribute on the form like this : .. sourcecode:: python class SampleForm(forms.Form): title = forms.CharField(label=_('Title'), widget=forms.TextInput(attrs={'required':''}), required=True) textarea_input = forms.CharField(label=_('Textarea'), widget=forms.Textarea(attrs={'required':''}), required=True) def __init__(self, *args, **kwargs): self.helper = FormHelper() # Enable Abide validation on the form self.helper.attrs = {'data_abide': '', 'novalidate': ''} self.helper.form_action = '.' self.helper.layout = Layout( ... ) super(SampleForm, self).__init__(*args, **kwargs) If needed, you can define an `Abide`_ error message directly on the field like this : .. sourcecode:: python class SampleForm(forms.Form): def __init__(self, *args, **kwargs): super(SampleForm, self).__init__(*args, **kwargs) self.fields['textarea_input'].abide_msg = "This field is required !" Support within tabs ******************* Default `Abide`_ behavior is not aware of Tabs and so input errors can be hided when they are not in the active tab. **crispy-forms-foundation** ships a jQuery plugin that add support for this usage, you will need to load it in your pages then initialize it on your form: .. sourcecode:: html This way, all input errors will be raised to their tab name that will display an error mark. Support within accordions ************************* Like with tabs, there is a jQuery plugin to add `Abide`_ support within accordions. You will need to load it in your pages then initialize it on your form: .. sourcecode:: html crispy-forms-foundation-0.8.0/docs/index.rst0000644000175000017500000000410413661262315020775 0ustar carstencarsten.. _Django: https://www.djangoproject.com/ .. _django-crispy-forms: https://github.com/maraujop/django-crispy-forms .. _Foundation for sites: http://foundation.zurb.com/ .. crispy-form-foundation documentation master file, created by sphinx-quickstart on Sat Nov 15 20:21:48 2014. Welcome to crispy-form-foundation's documentation! ================================================== This is a `Django`_ application to add `django-crispy-forms`_ layout objects for `Foundation for sites`_. This app does not include `Foundation for sites`_ assets, you will have to install them yourself in your projects. Links ***** * Read the documentation on `Read the docs `_; * Download his `PyPi package `_; * Clone it on its `Github repository `_; Requires ======== * `Python`_ >= 3.5; * `Django`_ >= 2.0; * `django-crispy-forms`_ >= 1.8.1; * `Foundation for sites`_ >= 6.3.x; User’s Guide ************ .. toctree:: :maxdepth: 2 install.rst settings.rst usage.rst layout/base.rst layout/fields.rst layout/buttons.rst layout/grid.rst layout/containers.rst abide.rst form_objects.rst Developer’s Guide ***************** .. toctree:: :maxdepth: 1 development.rst changelog.rst Contributors ............ .. _`@PhilipGarnero`: https://github.com/PhilipGarnero .. _`@jrast`: https://github.com/jrast .. _`@jayarnielsen`: https://github.com/jayarnielsen .. _`@carsolcas`: https://github.com/carsolcas .. _`@sbaechler`: https://github.com/sbaechler .. _`@bionikspoon`: https://github.com/bionikspoon .. _`@flesser`: https://github.com/flesser .. _`@xbello`: https://github.com/xbello .. _`@mpasternak`: https://github.com/mpasternak * Philip Garnero (`@PhilipGarnero`_); * Juerg Rast (`@jrast`_); * JR (`@jayarnielsen`_); * Carsolcas (`@carsolcas`_); * Simon Bächler (`@sbaechler`_); * Manu Phatak (`@bionikspoon`_); * Florian Eßer (`@flesser`_); * Xabier Bello (`@xbello`_); * Michał Pasternak (`@mpasternak`_); crispy-forms-foundation-0.8.0/docs/conf.py0000644000175000017500000002125513661262315020441 0ustar carstencarsten# -*- coding: utf-8 -*- # # crispy-form-foundation documentation build configuration file, created by # sphinx-quickstart on Sat Nov 15 20:21:48 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys import os from crispy_forms_foundation import __version__ as crispy_forms_foundation_version # Push a dummy settings file required by Django that is imported in # "crispy_forms_foundation.layout" sys.path.append(os.path.join(os.path.dirname(__file__), '.')) os.environ['DJANGO_SETTINGS_MODULE'] = 'dummy_settings' from django.conf import settings # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ 'sphinx.ext.autodoc', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'crispy-form-foundation' copyright = u'2014, David THENON' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = crispy_forms_foundation_version # The full version, including alpha/beta/rc tags. release = crispy_forms_foundation_version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build'] # The reST default role (used for this markup: `text`) to use for all # documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # If true, keep warnings as "system message" paragraphs in the built documents. #keep_warnings = False # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'alabaster' try: import sphinx_rtd_theme except ImportError: pass else: html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied # directly to the root of the documentation. #html_extra_path = [] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_domain_indices = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. #html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'crispy-form-foundationdoc' # -- Options for LaTeX output --------------------------------------------- latex_elements = { # The paper size ('letterpaper' or 'a4paper'). #'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). #'pointsize': '10pt', # Additional stuff for the LaTeX preamble. #'preamble': '', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'crispy-form-foundation.tex', u'crispy-form-foundation Documentation', u'David THENON', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. #latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. #latex_use_parts = False # If true, show page references after internal links. #latex_show_pagerefs = False # If true, show URL addresses after external links. #latex_show_urls = False # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_domain_indices = True # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'crispy-form-foundation', u'crispy-form-foundation Documentation', [u'David THENON'], 1) ] # If true, show URL addresses after external links. #man_show_urls = False # -- Options for Texinfo output ------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'crispy-form-foundation', u'crispy-form-foundation Documentation', u'David THENON', 'crispy-form-foundation', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. #texinfo_appendices = [] # If false, no module index is generated. #texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' # If true, do not generate a @detailmenu in the "Top" node's menu. #texinfo_no_detailmenu = False crispy-forms-foundation-0.8.0/docs/changelog.rst0000644000175000017500000002434113661262315021622 0ustar carstencarsten.. _crispy-forms-foundation-demo: https://github.com/sveetch/crispy-forms-foundation-demo ========= Changelog ========= Version 0.8.0 - 2020/05/20 ************************** **Major release to remove deprecated supports** * Drop Python2 support, minimal Python version support is 3.5; * Drop support for Django prior to 2.0; * Drop support for django-crispy-forms prior to 1.8.1; * Drop support for Foundation 5; * Ensure support for Django 2.2 and 3.0; * Ensure support for django-crispy-forms to 1.9.1; * Removed everything about Foundation 5; Version 0.7.1 - 2019/05/30 ************************** **Minor release to add support for Django 2.2** **This will be the last release to support Django<1.11, Python2 and Foundation5** * Updated tox configuration to cover Django 2.2; * Updated sandbox demo to work with Django 2.2; * Fixed changelog; * Fixed package manifest for supported Django versions; * Fixed README for supported Foundation versions; Version 0.7.0 - 2018/10/08 ************************** **Add support for Django 2.0 and 2.1** * Rewrite package to use ``setup.cfg``; * Add support for Django 2.0 and Django 2.1, close #36; * Django 1.11 support is the last one for Python2; * Change old demo project to more cleaner sandbox; * Included fix from django-crispy-forms#836 for ``FormHelper.field_template`` usage in uniform, close #39; Version 0.6.4 - 2017/07/29 ************************** * Fixed ``layout.buttons.ButtonGroup`` for deprecated ``Context()`` usage; * Fixed tests that performs comparison on html part using ``django.test.html.parse_html``; Version 0.6.3 - 2017/07/16 ************************** This release adds some bugfixes with Abide, new button objects that will replace the old ones a release and Foundation5 support will be removed for the next (non bugfix) release. * Removed ``is-visible`` class and added missing ``data-form-error-for`` attribute in Foundation6 field templates, close #33; * Added new field ``layout.fields.FakeField``; * Fixed tests to always compare rendered value to attempted value, so the test error output diffs are allways in the same order; * Updated documentation; * Adopted new settings structure in ``project/settings/``, removed ``db.sqlite3`` from repository; * Enabled ``django-debug-toolbar`` in development environment and settings for demo only (not for tests); * Moved ``layout.buttons.Hidden`` to ``layout.fields.Hidden``; * Added ``layout.buttons.ButtonElement``, ``layout.buttons.ButtonSubmit`` and ``layout.buttons.ButtonReset`` to button input as real ``crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/layout/tab-item.html0000644000175000017500000000032013661262315033361 0ustar carstencarsten{{ fields|safe }} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/layout/fieldset.html0000644000175000017500000000044013661262315033461 0ustar carstencarsten {{ legend|safe }} {{ fields|safe }} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/layout/tab-link.html0000644000175000017500000000046613661262315033373 0ustar carstencarsten
  • {{ link.name|capfirst }}{% if item_has_errors %} !{% endif %}
  • ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootcrispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/layout/checkboxselectmultiple.htmlcrispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/layout/checkboxselectmu0000644000175000017500000000106313661262315034251 0ustar carstencarsten{% load l10n %}
      {% for choice in field.field.choices %}
    • {% endfor %}
    crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/layout/multifield.html0000644000175000017500000000215713661262315034027 0ustar carstencarsten {% spaceless %}{% if form_show_errors %} {% for field in multifield.bound_fields %} {% if field.errors %} {% for error in field.errors %}

    {{ error }}

    {% endfor %} {% endif %} {% endfor %} {% endif %}{% endspaceless %} {% spaceless %}{% if multifield.label_html %} {{ multifield.label_html|safe }}

    {% endif %}{% endspaceless %}
    {{ fields_output|safe }}
    {% spaceless %}{% for field in multifield.bound_fields %} {% if field.help_text %}

    {{ field.help_text|safe }}

    {% endif %} {% endfor %}{% endspaceless %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/field.strict.html0000644000175000017500000000227213661262315032744 0ustar carstencarsten{% load crispy_forms_field %} {% if field.is_hidden %} {{ field }} {% else %}
    {% if field|is_checkbox %} {% crispy_field field %} {% endif %} {% if field.label %} {% endif %} {% if not field|is_checkbox %} {% crispy_field field %} {% endif %} {% for error in field.errors %} {{ error }} {% endfor %} {% if field.help_text %}

    {{ field.help_text|safe }}

    {% endif %}
    {% endif %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/uni_formset.html0000644000175000017500000000036513661262315032705 0ustar carstencarsten{% with formset.management_form as form %} {% include 'foundation-6/uni_form.html' %} {% endwith %} {% for form in formset.forms %}
    {% include 'foundation-6/uni_form.html' %}
    {% endfor %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/switch.html0000644000175000017500000000330013661262315031644 0ustar carstencarsten{% load crispy_forms_field %} {% if field.is_hidden %} {{ field }} {% else %}
    {% spaceless %} {% if field.label %}
    {% if field|is_checkbox %} {% crispy_field field %} {% endif %}
    {% endif %} {% if field|is_checkboxselectmultiple %} {% include 'foundation-6/layout/checkboxselectmultiple.html' %} {% endif %} {% if not field|is_checkbox and not field|is_checkboxselectmultiple %} {% crispy_field field %} {% endif %} {% if form_show_errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %}

    {{ field.help_text|safe }}

    {% endif %} {% endspaceless %}
    {% endif %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/betterform.html0000644000175000017500000000133313661262315032520 0ustar carstencarsten{% for fieldset in form.fieldsets %}{% spaceless %}
    {% if fieldset.legend %} {{ fieldset.legend }} {% endif %} {% if fieldset.description %}

    {{ fieldset.description }}

    {% endif %} {% for field in fieldset %} {% if field.is_hidden %} {{ field }} {% else %} {% include field_template|default:"foundation-6/field.html" %} {% endif %} {% endfor %} {% if not forloop.last or not fieldset_open %}
    {% endif %} {% endspaceless %}{% endfor %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/inline_switch.html0000644000175000017500000000404413661262315033210 0ustar carstencarsten{% load crispy_forms_field %} {% if field.is_hidden %} {{ field }} {% else %}
    {% spaceless %}
    {{ field.label|safe }}{% if field.field.required %}*{% endif %}
    {% if field|is_checkbox %} {% crispy_field field %} {% endif %} {% if field.field.abide_msg %} {{ field.field.abide_msg }} {% endif %} {% if form_show_errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %}
    {% if field.help_text %}

    {{ field.help_text|safe }}

    {% endif %} {% endspaceless %} {% endif %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/field.html0000644000175000017500000000400013661262315031424 0ustar carstencarsten{% load crispy_forms_field crispy_forms_foundation_field %} {% if field.is_hidden %} {{ field }} {% else %}
    {% spaceless %} {% if field.label %} {% if field|is_checkbox %} {% crispy_field field %} {% endif %} {{ field.label|safe }}{% if field.field.required %}*{% endif %} {% endif %} {% if field|is_checkboxselectmultiple %} {% include 'foundation-6/layout/checkboxselectmultiple.html' %} {% endif %} {% if not field|is_checkbox and not field|is_checkboxselectmultiple %} {% crispy_field field %} {% endif %} {% if field.field.abide_msg %} {{ field.field.abide_msg }} {% endif %} {% if form_show_errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %}

    {{ field.help_text|safe }}

    {% endif %} {% endspaceless %}
    {% endif %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/errors.html0000644000175000017500000000062613661262315031667 0ustar carstencarsten{% if form.errors and form.non_field_errors %}{% spaceless %}
    {% if form_error_title %}
    {{ form_error_title }}
    {% endif %}
      {% for error in form.non_field_errors %}
    • {{ error }}
    • {% endfor %}
    {% endspaceless %}{% endif %}crispy-forms-foundation-0.8.0/crispy_forms_foundation/templates/foundation-6/multifield.html0000644000175000017500000000125513661262315032510 0ustar carstencarsten{% load crispy_forms_field %} {% if field.is_hidden %} {{ field }} {% else %}
    {% if field.label %} {% endif %} {% crispy_field field %} {% if field.help_text %}
    {{ field.help_text|safe }}
    {% endif %}
    {% endif %} crispy-forms-foundation-0.8.0/crispy_forms_foundation/templatetags/0000755000175000017500000000000013661262315025644 5ustar carstencarstencrispy-forms-foundation-0.8.0/crispy_forms_foundation/templatetags/__init__.py0000644000175000017500000000000013661262315027743 0ustar carstencarstencrispy-forms-foundation-0.8.0/crispy_forms_foundation/templatetags/crispy_forms_foundation_field.py0000644000175000017500000000763013661262315034334 0ustar carstencarsten""" Re implementation of ``crispy_forms.templatetags.crispy_forms_field`` needed to have correct Foundation6 error class on input element. TODO: Changes stand on ``CRISPY_CLASS_CONVERTERS`` usage so it may be included in ``django-crispy-forms``, this needs a Pull request. """ from django import template from django.conf import settings from crispy_forms.templatetags.crispy_forms_field import (is_checkbox, is_file, pairwise, CrispyFieldNode) register = template.Library() class CrispyFoundationFieldNode(CrispyFieldNode): def __init__(self, field, attrs): self.field = field self.attrs = attrs self.html5_required = 'html5_required' def render(self, context): # Nodes are not threadsafe so we must store and look up our instance # variables in the current rendering context first if self not in context.render_context: context.render_context[self] = ( template.Variable(self.field), self.attrs, template.Variable(self.html5_required) ) field, attrs, html5_required = context.render_context[self] field = field.resolve(context) try: html5_required = html5_required.resolve(context) except template.VariableDoesNotExist: html5_required = False widgets = getattr(field.field.widget, 'widgets', [field.field.widget]) if isinstance(attrs, dict): attrs = [attrs] * len(widgets) converters = { 'textinput': 'textinput textInput', 'fileinput': 'fileinput fileUpload', 'passwordinput': 'textinput textInput', 'inputelement': 'form-control', 'errorcondition': 'form-control-danger', } converters.update(getattr(settings, 'CRISPY_CLASS_CONVERTERS', {})) for widget, attr in zip(widgets, attrs): class_name = widget.__class__.__name__.lower() class_name = converters.get(class_name, class_name) css_class = widget.attrs.get('class', '') if css_class: if css_class.find(class_name) == -1: css_class += " %s" % class_name else: css_class = class_name if not is_checkbox(field) and not is_file(field): if converters.get('inputelement'): css_class += ' ' + converters.get('inputelement') if converters.get('errorcondition') and field.errors: css_class += ' ' + converters.get('errorcondition') widget.attrs['class'] = css_class # HTML5 required attribute if (html5_required and field.field.required and 'required' not in widget.attrs): if field.field.widget.__class__.__name__ != 'RadioSelect': widget.attrs['required'] = 'required' for attribute_name, attribute in attr.items(): attribute_name = template.Variable(attribute_name).resolve(context) # noqa: E501 if attribute_name in widget.attrs: widget.attrs[attribute_name] += " " + template.Variable(attribute).resolve(context) # noqa: E501 else: widget.attrs[attribute_name] = template.Variable(attribute).resolve(context) # noqa: E501 return field @register.tag(name="crispy_field") def crispy_field(parser, token): """ {% crispy_field field attrs %} """ token = token.split_contents() field = token.pop(1) attrs = {} # We need to pop tag name, or pairwise would fail token.pop(0) for attribute_name, value in pairwise(token): attrs[attribute_name] = value return CrispyFoundationFieldNode(field, attrs) crispy-forms-foundation-0.8.0/Makefile0000644000175000017500000000417613661262315017655 0ustar carstencarstenPYTHON_INTERPRETER=python3 VENV_PATH=.venv PIP=$(VENV_PATH)/bin/pip DJANGO_MANAGE=$(VENV_PATH)/bin/python sandbox/manage.py FLAKE=$(VENV_PATH)/bin/flake8 PYTEST=$(VENV_PATH)/bin/pytest help: @echo "Please use \`make ' where is one of" @echo @echo " install -- to install this project with virtualenv and Pip" @echo "" @echo " clean -- to clean EVERYTHING" @echo " clean-data -- to clean data (uploaded medias, database, etc..)" @echo " clean-install -- to clean installation" @echo " clean-pycache -- to remove all __pycache__, this is recursive from current directory" @echo "" @echo " migrate -- to apply demo database migrations" @echo " run -- to run Django development server for demo" @echo " shell -- to run Django shell" @echo " superuser -- to create a superuser for Django admin" @echo "" @echo " flake -- to launch Flake8 checking" @echo " tests -- to launch tests using Pytest" @echo " quality -- to launch Flake8 checking and Pytest" @echo clean-pycache: rm -Rf .pytest_cache find . -type d -name "__pycache__"|xargs rm -Rf find . -name "*\.pyc"|xargs rm -f .PHONY: clean-pycache clean-install: rm -Rf $(VENV_PATH) rm -Rf .tox rm -Rf crispy_forms_foundation.egg-info .PHONY: clean-install clean-data: rm -Rf data .PHONY: clean-data clean: clean-install clean-pycache clean-data .PHONY: clean venv: virtualenv -p $(PYTHON_INTERPRETER) $(VENV_PATH) # This is required for those ones using ubuntu<16.04 $(PIP) install --upgrade pip $(PIP) install --upgrade setuptools .PHONY: venv migrate: mkdir -p data/db $(DJANGO_MANAGE) migrate .PHONY: migrate shell: $(DJANGO_MANAGE) shell .PHONY: shell superuser: $(DJANGO_MANAGE) createsuperuser .PHONY: superuser install: venv mkdir -p data $(PIP) install -e .[dev] ${MAKE} migrate .PHONY: install run: $(DJANGO_MANAGE) runserver 0.0.0.0:8001 .PHONY: run flake: $(FLAKE) --show-source crispy_forms_foundation .PHONY: flake tests: $(PYTEST) -vv tests/ .PHONY: tests quality: tests flake .PHONY: quality crispy-forms-foundation-0.8.0/.gitignore0000644000175000017500000000077413661262315020205 0ustar carstencarsten# virtualenv .venv venv # Packaging build dist *.egg-info # sqlite DB db.sqlite3 *.db # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] # Site media /data/ # Settings /sandbox/settings/local.py # Unit test / coverage reports htmlcov/ .coverage .cache .pytest_cache nosetests.xml coverage.xml # Temp files *~ .~lock* # Swap files *.sw[po] # JS dependencies node_modules # SASS .sass-cache # logs yarn-error.log # Exported strings & generated translation templates *.pot # Tests .tox