Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Return the current project path site/project 

        def get_project_root():
    """ Return the current project path site/project """
    from django.conf import settings
    settings_file = os.sys.modules[settings.SETTINGS_MODULE].__file__
    return os.path.dirname(os.path.normpath(settings_file))
        


src/c/o/confine-controller-0.10.5/controller/management/commands/updatesecretkey.py   confine-controller(Download)
from django.core.management.base import NoArgsCommand
 
from controller.utils import get_project_root
from controller.utils.system import run
 
    def handle(self, *args, **options):
        context = {
            'key': ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]),
            'settings': os.path.join(get_project_root(), 'settings.py')}