Last active
August 29, 2015 14:12
-
-
Save yegle/40144b7613904add58af to your computer and use it in GitHub Desktop.
Use VirtualEnv to manage dependencies on GAE project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from google.appengine.ext import vendor | |
""" | |
1. Create a virtualenv directory at the root of your project, name it "venv" | |
2. Install packages needed in your project | |
3. Freeze it and save the package list into requirements.txt file, add it to | |
version control | |
4. Exclude "venv" directory from version control | |
5. Save the content of this file as "appengine_config.py", and put it at the | |
root of your project | |
""" | |
VENV = os.path.join(os.path.dirname(__file__), "venv") | |
vendor.add(VENV) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment