我確實做到了:http://readthedocs.org/docs/django-filebrowser/en/latest/quickstart.html#quickstart(僅使用easy_install的,而不是PIP)無法安裝的Django filebrowser應用
看來我得嘗試連接到管理界面時的導入錯誤:
Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.3
Exception Type: ImportError
Exception Value:
No module named sites
Exception Location: c:\workspace\expedeat\..\expedeat\urls.py in <module>, line 5
Python Executable: c:\Tools\Python26\python.exe
Python Version: 2.6.4
異常來自於進口是:from filebrowser.sites import site
在urls.py
而且測試filebrowser失敗,此消息:
Creating test database for alias 'default'...
.......F......
======================================================================
FAIL: test_directory (filebrowser.tests.settings.SettingsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Tools\Python26\lib\site-packages\django_filebrowser-3.3.0-py2.6.egg\filebrowser\tests\set
tings.py", line 29, in test_directory
self.assertEqual(os.path.exists(os.path.join(MEDIA_ROOT,DIRECTORY)), 1)
AssertionError: False != 1
----------------------------------------------------------------------
Ran 14 tests in 0.008s
FAILED (failures=1)
Destroying test database for alias 'default'...
我一定在做錯事。任何幫助,將不勝感激。
我也注意到按'browse'按鈕時上的窗口彈出'插入TinyMCE的按鍵面板我得到這個的/編輯image' javascript錯誤:'錯誤:f未定義 代碼:http:// localhost:8000/static/js/tiny_mce/tiny_mce_src.js line:11981' – xpanta