我在window7部署seaserv成功运行。但是我想新增一个app,在seahub运行cmd,输入manage.py startapp test 报错如下:
Traceback (most recent call last):
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\manage.py”, line 10, i
n
execute_from_command_line(sys.argv)
File “C:\Python27\lib\site-packages\django\core\management_init_.py”, line
338, in execute_from_command_line
utility.execute()
File “C:\Python27\lib\site-packages\django\core\management_init_.py”, line
303, in execute
settings.INSTALLED_APPS
File “C:\Python27\lib\site-packages\django\conf_init_.py”, line 48, in ge
tattr
self.setup(name)
File "C:\Python27\lib\site-packages\django\conf_init.py", line 44, in set
up
self.wrapped = Settings(settings_module)
File "C:\Python27\lib\site-packages\django\conf_init.py", line 92, in in
it
mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\Python27\lib\importlib_init.py", line 37, in import_module
import(name)
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\seahub_init_.py”, l
ine 3, in
from handlers import repo_created_cb, repo_deleted_cb
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\seahub\handlers.py”, l
ine 4, in
import settings
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\seahub\settings.py”, l
ine 9, in
from seaserv import FILE_SERVER_ROOT, FILE_SERVER_PORT, SERVICE_URL
ImportError: No module named seaserv
思路:
1,是环境变量没有配置好吗?
2,还是需要配置什么文件?