Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 719 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 719 Bytes

Code Sharing

Rewrite of my asp.net project in Django.

To run this project it is necessary to go through these steps:

  1. Generate a secret key:
    from django.core.management.utils import get_random_secret_key  
    secretkey = get_random_secret_key()
    print(secretkey)
    
    or python3 gensecuritykey.py and replace the SECRET_KEY in settings.py.
  2. Set debug to false in settings.py and add allowed hosts:
DEBUG = False
ALLOWED_HOSTS = [...]
  1. Change the name of mailconfig.py.example to mailconfig.py and change the values to your own mail.
  2. run python3 manage.py migrate.

Credit

I did this project together with iii123iii