Merge branch 'development'
This commit is contained in:
2
MANIFEST.in
Normal file
2
MANIFEST.in
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
include README
|
||||||
|
graft bootstrapform/templates
|
2
README
2
README
@@ -6,4 +6,4 @@ usage:
|
|||||||
|
|
||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
|
|
||||||
{{ form|bootstrape }}
|
{{ form|bootstrap }}
|
||||||
|
5
bootstrapform/__init__.py
Normal file
5
bootstrapform/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from bootstrapform.meta import VERSION
|
||||||
|
|
||||||
|
|
||||||
|
__version__ = str(VERSION)
|
||||||
|
|
5
bootstrapform/meta.py
Normal file
5
bootstrapform/meta.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
|
VERSION = StrictVersion('0.1.0')
|
||||||
|
|
@@ -6,7 +6,7 @@ register = template.Library()
|
|||||||
|
|
||||||
@register.filter
|
@register.filter
|
||||||
def bootstrap(form):
|
def bootstrap(form):
|
||||||
template = get_template("bootstrap_form/form.html")
|
template = get_template("bootstrapform/form.html")
|
||||||
context = Context({'form': form})
|
context = Context({'form': form})
|
||||||
return template.render(context)
|
return template.render(context)
|
||||||
|
|
13
setup.py
Normal file
13
setup.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
from setuptools import setup, find_packages
|
||||||
|
from bootstrapform.meta import VERSION
|
||||||
|
|
||||||
|
|
||||||
|
setup(name='django-bootstrap-form',
|
||||||
|
author='Matt Austin', author_email='mail@mattaustin.me.uk',
|
||||||
|
url='https://github.com/MattAustin/django-bootstrap-form',
|
||||||
|
version=str(VERSION),
|
||||||
|
packages=find_packages(),
|
||||||
|
include_package_data=True,
|
||||||
|
install_requires=['django'],
|
||||||
|
)
|
||||||
|
|
16
tests.py
16
tests.py
@@ -1,16 +0,0 @@
|
|||||||
"""
|
|
||||||
This file demonstrates writing tests using the unittest module. These will pass
|
|
||||||
when you run "manage.py test".
|
|
||||||
|
|
||||||
Replace this with more appropriate tests for your application.
|
|
||||||
"""
|
|
||||||
|
|
||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
|
|
||||||
class SimpleTest(TestCase):
|
|
||||||
def test_basic_addition(self):
|
|
||||||
"""
|
|
||||||
Tests that 1 + 1 always equals 2.
|
|
||||||
"""
|
|
||||||
self.assertEqual(1 + 1, 2)
|
|
Reference in New Issue
Block a user