-
-
Save MiracleHu/ed78fd8f602721ae9c0f2c9c164c5d59 to your computer and use it in GitHub Desktop.
Revisions
-
bradtraversy revised this gist
Dec 22, 2018 . 1 changed file with 0 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -39,24 +39,10 @@ pipenv install nose --dev ``` pipenv install -r ./requirements.txt ``` ## Check security vulnerabilities ``` pipenv check ``` ## Check dependency graph ``` pipenv graph -
bradtraversy revised this gist
Dec 22, 2018 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -69,6 +69,10 @@ pipenv install --ignore-pipfile ``` pipenv lock ``` ## Exiting the virtualenv ``` exit ``` ## Run with pipenv ``` pipenv run * -
bradtraversy revised this gist
Dec 22, 2018 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -69,3 +69,7 @@ pipenv install --ignore-pipfile ``` pipenv lock ``` ## Run with pipenv ``` pipenv run * ``` -
bradtraversy created this gist
Dec 22, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,71 @@ # Pipenv Cheat Sheet ## Install pipenv ``` pip3 install pipenv ``` ## Activate ``` pipenv shell ``` ## Check version of Python ``` python --version ``` ## Check path ``` python >>> import sys >>> sys.executable quit() ``` ## Install a package ``` pipenv install camelcase ``` ## Check local packages ``` pipenv lock -r ``` ## Uninstall a package ``` pipenv uninstall camelcase ``` ## Install a dev package ``` pipenv install nose --dev ``` ## Install from requirements.txt ``` pipenv install -r ./requirements.txt ``` ## Create Django project ``` django-admin startproject testproject cd testproject python manage.py runserver ``` ## Check security vulnerabilities ``` pipenv check ``` ## Update Django ``` pipenv install ``` ## Run check again ``` pipenv check ``` ## Check dependency graph ``` pipenv graph ``` ## Ignore pipfile ``` pipenv install --ignore-pipfile ``` ## Set lockfile - before deployment ``` pipenv lock ```