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
| class VideoList(ListView): | |
| model = Video | |
| paginate_by = 15 | |
| template_name = "vid_index.html" | |
| context_object_name = "vid_list" | |
| def get_context_data(self, **kwargs): | |
| context = super(VideoDetail, self).get_context_data(**kwargs) | |
| context['big_video'] = Video.objects.filter(id=1) | |
| # Iterate over vid_list in templates for |
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
| from requests import get | |
| import sys | |
| def do_sth: | |
| print('Hello World !') |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| @charset "UTF-8"; | |
| /* CSS Document */ | |
| .span2{ | |
| height: 30px; | |
| width: 150px; | |
| } |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| @charset "UTF-8"; | |
| /* CSS Document */ | |
| .span2{ | |
| height: 30px; | |
| width: 150px; | |
| } |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| @charset "UTF-8"; | |
| /* CSS Document */ | |
| .span2{ | |
| height: 30px; | |
| width: 150px; | |
| } |
NewerOlder