Ask Your Question

unable to configure askbot

asked 2012-01-17 23:33:01 -0600

sayanchowdhury's avatar

While running a syncdb I got this following error:

(site)[sayan@fedora forum]$ python syncdb
Traceback (most recent call last):
  File "", line 11, in <module>
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/", line 438, in execute_manager
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/", line 379, in execute
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/", line 219, in execute
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/", line 36, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/db/models/", line 146, in get_app_errors
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/db/models/", line 61, in _populate
    self.load_app(app_name, True)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/db/models/", line 78, in load_app
    models = import_module('.models', app_name)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/utils/", line 35, in import_module
  File "/home/sayan/Development/mether/askbot-devel/askbot/models/", line 2, in <module>
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/db/", line 217, in inner
    res = func(*args, **kwargs)
  File "/home/sayan/Development/mether/askbot-devel/askbot/", line 478, in run
  File "/home/sayan/Development/mether/askbot-devel/askbot/", line 443, in run_startup_tests
  File "/home/sayan/Development/mether/askbot-devel/askbot/", line 353, in test_staticfiles
    url = urlparse(static_url).path
  File "/usr/lib/python2.7/", line 134, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib/python2.7/", line 173, in urlsplit
    i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'
edit retag flag offensive close merge delete


I was going through the code in, I found instead of appending to errors list to add "Add STATIC_URL setting to your file. The setting must be a url at which static files are accessible.' it should be changed to AskbotConfigError so that it raises the error as soon as STATIC_URL is not found.

sayanchowdhury's avatar sayanchowdhury  ( 2012-01-18 00:01:05 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-01-18 04:14:56 -0600

Evgeny's avatar

This is fixed on another branch in the repository, due to be merged soon.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-01-17 23:33:01 -0600

Seen: 323 times

Last updated: Jan 18 '12