Django installatin and settings. (simple)

Post Reply
voyzer
Site Admin
Posts: 36
Joined: 2022 Jul 06 16:57

Django installatin and settings. (simple)

Post by voyzer »

1. Create a virtual environment (optional but recommended)
python -m venv myenv

2. Activate the virtual environment
(windows)
myenv\Scripts\activate

(linux)
source myenv/bin/activate


3. Install Django
pip install django (latest version)
pip install django==3.2.7


4. verify the installation

python -m django --version

It should display the version number of Django that you installed.

That's it! You have now downloaded and installed Django on your system. You can start creating Django projects and applications using the Django command-line utility django-admin or manage.py within your project directory.

Remember to deactivate the virtual environment when you're done working on your Django project by running the command deactivate in the terminal/command prompt.
Post Reply