First time here? Check out the FAQ!
0

unable to configure askbot

  • retag add tags

While running a syncdb I got this following error:

(site)[sayan@fedora forum]$ python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/base.py", 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/base.py", line 219, in execute
    self.validate()
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/core/management/base.py", 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/validation.py", 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/loading.py", line 146, in get_app_errors
    self._populate()
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/db/models/loading.py", line 61, in _populate
    self.load_app(app_name, True)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/db/models/loading.py", line 78, in load_app
    models = import_module('.models', app_name)
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/sayan/Development/mether/askbot-devel/askbot/models/__init__.py", line 2, in <module>
    startup_procedures.run()
  File "/home/sayan/Development/mether/site/lib/python2.7/site-packages/django/db/transaction.py", line 217, in inner
    res = func(*args, **kwargs)
  File "/home/sayan/Development/mether/askbot-devel/askbot/startup_procedures.py", line 478, in run
    run_startup_tests()
  File "/home/sayan/Development/mether/askbot-devel/askbot/startup_procedures.py", line 443, in run_startup_tests
    test_staticfiles()
  File "/home/sayan/Development/mether/askbot-devel/askbot/startup_procedures.py", line 353, in test_staticfiles
    url = urlparse(static_url).path
  File "/usr/lib/python2.7/urlparse.py", line 134, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib/python2.7/urlparse.py", line 173, in urlsplit
    i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'
sayanchowdhury's avatar
53
sayanchowdhury
asked 2012-01-17 23:33:01 -0600
edit flag offensive 0 remove flag close merge delete

Comments

I was going through the code in startup_procedures.py, I found instead of appending to errors list to add "Add STATIC_URL setting to your settings.py 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
add a comment see more comments

1 Answer

0

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

Evgeny's avatar
13.2k
Evgeny
answered 2012-01-18 04:14:56 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments