From f9b6ddc230e457f68b609e0ab9df09c4c0534a28 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 25 Jul 2017 09:44:15 -0400 Subject: [PATCH] Added "Migrating to Python3" to the docs index --- ...{Migrating-to-Python3 => migrating-to-python3.md} | 12 +++++++++--- mkdocs.yml | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) rename docs/installation/{Migrating-to-Python3 => migrating-to-python3.md} (81%) diff --git a/docs/installation/Migrating-to-Python3 b/docs/installation/migrating-to-python3.md similarity index 81% rename from docs/installation/Migrating-to-Python3 rename to docs/installation/migrating-to-python3.md index 09fe3657b..e99018252 100644 --- a/docs/installation/Migrating-to-Python3 +++ b/docs/installation/migrating-to-python3.md @@ -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 ``` diff --git a/mkdocs.yml b/mkdocs.yml index a8be998e4..f204749d5 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,6 +8,7 @@ pages: - 'Web Server': 'installation/web-server.md' - 'LDAP (Optional)': 'installation/ldap.md' - 'Upgrading': 'installation/upgrading.md' + - 'Migrating to Python3': 'installation/migrating-to-python3.md' - 'Configuration': - 'Mandatory Settings': 'configuration/mandatory-settings.md' - 'Optional Settings': 'configuration/optional-settings.md'