当前位置: 动力学知识库 > 问答 > 编程问答 >

python - Custom App Folder in Django 1.7

问题描述:

So I used to use the following to include my custom app directory (for organization sake) and it worked well until Django 1.6

Noticed that it's not working with Django 1.7 (python 2.7). Any suggestions in the right direction will be much appreciated.

The only error I get is the inability to find the app included in the settings.py

import os

import sys

BASE_DIR = os.path.dirname(os.path.dirname(__file__))

sys.path.insert(0, os.path.join(BASE_DIR, 'apps’))

分享给朋友:
您可能感兴趣的文章:
随机阅读: