This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from django.shortcuts import render | ||
|
||
from post.models import PostNotice | ||
|
||
def index(request): | ||
name = '오윤석' | ||
return render(request, 'index.html', {'name': name}) | ||
posts = PostNotice.objects.all() | ||
return render(request, 'index.html', {'name': name, 'posts': posts}) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
from django.contrib import admin | ||
from post.models import PostStudy, PostJokbo, PostAlbum, PostFree, PostStudyMember | ||
from post.models import PostStudy, PostJokbo, PostAlbum, PostFree, PostStudyMember, PostNotice | ||
# Register your models here. | ||
|
||
admin.site.register(PostStudyMember) | ||
admin.site.register(PostStudy) | ||
admin.site.register(PostFree) | ||
admin.site.register(PostJokbo) | ||
admin.site.register(PostAlbum) | ||
admin.site.register(PostNotice) | ||
|
This file contains 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
This file contains 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