-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from AdmiralHonda/v1.11
V1.11
- Loading branch information
Showing
20 changed files
with
572 additions
and
374 deletions.
There are no files selected for viewing
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,4 +1,5 @@ | ||
.DS_Store | ||
.vscode | ||
mysiteandship-3e1fa5ac8c78.json | ||
./IizakaEmpire/sercrets | ||
mysiteandship-1f606245abce.json | ||
IizakaEmpire/sercrets.py | ||
back.txt |
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,9 +1,10 @@ | ||
from django.contrib import admin | ||
from .models import Article,Category,Tag,Author,Policy | ||
from .models import Article, Kinds, Category, Tag, Author, Policy | ||
from markdownx.admin import MarkdownxModelAdmin | ||
# Register your models here. | ||
admin.site.register(Article,MarkdownxModelAdmin) | ||
admin.site.register(Category) | ||
admin.site.register(Kinds) | ||
admin.site.register(Tag) | ||
admin.site.register(Author) | ||
admin.site.register(Policy) |
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,19 @@ | ||
# Generated by Django 3.1.2 on 2020-11-01 08:21 | ||
|
||
from django.db import migrations | ||
import markdownx.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyBlog', '0009_auto_20200422_2143'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='article', | ||
name='contents', | ||
field=markdownx.models.MarkdownxField(help_text='box9 is note box<div>\n outline is list <ul class="outline"><li><h4></h4></li></ul>', verbose_name='Contents'), | ||
), | ||
] |
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,37 @@ | ||
# Generated by Django 3.1.2 on 2020-11-29 14:20 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyBlog', '0010_auto_20201101_1721'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Kinds', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=8)), | ||
('slug', models.SlugField(max_length=16, unique=True)), | ||
], | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='meta_description', | ||
field=models.CharField(max_length=128), | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='slug', | ||
field=models.SlugField(max_length=32, unique=True), | ||
), | ||
migrations.AddField( | ||
model_name='tag', | ||
name='kind', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='MyBlog.kinds'), | ||
), | ||
] |
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,23 @@ | ||
# Generated by Django 3.1.2 on 2021-01-03 13:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('MyBlog', '0011_auto_20201129_2320'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='article', | ||
name='pub_date', | ||
field=models.DateField(auto_now_add=True, verbose_name='作成日時'), | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='up_date', | ||
field=models.DateField(auto_now=True, verbose_name='更新日時'), | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from rest_framework import serializers | ||
|
||
from .models import Tag, Article | ||
|
||
class TagEntry(serializers.ModelSerializer): | ||
class Meta: | ||
model = Tag | ||
fields = ('name','slug') | ||
|
||
|
||
class ArticleEntry(serializers.ModelSerializer): | ||
class Meta: | ||
model = Article | ||
fields = ('slug', 'category', 'meta_description', 'ogp_title', 'ogp_img', 'pub_date') |
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,39 @@ | ||
.amazon-container { | ||
background: #fff; | ||
width: 100%; | ||
overflow: hidden; | ||
border: 1px solid #f90; | ||
border-top: 2px solid #f90; | ||
padding: 0; | ||
} | ||
|
||
.amazon-img { | ||
margin: 1em; | ||
border: none; | ||
width: 33%; | ||
float: left; | ||
} | ||
|
||
.amazon-img img { | ||
width:100%; | ||
height: auto; | ||
} | ||
|
||
.amazon-text { | ||
font-size: 13px; | ||
color: #0066c0; | ||
margin: 1em; | ||
padding-top: 2em; | ||
} | ||
|
||
.amazon-clear { | ||
clear: both; | ||
} | ||
|
||
.amazon-footer { | ||
font-size: 13px; | ||
text-align: right; | ||
padding-right: 1em; | ||
color: #333; | ||
background: linear-gradient(to bottom,#f8e6b8 0,#f3d686 6%,#ebb62c 100%); | ||
} |
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.