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.pyand replace theSECRET_KEYinsettings.py. - Set debug to false in
settings.pyand add allowed hosts:
DEBUG = False
ALLOWED_HOSTS = [...]
- Change the name of
mailconfig.py.exampletomailconfig.pyand change the values to your own mail. - run
python3 manage.py migrate.
I did this project together with iii123iii