Skip to content

Instantly share code, notes, and snippets.

@hcliff
Created September 18, 2013 14:49
Show Gist options
  • Save hcliff/6610268 to your computer and use it in GitHub Desktop.
Save hcliff/6610268 to your computer and use it in GitHub Desktop.
Example settings
PROJECT_ROOT = '' # path to project goes here
# Uncompiled static
# Absolute filesystem path to the directory that will hold site static assets
STATIC_ROOT = os.path.join(PROJECT_ROOT, 's/s')
# Staticfiles app settings, files to copy to static location
STATICFILES_DIRS = ()
STATIC_URL = '/s/s/'
# User-uploaded files.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = (PROJECT_ROOT / 's/m').abspath()
MEDIA_URL = '/s/m/'
# Compiled assets
# Note: all project assets handled via mediagenerator, not static
GLOBAL_MEDIA_DIRS = (os.path.join(PROJECT_ROOT, 'static'), )
DEV_MEDIA_URL = PRODUCTION_MEDIA_URL = '/s/g/'
GENERATED_MEDIA_DIR = os.path.join(PROJECT_ROOT, 's/g')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment