26. Aug 2020 |

Django notes

This post is for Django notes for myself. I am trying to get “Hello world” deployed on one of the local webhosting providers’ server and then move along to Laravel.

See Django version:
python -m django --version

Create new project:
django-admin startproject djangoproject1

Create new Django app
python manage.py startapp blog

Run server:
python manage.py runserver

Become root:
sudo -i

Virtual environment

Create new virtual environment:
virtualenv projectname

Activate environment:
source project1_env/bin/activate

See installed packages in VE
pip list


virtualenv is installed.

In virtual environment pip install pip install Django==3.1 is successful. Alternative solution python -m pip install Django (source).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.