Skip to content

Instantly share code, notes, and snippets.

import redis
from django.conf import settings
from django.core.signals import request_finished
try:
from eventlet.corolocal import local
except ImportError:
from threading import local
@tundebabzy
tundebabzy / gist:2204408
Created March 26, 2012 10:48
Questions Form
#******************models.py**************************************************#
from django.db import models
from django.contrib.auth.models import User
class Question(models.Model):
question = models.TextField()
def __unicode__(self):
return self.question
@tundebabzy
tundebabzy / ai-class.py
Created October 15, 2011 05:29
Download lecture videos of ai-class
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Deepak.G.R."
__license__ = 'Public Domain'
"""
usage:
Go to command line and type