Skip to content

iiiiii1wepfj/CodeSharing-rewrite-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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