1. Home - Aklinahs/Django-beginner GitHub Wiki
Welcome to the Django-beginner wiki!
-
Download the executable installer and run it.
-
Check the boxes next to “Install launcher for all users (recommended)”
-
then click “Install Now”.
After installation, open the command prompt and check that the Python version matches the version you installed by executing:
py --version
If Python is installed, you will get a result with the version number, like this
Python 3.9.2
To install Virtual environment, use the following command on the command prompt.
pip install virtualenv
change directory to the place where you want your Django project to be. Use the cd command on your command prompt to move to the said directory as follows:
cd first_project
Create a virtual Python Environment (you can change project-name
as you like )
py -m venv project-name
activate the environment
project-name\Scripts\activate
Remember to install Django while you are in the virtual environment!
py -m pip install Django
You can change the project name studybud
if you like.
django-admin startproject studybud
Change into the outer “studybud” directory
cd studybud
Run the following commands:
python manage.py runserver
Now that the server’s running, visit http://127.0.0.1:8000/ with your web browser. You’ll see a “Congratulations!” page, with a rocket taking off. It worked!
Now that your environment – a “project” – is set up, you’re set to start doing work.