FlaskBB
A lightweight forum software in Flask
default profile picture

cpct

Member
Last seen 5 years ago
Joined:
Posts:
2
Topics:
1

Never mind. Some more try and error solved it.

I case any other noob stumbles upon this, here is what needs to be entered at step "flaskbb makeconfig":

Server Name: 127.0.0.1:5000
redis: n

everything else can be left blank to leave the default value.

Hi, if I would want to get a first impression and run this locally with minimum effort (an knowledge), I should follow this guide, right? I tried, but I am not really successful :-(

$ flaskbb --config flaskbb.cfg run
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
.../flaskbbENV/lib/python3.5/site-packages/flask/sessions.py:208: UserWarning: "http://localhost" is not a valid cookie domain, it must contain a ".". Add an entry to your hosts file, for example "http://localhost.localdomain", and use that instead.
  ' "{rv}.localdomain", and use that instead.'.format(rv=rv)
127.0.0.1 - - [16/Sep/2019 09:58:51] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [16/Sep/2019 09:59:28] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [16/Sep/2019 09:59:28] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [16/Sep/2019 09:59:28] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [16/Sep/2019 09:59:50] "GET /auth/login HTTP/1.1" 404 -

When I call localhost:5000 or 127.0.0.1:5000, I get a broken 404 page with some menu links like register and login, but all the links are broken and the URL look wrong (http://http//localhost:5000//).

I think I have failed to enter a valid "Server Name" when creating the flaskbb.cfg, but I don't know what I should put there to make it work. I don't know much (as anyone reading this will have guessed), but I have played around successfully with django locally and the development server was always my good friend, because I didn't have to manage nginx and such...

Sorry for such a noob question, I hope someone could still point me in the right direction. Thanks!