<codeclass="descclassname">royalnet.web.</code><codeclass="descname">create_app</code><spanclass="sig-paren">(</span><em>config_obj: Type[CT_co], 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 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="descclassname">royalnet.web.</code><codeclass="descname">Royalprint</code><spanclass="sig-paren">(</span><em>name</em>, <em>import_name</em>, <em>static_folder=None</em>, <em>static_url_path=None</em>, <em>template_folder=None</em>, <em>url_prefix=None</em>, <em>subdomain=None</em>, <em>url_defaults=None</em>, <em>root_path=None</em>, <em>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>.