mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
Add django constance to thirdpart to void dependency
This commit is contained in:
6
thirdpart/constance/utils.py
Normal file
6
thirdpart/constance/utils.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.utils.importlib import import_module
|
||||
|
||||
|
||||
def import_module_attr(path):
|
||||
package, module = path.rsplit('.', 1)
|
||||
return getattr(import_module(package), module)
|
Reference in New Issue
Block a user