Skip to content

Instantly share code, notes, and snippets.

@gigsforlinux
Created July 18, 2022 16:00
Show Gist options
  • Save gigsforlinux/9390364d860faa2719718f7aac42dd76 to your computer and use it in GitHub Desktop.
Save gigsforlinux/9390364d860faa2719718f7aac42dd76 to your computer and use it in GitHub Desktop.
I'll Do Anything Goes With Django
##Install Django with pip in a Virtual Environment
sudo apt update
python3 -V
sudo apt install python3-pip python3-venv
###start a new project, you can create a virtual environment for it. Start by creating and moving into a new project directory:
mkdir ~/newproject
cd ~/newproject
django-admin --version
deactivate
##to reactivate
cd ~/newproject
source my_env/bin/activate
###Install Development Version
sudo apt update
python3 -V
sudo apt install python3-pip python3-venv
git clone git://github.com/django/django ~/django-dev
cd ~/django-dev
python3 -m venv my_env
source my_env/bin/activate
pip install -e ~/django-dev
django-admin --version
###creating a sample project
sudo ufw allow 8000
python manage.py runserver your_server_ip:8000
@gigsforlinux
Copy link
Author

Screenshot from 2022-06-28 01-11-03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment