quote here
strong text
When trying to register a user, this error occurs:
Traceback (most recent call last):
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/steam/flaskbb/flaskbb/auth/views.py", line 163, in register
send_activation_token.delay(user)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/celery/app/task.py", line 412, in delay
return self.apply_async(args, kwargs)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/celery/app/task.py", line 535, in apply_async
**options
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/celery/app/base.py", line 737, in send_task
amqp.send_task_message(P, name, message, **options)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/celery/app/amqp.py", line 558, in send_task_message
**properties
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/messaging.py", line 169, in publish
compression, headers)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/messaging.py", line 252, in _prepare
body) = dumps(body, serializer=serializer)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/serialization.py", line 221, in dumps
payload = encoder(data)
File "/usr/lib/python3.4/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/serialization.py", line 54, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/vine/five.py", line 175, in reraise
raise value.with_traceback(tb)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/serialization.py", line 221, in dumps
payload = encoder(data)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/utils/json.py", line 72, in dumps
**dict(default_kwargs, **kwargs))
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/simplejson/__init__.py", line 397, in dumps
**kw).encode(obj)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/simplejson/encoder.py", line 291, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/simplejson/encoder.py", line 373, in iterencode
return _iterencode(o, 0)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/kombu/utils/json.py", line 62, in default
return super(JSONEncoder, self).default(o)
File "/home/steam/flaskbb/.venv/lib/python3.4/site-packages/simplejson/encoder.py", line 268, in default
raise TypeError(repr(o) + " is not JSON serializable")
kombu.exceptions.EncodeError: <User testuser> is not JSON serializable
yes, I use this very url and get "this account is already active" message.
I tried to register with name "azs"
have the same problem as described above: I configured celery to work without redis
REDIS_ENABLED = False
REDIS_URL = ""
REDIS_DATABASE = 0
# Celery
# ------------------------------
CELERY_BROKER_URL = ""
CELERY_RESULT_BACKEND = ""
when run flaskbb --config flaskbb.cfg celery worker
celery writes a message:
[2017-06-01 01:13:33,265: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused.
Trying again in 2.00 seconds...
maybe it is possible to send emails without headache with celery?
Seems I've found a solution
just add the following string to flaskbb.cfg:
SESSION_COOKIE_DOMAIN = "your_server_address"
maybe it helps someone
HERE ME ROWR.
:D 💯 🉑
Hi everyone,
I've installed flaskbb software as shown in documentation and everything forks fine when I run development server ( flaskbb run )
I deployed the flaskbb under nginx / uwsgi, it runs but every time I try to send any form ( login, for example ) I get the error "The CSRF session token is missing."
I tried to use WTF_CSRF_ENABLED = False option but in this case login doesn't work at all. Maybe you have any idea how to resolve the problem?
I'd appreciate any help cause I have no idea. My configuration files:
uwsgi
[uwsgi]
chdir=/path/to/flaskbb/
venv=/path/to/flaskbb/.venv/
socket=127.0.0.1:9003
mount=/flaskbb=wsgi.py
callable=flaskbb
plugin=python
manage-script-name=true
nginx
server {
listen 80 default_server;
root /path/to/myapp_dir;
error_log /var/log/nginx/error.forums.log;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:9001;
}
location /flaskbb/ {
try_files $uri @flaskbb;
}
location /flaskbb/static/ {
alias /path/to/flaskbb/flaskbb/static/;
}
location ~ ^/_themes/([^/]+)/(.*)$ {
alias /path/to/flaskbb/flaskbb/themes/$1/static/$2;
}
location @flaskbb {
include uwsgi_params;
uwsgi_param SCRIPT_NAME /flaskbb;
uwsgi_pass 127.0.0.1:9003;
}
location /static/ {
if (-f $request_filename) {
rewrite ^/static/(.*)$ /static/$1 break;
}
}
}
Thanks, the mail actually was in spam folder and I missed it. But there's another problem:
I follow the activation link and get message "Your account activation token is expired"
Okay, I enter my credentials and press "Send Mail" button and get "This account is already activated".
But when I try to login it still requires an activation.
Hi
I have few questions about flaskbb and tried to register here but haven't received confirmation email. Does it work?
Could you check please...
Thanks.
Brunch today
quote here
18
test
cool
Jimnotgym wrote:
you mean you would like a way to install without using the command line?
yeah, i want to install flaskbb from a .zip file
Hi, how I can install FlaskBB without this commands?
$ git clone https://github.com/sh4nks/flaskbb.git
$ cd flaskbb
etc..
A new test topic