-
Notifications
You must be signed in to change notification settings - Fork 1
Adding a new requirement
Rudrakshi edited this page Dec 3, 2022
·
2 revisions
If you have installed a new dependency, then use this command to add it.
Using npm
npm install <package-name> --save-dev
Using yarn
yarn install <package-name> --save-dev
If you have installed a new dependency, the pip freeze command lists the third-party packages and versions installed in the environment.
Windows
pip freeze > requirements/local.txt
Linux
pip3 freeze > requirements/local.txt
Everytime you change db models, you need to run makemigrations and migrate to update on database.
Windows
py manage.py makemigrations
py manage.py migrate
Linux
python3 manage.py makemigrations
python3 manage.py migrate