- Install yarn with npm globally
npm i -g yarn- Run
yarnin project's root dir
It will create a yarn.lock file, be patient.
yarnThe most simple and working solution i was able to find is removing the config file itself, git will generate it again so its fast and simple.
don't push till the very end.
rm ~/.gitconfigNote: after doing this git will forget about your username and email so, run this command.
git will prompt this on your first fresh commit anyway, but don't forget to do this. the relation between you signed commit(via email) to account is very important.
| # you can check all the security checks by running | |
| # python manage.py check --deploy | |
| # set debug to false | |
| DEBUG = false #True by default | |
| # set allowed host | |
| ALLOWED_HOSTS = ["your website url"] # you can only access the application via these hosts | |
| # A tuple representing a HTTP header/value combination that signifies a request is secure. This controls the behavior of the request object’s is_secure() method. |