Django 4.0 Installation on FreeBSD 13

This text describes the installation of Django 4 web framework on FreeBSD 13. Required software such as Python, Nginx and PostgreSQL are already installed.

Refer to: https://docs.djangoproject.com/en/3.0/intro/install/

cd /usr/local/www/
mkdir django4
cd django4
python3 -m venv env
source env/bin/activate.csh

pip install Django==4.0

Collecting Django==4.0rc1
  Downloading Django-4.0rc1-py3-none-any.whl (7.9 MB)
     |████████████████████████████████| 7.9 MB 12.9 MB/s 
Collecting sqlparse>=0.2.2
  Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 1.5 MB/s 
Collecting asgiref>=3.3.2
  Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting backports.zoneinfo
  Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)
     |████████████████████████████████| 74 kB 3.7 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: backports.zoneinfo
  Building wheel for backports.zoneinfo (PEP 517) ... done
  Created wheel for backports.zoneinfo: filename=backports.zoneinfo-0.2.1-cp38-cp38-freebsd_13_0_release_p4_amd64.whl size=38056 sha256=cb5fe62a7c8df9284b88a6470de868f5e0b47e0063c131b5c09003fa22694c38
  Stored in directory: /root/.cache/pip/wheels/c7/de/cc/c405827ed64f81b56142f1e0075a970b2731b00d21983d54fb
Successfully built backports.zoneinfo
Installing collected packages: sqlparse, backports.zoneinfo, asgiref, Django
Successfully installed Django-4.0rc1 asgiref-3.4.1 backports.zoneinfo-0.2.1 sqlparse-0.4.2


python Python 3.6.9 (default, Aug 22 2019, 01:16:05) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)] on freebsd12 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> print(django.get_version()) 3.0 >>> exit()

Published: July 28, 2022

Change Content

The information on this page is user generated content. The content does not claim to be complete or correct.

Everybody is invited to add or change the data. Just click on this link. No login or email is required. Thanks.