Parcourir la source

Use virtualenv instead of virtualenvwrapper

Jocelyn Delande il y a 9 ans
Parent
commit
66474ac248
2 fichiers modifiés avec 10 ajouts et 4 suppressions
  1. 2 1
      .gitignore
  2. 8 3
      README.md

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
 *.pyc
 *.pyc
 db.sqlite3
 db.sqlite3
 .cache
 .cache
-local_settings.py
+local_settings.py
+venv/

+ 8 - 3
README.md

@@ -10,8 +10,11 @@ Run it
 
 
 ### First time
 ### First time
 
 
-    sudo apt-get install python virtualenvwrapper
-    mkvirtualenv transparency
+    sudo apt install python3-virtualenv
+
+    virtualenv -p $(which python3) venv
+
+    source venv/bin/activate
     pip install -r requirements/base.txt
     pip install -r requirements/base.txt
 
 
 Generate a secret key:
 Generate a secret key:
@@ -28,7 +31,7 @@ Run dev server
 
 
 ### Later
 ### Later
 
 
-    workon transparency
+    source venv/bin/activate
     ./manage.py runserver
     ./manage.py runserver
 
 
 
 
@@ -43,6 +46,8 @@ Use it
 Building documentation
 Building documentation
 ----------------------
 ----------------------
 
 
+Make sure to be inside the virtualenv (`source venv/bin/activate`).
+
 Doc is using mkdocs, located in *docs/* ; you can build it yourself.
 Doc is using mkdocs, located in *docs/* ; you can build it yourself.
 
 
 Install doc dependencies :
 Install doc dependencies :