django-form-admin
Information
It is a Django application that lets to render forms like django admin, with the same HTML
Requirements
Django (>= 1.0, the example project needs >=1.3)
How to use it
Option 1
In your form:
class FooForm(forms.Form, FormAdminDjango):
pass
class FooModelForm(forms.ModelForm, FormAdminDjango):
pass
In your template:
{{ form.as_django_admin }}
Option 2
But you don’t need inherit of FormAdminDjango, you may also do
In your form:
class FooForm(forms.Form):
...
def as_django_admin(self):
from formadmin.forms import as_django_admin
return as_django_admin(self)
In your template:
{{ form.as_django_admin }}
Option 3
Or even without modify the form
Only in your template:
{% load formadmin_filters %}
{{ form|as_django_admin }}
Development
You can get the bleeding edge version of django-form-admin by doing a clone of its git repository:
git clone git://github.com/Yaco-Sistemas/django-form-admin.git
Releases
0.4.2 (2013-10-28)
Fix an error when to install this egg from pypi
0.4.1 (2013-10-04)
Improvements in the example project
0.4.0 (2013-09-12)
New way to render the form (filter)
Update metainfo
Example project
0.3.2 (2011-12-03)
Subversion version
Release files for django-form-admin 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-form-admin-0.4.2.tar.gz | 5.9 kB | Details |
Release files / django-form-admin-0.4.2.tar.gz
| Download URL | django-form-admin-0.4.2.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a372a5b64799909d734158493f2af18d69894d82f4dad76d67664942936227c
|
|
BLAKE2b-256 checksum How to use checksums |
d49c9ffd611437eb552415d5e0437f18727f5eeb84e1ff77a1b4adfba47a11d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |