Skip to content

Instantly share code, notes, and snippets.

View goinnn's full-sized avatar
🏠
Working remotely

Pablo Martín goinnn

🏠
Working remotely
View GitHub Profile
@goinnn
goinnn / gist:5530987
Last active December 17, 2015 01:49 — forked from armonge/gist:2830057
import urlparse
import re
from django import forms
from django.db import models
from django.utils.translation import ugettext_lazy as _
def validate_youtube_url(value):
'''El patron lo saque de http://stackoverflow.com/questions/2964678/jquery-youtube-url-validation-with-regex'''