user3500741
user3500741

Reputation: 61

python manage.py syncdb not working

C:\Users\acc\Desktop\coding>python manage.py syncdb

Traceback (most recent call last):

File "manage.py", line 10, in

execute_from_command_line(sys.argv)

File "C:\Python27\lib\site-packages\django\core\management__init__.py", line 399, in execute_from_command_line

utility.execute()

File "C:\Python27\lib\site-packages\django\core\management__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv)

File "C:\Python27\lib\site-packages\django\core\management\base.py", line 242, in run_from_argv

self.execute(*args, **options.__dict__)

File "C:\Python27\lib\site-packages\django\core\management\base.py", line 280, in execute

translation.activate('en-us')

File "C:\Python27\lib\site-packages\django\utils\translation__init__.py", lin e 130, in activate

return _trans.activate(language)

File "C:\Python27\lib\site-packages\django\utils\translation\trans_real.py", l ine 188, in activate

_active.value = translation(language)

File "C:\Python27\lib\site-packages\django\utils\translation\trans_real.py", l ine 177, in translation default_translation = _fetch(settings.LANGUAGE_CODE)

File "C:\Python27\lib\site-packages\django\utils\translation\trans_real.py", l ine 158, in _fetch

for appname in reversed(settings.INSTALLED_APPS):

TypeError: argument to reversed() must be a sequence

please give me advice for removing this bug...

Upvotes: 2

Views: 1199

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599610

You've made INSTALLED_APPS a set instead of a tuple. It should have parentheses, not curly brackets.

Upvotes: 2

Related Questions