Tom Christie
a9218e460f
Minor tutorial updates
2016-07-14 12:44:13 +01:00
Rashid Al Abri
df33035a3c
Change incorrect example URL ( #4261 )
...
Changed http://example.com/api/items/4/.json to http://example.com/api/items/4.json
2016-07-14 12:28:28 +01:00
Kenneth Schnall
ff5cfe3e84
Replace "class based views" occurrences with "class-based views" ( #4251 )
2016-07-08 08:38:50 +01:00
Tom Christie
6ff9840bde
Schemas & client libraries. ( #4179 )
...
* Added schema generation support.
* New tutorial section.
* API guide on schema generation.
* Topic guide on API clients.
2016-07-04 16:38:17 +01:00
Ankush Thakur
879652ec2e
Update 2-requests-and-responses.md ( #4209 )
...
Make the usage of httpie accept headers more explicit.
2016-06-21 21:07:55 +01:00
Tom Christie
b1035b2a87
Minor docs tweaks. [ci skip] ( #4174 )
2016-06-06 12:03:37 +01:00
Liping Wang
c3cea1499f
remove comma
...
remove comma
2016-03-01 15:46:20 +08:00
Liping Wang
d372ccca02
[FIX] "@api_view" calling error.
...
"@api_view" usage error.
2016-02-29 19:51:33 +08:00
Tom Christie
a15e46af88
Merge pull request #3965 from ildoc/master
...
updated tutorial for django 1.9
2016-02-25 21:37:27 +00:00
Taranjeet
3fd6db1445
Docs: Fix repetitive word in the tutorial
2016-02-26 00:02:45 +05:30
ildoc
35036aee15
updated tutorial for django 1.9
2016-02-25 14:27:57 +01:00
Kin
96644bd6c1
fix typo
2016-02-16 23:08:45 -08:00
Christian Berendt
ff4d7c7e07
Use 'password123' as password for new users in the tutorial
...
Trying to create a new user on Django 1.9.x with the password 'password'
will fail with the error message 'This password is too common.'. Because
of that it is necessary to change the used password from 'password' to
'password123'.
2016-02-04 07:26:15 +01:00
Chirag Khatri
62551bc80f
typo in tutorial part 1
2016-02-03 15:25:31 +05:30
craigglennie
2d7d3b79a0
Make code block consistent in serialization tutorial
...
All the other code blocks in the Serialization tutorial can be copied and pasted, but there is one that includes the >>> shell prompt characters. This commit removes those characters, and also makes the output consistent with other code blocks by making it a comment.
2016-01-02 13:15:25 -08:00
Peter Baehr
44ae037e81
Move urls.py changes down and add necessary import
...
The previous location of editting urls.py did not allow migrations to be created and the default import needs to be modified
2015-12-15 21:17:52 -05:00
knbk
e203967e09
Add app_name to rest_framework.urls.
...
This allows users in Django 1.9+ to include the authentication urls
without specifying the namespace, as in:
urlpatterns = [
...
url(r'^auth/', include('rest_framework.urls'))
]
2015-12-08 02:25:00 +01:00
qqbuby
1aa16caffe
append a space after the comment mark to remain consistent with the other parts of the tutorial
2015-09-13 20:24:22 +08:00
qqbuby
1a8f9d0a0f
fix issue #3395 to correct the output text at line 184in docs/tutorial/1-serialization.md
2015-09-12 01:36:40 +08:00
potpath
bb95de13bf
Update 6-viewsets-and-routers.md
2015-09-04 16:07:20 +07:00
ThaJay
76fedcc348
Update 2-requests-and-responses.md
...
just a small error, the trailing slash in the url should be omitted when adding a .suffix
2015-08-12 19:49:43 +02:00
Tom Christie
c8ad0cce19
Bump minimum Django version to 1.5
2015-07-30 15:43:39 +01:00
Tom Christie
a4e0f03050
Tweak quickstart to show newest users first in list view
2015-07-30 14:18:09 +01:00
José Padilla
7f7e6b33ff
Update quickstart.md
...
Closes #3171
2015-07-19 21:47:09 -04:00
Leonardo Giordani
4f6eba3ce8
Removed import of unused django.forms.widgets
2015-07-16 16:25:01 +02:00
Mark Skipper
b743818430
Remove unused import from docs example
2015-07-01 20:39:05 +01:00
José Padilla
2b6726e703
Merge pull request #2842 from frnc/patch-1
...
Update 5-relationships-and-hyperlinked-apis.md
2015-04-26 12:13:57 -04:00
Valentin Hăloiu
e148637d6d
Frontpage example no longer uses model attribute
2015-04-23 04:44:10 +03:00
frnc
601cbf18d4
Update 5-relationships-and-hyperlinked-apis.md
...
Following [@jpadilla](https://github.com/jpadilla )'s suggestion in issue [#2837 ](https://github.com/tomchristie/django-rest-framework/issues/2837 ), I am proposing a little addition in "Creating an endpoint for the root of our API" section in order to make it clear that the `user-list` and `snippet-list` names will be declared later in `snippets/urls.py`. Missing this clarification might lead a beginner (like me) to think that the names are somehow assigned by rest_framework under the hood and to try the code too early, getting stuck in the following errors.
2015-04-20 17:56:04 +02:00
Oleg Marshev
b0dd1fffbf
Fix typo.
2015-04-07 19:40:23 +03:00
Kyle P. Johnson
d655a423fb
Add necessary imports to final urls.py example
2015-03-16 11:17:02 -04:00
Esmail
2484dbf4e1
Fix example of explicit format URL (for real).
...
Do what I meant to do in #2670 :
The link is displayed in the tutorial as "http://example.com/api/items/4.json " but the hyperlink itself and what the example code actually works with are (in my opinion, less pretty) URLs like "http://example.com/api/items/4/.json ".
2015-03-11 12:00:19 -04:00
Tom Christie
18cc0230bf
Clean up pagination attributes
2015-03-04 15:51:00 +00:00
Tom Christie
fbb21caaaa
Merge master
2015-02-09 20:43:50 +00:00
José Padilla
235b98e427
Merge pull request #2460 from mmarvick/master
...
Small fixes to the tutorial
2015-02-06 11:31:25 -04:00
Michael Marvick
5bf803b6ed
Revert some of the changes made in 1-serialization.md
2015-02-05 19:42:36 -08:00
José Padilla
aaa1fcd5d1
Fixes #2493
2015-02-01 16:18:02 -04:00
Michael Marvick
73bd0d539f
tutorial #5 incorrectly referenced 'settings.py' instead of 'tutorial/settings.py'
2015-01-25 23:47:01 -08:00
Michael Marvick
2a6937f381
tutorial #2 incorrectly showed /item.json instead of /item/.json for format suffixes
2015-01-25 23:46:27 -08:00
Michael Marvick
90c9968a70
tutorial #1 incorrectly showed string of json instead of ReturnDict type from 'serializer.data', and also has a third item in the second usage
2015-01-25 23:45:56 -08:00
Tom Christie
9ec08ce578
Merge master
2015-01-21 13:12:14 +00:00
Eric Theise
b0bc79ed4d
correcting "it's" to "its" in Tutorial 1
2015-01-19 14:49:36 -08:00
Tom Christie
6065cdbd93
Merge master
2015-01-19 15:16:57 +00:00
Travis Swientek
8ccf5bcc0b
Tweaked a few issues in the tutorial documentation.
2015-01-09 11:36:21 -08:00
Tom Christie
6168f60ba8
Merge branch 'master' into version-3.1
2015-01-05 11:02:28 +00:00
Rob Terhaar
336faf5a86
fix widget style formatting
2015-01-01 21:01:16 -05:00
Tom Christie
d109ae0a2e
Merge pull request #2010 from tanwanirahul/master
...
Ability to customize method names without creating a custom router
2014-12-19 16:09:01 +00:00
Rahul
8f0fef4b75
Updated documentation on url_path per suggestions.
2014-12-19 21:22:10 +05:30
tanwanirahul
a8a3fedb5c
Add url_path documention for detail_route decorator
2014-12-19 20:16:46 +05:30
Tom Christie
c8d88c8c8a
Merge branch 'master' into version-3.1
2014-12-18 11:21:25 +00:00
Brent O'Connor
7e9aac98fe
The pre_save method no longer works. This resolved issue #2306
2014-12-17 16:54:04 -06:00
Brent O'Connor
4f33cfe1a0
With httpie 0.8.0 the HTTP method has to come after the auth argument.
2014-12-17 14:38:01 -06:00
Tymur Maryokhin
eeb6e34064
Docs/tutorial import fixes. Refs #2296
2014-12-17 17:28:11 +01:00
Tom Christie
418108632c
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
2014-12-17 16:23:20 +00:00
Tom Christie
90b8f9221e
Use six.BytesIO in tutorial. Closes #2296 .
2014-12-17 16:23:00 +00:00
Tom Christie
5f933f575e
Merge pull request #2298 from epicserve/fix_typo
...
Fixed a typo
2014-12-17 16:20:22 +00:00
Brent O'Connor
530f7a21b3
Fixed a typo
2014-12-17 10:19:15 -06:00
Tom Christie
1ba822010d
Highlight trailing '.' in command so it wont be missed.
2014-12-17 15:22:27 +00:00
Tom Christie
b6ee784240
Merge master
2014-12-15 12:18:55 +00:00
Jason Spafford
b951c74df2
Made docs consistent
2014-12-15 01:24:12 -08:00
Tom Christie
baaa356489
Merge master
2014-12-12 15:37:43 +00:00
Tom Christie
9b88b5db69
Field->ReadOnlyField in tutorial docs
2014-12-11 09:54:55 +00:00
Tom Christie
76956beab4
snippets relationship in tutorial should be read_only
2014-12-09 19:53:27 +00:00
Tom Christie
af3fe5a39f
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
2014-12-08 16:38:29 +00:00
Tom Christie
4e9ebb5fe9
cd back to parent directory
2014-12-08 16:38:17 +00:00
Tom Christie
302ec59a5c
Merge pull request #2165 from phalt/httpie-examples
...
Use httpie for tutorials
2014-12-08 15:51:19 +00:00
phalt
f3ebac061e
one last tabs / spaces!
2014-12-08 15:47:49 +00:00
phalt
8e9408115d
fixed indentations
2014-12-08 15:41:01 +00:00
Xavier Ordoquy
e4820d611b
Fix the new Django default db name
...
PrimaryKeyRelatedField now needs a queryset argument.
urls now don't use urlpatterns.
2014-12-06 10:58:17 +01:00
Tom Christie
b7b0fd3e14
Added .validated_data usage. Closes #2214 .
2014-12-05 12:48:12 +00:00
Tom Christie
1b8c06aefe
Style tweaks in examples
2014-12-05 12:46:08 +00:00
Tom Christie
e2b3908834
Fix quickstart tutorial
2014-12-05 09:44:01 +00:00
Xavier Ordoquy
9d078be59c
Fix the tutorial against the v3.0
2014-12-04 23:34:55 +01:00
Xavier Ordoquy
38e05e66c9
print() function works from Python 2.6 to 3.X
2014-12-04 23:22:00 +01:00
phalt
fcbae5d99f
updates based on suggestions
2014-12-04 11:20:33 +00:00
Martin Tschammer
ab25d706c7
Renamed validated_attrs to validated_data to be more in line with other similar code.
2014-12-03 23:52:35 +01:00
phalt
a17d5d2b0b
remove unsused link
2014-12-02 16:11:43 +00:00
phalt
515060a6ab
Only show pip install for httpie
2014-12-02 10:16:41 +00:00
phalt
34b5db62e5
Use httpie for tutorials
2014-12-01 13:39:53 +00:00
Tymur Maryokhin
e2ea98e8ab
Fixed typos
2014-11-29 20:23:55 +01:00
José Padilla
731c8421af
Remove YAML support from core
2014-11-29 14:43:05 -04:00
Tom Christie
d4b8e356b9
Merge branch '3.0-docs'
2014-11-28 09:57:02 +00:00
Will Stott
d0e245baba
grammar
2014-11-26 15:51:28 +00:00
Will Stott
34bd2b7828
a few typos
2014-11-26 15:48:08 +00:00
Tom Christie
f13c0ebe69
Merge master
2014-11-25 16:27:00 +00:00
José Padilla
200e0b17da
Clean up extra white space
2014-11-25 12:44:11 +00:00
Tom Christie
2e726e22a3
request.DATA, request.FILES -> request.data
2014-11-25 11:42:43 +00:00
Tom Christie
3371131a61
Merge pull request #2116 from LuRsT/patch-5
...
Fixed database update instructions
2014-11-24 13:21:15 +00:00
Gil Gonçalves
918b9cc6a6
Added missing import in tutorial snippet
2014-11-24 08:54:07 +00:00
Gil Gonçalves
790a651893
Fixed database update instructions
2014-11-24 08:51:08 +00:00
Gil Gonçalves
04d2635b24
Removed unused import from code snippet in tutorial
2014-11-20 11:33:42 +00:00
Raony Guimarães
928cbc640e
small type
2014-11-19 13:53:36 -02:00
Tom Christie
5d247a65c8
First pass on nested serializers in HTML
2014-10-09 15:11:19 +01:00
Tom Christie
a58cfe167d
Update tutorial for 3.0
2014-10-09 09:38:03 +01:00
Collin Anderson
da385c9c1f
remove patterns and strings from urls #1898
2014-09-23 17:10:02 -04:00
Tom Christie
9372cc8c31
Deprecate .model attribute on views
2014-08-20 16:24:52 +01:00
Tom Christie
e385a7b8eb
Merge master
2014-08-19 10:11:10 +01:00
Tom Christie
61a1eaa485
tabs -> spaces
2014-08-18 11:55:22 +01:00
Tom Christie
92d51c813f
Merge pull request #1688 from ekonstantinidis/quick-start-order
...
Updated quick start project set up order
2014-08-18 11:54:14 +01:00
sshquack
867e441ec0
Strip trailing spaces in tutorial
2014-08-15 20:45:28 -06:00