More fixes to url docs for tutorials
This commit is contained in:
parent
84c17ff5ed
commit
5eeef792a7
2 changed files with 8 additions and 7 deletions
|
|
@ -371,7 +371,7 @@ urlpatterns = [
|
||||||
# url: /chargen/
|
# url: /chargen/
|
||||||
path("", views.index, name='chargen-index'),
|
path("", views.index, name='chargen-index'),
|
||||||
# url: /chargen/5/
|
# url: /chargen/5/
|
||||||
path("<int:pk>/", views.detail, name="chargen-detail"),
|
path("<int:app_id>/", views.detail, name="chargen-detail"),
|
||||||
# url: /chargen/create
|
# url: /chargen/create
|
||||||
path("create/", views.creating, name='chargen-creating'),
|
path("create/", views.creating, name='chargen-creating'),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,11 @@ wasn't generated for you):
|
||||||
```python
|
```python
|
||||||
# URL patterns for the character app
|
# URL patterns for the character app
|
||||||
|
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
from web.character.views import sheet
|
from web.character.views import sheet
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^sheet/(?P<object_id>\d+)/$', sheet, name="sheet")
|
path("sheet/<int:object_id>", sheet, name="sheet")
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -193,13 +193,14 @@ skills the user has, or if the user is approved (assuming your game has an appro
|
||||||
|
|
||||||
The last file we need to edit is the master URLs file. This is needed in order to smoothly integrate
|
The last file we need to edit is the master URLs file. This is needed in order to smoothly integrate
|
||||||
the URLs from your new `character` app with the URLs from Evennia's existing pages. Find the file
|
the URLs from your new `character` app with the URLs from Evennia's existing pages. Find the file
|
||||||
`web/urls.py` and update its `patterns` list as follows:
|
`web/website/urls.py` and update its `patterns` list as follows:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# web/urls.py
|
# web/website/urls.py
|
||||||
|
|
||||||
custom_patterns = [
|
urlpatterns = [
|
||||||
url(r'^character/', include('web.character.urls'))
|
# ...
|
||||||
|
path("character/", include('web.character.urls'))
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue