Skip to content

Instantly share code, notes, and snippets.

@drivard
drivard / install_duc_mac.sh
Last active March 13, 2021 07:17
how to install duc on mac using brew
# /bin/bash
#
## Install duc from http://duc.zevv.nl/
## Adapted from https://gist.github.com/turtlemonvh/09a79a810d485f18af19
## Find the latest release here https://github.com/zevv/duc/releases
DUC_VERSION=1.4.3
if ! which brew ; then
echo "ERROR: brew is required"
@drivard
drivard / wsgi.py
Created August 21, 2012 18:16
WSGI for myproject on my blog drivard.com see configuring nginx with uWSGI
"""
WSGI config for myproject project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` setting.
Usually you will have the standard Django WSGI application here, but it also
might make sense to replace the whole Django WSGI application with a custom one
@drivard
drivard / settings.py
Created August 21, 2012 18:05
Django basic settings.py with sqlite3 database
# Django settings for myproject project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS