Skip to content

Instantly share code, notes, and snippets.

View miguelgr's full-sized avatar
🛹

Miguel García miguelgr

🛹
  • Madrid
View GitHub Profile
@miguelgr
miguelgr / micro-django.py
Last active August 29, 2015 14:01 — forked from jorgebastida/gist:10582948
python micro-django.py runserver <port>
# http://programming.oreilly.com/2014/04/simplifying-django.html
import os
import sys
BASE_PATH = os.path.dirname(__file__)
from django.conf import settings
from django.conf.urls import patterns, url
from django.template.response import TemplateResponse
/*!
* Grunt
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev
*/
module.exports = function(grunt) {
grunt.initConfig({
// Sass
Handlebars.registerHelper('trans', function(fn) {
return gettext(fn(this));
});