{"id":20099015,"url":"https://github.com/jream/config-virtualenv","last_synced_at":"2026-06-08T08:05:02.657Z","repository":{"id":19704073,"uuid":"22959140","full_name":"JREAM/config-virtualenv","owner":"JREAM","description":"Setting up a new project with Django, this is what I follow.","archived":false,"fork":false,"pushed_at":"2014-09-14T07:39:30.000Z","size":183,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T16:48:44.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JREAM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-14T15:37:54.000Z","updated_at":"2015-02-04T01:20:58.000Z","dependencies_parsed_at":"2022-08-24T14:08:34.494Z","dependency_job_id":null,"html_url":"https://github.com/JREAM/config-virtualenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JREAM/config-virtualenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fconfig-virtualenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fconfig-virtualenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fconfig-virtualenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fconfig-virtualenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JREAM","download_url":"https://codeload.github.com/JREAM/config-virtualenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JREAM%2Fconfig-virtualenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34053469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:07:42.979Z","updated_at":"2026-06-08T08:05:02.593Z","avatar_url":"https://github.com/JREAM.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VirtualEnv Config\n\n\nThis allows you to easily jump from project to in different virtual environments even easier. All credit is due to the infamous [Dan Sackett](https://github.com/dansackett) whom I forked this from and revised for my own use.\n\n\n# Usage\n\nCreate an environment and work on it\n\n    $ mkvirtualenv \u003cname\u003e\n    \nDeactivate a virtual environment\n\n    $ deactivate\n    \nWork on a virtual environment\n\n    $ workon \u003cname\u003e\n\nRemove a virtual environment\n\n    $ rmvirtualenv \u003cname\u003e\n    # (Then proceed to remove your project folder)\n\n# Installation\n\n## Auto Installation\n\nRun the following command (You might have to `$ chmod +x autorun.sh`):\n\n    $ bash autorun.sh\n\n## Manual Installation\n\n### 1: Install Packages\nInstall Python PIP (Package Manager) if not already installed.\n\n    sudo apt-get install python-setuptools\n    sudo easy_install pip\n\nGlobally Install our two items\n\n    sudo pip install virtualenv virtualenvwrapper\n\n\n### 2: Centralize the VirtualEnv settings\n\n    mkdir ~/.virtualenvs\n    echo \"export WORKON_HOME=~/.virtualenvs\" \u003e\u003e ~/.bashrc\n    echo \"source /usr/local/bin/virtualenvwrapper.sh\" \u003e\u003e ~/.bashrc\n    echo \"export PIP_VIRTUALENV_BASE=~/.virtualenvs\" \u003e\u003e ~/.bashrc\n\n### 3: Alias Creation\n\n    echo \"alias mkvirtualenv='mkvirtualenv --no-site-packages --distribute'\" \u003e\u003e ~/.bashrc\n\nAnd Reload!\n\n    source ~/.bashrc\n\n### 4: Setup VirtualEnv Hooks \n\nEdit your postactivate file (**~/.virtualenvs/postactivate**):\n\n    # source postactivate hook\n    _HOOK_PATH=bin/postactivate\n    _PROJECT_FILE=$VIRTUAL_ENV/$VIRTUALENVWRAPPER_PROJECT_FILENAME\n\n    if [ -s $_PROJECT_FILE ]; then\n        export _PROJECT_DIR=$(cat $_PROJECT_FILE)\n        _HOOK=$_PROJECT_DIR/$_HOOK_PATH\n        [ -f $_HOOK ] \u0026\u0026 . $_HOOK\n    fi\n\nYour postdeactivate file (**~/.virtualenvs/postdeactivate**):\n\n    # source postdeactivate hook\n    _HOOK_PATH=bin/postdeactivate\n\n    if [ -n \"$_PROJECT_DIR\" ]; then\n        _HOOK=$_PROJECT_DIR/$_HOOK_PATH\n        [ -f $_HOOK ] \u0026\u0026 . $_HOOK\n        unset _PROJECT_DIR\n    fi\n\nYour postmkvirtualenv file (**~/.virtualenvs/postmkvirtualenv**):\n\n**NOTE: If you are not storing files in `~/projects/` Then change it here!**\n\n    #!/bin/bash\n    # This hook is run after a new virtualenv is activated.\n\n    proj_name=$(echo $VIRTUAL_ENV|awk -F'/' '{print $NF}')\n    [ ! -d ~/projects/$proj_name ] \u0026\u0026 mkdir -p ~/projects/$proj_name\n    add2virtualenv ~/projects/$proj_name\n    cd ~/projects/$proj_name\n\nYour predeactivate file (**~/.virtualenvs/predeactivate**)::\n\n    #!/bin/bash\n    # This hook is run before every virtualenv is deactivated.\n\n    cd\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjream%2Fconfig-virtualenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjream%2Fconfig-virtualenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjream%2Fconfig-virtualenv/lists"}