equal
deleted
inserted
replaced
|
1 from django.conf import settings |
|
2 import os |
|
3 |
|
4 def get_project_root(): |
|
5 """ get the project root directory """ |
|
6 settings_mod = __import__(settings.SETTINGS_MODULE, {}, {}, ['']) |
|
7 return os.path.dirname(os.path.abspath(settings_mod.__file__)) |