django-aceProvides integration for ajax.org ACE with Django | |
Download |
django-ace Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Bradley Ayers
- Publisher web site:
- https://github.com/bradleyayers/
django-ace Tags
django-ace Description
django-ace is a Django app that provides integration for ajax.org ACE with Django.Usagefrom django import formsform django_ace import AceWidgetclass EditorForm(forms.Form): text = forms.CharField(widget=AceWidget)Syntax highlighting and static analysis can be enabled by specifying the language:class EditorForm(forms.Form): text = forms.CharField(widget=AceWidget(mode='css'))Themes are also supported:class EditorForm(forms.Form): text = forms.CharField(widget=AceWidget(mode='css', theme='twilight'))Install1. Install using pip: pip install django_ace2. Update INSTALLED_APPS: INSTALLED_APPS = ( # ... 'django_ace', )Example ProjectThere's an example project included in the source, to try it do:cd example/virtualenv .env. .env/bin/activatepip install -e .../manage.py syncdb./manage.py runserverThen browser to http://localhost:8000.Product's homepage
django-ace Related Software