Skip to content

Commit b825053

Browse files
committed
change the routing
1 parent 411e090 commit b825053

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ python -m pip install channels
1111

1212
or
1313

14-
pip install channels
14+
`pip install channels`
1515

1616

1717
to run the server you must enter
1818

19-
python manage.py runserver
19+
`python manage.py runserver`
2020

2121
after the run
2222

23-
the URL : http://localhost:8000/chat/index should direct you to the chat page
23+
the URL : http://localhost:8000 should direct you to the chat page
2424

blog_channels/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
urlpatterns = {
77
url(r'^admin/', admin.site.urls),
8-
url(r'^chat/', include('chat.urls', namespace='chat'))
8+
url(r'^', include('chat.urls', namespace='chat'))
99
}
1010

chat/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
urlpatterns = [
11-
url(r'^index$', home),
11+
url(r'^', home),
1212
url(r'^email$', MailMeView.as_view(), name='mailme')
1313
]
1414
urlpatterns += staticfiles_urlpatterns()

0 commit comments

Comments
 (0)