From 792b52a77c9e90080068909eeed791243f18dcf8 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 15 Aug 2019 01:06:10 +0200 Subject: [PATCH] Add Sites/Pages listing to admin, as per #1744 --- evennia/settings_default.py | 4 +- .../templates/website/evennia_admin.html | 88 +++++++++++++------ 2 files changed, 61 insertions(+), 31 deletions(-) diff --git a/evennia/settings_default.py b/evennia/settings_default.py index 2d5d96cfb2..6c69eabcac 100644 --- a/evennia/settings_default.py +++ b/evennia/settings_default.py @@ -763,8 +763,8 @@ STAFF_CONTACT_EMAIL = None # Absolute path to the directory that holds file uploads from web apps. # Example: "/home/media/media.lawrence.com" MEDIA_ROOT = os.path.join(GAME_DIR, "web", "media") -# It's safe to dis-regard this, as it's a Django feature we only half use as a -# dependency, not actually what it's primarily meant for. +# If using Sites/Pages from the web admin, this value must be set to the +# database-id of the Site (domain) we want to use with this game's Pages. SITE_ID = 1 # The age for sessions. # Default: 1209600 (2 weeks, in seconds) diff --git a/evennia/web/website/templates/website/evennia_admin.html b/evennia/web/website/templates/website/evennia_admin.html index e01aee2380..4d52266ee9 100644 --- a/evennia/web/website/templates/website/evennia_admin.html +++ b/evennia/web/website/templates/website/evennia_admin.html @@ -9,40 +9,70 @@

Admin

- Welcome to the Evennia Admin Page. Here, you can edit many facets of accounts, characters, and other parts of the game. + The Evennia admin page allows for modifying database entities using a + graphical interface. +

+
+ +

Game entities

+ + +

+

Accounts

+ Accounts can have several characters under them. A user's login and + password information can be changed here. +

+ +

+

Objects

+ Objects include everything with an in-game location, from characters + to rooms, exits, swords and monsters. +

+ +

+

Scripts

+ Scripts are meta objects used to store game information and state, + handle special functionality or perform timed actions. They have no + in-game location. +

+ +

+

Channels

+ Channels are used to redirect and organize player communications. +

+ +

+

Help Topics

+ Extend the automatic command-help with custom help topics. +

+ +
+ +

Extra website pages

+ +

+

Sites (domains)

+ Configure domain name for your pages. For local-only testing, create a + domain named localhost:4001. Then manually add + SITE_ID=<id> to your settings, where <id> + is the database-id of the domain you created (the <id> can be + found from the url of the domain in the admin, so + /admin/sites/site/3/change means that <id> is 3). +

+ +

+

Pages

+ Create, edit and publish new web pages without needing to know how to + code. Select the domain specified by SITE_ID above.


-

Accounts

- Accounts can have several characters under them. A user's login and password information can be changed here. -

- -

-

Objects

- Objects include everything from characters to rooms to exits. -

- -

-

Scripts

- Scripts are meta objects used to store game information, handle special functionality or perform timed actions. -

- -

-

Channels

- Channels are used for player communications. -

- -

-

Help Topics

- Help entries are custom entries added to the player help system. -

-
- -

- If you are an advanced user who needs access to the raw Django Admin, it is available here. - You can make this the default my changing EVENNIA_ADMIN to False in settings.py and reload. + If you are an advanced user who needs access to the raw Django Admin, + it is available here. You can + make this the default by changing EVENNIA_ADMIN to + False in settings.py and reload.