-
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
21 changed files
with
391 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class ArticleappConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'articleapp' |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.db import models | ||
|
||
# Create your models here. |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<style> | ||
.container div { | ||
width: 250px; | ||
background-color: antiquewhite; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 1rem; | ||
} | ||
.container img{ | ||
width:100%; | ||
border-radius: 1rem; | ||
} | ||
</style> | ||
<div class="container"> | ||
<div class="item1"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item2"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item3"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item4"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item5"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item6"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item7"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item8"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item9"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item10"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item11"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item12"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
<div class="item13"> | ||
<img src="https://picsum.photos/200/300" alt=""> | ||
</div> | ||
</div> | ||
<script src="{% static 'js/magicgrid.js' %}"></script> | ||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.urls import path | ||
from django.views.generic import TemplateView | ||
|
||
urlpatterns = [ | ||
path('list/', TemplateView.as_view(template_name='articleapp/list.html'), name='list') | ||
] |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.shortcuts import render | ||
|
||
# Create your views here. |
Binary file not shown.
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
Binary file not shown.
Oops, something went wrong.