Merge pull request #1 from MattAustin/0.1.0

0.1.0
This commit is contained in:
tzangms 2011-09-13 20:48:31 -07:00
commit 338cc86c03
12 changed files with 27 additions and 22 deletions

2
MANIFEST.in Normal file
View File

@ -0,0 +1,2 @@
include README
graft bootstrapform/templates

2
README
View File

@ -6,4 +6,4 @@ usage:
{% load bootstrap %}
{{ form|bootstrape }}
{{ form|bootstrap }}

View File

@ -0,0 +1,5 @@
from bootstrapform.meta import VERSION
__version__ = str(VERSION)

5
bootstrapform/meta.py Normal file
View File

@ -0,0 +1,5 @@
from distutils.version import StrictVersion
VERSION = StrictVersion('0.1.0')

View File

@ -6,7 +6,7 @@ register = template.Library()
@register.filter
def bootstrap(form):
template = get_template("bootstrap_form/form.html")
template = get_template("bootstrapform/form.html")
context = Context({'form': form})
return template.render(context)

View File

@ -1,3 +0,0 @@
from django.db import models
# Create your models here.

13
setup.py Normal file
View 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'],
)

View File

@ -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)

View File

@ -1 +0,0 @@
# Create your views here.