forked from netbox-community/netbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "Migrating to Python3" to the docs index
- Loading branch information
1 parent
0991f94
commit f9b6ddc
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
12 changes: 9 additions & 3 deletions
12
docs/installation/Migrating-to-Python3 → docs/installation/migrating-to-python3.md
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
# Migration | ||
|
||
Remove Python 2 packages | ||
|
||
```no-highlight | ||
# apt-get remove --purge -y python-dev python-pip | ||
``` | ||
|
||
Install Python 3 packages | ||
|
||
```no-highlight | ||
# apt-get install -y python3 python3-dev python3-pip | ||
``` | ||
|
||
Install Python Packages | ||
|
||
```no-highlight | ||
# cd /opt/netbox | ||
# pip3 install -r requirements.txt | ||
``` | ||
|
||
Gunicorn Update | ||
``` | ||
|
||
```no-highlight | ||
# pip uninstall gunicorn | ||
# pip3 install gunicorn | ||
``` | ||
|
||
Re-install LDAP Module (Optional if using LDAP for auth) | ||
``` | ||
Re-install LDAP Module (optional if using LDAP for auth) | ||
|
||
```no-highlight | ||
sudo pip3 install django-auth-ldap | ||
``` |
This file contains 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 characters