1. install python3 - download from python website
2. install vertual env :
sudo pip install virtualenv
3. create a project directory :
mkdir djproject
4. create a virtual environment cd djproject virtualenv myvirtenv -p python3
5. activate the virtual environment : source myvirtenv/bin/activate
6. install Django inside the virtual environment
pip install Django (installs the latest version)
7. start the project, creates the project files
django-admin startproject djproject
8. start the webserver
python manage.py runserver
9. Launch the webpage on thedefault port
http://127.0.0.1:8000
you should see django up an running!
Wednesday 6 March 2024
Create a Django Project On Mac or Linux
Subscribe to:
Post Comments (Atom)
Word Press Multisite on AWS instance cannot login with default password
Word Press Multisite on AWS instance cannot login with default password after setting a static IP ? Try this Login to the shell from AWS i...
-
Getting errors like: do_ypcall: clnt_call: RPC: Unable to receive; errno = Connection refused alos causes any public key ssh setup with no p...
-
Check if sshd is running , if not start it up /etc.init.d/sshd status /etc.init.d/sshd start The firewall is enabled by default , you may ha...
-
Error on CentOS 5 while starting a proccess cannot restore segment prot after reloc: Permission denied Noticed while running networker 7.6 ...
No comments:
Post a Comment