If you need a good way to secure your Django admin site (e.g., http://example.com/admin/), this is it.
Reference: https://gist.github.com/mtigas/952344
# Gulpfile.js | |
# // Note the new way of requesting CoffeeScript since 1.7.x | |
# require('coffee-script/register'); | |
# // This bootstraps your Gulp's main file | |
# require('./Gulpfile.coffee'); | |
# assets | |
# ├── Gulpfile.coffee | |
# ├── Gulpfile.js |
If you need a good way to secure your Django admin site (e.g., http://example.com/admin/), this is it.
Reference: https://gist.github.com/mtigas/952344
//Enlarge all the bacon. | |
$('.bacon').height(10000).refresh(); |
from django.contrib.staticfiles.storage import CachedFilesMixin, StaticFilesStorage | |
from pipeline.storage import PipelineMixin | |
from functools import wraps | |
import shutil | |
import re | |
import subprocess | |
def coroutine(func): | |
@wraps(func) |
server { | |
listen 80; | |
server_name %(name)s %(aliases)s; | |
client_max_body_size 4G; | |
keepalive_timeout 5; | |
gzip on; | |
gzip_static on; | |
gzip_min_length 1000; | |
gzip_types text/css text/plain text/javascript application/x-javascript application/x-json; |
$less-column-width: 68px; | |
$less-gutter-width: 24px; | |
@function column-width($columns) { | |
@return ($less-column-width * $columns) + ($less-gutter-width * ($columns - 1)); | |
} | |
@function grid-padding-px($columns) { | |
@if $columns == 10 { | |
@return 48px; |