First time here? Check out the FAQ!
1

Local installation whithout language switch
 

I install askbot locally following this instructions but i can't find the top language switch

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Katy23's avatar
53
Katy23
asked 14 years ago

Comments

see more comments

2 Answers

2

It doesn't work for me, I installed it and added localeurl to the installed apps and when I run it, I get the error :

 AttributeError at /en/questions/
'NoneType' object has no attribute 'endswith'


Exception Location: /.../lib/python2.6/posixpath.py in join, line 67
Python Executable:  /.../bin/python
Python Version: 2.6.7

Can you help me please?

Edit: I found out that my problem was linked to my database. Now there is no more errors but my new problem is that when I click on any link, it tries to go to domain/en/page. The problem is that the server says the page doesn't exists (404 error). If I just remove the /en (domain/en/page -> domain/page), it works but there is still not the translation bar... I guess something is missing in my settings but I don't know what... Can you help please?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Cedric's avatar
23
Cedric
updated 13 years ago, answered 13 years ago
link

Comments

see more comments
0

edited

Hello, I have posted a branch on github.

git clone git://github.com/ASKBOT/askbot-devel.git
cd askbot-devel
git fetch origin askbot-site
git checkout askbot-site

Then you'll have the multilingual code. There will be one more required app called localeurl, available here

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

ok :). thanks
Katy23's avatar Katy23 (14 years ago)
any news? :)
Katy23's avatar Katy23 (14 years ago)
I will push the askbot site repository today to the github, will you use it?
Evgeny's avatar Evgeny (14 years ago)
I install the latest version of askbot now but i can't see the top language switch...
Katy23's avatar Katy23 (14 years ago)
Did you take the branch askbot-site from the github? It is not in the main code yet. Did you use git to install?
Evgeny's avatar Evgeny (14 years ago)
Please go ahead and post your tracebacks, I will try to help you, if you like - email me at evgeny.fadeev@gmail.com
Evgeny's avatar Evgeny (14 years ago)
i install new version following your instructions and also i install django-localeurl but when i run python manage.py runserver and go to site i receive this error: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/django/core/servers/basehttp.py", line 280, in run self.result = application(self.environ, self.start_response) File "/usr/lib/pymodules/python2.7/django/core/servers/basehttp.py", line 674, in __call__ return self.application(environ, start_response) File "/usr/lib/pymodules/python2.7/django/core/handlers/wsgi.py", line 248, in __call__ res
Katy23's avatar Katy23 (14 years ago)
Hey pls email me entire traceback, can't tell much from this.
Evgeny's avatar Evgeny (14 years ago)
ok. i send the traceback
Katy23's avatar Katy23 (14 years ago)
Thank you, I just have updated the askbot/setup_templates/settings.py. Please use that in place of your settings.py (or merge, if you have your custom settings).
Evgeny's avatar Evgeny (14 years ago)
yeah! :) now it works...but i must install django-rosetta first. Thank you
Katy23's avatar Katy23 (14 years ago)
Great, I am sure you will notice bugs in the multilingual site. Please report them and I will take a look.
Evgeny's avatar Evgeny (14 years ago)
In fact there is a problem with login I have this error "Forbidden (403) CSRF verification failed. Request aborted. "
Katy23's avatar Katy23 (14 years ago)
i send you the traceback
Katy23's avatar Katy23 (14 years ago)
see more comments