<codeclass="sig-prename descclassname">royalnet.web.</code><codeclass="sig-name descname">create_app</code><spanclass="sig-paren">(</span><emclass="sig-param">config_obj: Type, blueprints: List[royalnet.web.royalprint.Royalprint]</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.web.create_app"title="Permalink to this definition">¶</a></dt>
<dd><p>Create a <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">flask.Flask</span></code> application object.</p>
<p>Gets the <codeclass="docutils literal notranslate"><spanclass="pre">app.secret_key</span></code> from the <codeclass="docutils literal notranslate"><spanclass="pre">SECRET_KEY</span></code> envvar.</p>
<p>Also requires a <codeclass="docutils literal notranslate"><spanclass="pre">DB_PATH</span></code> key in <codeclass="docutils literal notranslate"><spanclass="pre">config_obj</span></code> to initialize the database connection.</p>
<divclass="admonition warning">
<pclass="admonition-title">Warning</p>
<p>The code for this class was written at 1 AM, and I have no clue of how and why it works or even of if it really does work.
Use with caution?</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>config_obj</strong>– The object to be passed to <codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">flask.Flask.config.from_object()</span></code>.</p></li>
<li><p><strong>blueprints</strong>– A list of blueprints to be registered to the application.</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>The created <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">flask.Flask</span></code>.</p>
</dd>
</dl>
</dd></dl>
<dlclass="class">
<dtid="royalnet.web.Royalprint">
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.web.</code><codeclass="sig-name descname">Royalprint</code><spanclass="sig-paren">(</span><emclass="sig-param">name</em>, <emclass="sig-param">import_name</em>, <emclass="sig-param">static_folder=None</em>, <emclass="sig-param">static_url_path=None</em>, <emclass="sig-param">template_folder=None</em>, <emclass="sig-param">url_prefix=None</em>, <emclass="sig-param">subdomain=None</em>, <emclass="sig-param">url_defaults=None</em>, <emclass="sig-param">root_path=None</em>, <emclass="sig-param">required_tables: Optional[set] = None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.web.Royalprint"title="Permalink to this definition">¶</a></dt>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.