vasuporov / snapboard

Automatically exported from code.google.com/p/snapboard
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Exception when trying to create a new post #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
django revision 4501, snapboard revision 115.

I received the following debug output when trying to create a new thread:

Request Method:     POST
Request URL:    http://dev.peepz.org/forums/newtopic/
Exception Type:     IntegrityError
Exception Value:    null value in column "ip" violates not-null constraint
Exception Location: 
/usr/local/lib/python2.4/site-packages/django/db/backends/util.py in
execute, line 12

I had filled out the form for a new post, clicked on Start Subject and got
the error.

Original issue reported on code.google.com by johnnie....@gmail.com on 13 Feb 2007 at 10:17

GoogleCodeExporter commented 8 years ago
Can't reproduce the problem.  I think you may have ommitted the following in 
your
MIDDLEWARE_CLASSES setting (this is relatively new)

MIDDLEWARE_CLASSES = (
    ...

    # SNAPboard middleware
    'examplesite.snapboard.middleware.threadlocals.ThreadLocals',
)

Original comment by bs1...@gmail.com on 13 Feb 2007 at 10:44

GoogleCodeExporter commented 8 years ago
Ok, this turns out to be an issue of configuration.  The threadlocals middleware
module that's provided with snapboard requires come configuration in settings.py
file.  Specifically, you need to add the following line to MIDDLEWARE_CLASSES:

    'webapps.snapboard..middleware.threadlocals.ThreadLocals'

As indicated in the middleware module, more info about what this module does 
can be
found [http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser here].

Original comment by johnnie....@gmail.com on 13 Feb 2007 at 10:44

GoogleCodeExporter commented 8 years ago

Original comment by johnnie....@gmail.com on 13 Feb 2007 at 10:45

GoogleCodeExporter commented 8 years ago
Heh.  Funny, I just posted right after you did on this issue.  I'm adding the 
info to
the app integration doc.  However, this is also basic install stuff if someone 
wanted
to use the app as the primary component of the their project.

Original comment by johnnie....@gmail.com on 13 Feb 2007 at 10:47

GoogleCodeExporter commented 8 years ago
Closing

Original comment by johnnie....@gmail.com on 14 Feb 2007 at 12:45