Templates Tagged "django"

template icon

Apache 2 Django Application Configuration

February 16, 2012This template helps create apache 2 configurations for django applications using mod_python. The assumed structure is that "/var/www/" is the base path and that sites exist in a directory such as "/var/www/%[app_name]%/. This file should be placed named %[fqdn]% and placed in /var/www/sites-available. After this file is saved you should issue a2ensite %[fqdn]% then restart apache.
template icon

Apache2 mod_wsgi for django

February 16, 2012A simple template to setup a django site for apache2 and mod_wsgi.
template icon

Tweeting from a django application

February 17, 2012A recent feature request for hatch was to have a twitter feed. A twitter feed would allow people to be notified when new config templates are created via twitter.
template icon

Create Share buttons using Django Templatetags

February 16, 2012It's easy to copy and paste urls to share links, but its easier to just click on a button to do it.
template icon

Setup enivornment for new django application

May 11, 2012Copying this entire config into an ssh window on a linux host will create all the necessary scaffolding to run a django 1.4 site on apache2 using wsgi and create the necessary database and user.
template icon

Add django-tinymce + django-filebrowser to projects

March 5, 2012Adding wysiwyg editors with image uploading is kind of a pain in the ass. The below template may need some cleanup, but it works for me now. This is on ubuntu using apache2, my projects are in /var/www/%{fqdn}%/%{project_name}%/. Make sure to grab [django-filebrowser-no-grappelli-and-uploadify](https://github.com/alexvasi/django-filebrowser-no-grappelli-and-uploadify), I didn't want grappelli.
template icon

Generate Django 1.4 settings.py for my enviornment

May 2, 2012The following generates a standard settings.py file that I use for all my apps.