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
$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; |
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; |
from django.contrib.staticfiles.storage import CachedFilesMixin, StaticFilesStorage | |
from pipeline.storage import PipelineMixin | |
def coroutine(func): | |
def start(*args, **kwargs): | |
cr = func(*args, **kwargs) | |
cr.next() | |
return cr | |
return start |
//Enlarge all the bacon. | |
$('.bacon').height(10000).refresh(); |
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 |