All These commands based on Windows OS
-
Installing Virtualenv
pip install virtualenv
-
Creating Virtualenv
virtualenv (environment name)
-
Activating Environment:
(environment name)\Scripts\activate (Windows OS)
-
Deactivating Environment:
venv\Scripts\deactivate.bat (Windows OS)
-
Installing django:
pip install django
-
Starting Django Project:
django-admin startproject (project name) .
-
Running Django Project:
python manage.py runserver
-
Creating app:
django-admin startapp (app name)
-
Migrating the Model(Step-1):
python manage.py makemigrations
-
Migrating the Model(Step-2):
python manage.py migrate
-
Translating ORMS into SQL statements:
python manage.py sqlmigrate (migrationfilename)
-
Activating Python Shell:
python manage.py shell
End---