Django安装的配置文件中应该放什么?

2024-10-08 22:23:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我读过this tutorial,但不知道如何实现以下部分:

First, remove the os import and the BASE_DIR definition and add the following imports:

from decouple import config
from unipath import Path
import dj_database_url

Define the PROJECT_DIR:

PROJECT_DIR = Path(__file__).parent

我尝试了以下方法,但似乎不正确:

import os
from decouple import config
from unipath import Path
import dj_database_url
PROJECT_DIR = "/home/diegonode/simple_django_skeleton/proyecto"

PROJECT_DIR的正确值是多少


Tags: andthepathfromimportprojectconfigurl

热门问题