Skip to content

Instantly share code, notes, and snippets.

from urllib.parse import urlparse, parse_qs
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django import forms
import re
def validate_youtube_url(value):
"""
El patron lo saque de http://stackoverflow.com/questions/2964678/jquery-youtube-url-validation-with-regex
"""
// History.js It!
// v1.0.1 - 30 September, 2012
// https://gist.github.com/5514769
// Following Balupton's gist https://gist.github.com/balupton/854622
// This is to only ajaxify links in a navbar not on the entire page
// Used in conjunction with Twitter bootstrap navs
(function(window,undefined){
// Prepare our Variables
var History = window.History, $ = window.jQuery, document = window.document;
// Check to see if History.js is enabled for our Browser