mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Remove Python 2 migration guide
This commit is contained in:
@ -12,6 +12,4 @@ The following sections detail how to set up a new instance of NetBox:
|
|||||||
|
|
||||||
If you are upgrading from an existing installation, please consult the [upgrading guide](upgrading.md).
|
If you are upgrading from an existing installation, please consult the [upgrading guide](upgrading.md).
|
||||||
|
|
||||||
NetBox v2.5 and later requires Python 3.5 or higher. Please see the instructions for [migrating to Python 3](migrating-to-python3.md) if you are still using Python 2.
|
|
||||||
|
|
||||||
Netbox v2.5.9 and later moved to using systemd instead of supervisord. Please see the instructions for [migrating to systemd](migrating-to-systemd.md) if you are still using supervisord.
|
Netbox v2.5.9 and later moved to using systemd instead of supervisord. Please see the instructions for [migrating to systemd](migrating-to-systemd.md) if you are still using supervisord.
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
# Migration
|
|
||||||
|
|
||||||
!!! warning
|
|
||||||
As of version 2.5, NetBox no longer supports Python 2. Python 3 is required to run any 2.5 release or later.
|
|
||||||
|
|
||||||
## Ubuntu
|
|
||||||
|
|
||||||
Remove the Python2 version of gunicorn:
|
|
||||||
|
|
||||||
```no-highlight
|
|
||||||
# pip uninstall -y gunicorn
|
|
||||||
```
|
|
||||||
|
|
||||||
Install Python3 and pip3, Python's package management tool:
|
|
||||||
|
|
||||||
```no-highlight
|
|
||||||
# apt-get update
|
|
||||||
# apt-get install -y python3 python3-dev python3-setuptools
|
|
||||||
# easy_install3 pip
|
|
||||||
```
|
|
||||||
|
|
||||||
Install the Python3 packages required by NetBox:
|
|
||||||
|
|
||||||
```no-highlight
|
|
||||||
# pip3 install -r requirements.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
Replace gunicorn with the Python3 version:
|
|
||||||
|
|
||||||
```no-highlight
|
|
||||||
# pip3 install gunicorn
|
|
||||||
```
|
|
||||||
|
|
||||||
If using LDAP authentication, install the `django-auth-ldap` package:
|
|
||||||
|
|
||||||
```no-highlight
|
|
||||||
# pip3 install django-auth-ldap
|
|
||||||
```
|
|
@ -17,7 +17,6 @@ nav:
|
|||||||
- 4. HTTP Daemon: 'installation/4-http-daemon.md'
|
- 4. HTTP Daemon: 'installation/4-http-daemon.md'
|
||||||
- 5. LDAP (Optional): 'installation/5-ldap.md'
|
- 5. LDAP (Optional): 'installation/5-ldap.md'
|
||||||
- Upgrading NetBox: 'installation/upgrading.md'
|
- Upgrading NetBox: 'installation/upgrading.md'
|
||||||
- Migrating to Python3: 'installation/migrating-to-python3.md'
|
|
||||||
- Migrating to systemd: 'installation/migrating-to-systemd.md'
|
- Migrating to systemd: 'installation/migrating-to-systemd.md'
|
||||||
- Configuration:
|
- Configuration:
|
||||||
- Configuring NetBox: 'configuration/index.md'
|
- Configuring NetBox: 'configuration/index.md'
|
||||||
|
Reference in New Issue
Block a user