no module named 27mysite 27

Solutions on MaxInterview for no module named 27mysite 27 by the best coders in the world

showing results for - "no module named 27mysite 27"
Rébecca
02 Aug 2020
1
2    import os
3    import sys
4    BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
5    sys.path.append(BASE_DIR)
6    os.environ['DJANGO_SETTINGS_MODULE'] = 'YOURAPP.settings'
7    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "YOURAPP.settings")
8