wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Make config.py optional

Open alexanderjulo opened this issue 8 years ago • 2 comments

We can auto-generate a random secret key on startup. As it is the only setting that is required that would make the config file unnecessary and would greatly simplify getting started.

alexanderjulo avatar Nov 21 '16 16:11 alexanderjulo

FYI complete Flask and Python noob here.

my config.py only has SECRET_KEY='0123456789' and I'm hosting on localhost.

I've cloned the latest release and have been trying to run the wiki but I keep getting jinja2.exceptions.TemplateNotFound: home.html whenever I try to navigate to localhost:5000.

I can't figure out why render_template isn't pointed to the right place.

I thought it might be helpful to mention this give you're trying to simplify getting started with the wiki.

EDIT:

I changed the init.py in /wiki to:

from wiki.core import Wiki from wiki.web import create_app import os all = ['Wiki'] app = create_app(os.getcwd()) app.run(debug=True)

Rummin avatar Nov 29 '16 08:11 Rummin

@Rummin thanks for your question! I don't think your issue and this issue are necessarily closely related. It sounds more like you are installing wiki the wrong way. Did you install it using pip as the README states and also run it the way it was described?

alexanderjulo avatar Dec 04 '16 13:12 alexanderjulo