Rewrite of my asp.net project in Django.
To run this project it is necessary to go through these steps:
- Generate a secret key:
or
from django.core.management.utils import get_random_secret_key secretkey = get_random_secret_key() print(secretkey)
python3 gensecuritykey.py
and replace theSECRET_KEY
insettings.py
. - Set debug to false in
settings.py
and add allowed hosts:
DEBUG = False
ALLOWED_HOSTS = [...]
- Change the name of
mailconfig.py.example
tomailconfig.py
and change the values to your own mail. - run
python3 manage.py migrate
.
I did this project together with iii123iii