• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Dev Development

About file misago.conf.settings

joyhuchao
Sept. 28, 2018
chat_bubble_outline 7
  • link
    joyhuchao
    Members 12 posts
    Sept. 28, 2018, 9:03 a.m. Sept. 28, 2018, 9:03 a.m.
    link

    Those settings are stored in database and are available via misago.conf.settings. To change those settings you need to use admin control panel.

    I am a novice developer for misago.

    Reading document github.com/rafalp/Misago-Docs/blob/master/docs/settings/Database.md

    When trying to configure these configurations, it was found that the problem could not be found. How can I find this file?

    Please forgive me for Machine Translation's English.

  • link
    joyhuchao
    Members 12 posts
    Sept. 28, 2018, 9:36 a.m. Sept. 28, 2018, 9:36 a.m.
    link

    This post is hidden. You cannot see its contents.

    Hidden by rafalp on Sept. 28, 2018, 10:32 a.m..

  • link
    rafalp
    Project Lead 2027 posts
    Sept. 28, 2018, 10:35 a.m. Sept. 28, 2018, 10:35 a.m.
    link

    Hello,

    You are not supposed to find that file, only import it in your code like such:

    from misago.conf import settings
    
    #  what is forum name?
    settings.forum_name
    

    To actually change those settings, you should edit your settings.py file, or log in to admin control panel, go to "settings" and change them using the form.


    I have also hidden your second post as it was in Chinese. This is english speaking forum, and our terms of service require that all public postings are made in english.

  • arrow_forward

    Thread has been moved from Feedback, Ideas and Suggestions.

    • By rafalp on Sept. 28, 2018, 10:35 a.m..
  • link
    joyhuchao
    Members 12 posts
    Sept. 28, 2018, 10:41 a.m. Sept. 28, 2018, 10:41 a.m.
    link
    @rafalp

    Hello,

    You are not supposed to find that file, only import it in your code like such:

    from misago.conf import settings
    
    #  what is forum name?
    settings.forum_name
    

    To actually change those settings, you should edit your settings.py file, or log in to admin control panel, go to "settings" and change them using the form.


    I have also hidden your second post as it was in Chinese. This is english speaking forum, and our terms of service require that all public postings are made in english.

    If I used pip to install misago.

    Where should I write the python file belonging to my own definition? As you mentioned, you need to import import misago.conf package files. How do I get misago to quote my Python file?

  • link
    rafalp
    Project Lead 2027 posts
    Sept. 28, 2018, 10:56 a.m. Sept. 28, 2018, 10:56 a.m.
    link

    If you used pip install misago, please see the documentation for next steps.

    You don't need to import misago.conf, unless you are developer writing custom module for Misago.

  • link
    joyhuchao
    Members 12 posts
    Sept. 28, 2018, 11:37 a.m. Sept. 28, 2018, 11:37 a.m.
    link
    @rafalp

    If you used pip install misago, please see the documentation for next steps.

    You don't need to import misago.conf, unless you are developer writing custom module for Misago.

    When I want to set the relevant options in database settings, how should I set them up?

    In this file (if you used `pip install misago', please see the [documentation] (misago.gitbook.io/docs/setup# setup) for next steps.

    These parameters are introduced.

    And I did not find the specified options in the system settings panel of the management backstage. Am I directly set up in settings.py? Or how to set it up?

    And sorry for my bad English。

  • link
    rafalp
    Project Lead 2027 posts
    Sept. 28, 2018, 11:47 a.m. Sept. 28, 2018, 11:47 a.m.
    link

    If you didn't find what you want to change in admin control panel, then you need to add it to your settings.py.

    The settings.py you need to change is in directory that misago-start.py created for you. You don't need to access misago.conf to change settings.

  • link
    joyhuchao
    Members 12 posts
    Sept. 28, 2018, 11:53 a.m. Sept. 28, 2018, 11:53 a.m.
    link

    OK, let's have a try.

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago