#新媒体管理

This commit is contained in:
Bob 2020-08-20 09:12:20 +08:00
parent 6db1b15e8a
commit 3714c5b465
29 changed files with 43466 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal">
<data-source name="newmediaDB1@210.77.68.250" uuid="0fffd6d4-73be-43bd-94b0-fcfe2a72c682">
<database-info product="PostgreSQL" version="10.8 (Ubuntu 10.8-1.pgdg16.04+1)" jdbc-version="4.2" driver-name="PostgreSQL JDBC Driver" driver-version="42.2.5" dbms="POSTGRES" exact-version="10.8" exact-driver-version="42.2">
<identifier-quote-string>&quot;</identifier-quote-string>
</database-info>
<case-sensitivity plain-identifiers="lower" quoted-identifiers="exact" />
<secret-storage>master_key</secret-storage>
<user-name>newmedia</user-name>
<introspection-schemas>@:@</introspection-schemas>
</data-source>
<data-source name="db" uuid="305a3c63-fbcc-4242-94cd-8f9b6a0628e5">
<database-info product="SQLite" version="3.25.1" jdbc-version="2.1" driver-name="SQLite JDBC" driver-version="3.25.1" dbms="SQLITE" exact-version="3.25.1" exact-driver-version="3.25">
<identifier-quote-string>&quot;</identifier-quote-string>
</database-info>
<case-sensitivity plain-identifiers="mixed" quoted-identifiers="mixed" />
<auth-required>false</auth-required>
<introspection-schemas>*:@</introspection-schemas>
</data-source>
</component>
</project>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,2 @@
#n:public
!<md> [2208083, 0, null, null, -2147483648, -2147483648]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,48 @@
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEBUG = True
ALLOWED_HOSTS = ['*']
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
# }
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'newmediaDB1',
'USER': 'newmedia',
'PASSWORD': 'newmedia2020!@#',
'HOST': '210.77.68.250',
'PORT': '5432',
}
}
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
# }
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
MEDIA_URL = '/static/upload/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'static/upload/')
import os
if os.name == 'nt':
import platform
OSGEO4W = r"C:\OSGeo4W"
if '64' in platform.architecture()[0]:
OSGEO4W += "64"
assert os.path.isdir(OSGEO4W), "Directory does not exist: " + OSGEO4W
os.environ['OSGEO4W_ROOT'] = OSGEO4W
os.environ['GDAL_DATA'] = OSGEO4W + r"\share\gdal"
os.environ['PROJ_LIB'] = OSGEO4W + r"\share\proj"
os.environ['PATH'] = OSGEO4W + r"\bin;" + os.environ['PATH']

View File

@ -0,0 +1,268 @@
# Generated by Django 2.1.8 on 2020-08-03 10:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Area_code_2020',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('code', models.CharField(blank=True, max_length=256, null=True, verbose_name='区划代码')),
('name', models.CharField(blank=True, max_length=256, null=True, verbose_name='名称')),
('level', models.CharField(blank=True, max_length=256, null=True, verbose_name='级别1-5,省市县镇村')),
('pcode', models.CharField(blank=True, max_length=256, null=True, verbose_name='父级区划代码')),
],
),
migrations.CreateModel(
name='Group',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('name', models.CharField(blank=True, max_length=256, null=True, verbose_name='群组名称')),
('presentation', models.TextField(blank=True, null=True, verbose_name='群组描述')),
('image', models.FileField(blank=True, null=True, upload_to='groupimage')),
('type', models.CharField(blank=True, max_length=256, null=True, verbose_name='群组类型')),
('stauts', models.CharField(blank=True, max_length=256, null=True, verbose_name='状态')),
('administrativedivision', models.CharField(blank=True, max_length=256, null=True, verbose_name='行政区划')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
],
),
migrations.CreateModel(
name='Group_admin',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Group')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Group_user',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Level',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('name', models.CharField(blank=True, max_length=256, null=True, verbose_name='等级名')),
('level', models.IntegerField(blank=True, default=0, null=True, verbose_name='级别')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
],
),
migrations.CreateModel(
name='Organization',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('name', models.CharField(blank=True, max_length=256, null=True, verbose_name='单位名')),
('administrativedivision', models.CharField(blank=True, max_length=256, null=True, verbose_name='行政区划')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Group')),
('level', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Level')),
],
),
migrations.CreateModel(
name='Qita',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('type', models.CharField(blank=True, max_length=256, null=True, verbose_name='新媒体类型')),
('name', models.CharField(blank=True, max_length=256, null=True, verbose_name='新媒体名称')),
('count', models.CharField(blank=True, max_length=256, null=True, verbose_name='总发文量')),
('count_jc', models.CharField(blank=True, max_length=256, null=True, verbose_name='监测时间内发文量')),
('comment', models.CharField(blank=True, max_length=256, null=True, verbose_name='评论数')),
('reply', models.CharField(blank=True, max_length=256, null=True, verbose_name='作者回复数')),
('date', models.CharField(blank=True, max_length=256, null=True, verbose_name='最近发文日期')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization')),
],
),
migrations.CreateModel(
name='Toutiao',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('code', models.CharField(blank=True, max_length=256, null=True, verbose_name='头条号')),
('image', models.FileField(blank=True, null=True, upload_to='cover')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization')),
],
),
migrations.CreateModel(
name='Toutiao_comment',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('comment', models.TextField(blank=True, null=True, verbose_name='评论')),
('user', models.CharField(blank=True, max_length=256, null=True, verbose_name='用户')),
('reply', models.TextField(blank=True, null=True, verbose_name='回复')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('toutiao', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Toutiao')),
],
),
migrations.CreateModel(
name='Toutiao_data',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('title', models.CharField(blank=True, max_length=256, null=True, verbose_name='标题')),
('url', models.CharField(blank=True, max_length=256, null=True, verbose_name='链接')),
('img', models.CharField(blank=True, max_length=256, null=True, verbose_name='缩略图')),
('count', models.CharField(blank=True, max_length=256, null=True, verbose_name='阅读数')),
('commentcount', models.CharField(blank=True, max_length=256, null=True, verbose_name='评论数')),
('reply', models.CharField(blank=True, max_length=256, null=True, verbose_name='作者回复数')),
('date', models.CharField(blank=True, max_length=256, null=True, verbose_name='时间')),
('content', models.TextField(blank=True, null=True, verbose_name='正文')),
('comment', models.TextField(blank=True, null=True, verbose_name='评论')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('toutiao', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Toutiao')),
],
),
migrations.CreateModel(
name='Toutiao_Wrong',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('wrong', models.CharField(blank=True, max_length=256, null=True, verbose_name='错别字')),
('idea', models.CharField(blank=True, max_length=256, null=True, verbose_name='建议')),
('site', models.CharField(blank=True, max_length=256, null=True, verbose_name='位置')),
('change', models.BooleanField(blank=True, null=True, verbose_name='是否已修改')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('toutiao', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Toutiao')),
],
),
migrations.CreateModel(
name='Userprofile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=256, null=True, verbose_name='姓名')),
('sex', models.CharField(blank=True, max_length=256, null=True, verbose_name='性别')),
('image', models.FileField(blank=True, null=True, upload_to='profile')),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Weibi_data',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('weiboid', models.CharField(blank=True, max_length=256, null=True, verbose_name='微博ID')),
('content', models.TextField(blank=True, null=True, verbose_name='正文')),
('url', models.CharField(blank=True, max_length=256, null=True, verbose_name='文章url')),
('originalimageurl', models.CharField(blank=True, max_length=256, null=True, verbose_name='原始图片url')),
('transpondimageurl', models.CharField(blank=True, max_length=256, null=True, verbose_name='转发图片url')),
('original', models.BooleanField(blank=True, null=True, verbose_name='是否原创')),
('site', models.CharField(blank=True, max_length=256, null=True, verbose_name='发布位置')),
('date', models.CharField(blank=True, max_length=256, null=True, verbose_name='发布时间')),
('tool', models.CharField(blank=True, max_length=256, null=True, verbose_name='发布工具')),
('like', models.CharField(blank=True, max_length=256, null=True, verbose_name='点赞数')),
('transpond', models.CharField(blank=True, max_length=256, null=True, verbose_name='转发数')),
('comment', models.CharField(blank=True, max_length=256, null=True, verbose_name='评论数')),
('title', models.CharField(blank=True, max_length=256, null=True, verbose_name='文章标题')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
],
),
migrations.CreateModel(
name='Weibo',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('code', models.CharField(blank=True, max_length=256, null=True, verbose_name='微博号')),
('image', models.FileField(blank=True, null=True, upload_to='cover')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization')),
],
),
migrations.CreateModel(
name='Weibo_Wrong',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('wrong', models.CharField(blank=True, max_length=256, null=True, verbose_name='错别字')),
('idea', models.CharField(blank=True, max_length=256, null=True, verbose_name='建议')),
('site', models.CharField(blank=True, max_length=256, null=True, verbose_name='位置')),
('change', models.BooleanField(blank=True, null=True, verbose_name='是否已修改')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('weibo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weibo')),
],
),
migrations.CreateModel(
name='Weixin',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('code', models.CharField(blank=True, max_length=256, null=True, verbose_name='微信公众号')),
('image', models.FileField(blank=True, null=True, upload_to='cover')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization')),
],
),
migrations.CreateModel(
name='Weixin_comment',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('comment', models.TextField(blank=True, null=True, verbose_name='评论')),
('user', models.CharField(blank=True, max_length=256, null=True, verbose_name='用户')),
('reply', models.TextField(blank=True, null=True, verbose_name='回复')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('weixin', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weixin')),
],
),
migrations.CreateModel(
name='Weixin_data',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('title', models.CharField(blank=True, max_length=256, null=True, verbose_name='文章标题')),
('site', models.CharField(blank=True, max_length=256, null=True, verbose_name='位置')),
('date', models.CharField(blank=True, max_length=256, null=True, verbose_name='发文时间')),
('original', models.BooleanField(blank=True, null=True, verbose_name='是否原创')),
('url', models.CharField(blank=True, max_length=256, null=True, verbose_name='文章链接')),
('author', models.CharField(blank=True, max_length=256, null=True, verbose_name='作者')),
('comment', models.CharField(blank=True, max_length=256, null=True, verbose_name='评论数')),
('reply', models.CharField(blank=True, max_length=256, null=True, verbose_name='作者回复数')),
('content', models.TextField(blank=True, null=True, verbose_name='正文')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('weixin', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weixin')),
],
),
migrations.CreateModel(
name='Weixin_Wrong',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('wrong', models.CharField(blank=True, max_length=256, null=True, verbose_name='错别字')),
('idea', models.CharField(blank=True, max_length=256, null=True, verbose_name='建议')),
('site', models.CharField(blank=True, max_length=256, null=True, verbose_name='位置')),
('change', models.BooleanField(blank=True, null=True, verbose_name='是否已修改')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
('weixin', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weixin')),
],
),
migrations.AddField(
model_name='weibi_data',
name='weibo',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weibo'),
),
]

View File

@ -0,0 +1,115 @@
# Generated by Django 2.1.8 on 2020-08-03 10:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Organizationtype',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('organizationtype', models.CharField(blank=True, max_length=256, null=True, verbose_name='单位类型')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
],
),
migrations.AlterField(
model_name='group_admin',
name='group',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Group'),
),
migrations.AlterField(
model_name='group_admin',
name='user',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='group_user',
name='user',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='organization',
name='group',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Group'),
),
migrations.AlterField(
model_name='qita',
name='organization',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization'),
),
migrations.AlterField(
model_name='toutiao',
name='organization',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization'),
),
migrations.AlterField(
model_name='toutiao_comment',
name='toutiao',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Toutiao'),
),
migrations.AlterField(
model_name='toutiao_data',
name='toutiao',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Toutiao'),
),
migrations.AlterField(
model_name='toutiao_wrong',
name='toutiao',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Toutiao'),
),
migrations.AlterField(
model_name='userprofile',
name='organization',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization'),
),
migrations.AlterField(
model_name='weibi_data',
name='weibo',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weibo'),
),
migrations.AlterField(
model_name='weibo',
name='organization',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization'),
),
migrations.AlterField(
model_name='weibo_wrong',
name='weibo',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weibo'),
),
migrations.AlterField(
model_name='weixin',
name='organization',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organization'),
),
migrations.AlterField(
model_name='weixin_comment',
name='weixin',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weixin'),
),
migrations.AlterField(
model_name='weixin_data',
name='weixin',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weixin'),
),
migrations.AlterField(
model_name='weixin_wrong',
name='weixin',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Weixin'),
),
migrations.AddField(
model_name='organization',
name='organizationtype',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Organizationtype'),
),
]

View File

@ -0,0 +1,21 @@
# Generated by Django 2.1.8 on 2020-08-03 11:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0002_auto_20200803_1051'),
]
operations = [
migrations.RemoveField(
model_name='organization',
name='group',
),
migrations.RemoveField(
model_name='organization',
name='level',
),
]

View File

@ -0,0 +1,42 @@
# Generated by Django 2.1.8 on 2020-08-03 11:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0003_auto_20200803_1104'),
]
operations = [
migrations.RemoveField(
model_name='organization',
name='administrativedivision',
),
migrations.AddField(
model_name='organization',
name='cities',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='organization',
name='district',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='organization',
name='province',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='organization',
name='town',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='organization',
name='village',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 2.1.8 on 2020-08-03 15:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0004_auto_20200803_1125'),
]
operations = [
migrations.AddField(
model_name='organization',
name='image',
field=models.FileField(blank=True, null=True, upload_to='cover'),
),
]

View File

@ -0,0 +1,42 @@
# Generated by Django 2.1.8 on 2020-08-05 23:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0005_organization_image'),
]
operations = [
migrations.RemoveField(
model_name='group',
name='administrativedivision',
),
migrations.AddField(
model_name='group',
name='cities',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='group',
name='district',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='group',
name='province',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='group',
name='town',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
migrations.AddField(
model_name='group',
name='village',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name=''),
),
]

View File

@ -0,0 +1,21 @@
# Generated by Django 2.1.8 on 2020-08-13 15:23
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0006_auto_20200805_2325'),
]
operations = [
migrations.CreateModel(
name='Group_type',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('type', models.CharField(blank=True, max_length=256, null=True, verbose_name='群组类型')),
],
),
]

View File

@ -0,0 +1,24 @@
# Generated by Django 2.1.8 on 2020-08-13 15:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0007_group_type'),
]
operations = [
migrations.AlterField(
model_name='group',
name='stauts',
field=models.CharField(blank=True, choices=[('0', '关闭'), ('1', '开启')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AlterField(
model_name='group',
name='type',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Group_type'),
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 2.1.8 on 2020-08-13 16:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0008_auto_20200813_1538'),
]
operations = [
migrations.RenameField(
model_name='group',
old_name='stauts',
new_name='status',
),
]

View File

@ -0,0 +1,19 @@
# Generated by Django 2.1.8 on 2020-08-13 16:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0009_auto_20200813_1604'),
]
operations = [
migrations.AddField(
model_name='group_user',
name='group',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.Group'),
),
]

View File

@ -0,0 +1,118 @@
# Generated by Django 2.1.8 on 2020-08-17 16:54
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0010_group_user_group'),
]
operations = [
migrations.CreateModel(
name='Qita_jc',
fields=[
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='id')),
('count', models.CharField(blank=True, max_length=256, null=True, verbose_name='总发文量')),
('count_jc', models.CharField(blank=True, max_length=256, null=True, verbose_name='监测时间内发文量')),
('comment', models.CharField(blank=True, max_length=256, null=True, verbose_name='评论数')),
('reply', models.CharField(blank=True, max_length=256, null=True, verbose_name='作者回复数')),
('date', models.CharField(blank=True, max_length=256, null=True, verbose_name='最近发文日期')),
('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
],
),
migrations.RemoveField(
model_name='qita',
name='comment',
),
migrations.RemoveField(
model_name='qita',
name='count',
),
migrations.RemoveField(
model_name='qita',
name='count_jc',
),
migrations.RemoveField(
model_name='qita',
name='date',
),
migrations.RemoveField(
model_name='qita',
name='reply',
),
migrations.AddField(
model_name='qita',
name='alias',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='别名'),
),
migrations.AddField(
model_name='qita',
name='image',
field=models.FileField(blank=True, null=True, upload_to='cover'),
),
migrations.AddField(
model_name='qita',
name='status',
field=models.CharField(blank=True, choices=[('0', '关闭'), ('1', '开启')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AddField(
model_name='qita',
name='toutiaoid',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='新媒体ID'),
),
migrations.AddField(
model_name='toutiao',
name='alias',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='别名'),
),
migrations.AddField(
model_name='toutiao',
name='status',
field=models.CharField(blank=True, choices=[('0', '关闭'), ('1', '开启')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AddField(
model_name='toutiao',
name='toutiaoid',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='头条ID'),
),
migrations.AddField(
model_name='weibo',
name='alias',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='别名'),
),
migrations.AddField(
model_name='weibo',
name='status',
field=models.CharField(blank=True, choices=[('0', '关闭'), ('1', '开启')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AddField(
model_name='weibo',
name='weiboid',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='微博ID'),
),
migrations.AddField(
model_name='weixin',
name='alias',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='别名'),
),
migrations.AddField(
model_name='weixin',
name='status',
field=models.CharField(blank=True, choices=[('0', '关闭'), ('1', '开启')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AddField(
model_name='weixin',
name='weixinid',
field=models.CharField(blank=True, max_length=256, null=True, verbose_name='微信ID'),
),
migrations.AddField(
model_name='qita_jc',
name='mewnedia',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Qita'),
),
]

View File

@ -0,0 +1,33 @@
# Generated by Django 2.1.8 on 2020-08-17 17:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0011_auto_20200817_1654'),
]
operations = [
migrations.AlterField(
model_name='qita',
name='status',
field=models.CharField(blank=True, choices=[('1', '开启'), ('0', '关闭')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AlterField(
model_name='toutiao',
name='status',
field=models.CharField(blank=True, choices=[('1', '开启'), ('0', '关闭')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AlterField(
model_name='weibo',
name='status',
field=models.CharField(blank=True, choices=[('1', '开启'), ('0', '关闭')], max_length=256, null=True, verbose_name='状态'),
),
migrations.AlterField(
model_name='weixin',
name='status',
field=models.CharField(blank=True, choices=[('1', '开启'), ('0', '关闭')], max_length=256, null=True, verbose_name='状态'),
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 2.1.8 on 2020-08-18 09:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0012_auto_20200817_1717'),
]
operations = [
migrations.RenameField(
model_name='qita',
old_name='toutiaoid',
new_name='qitaid',
),
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB