Codejoy Codejoy - 2 years ago 68
CSS Question

Copying site-package into my own project for a 'local copy'

I was curious how I copy over site-packages stuff like for instance in django-filer I used a pip install for it installed it to:


Which is fine, but the stuff inside that filer folder (like under
are things I would like to change on a specific to my project basis).

I think I read where Django takes what it finds first, so if I moved the stuff in the above URL (specifically the css) to my local django project it would use this filers css I put there as it would encounter that first compared to what is in site packages, is this anywhere near correct?

Really the whole reason for this is in because in the above plugin, there is a nasty CSS bug I think I can fix myself if I had access to the code and my program knew to used said code I tweak to test and then fully use when available fix and all.

Answer Source

You could simply create a virtual environment which is completely isolated:


virtualenv is a tool to create isolated Python environments. virtualenv creates a folder which contains all the necessary executables to use the packages that a Python project would need.

Install virtualenv via pip:

$ pip install virtualenv

Basic Usage

Create a virtual environment for a project:

$ cd my_project_folder
$ virtualenv venv
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download