Search code examples
pythondjangotastypiedjango-apps

How do I install Tastypie for Django?


I am following the instructions to install Tastypie for Django and I am stuck somewhere between step 2 and 3. I successfully ran "sudo pip install django-tastypie" however, I don't know where the "tastypie" directory is that I am supposed to use for the symlink.


Solution

  • It would depend on your distro and version of Python. Most likely the folder you are looking for is located in the site-packages subfolder under your python home folder.

    To see the exact location try running:

    python -m site
    

    For more details also try:

    python -m site --help
    

    And you can get only the sys.path by running:

    python -c "import sys; print ('\n').join(sys.path)"