Last change
on this file since 9317 was 9006, checked in by dennisw, 14 years ago |
django_gheat - versie van gheat die gebruik maakt van django framework, ondersteunt SQL connecties in tegenstelling tot gheat dat gebruik maakt van sqlite
|
File size:
248 bytes
|
Line | |
---|
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__))
|
---|
Note:
See
TracBrowser
for help on using the repository browser.