作者shihyu (shihyu)
看板Python
标题[问题] DjangoBB install fail
时间Sun Nov 24 18:59:21 2013
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)
3F:→ shihyu:前面那部份我也有做~可是也会出现上面错误 11/24 22:15
5F:→ shihyu:上面是compile_messages 定义地方..是因为我django版本差异 11/24 22:35
6F:→ shihyu:造成这样错误讯息吗? 11/24 22:35
7F:→ uranusjr:看起来是你的 distribute 太旧了, 先更新再试试 11/24 23:17
8F:→ shihyu:hi uranusjr 请问distribution 是指Django版本吗? 11/25 00:40
9F:→ shihyu:我看我安装是Django1.6已经是最新,还是太新了..XD 11/25 00:41
※ 编辑: shihyu 来自: 123.204.72.109 (11/25 00:42)
10F:→ jcfrank:从app里的extras/requrements.txt看来,是用1.5.1的django 11/25 00:59