Matt George
f4175b4b07
Update quickstart.md ( #9185 )
...
add .order_by() to eliminate Pagination UnorderedObjectListWarning
2024-01-04 13:10:53 +00:00
HGZahn
4c231d5b97
Clarifying the file to edit ( #9189 )
2024-01-04 12:36:49 +00:00
Jayant
3f8ab538c1
docs: add missing renderer import in tutorial 6 ( #8885 )
2023-02-27 00:06:48 +06:00
Thomas Irgang
3bf611787a
Register Django urls ( #8778 )
...
Without adding the URLs manually, the users and groups APIs were not usable.
My env:
(venv) ➜ tutorial pip freeze
asgiref==3.5.2
astroid==2.12.13
autopep8==2.0.0
dill==0.3.6
Django==4.1.3
djangorestframework==3.14.0
isort==5.10.1
lazy-object-proxy==1.8.0
mccabe==0.7.0
platformdirs==2.5.4
pycodestyle==2.10.0
pylint==2.15.6
pylint-django==2.5.3
pylint-plugin-utils==0.7
pytz==2022.6
sqlparse==0.4.3
tomli==2.0.1
tomlkit==0.11.6
wrapt==1.14.1
2022-11-27 18:53:48 +06:00
Géry Ogam
fd7d3a7b92
Update 6-viewsets-and-routers.md ( #8590 )
...
* Update 6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
* Update docs/tutorial/6-viewsets-and-routers.md
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
2022-11-22 14:39:26 +06:00
Géry Ogam
2510456817
Update quickstart.md ( #8575 )
...
* Update quickstart.md
* Use PEP 8 compliant import
* Remove unauthorized password by Django (too common)
2022-10-20 15:32:25 +01:00
Francisco Couzo
041b88f8bb
Improve style, fix some typos ( #8405 )
...
* Improve style, fix some typos
* Update docs/api-guide/fields.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-10-19 11:20:11 +01:00
Sardorbek Imomaliev
e7777cb1ee
Add spaces to router example in 6-viewsets-and-routers.md ( #8448 )
2022-10-03 11:48:18 +01:00
Youngkwang Yang
9043df6be7
Add trailing slash ( #8604 )
2022-08-22 10:52:34 +01:00
Patrick Daley
f8a03b096b
Remove pluralisation from basenames ( #8517 )
...
HyperlinkIdentityFields in serializers reference 'snippet-highlight' and 'snippet-detail', router basenames updated to match.
2022-06-07 12:35:01 +01:00
Bhuwan Panta
c26ec5a3b8
Update 6-viewsets-and-routers.md ( #8349 )
...
# Basename key missing in the tutorial
```diff
+router.register(r'snippets', views.SnippetViewSet,basename="snippets")
+router.register(r'users', views.UserViewSet,basename="users")
-router.register(r'snippets', views.SnippetViewSet)
-router.register(r'users', views.UserViewSet)
```
2022-02-01 13:48:22 +00:00
Suntae Kim
f9ccbad4d9
minor update on tutorial serialization ( #8323 )
2022-01-06 13:55:44 +00:00
juliangeissler
2d52c9e8bc
Update Tutorial - quickstart ( #7943 )
...
* Tutorial - Adjust quickstart
Add asgi.py file
Also add paragraph for the second user, which is later displayed
* Tutorial - Adjust quickstart
It seems that there is no CLI command to easily create a user
Remove the second user from the Markdown
Image next
* Tutorial - quickstart - Update browsable API image
Only show the admin user
New Image has similar width and is compressed
2021-12-13 14:08:55 +00:00
Yecine Megdiche
380ac8e79d
Remove old-style super
calls ( #8226 )
2021-12-06 15:32:33 +00:00
Dmytro Litvinov
0d5250cffa
Fix link to installation of httpie ( #8257 )
...
Right now httpie moved to "httpie" organization (https://github.com/httpie/httpie ) and they don't have "installation" at their GitHub. Instead of that, they have "Getting started" section with link to "Installation instructions".
2021-11-15 08:54:19 +00:00
Tom Christie
9ce541e909
Revert "Fix arguments ( #7995 )" ( #8156 )
...
This reverts commit 9716b1b6b7
.
2021-09-06 12:19:20 +01:00
Ivan Trushin
9716b1b6b7
Fix arguments ( #7995 )
...
`path()` has no argument `namespace`, it has `name` argument
2021-09-06 12:18:13 +01:00
juliangeissler
cdd53c7de9
Update Tutorial - Relationships & Hyperlinked APIs ( #7950 )
...
unnecessary import, because it is already added in the previous section
2021-08-08 14:45:00 +01:00
Ben Hampson
e95e91ccf2
Use correct link for httpie ( #8005 )
...
Before it was linking to a fork of a fork of httpie. I've changed it to the right URL.
2021-08-06 16:49:41 +01:00
Jeff Baumes
b0ca248d88
Correct the use of "to" ( #7696 )
2021-03-16 12:57:04 +00:00
Xavier Ordoquy
fdf277a782
Merge pull request #6843 from max-wittig/patch-1
...
docs(tutorial): add missing permission import in viewsets
2020-10-06 21:42:30 +02:00
Xavier Ordoquy
9dc10d2af7
Merge pull request #7577 from Exifers/patch-1
...
Documentation: use retrieve instead of read for Viewset
2020-10-05 21:54:33 +02:00
Xavier Ordoquy
a849627f88
Fixes #7538 - use retrieve
action name instead of detail
2020-10-05 21:48:07 +02:00
Emmanuel Meric de Bellefon
86ec3da2da
Update 6-viewsets-and-routers.md
2020-10-05 20:56:42 +02:00
Adam Johnson
410575dace
Replace all url() calls with path() or re_path() ( #7512 )
...
* url() is deprecated in Django 3.1
* update given feedbacks on url() is deprecated in Django 3.1
* Fix test_urlpatterns.py to continue testing mixed re_path() and path()
* Fix one missed reference
Co-authored-by: sanjusci <sanju.sci9@gmail.com>
2020-09-08 15:32:27 +01:00
Anirudh Bagri
1e164c5eeb
Just smalling cleaning up, causing confusion ( #7426 )
2020-07-23 17:34:34 +02:00
Ryan P Kilby
92a4a5d423
Fix docs 404 ( #7197 )
...
* Use 'site_url' instead of hardcoding DRF homepage
* Use 'url' template filter instead of 'base_url'
This fixes static file loading for the 404 page.
* Only insert funding <hr> if toc is present
* Link quickstart to valid API guide page
* Fix 404 search modal link
* Use 'base_url' instead of 'site_url' on 404 page
2020-02-20 10:23:06 +00:00
Jonathan Longe
62193e0378
Add permissions to quickstart tutorial ( #7113 )
2020-01-15 11:58:31 -08:00
Bart
07376f128c
Grammar fix ( #6933 )
2020-01-03 13:36:43 +00:00
Thomas Loiret
adaf97a739
Remove the old reference to JSONResponse
2019-11-20 14:09:49 +01:00
Max Wittig
ed7f3c55f7
docs(tutorial): add missing permission import in viewsets
2019-07-29 14:20:11 +02:00
Luke Plant
f0dbf0a264
Update docs to use lists instead of tuples ( #6797 )
2019-07-12 18:15:36 -07:00
Carlton Gibson
7915485c0d
Update docs for OpenAPI. ( #6668 )
...
* Update schema docs for OpenAPI
* Begin v3.10 Release Announcement.
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
* Update docs/topics/documenting-your-api.md
Co-Authored-By: Martin Pajuste <pajusmar@users.noreply.github.com>
2019-07-08 13:09:05 +01:00
Alex Ayon
a3eeeb20e7
Update 1-serialization.md ( #6781 )
...
Assigning a sorted list to STYLE_CHOICES by using a list comprehension.
2019-07-04 13:41:15 +01:00
Jon Dufresne
565794bedc
Replace virtualenv references with venv in the docs ( #6636 )
...
On Python 3, creating virtual environments is available through the
stdlib module venv.
https://docs.python.org/3/library/venv.html
2019-05-01 07:51:02 +02:00
Matt Hegarty
f34a0a4e6a
Minor documentation fixes ( #6543 )
2019-03-28 23:32:25 -07:00
Luoxzhg
dfc277cce6
Corrected tutorial 1 example renderer output to bytes. ( #6486 )
2019-03-05 11:50:13 +01:00
Michael Käufl
f9401f5ff0
Fix Python 3 compat in documentation
2019-02-16 15:47:13 +01:00
briwa
dc6b3bf42e
Fix tutorial instruction to also add pyyaml ( #6443 )
2019-02-07 09:10:11 +01:00
johnthagen
0860ef9eee
Update quickstart to Django 2.0 routing syntax ( #6385 )
...
* Update quickstart to Django 2.0 routing syntax
* Remove uneccessary raw string identifiers
* Correctly import path function
* Fix import path to use django.urls
This is what is prescribed in the Django 2.1 tutorial
2019-01-08 11:53:51 +00:00
johnthagen
7749e4e3be
Make code snippet Python 3 compatible ( #6377 )
2019-01-04 18:00:38 -08:00
Jonathan Berger
1348bdc48a
Fixed quickstart.md typos ( #6348 )
2018-12-19 14:50:14 +01:00
Tom Snee
d59a130168
Fixes an import statement in chapter 5 of the tutorial. ( #6267 )
2018-11-02 08:48:39 -07:00
Jufe Brown-Tsai
18ad3290ef
Documentation fix for django-admin commands ( #6232 )
...
* fix django-admin commands on quickstart doc
* fix django-admin commands on tutorial/1-serialization doc
* fix django-admin command on readme
* fix django-admin command on docs/community/project-management.md
2018-10-03 16:16:52 +01:00
Jon Dufresne
878f9d2783
Prefer https:// for URLs when available throughout project ( #6208 )
2018-10-02 08:28:58 +02:00
Jon Dufresne
4d57d46bf8
Prefer io.BytesIO over six; available on all supported Pythons ( #6168 )
...
On all supported Pythons, the io.BytesIO is always a stream
implementation using an in-memory bytes buffer.
Makes code slightly more forward compatible by reducing use of the six
module and promotes more forward compatible practices in the docs.
2018-09-09 11:53:41 +01:00
Craig Johnson
90ed2c1ef7
Small grammar correction in quickstart. ( #6121 )
...
Just felt the sentence could use some improving.
2018-08-13 10:32:17 +01:00
Ryan P Kilby
99ca078ebb
Add "Community" section to docs, minor cleanup ( #5993 )
...
* Add 'Community' tab to navigation, move articles
* Drop DRF 2.x announcements and the docs note
* Drop embedded tutorial/guide/topics links
* Conver mixture of tabs/spaces => spaces
* Fix topics/community links
2018-07-06 11:28:18 +02:00
Chris Shyi
d9f541836b
Update to Django 2.0 Routing Syntax ( #6049 )
2018-06-22 10:28:59 +02:00
Tamirlan Omarov
edfcbe076d
Added pagination section to the quickstart page ( #5987 )
2018-05-21 13:32:07 +01:00