Skip to content

Instantly share code, notes, and snippets.

@roboslone
Created March 13, 2014 15:58
Show Gist options
  • Save roboslone/9531175 to your computer and use it in GitHub Desktop.
Save roboslone/9531175 to your computer and use it in GitHub Desktop.
How to add modules to python path in Django.
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
sys.path.append('/Users/RoboSloNE/Documents/Development/Python/Django/yandex/apps')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment