看板 Python 關於我們 聯絡資訊
http://djangobb.org/wiki/QuickInstall Download and setup basic project: wget https://bitbucket.org/slav0nic/djangobb_project/get/tip.tar.gz tar zxvf tip.tar.gz cd slav0nic-djangobb_project-tip/ pip install -r requirements.txt cd basic_project/ touch local_settings.py # set DATABASE ./manage.py syncdb --all ./manage.py collectstatic ./manage.py runserver 我安裝到 ./manage.py syncdb --all 出現下面錯誤 請問一下我這到底是什麼問題? 是因為settings.py 要設定什麼嗎? Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/home/shihyu/data/.env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/home/shihyu/data/.env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/shihyu/data/.env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command klass = load_command_class(app_name, subcommand) File "/home/shihyu/data/.env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/home/shihyu/data/.env/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module __import__(name) File "/home/shihyu/data/.env/local/lib/python2.7/site-packages/south/management/commands/__init__.py", line 10, in <module> import django.template.loaders.app_directories File "/home/shihyu/data/.env/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py", line 25, in <module> raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0])) django.core.exceptions.ImproperlyConfigured: ImportError djangobb_forum: No module named djangobb_forum 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.204.72.109 ※ 編輯: shihyu 來自: 123.204.72.109 (11/24 19:01)
uranusjr:http://djangobb.org/wiki/QuickInstall 前面那段也要做 11/24 20:55
shihyu:前面那部份我也有做~可是也會出現上面錯誤 11/24 22:15
shihyu:上面是compile_messages 定義地方..是因為我django版本差異 11/24 22:35
shihyu:造成這樣錯誤訊息嗎? 11/24 22:35
uranusjr:看起來是你的 distribute 太舊了, 先更新再試試 11/24 23:17
shihyu:hi uranusjr 請問distribution 是指Django版本嗎? 11/25 00:40
shihyu:我看我安裝是Django1.6已經是最新,還是太新了..XD 11/25 00:41
※ 編輯: shihyu 來自: 123.204.72.109 (11/25 00:42)
jcfrank:從app裡的extras/requrements.txt看來,是用1.5.1的django 11/25 00:59