NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| create virtual environment | |
| python3 -m venv myvenv | |
| pip install django | |
| If templates outside of folder then and you write down in settings file then no need to use templates/index.html like this in views.py | |
| just use the index.html in render function second parameter | |
| Using a FileField or an ImageField (see below) in a model takes a few steps: |
| join function = The join() method takes iterable – objects capable of returning its members one at a time. Some examples are List, Tuple, String, Dictionary and Set | |
| myDict = {"name": "John", "country": "Norway"} | |
| mySeparator = "TEST" | |
| x = mySeparator.join(myDict) | |
| print(x) | |
| output: nameTESTcountry |
| javascript client side library | |
| export const name = 'joe' | |
| import {name} from './file2.js' | |
| sudo npm install -g create-react-app | |
| create-react-app contactmanager | |
| everything is components | |