Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation to use django.urls.re_path instead of django.conf.urls.url #9

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/pages/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Python 2:
:caption: my_site/urls.py
:name: urls_python_2

from django.conf.urls import url, include
from django.urls import re_path as url, include
from django.contrib import admin

urlpatterns = [
Expand Down Expand Up @@ -137,7 +137,7 @@ Python 2:
:caption: my_app/urls.py
:name: my_app_urls_python_2

from django.conf.urls import url, include
from django.urls import re_path as url, include
from . import views

urlpatterns = [
Expand Down
2 changes: 1 addition & 1 deletion tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
1. Import the include() function: from django.urls import re_path as url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.urls import re_path as url, include
Expand Down