DjangoBB

Django based forum engine

  • You are not logged in.

#1 April 10, 2013 20:30:56

george989
Registered: 2013-01-31
Posts: 4
Reputation: +  0  -
Profile   Send e-mail  

Error when trying to post and polls not shown

I have installed djangobb on my site, then later removed and now reinstalled..when i first installed and tested it was working fine except for some minor problems. Also how do i show polls. And my settings.py has basic apps like djangobb pagination etc and haystack configuration other than that there are no djangobb settings. can you show be a sample configuration settings.py Now when i try to post the following error occurs. [code] AttributeError at /forum/1/topic/add/ 'User' object has no attribute 'posts' Request Method: POST Request URL: http://www.ma****t.com/forum/1/topic/add/ Django Version: 1.4.5 Exception Type: AttributeError Exception Value:
'User' object has no attribute 'posts' Exception Location: /home/magicflight/webapps/django/lib/python2.7/django/utils/functional.py in inner, line 185 Python Executable: /usr/local/bin/python Python Version: 2.7.3 Python Path:
['/home/magicflight/webapps/django', '/home/magicflight/webapps/django/magic_project', '/home/magicflight/webapps/django/lib/python2.7', '/home/magicflight/lib/python2.7/pip-1.3.1-py2.7.egg', '/home/magicflight/lib/python2.7/askbot-0.7.48-py2.7.egg', '/home/magicflight/lib/python2.7/Django-1.4.5-py2.7.egg', '/home/magicflight/lib/python2.7/html5lib-0.95-py2.7.egg', '/home/magicflight/lib/python2.7/django_simple_contact-0.1.0-py2.7.egg', '/home/magicflight/lib/python2.7', '/home/magicflight/PYTHONPATH', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages/PIL', '/home/magicflight/PYTHONPATH'] Server time: Wed, 10 Apr 2013 12:25:39 -0500 Traceback Switch to copy-and-paste view

/home/magicflight/webapps/django/lib/python2.7/django/core/handlers/base.py in get_response response = callback(request, callback_args, callback_kwargs) ... ▶ Local vars /home/magicflight/webapps/django/lib/python2.7/django/contrib/auth/decorators.py in _wrapped_view return view_func(request, *args, kwargs) ... ▶ Local vars /home/magicflight/webapps/django/lib/python2.7/django/db/transaction.py in inner return func(args, kwargs) ... ▶ Local vars /home/magicflight/webapps/django/magic_project/djangobb_forum/views.py in add_topic post = form.save() ... ▶ Local vars /home/magicflight/webapps/django/magic_project/djangobb_forum/forms.py in save post.save() ... ▶ Local vars /home/magicflight/webapps/django/magic_project/djangobb_forum/models.py in save super(Post, self).save(*args, kwargs) ... ▶ Local vars /home/magicflight/webapps/django/lib/python2.7/django/db/models/base.py in save self.save_base(using=using, force_insert=force_insert, force_update=force_update) ... ▶ Local vars /home/magicflight/webapps/django/lib/python2.7/django/db/models/base.py in save_base creatednot record_exists), raw=raw, using=using) ... ▶ Local vars /home/magicflight/webapps/django/lib/python2.7/django/dispatch/dispatcher.py in send response = receiver(signal=self, sender=sender, *named) ... ▶ Local vars /home/magicflight/webapps/django/magic_project/djangobb_forum/signals.py in post_saved profile.post_count = post.user.posts.count() ... ▶ Local vars /home/magicflight/webapps/django/lib/python2.7/django/utils/functional.py in inner return func(self._wrapped, args) ... ▶ Local vars [/code]

Edited slav0nic (April 16, 2013 16:17:19)

Offline

#2 April 16, 2013 16:19:58

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

Error when trying to post and polls not shown

post normal traceback first …

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version