Last active
August 29, 2015 13:57
-
-
Save Nagasaki45/9720734 to your computer and use it in GitHub Desktop.
Start to write django views without implementation. Add it later, one by one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def index(request): | |
| return HttpResponse('in index') | |
| def detail(request, item_pk): | |
| return HttpResponse('in detail. pk = {}'.format(item_pk)) | |
| def comment(request, item_pk): | |
| return HttpResponse('in comment. pk = {}'.format(item_pk)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment