Created
July 18, 2022 16:00
-
-
Save gigsforlinux/9390364d860faa2719718f7aac42dd76 to your computer and use it in GitHub Desktop.
I'll Do Anything Goes With Django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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 | |
Author
gigsforlinux
commented
Jul 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment