Skip to content

Instantly share code, notes, and snippets.

@andrewebdev
Last active December 18, 2015 00:39
Show Gist options
  • Save andrewebdev/5698234 to your computer and use it in GitHub Desktop.
Save andrewebdev/5698234 to your computer and use it in GitHub Desktop.
Django: projectdir
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
base_dir = lambda *p: os.path.join(BASE_DIR, *p)
BUILDOUT_ROOT = os.path.dirname(BUILDOUT_ROOT)
buildout_root = lambda *p: os.path.join(BUILDOUT_ROOT, *p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment