A basic Django website for first-time learners.
For detailed documentation, visit: Django Documentation
- Install Python. To see which version is compatible, visit: Django FAQ
-
Create a virtual environment:
python3 -m venv myvenv
-
Activate the virtual environment:
source myvenv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Deactivate the virtual environment when done:
deactivate
-
Create a virtual environment:
python -m venv myvenv
-
Activate the virtual environment:
myvenv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Deactivate the virtual environment when done:
deactivate
Once Django is installed, you need to create the database tables for the application:
Make migrations for your user app:
python manage.py makemigrations user
Apply the migrations to the database:
python manage.py migrate
Before coding, you need to install Django in your virtual environment:
pip install django
While raing the pull request, add ypur name to the CONTRIBUTORS.md file
While adding packages, update requirements.
pip freeze > requirements.txt