This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*! DeadSimple_Form allows you to work with a form template (created with | |
PHP) rather than dynamically added fields (as with Zend_Form or HTML_QuickForm). | |
This is most useful when your favorite form API cannot easily reproduce the | |
the desired form in a programmatic way. | |
Two things are required to utilize this class: | |
1. A script that instantiates and validates the form. A "controller", if you will. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.sites.models import RequestSite | |
from django.shortcuts import render_to_response | |
def my_view(request): | |
domain = RequestSite(request).domain | |
# ... do some domain specific things here ... | |
return render_to_response("my_view.html") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
""" | |
Import email for a given frequency. For example, to activate importers set | |
up for every 15 minutes, run: | |
./import_email.py 15 | |
Set this up in your crontab for 5, 10, 15, 30, 45, and 60 as needed. |
NewerOlder