mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 14:26:30 +01:00
Updated HTML docs.
This commit is contained in:
parent
b4fe068f44
commit
6d428d4086
684 changed files with 156 additions and 130 deletions
|
|
@ -143,14 +143,20 @@
|
|||
<h2>Creating our app<a class="headerlink" href="#creating-our-app" title="Permalink to this headline">¶</a></h2>
|
||||
<p>The first step is to create our new Django <em>app</em>. An app in Django can contain pages and mechanisms: your website may contain different apps. Actually, the website provided out-of-the-box by Evennia has already three apps: a “webclient” app, to handle the entire webclient, a “website” app to contain your basic pages, and a third app provided by Django to create a simple admin interface. So we’ll create another app in parallel, giving it a clear name to represent our help system.</p>
|
||||
<p>From your game directory, use the following commands:</p>
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>cd web
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>cd web
|
||||
evennia startapp help_system
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>This creates a new folder <code class="docutils literal notranslate"><span class="pre">help_system</span></code> in your <code class="docutils literal notranslate"><span class="pre">mygame/</span></code> folder. To keep things
|
||||
tidy, let’s move it to the <code class="docutils literal notranslate"><span class="pre">web/</span></code> folder:</p>
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>mv help_system web (linux)
|
||||
move help_system web (windows)
|
||||
</pre></div>
|
||||
</div>
|
||||
<blockquote>
|
||||
<div><p>Note: calling the app “help” would have been more explicit, but this name is already used by Django.</p>
|
||||
</div></blockquote>
|
||||
<p>This will create a directory named <code class="docutils literal notranslate"><span class="pre">help_system</span></code> under <code class="docutils literal notranslate"><span class="pre">mygame/web/</span></code>. We put it there to keep all web-related things together, but you can organize however you like. Here’s how the structure looks:</p>
|
||||
<p>We put the new app under <code class="docutils literal notranslate"><span class="pre">web/</span></code>t o keep all web-related things together, but you can organize however you like. Here’s how the structure looks:</p>
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>mygame/
|
||||
...
|
||||
web/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue