How can this error be corrected?

19 views
Skip to first unread message

Preeti

unread,
May 23, 2015, 1:09:31 PM5/23/15
to django...@googlegroups.com
C:\Python33\Scripts\mysite>python manage.py sqlall books
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python33\lib\site-packages\django\core\management\__init__.py", lin
338, in execute_from_command_line
    utility.execute()
  File "C:\Python33\lib\site-packages\django\core\management\__init__.py", lin
312, in execute
    django.setup()
  File "C:\Python33\lib\site-packages\django\__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Python33\lib\site-packages\django\apps\registry.py", line 85, in popu
late
    app_config = AppConfig.create(entry)
  File "C:\Python33\lib\site-packages\django\apps\config.py", line 112, in creat
e
    mod = import_module(mod_path)
  File "C:\Python33\lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1586, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1567, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1531, in _find_and_load_unlocked
ImportError: No module named 'django.contrib.staticfilesdjango'

error.PNG

Daniel Roseman

unread,
May 23, 2015, 1:48:34 PM5/23/15
to django...@googlegroups.com
On Saturday, 23 May 2015 18:09:31 UTC+1, Preeti wrote:
<snip>

ImportError: No module named 'django.contrib.staticfilesdjango'


You're missing a comma after the 'staticfiles' entry in INSTALLED_APPS.
--
DR. 
Reply all
Reply to author
Forward
0 new messages