mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 14:07:16 +02:00
Minor cleanup in a readme and a method signature.
This commit is contained in:
parent
ca3f92acd0
commit
a6187ed997
2 changed files with 9 additions and 9 deletions
|
|
@ -1,5 +1,7 @@
|
|||
This folder is used by Django's staticfiles application for gathering all static files (CSS, JS, etc) into one place
|
||||
from the various sources that they might be gathered from.
|
||||
If you want to override one of the static files (such as a CSS or JS file) used by Evennia or a Django app installed in your Evennia project, copy it into this folder, and it will be placed in the static folder when you run:
|
||||
|
||||
Do not edit files in this directory. Instead, read up on Django's static file handling to learn how to create Django
|
||||
apps with their own static files.
|
||||
python manage.py collectstatic
|
||||
|
||||
or reload the server via the command line.
|
||||
|
||||
Do note you may have to reproduce any preceeding directory structures for the file to end up in the right place.
|
||||
|
|
|
|||
|
|
@ -4,12 +4,11 @@ This contains a simple view for rendering the webclient
|
|||
page and serve it eventual static content.
|
||||
|
||||
"""
|
||||
from django.shortcuts import render
|
||||
|
||||
from django.shortcuts import render_to_response, redirect
|
||||
from django.template import RequestContext
|
||||
from django.conf import settings
|
||||
from src.players.models import PlayerDB
|
||||
|
||||
|
||||
def webclient(request):
|
||||
"""
|
||||
Webclient page template loading.
|
||||
|
|
@ -25,5 +24,4 @@ def webclient(request):
|
|||
# as an example we send the number of connected players to the template
|
||||
pagevars = {'num_players_connected': nsess}
|
||||
|
||||
context_instance = RequestContext(request)
|
||||
return render_to_response('webclient.html', pagevars, context_instance)
|
||||
return render(request, 'webclient.html', pagevars)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue