Attachment 'NicoZanferrari.wikiconfig.py'
Download 1 import os
2
3 from MoinMoin.config import multiconfig, url_prefix_static
4
5
6 class Config(multiconfig.DefaultConfig):
7
8 # Critical setup ---------------------------------------------------
9
10 # Directory containing THIS wikiconfig:
11 wikiconfig_dir = os.path.abspath(os.path.dirname(__file__))
12
13 # We assume that this config file is located in the instance directory, like:
14 # instance_dir/
15 # wikiconfig.py
16 # data/
17 # underlay/
18 # If that's not true, feel free to just set instance_dir to the real path
19 # where data/ and underlay/ is located:
20 #instance_dir = '/where/ever/your/instance/is'
21 instance_dir = '/wiki/mywiki1'
22
23 # Where your own wiki pages are (make regular backups of this directory):
24 data_dir = os.path.join(instance_dir, 'data', '') # path with trailing /
25
26 # Where system and help pages are (you may exclude this from backup):
27 data_underlay_dir = os.path.join(instance_dir, 'underlay', '') # path with trailing /
28
29 # The URL prefix we use to access the static stuff (img, css, js).
30 # Note: moin runs a static file server at url_prefix_static path (relative
31 # to the script url).
32 # If you run your wiki script at the root of your site (/), just do NOT
33 # use this setting and it will automatically work.
34 # If you run your wiki script at /mywiki, you need to use this:
35 #url_prefix_static = '/mywiki' + url_prefix_static
36
37
38 # Wiki identity ----------------------------------------------------
39
40 # Site name, used by default for wiki name-logo [Unicode]
41 sitename = u'My first Wiki'
42
43 # Wiki logo. You can use an image, text or both. [Unicode]
44 # For no logo or text, use '' - the default is to show the sitename.
45 # See also url_prefix setting below!
46 logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">' % url_prefix_static
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.