DjangoBB

Django based forum engine

  • You are not logged in.

#1 Nov. 30, 2010 19:02:15

deeco
Registered: 2010-10-13
Posts: 6
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

missing...TEMPLATE_CONTEXT_PROCESSORS

deeco
I have djangobb installed as an app. I only installed what was necessary, anything optional was ignored. I am at the point where it tries to render base.html but I get the following error:

Caught VariableDoesNotExist while rendering: Failed lookup for key [request] on the line containing {% set_theme_style request.user %}

I see it's requesting "user" from the following list and can see "user" is defined. But the request object can't access it. So how can I solve this?

[
{

},
{
'csrf_token': <django.utils.functional.__proxy__ object at 0x7fab5130c550>
},
{
'perms': <django.utils.functional.__proxy__ object at 0x7fab51313410>,
'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x7fab50916950>,
'user': <django.utils.functional.SimpleLazyObject object at 0x7fab5130c5d0>
},
{

},
{
'LANGUAGES': (('ar',
'Arabic'),
('bg',
'Bulgarian'),
('bn',
'Bengali'),
('bs',
'Bosnian'),
('ca',
'Catalan'),
('cs',
'Czech'),
('cy',
'Welsh'),
('da',
'Danish'),
('de',
'German'),
('el',
'Greek'),
('en',
'English'),
('en-gb',
'British English'),
('es',
'Spanish'),
('es-ar',
'Argentinian Spanish'),
('et',
'Estonian'),
('eu',
'Basque'),
('fa',
'Persian'),
('fi',
'Finnish'),
('fr',
'French'),
('fy-nl',
'Frisian'),
('ga',
'Irish'),
('gl',
'Galician'),
('he',
'Hebrew'),
('hi',
'Hindi'),
('hr',
'Croatian'),
('hu',
'Hungarian'),
('id',
'Indonesian'),
('is',
'Icelandic'),
('it',
'Italian'),
('ja',
'Japanese'),
('ka',
'Georgian'),
('km',
'Khmer'),
('kn',
'Kannada'),
('ko',
'Korean'),
('lt',
'Lithuanian'),
('lv',
'Latvian'),
('mk',
'Macedonian'),
('ml',
'Malayalam'),
('mn',
'Mongolian'),
('nl',
'Dutch'),
('no',
'Norwegian'),
('nb',
'Norwegian Bokmal'),
('nn',
'Norwegian Nynorsk'),
('pl',
'Polish'),
('pt',
'Portuguese'),
('pt-br',
'Brazilian Portuguese'),
('ro',
'Romanian'),
('ru',
'Russian'),
('sk',
'Slovak'),
('sl',
'Slovenian'),
('sq',
'Albanian'),
('sr',
'Serbian'),
('sr-latn',
'Serbian Latin'),
('sv',
'Swedish'),
('ta',
'Tamil'),
('te',
'Telugu'),
('th',
'Thai'),
('tr',
'Turkish'),
('uk',
'Ukrainian'),
('vi',
'Vietnamese'),
('zh-cn',
'Simplified Chinese'),
('zh-tw',
'Traditional Chinese')),
'LANGUAGE_BIDI': False,
'LANGUAGE_CODE': 'en-us'
},
{
'MEDIA_URL': '/media/'
},
{
'messages': <django.contrib.messages.storage.user_messages.LegacyFallbackStorage object at 0x7fab50916950>
},
{
'cats': [

],
'users': 1,
'last_user': <User: danc>,
'topics': 0,
'guest_count': 0,
'posts': 0,
'users_online': [

],
'online_count': 0
}
]

Offline

#2 Nov. 30, 2010 23:54:29

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Installation Tutorial

compare TEMPLATE_CONTEXT_PROCESSORS in settings from dajngobb project with your

Offline

#3 Feb. 19, 2011 11:30:51

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

Installation Tutorial

Whoosh pip version not working.
Delete post not working.
Search post not working.

hello guys,

with actual whoosh (1.4.1) it was not possible for me, to search or delete a post.
I had to downgrade to version 0.3.18 (i read this version was recommended back in 2009).

now delete post and search post works fine.

how todo it:
sudo pip uninstall whoosh
sudo pip install whoosh==0.3.18
wait some minutes till its finished.
restart server

Offline

#4 Feb. 22, 2011 10:33:45

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Installation Tutorial

u used latest hayctacksearch? why not use pip-required.txt file ?)

Offline

#5 March 2, 2011 11:04:02

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

Installation Tutorial

i dont know about pip-required.txt file. where can i find it?

i only know:
in djangobb-project folder under directory extras in textfile optional-requirements.txt you will find this list:
Markdown==2.0
django-messages==0.4.4
whoosh
south>=0.7.2
-e git/github.com/jtauber/django-mailer.git#egg=django-mailer

and as you can see for whoosh there is no version given.

maybe we could change that?
i dont know to well about the dependencies.
sorry for that!
greetings scrapper

Offline

#6 March 3, 2011 11:18:22

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Installation Tutorial

basic of djangobb install via virtualenv and pip:

virtualenv venv
source venv/bin/activate
pip install -r extras/requirements.txt
pip install -r extras/optional-requirements.txt

+ set manualy extras/crontab

Offline

#7 March 3, 2011 19:11:57

scrapper
Registered: 2010-12-20
Posts: 44
Reputation: +  1  -
Profile   Send e-mail  

Installation Tutorial

slav0nic
basic of djangobb install via virtualenv and pip:

virtualenv venv
source venv/bin/activate
pip install -r extras/requirements.txt
pip install -r extras/optional-requirements.txt

+ set manualy extras/crontab



sounds awesome! ;-) i will do it this way next time!

Thanks slav0nic

Offline

#8 May 12, 2011 06:08:33

patfla
Registered: 2011-05-12
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

In answer to an earlier question: yes, works on Windows. Windows 7 64 bit however all of python and django I kept at 32 bits. This is the safer course of action.

A number of things were required in addition to what's written up here (thank you very much though for the writeup).

I found it hard to get all the dependencies in ‘standard’ python 2.6 so I ended up using ActiveState python 2.7. Pypm (its automated install tool) successfully found all the dependencies with the exception of MySQLdb (a notable exception). I found a prebuilt version of MySQLdb for python Windows 2.7 here:

http://www.lfd.uci.edu/~gohlke/pythonlibs/ [lfd.uci.edu]

There were other issues I think but don't remember them all now. I suppose I could, at some point, recollect and write up what I found necessary for a Windows install.

DjangoBB looks very nice. Lots of immediately available functionality.

Offline

#9 July 19, 2011 12:40:59

gubber
Registered: 2011-07-19
Posts: 1
Reputation: +  0  -
Profile  

Installation Tutorial

I got this working pretty quickly on windows, the link for Whoosh on the original post is a bit misleading as when I got Haystack 1.2.4 I needed Whoosh 1.8.4 which I found at

http://pypi.python.org/pypi/Whoosh/ [pypi.python.org]

Otherwise, it looks great, I'm intending to mash it up a bit to integrate it into the website I'm writing.

Offline

#10 July 19, 2011 13:34:04

Jony
From: Ukraine / Cherkasy
Registered: 2011-07-18
Posts: 4
Reputation: +  0  -
Profile   Send e-mail  

Installation Tutorial

Hi all.
Getting this at syncdb:

./manage.py syncdb
Traceback (most recent call last):
File “./manage.py”, line 11, in <module>
execute_manager(settings)
File “/usr/lib/pymodules/python2.7/django/core/management/__init__.py”, line 438, in execute_manager
utility.execute()
File “/usr/lib/pymodules/python2.7/django/core/management/__init__.py”, line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/usr/lib/pymodules/python2.7/django/core/management/base.py”, line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File “/usr/lib/pymodules/python2.7/django/core/management/base.py”, line 209, in execute
translation.activate('en-us')
File “/usr/lib/pymodules/python2.7/django/utils/translation/__init__.py”, line 66, in activate
return real_activate(language)
File “/usr/lib/pymodules/python2.7/django/utils/functional.py”, line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File “/usr/lib/pymodules/python2.7/django/utils/translation/__init__.py”, line 36, in delayed_loader
return getattr(trans, real_name)(*args, **kwargs)
File “/usr/lib/pymodules/python2.7/django/utils/translation/trans_real.py”, line 193, in activate
_active = translation(language)
File “/usr/lib/pymodules/python2.7/django/utils/translation/trans_real.py”, line 176, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File “/usr/lib/pymodules/python2.7/django/utils/translation/trans_real.py”, line 159, in _fetch
app = import_module(appname)
File “/usr/lib/pymodules/python2.7/django/utils/importlib.py”, line 35, in import_module
__import__(name)
File “/usr/local/lib/python2.7/dist-packages/django_authopenid-1.0.1-py2.7.egg/django_authopenid/__init__.py”, line 57, in <module>
DjangoOpenIDStore = load_store(settings.OPENID_STORE)
File “/usr/local/lib/python2.7/dist-packages/django_authopenid-1.0.1-py2.7.egg/django_authopenid/__init__.py”, line 46, in load_store
raise ImproperlyConfigured('Error importing openid store %s: “%s”' % (module, e))
Need some help! Thanks.

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version