Django Chronograph

In this recipe, I will be writing all I know about using the django-chronograph app for your websites. Django-chronograph is Django’s way of doing tasks in the background on fixed intervals by interacting with the system’s cron daemon. This should be great for long running tasks, that would especially timeout a …

Easy Django form customization using django-widget-tweaks

When customizing Django forms, you usually have to add it on the forms definition using the widget. Say for example you want to add a class attribute to a form input. You have to do it this way forms.py : from django import forms class VolunteerForm(forms.Form) name = forms.TextInput() address =forms.TextField(widget=forms.Textarea(attrs={‘class’:’volunteer_class’})) …

Django-tinymce options and plugins

In our previous post, we discussed Django-tinymce, a JavaScript WYSIWYG editor that converts an HTML textarea field into an editor instance.  Again, django-tinymce is a Django application that contains a widget that renders a form field as a TinyMCE editor. This is especially helpful when you have forms that require …