Sidenote_21.07.29
Steps to try when pip doesn’t work properly
- Run in Administrative Mode
- Reinstall pip with
py -m ensurepip --upgrade
(pip documentation)
Alternative command when django-admin doesn’t work
From Django Docs
command not found: django-admin
¶
django-admin should be on your system path if you installed Django via pip
. If it’s not in your path, ensure you have your virtual environment activated and you can try running the equivalent command python -m django
.
The role of viewset in django-rest-framework
Creates a CRUD API without any specification of explicit methods for functionality.
Fixing package.json
script when using webpack v.5 instead of v.6
The output option for the webpack cli has changed from --output [path]/[filename]
to --output-path [path]
.
When webpack 4 dev or build has been run and error is met, make sure to delete the main.js file before trying the webpack v.5 scripts.
Using ES7 React/Redux/GraphQL/React-Native snippets extension
Using the above extension allows the access of below code snippets
rce
- generates class component
rfce
- generates function component