Wikked can be configured with a couple files:

  • .wikirc: this file, located at the root of your wiki, can be submitted into revision control, so that various clones of the wiki have the same options where it makes sense.

  • .wiki/wikirc: some options may have to be different depending on where you run the wiki from. This file is a complementary variant of the .wikirc file, but is contained in the ignored-by-default .wiki folder. As such it is meant to store options valid only for a local installation.

The wikirc file is meant to be written with an INI-style format:

water = good
witches = really bad

wish = be home

Main Options

The main Wikked options should be defined in a [wiki] section. Here are the supported options:

  • main_page (defaults to Main page): the name of the page that should be displayed when people visit the root URL of your wiki. Page names are case sensitive so watch out for the capitalization.

  • default_extension (defaults to md): the file extension (and therefore Formatting engine) to use by default when creating a new page. The default values is md for Markdown.

  • templates_dir (defaults to Templates): by default, the include statement (see Editing Pages) will first look into a templates directory for a template of the given name. This is the name of that folder.

Also see Advanced Options below.


The wikirc file can also be used to define user permissions. This is done with the [users] section:


The PASSWORD_HASH is, well, a password hash. You can generate one by using the wk newuser command (see Command Line Interface):

$ wkdev newuser dorothy
Password: ********
dorothy = $2a$12$7FR949jt9zq5iNwY5WAZAOzD7pK3P0f/NnrKHAys17HT1Omuk2Asu

(copy this into your .wikirc file)

Once you have some users defined, you can give them some permissions, using the [permissions] section. Supported settings are:

  • readers: users able to read the wiki.
  • writers: users able to edit the wiki.

Multiple usernames must be separated by a comma. You can also use * for "all users", and anonymous for unauthenticated visitors.

The following example shows a wiki only accessible to registered users, and that can only be edited by dorothy and toto:

readers = *
writers = dorothy,toto

Those settings can also be overriden at the page level using the readers and writers metadata. So you can still have a public landing page for the previously mentioned private wiki by adding this to Main

{{readers: *,anonymous}}

See Page Metadata for more information.

Ignored files

The optional ignore section lets you define files or folders for Wikked to ignore (i.e. files that are not pages, or folder that don't contain pages).

Each item in this section should be name = pattern, where name is irrelevant, and pattern is a glob-like pattern:

venv = venv
temp = *~
temp2 = *.swp

This will ignore a venv folder or file at the root, or any file or folder anywhere that ends with ~ or .swp.

Advanced Options

In addition to the Main Options above, the following avanced wiki options are available. They's in the [wiki] section:

  • indexer (defaults to whoosh): The full-text indexer to use. Only 2 indexers are currently supported, whoosh (for Whoosh) and elastic (for Elastic Search).

  • database (defaults to sql): The database system to use for the cache. Wikked currently only supports SQL, but see the next option below.

  • database_url (defaults to sqlite:///%(root)s/.wiki/wiki.db): the URL to pass to SQLAlchemy for connecting to the database. As you can see, the default value will read or create an SQLite file in the .wiki folder. If you want to use a proper SQL server you can specify its URL and login information instead. See the SQLAlchemy connection string format for more information.

Web Server Options

Wikked runs on top of Flask, and for some advanced things (like hacking around with code), you may want to be able to configure the Flask app. For this, you can use the .wiki/app.cfg file.

This file, if it exists, will be passed on to Flask. See the Flask configuration documentation for more information.