Askbot I installed on a server (CentOS + Apache) with a single IP address. On the same server are running the main site (php) and a Django site (version 1.3). Django Django is served under the subdirectory / (defined by the Directive WSGIScriptAlias / django) I would like to serve in a subdirectory askbot / forum, but even if they define the WSGIScriptAlias / forum url media continue to point to / m, while it should point to / forum / m Can anyone help me?
Fabio
Hi there, yes it should work - in settings.py set ``ASKBOT_URL='somedir/'.
There must be no leading slash in the parameter. This setting was not tested recently, please give your feedback if you have any issues.
Thanks for your reply.
WSGIScriptAlias If set to '/ forum' and ASKBOT_URL to 'forum /' images are served to the URL '/ forum / forum / m / default / media / images /' (eg forum / forum / m / default / media / images / cc-Wiki.png? v = 1) but the URL is written by askbot '/ forum / m / default / media / images'.
If, instead, I set WSGIScriptAlias to '/' and ASKBOT_URL to 'forum /', askbot load properly, but I am no longer able to access my django site through the url http://localhost/django.
Fabio
Nobody can help me?
Fabio
Hi, Evgeny,
as suggested by you I try to install askbost as an app of django but without success. I have this error:
[Sat Jun 18 16:47:12 2011] [error] warnings.warn('Cannot translate loader: %s' % loader)
[Sat Jun 18 16:47:12 2011] [error] /usr/lib/python2.6/site-packages/Coffin-0.3.4-py2.6.egg/coffin/common.py:49: UserWarning: Cannot translate loader: askbot.skins.loaders.load_template_source
[Sat Jun 18 16:47:12 2011] [error] warnings.warn('Cannot translate loader: %s' % loader)
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] mod_wsgi (pid=16245): Exception occurred processing WSGI script '/opt/djroot/djadmin/apache/django.wsgi'.
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] Traceback (most recent call last):
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 250, in __call__
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] self.load_middleware()
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 45, in load_middleware
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] mod = import_module(mw_module)
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] __import__(name)
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/askbot-0.6.95-py2.6.egg/askbot/middleware/view_log.py", line 12, in <module>
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] from askbot.views.readers import questions as questions_view
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/askbot-0.6.95-py2.6.egg/askbot/views/__init__.py", line 4, in <module>
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] from askbot.views import readers
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/askbot-0.6.95-py2.6.egg/askbot/views/readers.py", line 36, in <module>
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] from askbot.templatetags import extra_tags
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/askbot-0.6.95-py2.6.egg/askbot/templatetags/extra_tags.py", line 8, in <module>
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] from askbot.skins.loaders import get_template
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/askbot-0.6.95-py2.6.egg/askbot/skins/loaders.py", line 121, in <module>
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] SKINS = load_skins()
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/askbot-0.6.95-py2.6.egg/askbot/skins/loaders.py", line 116, in load_skins
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] skins[skin_name].set_language(django_settings.LANGUAGE_CODE)
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File "/usr/lib/python2.6/site-packages/askbot-0.6.95-py2.6.egg/askbot/skins/loaders.py", line 96, in set_language
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] trans = translation.trans_real.translation(language_code)
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] AttributeError: 'module' object has no attribute 'trans_real'
[Sat Jun 18 16:47:12 2011] [error] [client 2.225.106.8] File does not exist: /var/www/html/favicon.ico
Regads,
Fabio
Solved! There was a line with USE_I18N = False. When I set USE_I18N to True the problem got solved.
I have just run the command python manage.py add_missing_subscriptions and I think that there is a typo. I get the error is AttributeError: type object 'User' has no attribute 'object' and infact in the script add_missing_subscriptions there is the command User.object.all() that instead should be User.objects.all()
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 siteAsked: 2011-06-09 03:50:56 -0500
Seen: 245 times
Last updated: Jun 18 '11
How to internationalize counts say for Russian in Django?
How to configure Apache to run Django application?
How to customize messages in django applications?
can I run askbot on tornado instead of django
Does askbot work with django version 1.2.3?
Do you know any real life websites using Askbot
how do you manage Askbot and upgrades
EmailField() not working in django
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.