Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # Django Setup <code> def setup(): dir_path = os.path.dirname(os.path.abspath(__file__)) project_name = 'new_growth' parent_path = Path(dir_path).parent sys.path.append(str(parent_path)) os.environ['DJANGO_SETTINGS_MODULE'] = f'{project_name}.settings' django.setup() </code> open/django-setup.txt Last modified: 2024/10/05 06:15by 127.0.0.1