Ask Your Question
0

unable to configure askbot

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

sayanchowdhury gravatar image sayanchowdhury flag of India
43 3 1 7
http://fosswithme.wordpre...

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'
delete close flag offensive retag edit

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 ( 2012-01-18 00:01:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

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

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 63 times

Last updated: Jan 18 '12