base.txtファイルにpinax要件をインストールしました。
今、私がpython manage.py syncdbを実行すると、次のようになります。
Traceback (most recent call last):
File "manage.py", line 20, in <module>
execute_from_command_line()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
443, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in im
port_module
__import__(name)
File "C:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"
, line 8, in <module>
from django.core.management.sql import custom_sql_for_model, emit_post_sync_
signal
File "C:\Python27\lib\site-packages\django\core\management\sql.py", line 6, in
<module>
from django.db import models
File "C:\Python27\lib\site-packages\django\db\__init__.py", line 40, in <modul
e>
backend = load_backend(connection.settings_dict['ENGINE'])
File "C:\Python27\lib\site-packages\django\db\__init__.py", line 34, in __geta
ttr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "C:\Python27\lib\site-packages\django\db\utils.py", line 90, in __getitem
__
self.ensure_defaults(alias)
File "C:\Python27\lib\site-packages\django\db\utils.py", line 80, in ensure_de
faults
conn.setdefault('TIME_ZONE', 'UTC' if settings.USE_TZ else settings.TIME_ZON
E)
File "C:\Python27\lib\site-packages\django\utils\functional.py", line 185, in
inner
return func(self._wrapped, *args)
AttributeError: 'Settings' object has no attribute 'USE_TZ'
私は本当にそれを修正する方法を知りません。したがって、私は私が得るすべてのアイデア/アドバイスに満足しています!!