Some consistency improvements with URL overrides.
This commit is contained in:
parent
16bcc3c9f0
commit
fbe0eab01c
7 changed files with 50 additions and 17 deletions
1
game/gamesrc/web/examples/__init__.py
Normal file
1
game/gamesrc/web/examples/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
__author__ = 'kelketek'
|
||||
28
game/gamesrc/web/examples/urls.py
Normal file
28
game/gamesrc/web/examples/urls.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
from django.conf.urls import url, include
|
||||
|
||||
from src.web.urls import urlpatterns
|
||||
|
||||
#
|
||||
# File that determines what each URL points to. This uses _Python_ regular
|
||||
# expressions, not Perl's.
|
||||
#
|
||||
# See:
|
||||
# http://diveintopython.org/regular_expressions/street_addresses.html#re.matching.2.3
|
||||
#
|
||||
|
||||
# Copy this file into your web directory in gamesrc, and add this line to settings.py:
|
||||
# ROOT_URLCONF = 'game.gamesrc.web.urls'
|
||||
|
||||
# Add your own URL patterns to the patterns variable below, and then change
|
||||
#
|
||||
# These are Django URL patterns, so you should look up how to use these at
|
||||
# https://docs.djangoproject.com/en/1.6/topics/http/urls/
|
||||
|
||||
# Follow the full Django tutorial to learn how to create web views for Evennia.
|
||||
# https://docs.djangoproject.com/en/1.6/intro/tutorial01/
|
||||
|
||||
patterns = [
|
||||
# url(r'/desired/url/', view, name='example'),
|
||||
]
|
||||
|
||||
urlpatterns = patterns + urlpatterns
|
||||
5
game/gamesrc/web/static_overrides/README.md
Normal file
5
game/gamesrc/web/static_overrides/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
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:
|
||||
|
||||
python manage.py collectstatic
|
||||
|
||||
Do note you may have to reproduce any preceeding directory structures for the file to end up in the right place.
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
from src.web.urls import urlpatterns
|
||||
#
|
||||
# File that determines what each URL points to. This uses _Python_ regular
|
||||
# expressions, not Perl's.
|
||||
#
|
||||
# See:
|
||||
# http://diveintopython.org/regular_expressions/street_addresses.html#re.matching.2.3
|
||||
#
|
||||
|
||||
# You can add URLs to your game's website by extending urlpatterns.
|
||||
#
|
||||
# These are Django URL patterns, so you should look up how to use these at
|
||||
# https://docs.djangoproject.com/en/1.6/topics/http/urls/
|
||||
Loading…
Add table
Add a link
Reference in a new issue