[Moin-user] Re: Import of configuration file "wikiconfig.py" failed because of SyntaxError

Gerhard Marini gerhard.marini at gmail.com
Fri Feb 25 06:05:29 EST 2005


On Fri, 25 Feb 2005 14:03:41 +0100, Malte Helmert  
<helmert at informatik.uni-freiburg.de> wrote:

> Gerhard Marini wrote:
>
>> Dear Moiners,
>>  I get the following error message in the browser after the basic
>> installation and typing "http://server/myWiki":
>>  "MoinMoin Configuration Error
>>  Import of configuration file "wikiconfig.py" failed because of
>> SyntaxError: invalid syntax (wikiconfig.py, line 58).
>>  line 58 is:    data_dir = r'F:\moin\myWiki\data'
>
> That line looks good. I first wondered about the backslashes, but it's a  
> "raw string", so that's fine. Can you post the previous five lines as  
> well?
>
> Malte
>
Sure,

here they are:


 from MoinMoin.multiconfig import DefaultConfig


class Config(DefaultConfig):

     # Wiki identity ----------------------------------------------------

     # Site name, used by default for wiki name-logo [Unicode]
     sitename = u'mywiki'

     # Wiki logo. You can use an image, text or both. [Unicode]
     # Example: u'<img src="/wiki/mywiki.png" alt="My Wiki">My Wiki'
     # For no logo or text, use ''
     logo_string = sitename

     # The interwiki name used in interwiki links
     interwikiname = None


     # Critical setup  ---------------------------------------------------

     # Misconfiguration here will render your wiki unusable. Check that
     # all directories are accessible by the web server or moin server.

     # If you encounter problems, try to set data_dir and data_underlay_dir
     # to absolute paths.

     # Where your mutable wiki pages are. You want to make regular
     # backups of this directory.
	data_dir = r'F:\moin\myWiki\data'

     # Where read-only system and help page are. You might want to share
     # this directory between several wikis. When you update MoinMoin,
     # you can safely replace the underlay directory with a new one. This
     # directory is part of MoinMoin distribution, you don't have to
     # backup it.
     data_underlay_dir = r'F:\moin\myWiki\underlay'

     # This must be '/wiki' for twisted and standalone. For CGI, it should
     # match your Apache Alias setting.
     url_prefix = '/wiki'

Gerhard




More information about the Moin-user mailing list