Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Behr, Svenja
Django_Blog
Commits
08328fb0
Commit
08328fb0
authored
Jun 16, 2020
by
Falk, Dennis Nikolas
Browse files
DB erneuert
parent
48676050
Changes
17
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
08328fb0
/venv/
/.idea/
/djangoblog.sqlite3
/media/uploads/2020/
blog/migrations/0001_initial.py
View file @
08328fb0
# Generated by Django 3.0.7 on 2020-06-
09 20:42
# Generated by Django 3.0.7 on 2020-06-
16 18:21
import
ckeditor_uploader.fields
import
datetime
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
uuid
class
Migration
(
migrations
.
Migration
):
...
...
@@ -15,16 +19,25 @@ class Migration(migrations.Migration):
name
=
'Blog'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'identifier'
,
models
.
CharField
(
default
=
uuid
.
UUID
(
'c503a3c1-ed2e-47c9-81f7-eb8c2f0103bc'
),
max_length
=
500
,
unique
=
True
)),
(
'title'
,
models
.
CharField
(
default
=
'Titel'
,
max_length
=
200
)),
(
'description'
,
ckeditor_uploader
.
fields
.
RichTextUploadingField
(
blank
=
True
)),
(
'date'
,
models
.
DateTimeField
(
blank
=
True
,
default
=
datetime
.
datetime
.
now
)),
(
'image'
,
models
.
ImageField
(
blank
=
True
,
upload_to
=
'images/'
)),
(
'created'
,
models
.
DateField
(
auto_now_add
=
True
)),
(
'edited'
,
models
.
DateField
(
auto_now
=
True
)),
(
'status'
,
models
.
IntegerField
(
default
=
1
)),
(
'url'
,
models
.
URLField
(
blank
=
True
,
max_length
=
300
)),
],
),
migrations
.
CreateModel
(
name
=
'
Projec
t'
,
name
=
'
Commen
t'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'
title
'
,
models
.
Char
Field
(
max_length
=
20
0
)),
(
'
description
'
,
models
.
TextField
()),
(
'date'
,
models
.
DateField
()),
(
'
image'
,
models
.
ImageField
(
upload_to
=
'portfolio/images/
'
)),
(
'
author
'
,
models
.
Text
Field
(
max_length
=
15
0
)),
(
'
text
'
,
models
.
TextField
(
max_length
=
1000
)),
(
'date'
,
models
.
Date
Time
Field
(
default
=
datetime
.
datetime
.
now
)),
(
'
related_blog'
,
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'blog.Blog
'
)),
],
),
]
blog/migrations/0002_auto_20200609_2106.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-09 21:06
import
datetime
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0001_initial'
),
]
operations
=
[
migrations
.
DeleteModel
(
name
=
'Project'
,
),
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'date'
,
field
=
models
.
DateTimeField
(
blank
=
True
,
default
=
datetime
.
datetime
.
now
),
),
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'description'
,
field
=
models
.
TextField
(
blank
=
True
),
),
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'title'
,
field
=
models
.
CharField
(
default
=
'Titel'
,
max_length
=
200
),
),
]
blog/migrations/0003_blog_image.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-09 21:09
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0002_auto_20200609_2106'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'image'
,
field
=
models
.
ImageField
(
blank
=
True
,
upload_to
=
'images/'
),
),
]
blog/migrations/0004_auto_20200611_1213.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-11 12:13
from
django.db
import
migrations
,
models
import
django.utils.timezone
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0003_blog_image'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'created'
,
field
=
models
.
DateField
(
auto_now_add
=
True
,
default
=
django
.
utils
.
timezone
.
now
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'edited'
,
field
=
models
.
DateField
(
auto_now
=
True
),
),
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'70a33298-78df-43b9-a8ad-865b35c6bfad'
),
max_length
=
500
,
unique
=
True
),
),
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'status'
,
field
=
models
.
IntegerField
(
default
=
1
),
),
]
blog/migrations/0005_auto_20200611_1214.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-11 12:14
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0004_auto_20200611_1213'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'ac2cc36e-8a2b-4616-be75-d6d5f89e67e6'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0006_auto_20200611_1217.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-11 12:17
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0005_auto_20200611_1214'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'54a497c2-2834-45bf-90ee-51e9cb371b25'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0007_auto_20200611_1226.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-11 12:26
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0006_auto_20200611_1217'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'ffb72471-f1df-46bc-9f49-55b86863537f'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0008_auto_20200611_1226.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-11 12:26
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0007_auto_20200611_1226'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'db0967ff-63bd-4d0f-bbb1-04a87e241d24'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0009_auto_20200611_1236.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-11 12:36
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0008_auto_20200611_1226'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'950b5bcf-2eea-460b-bb81-96a72c504e35'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0010_auto_20200611_1257.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-11 12:57
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0009_auto_20200611_1236'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'url'
,
field
=
models
.
URLField
(
blank
=
True
,
max_length
=
300
),
),
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'28aef679-2488-4988-afdc-4a93b66695f1'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0011_auto_20200612_2029.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-12 20:29
import
ckeditor.fields
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0010_auto_20200611_1257'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'blog'
,
name
=
'content'
,
field
=
ckeditor
.
fields
.
RichTextField
(
default
=
'Beschreibung'
),
),
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'b09921bf-97b7-4f17-b5b2-1438e8f0e7d2'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0011_auto_20200612_2242.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-12 20:42
import
datetime
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0010_auto_20200611_1257'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'c243d1b6-0415-4836-ba1b-531367c635af'
),
max_length
=
500
,
unique
=
True
),
),
migrations
.
CreateModel
(
name
=
'Comment'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'author'
,
models
.
TextField
(
max_length
=
150
)),
(
'text'
,
models
.
TextField
(
max_length
=
1000
)),
(
'date'
,
models
.
DateTimeField
(
default
=
datetime
.
datetime
.
now
)),
(
'related_blog'
,
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'blog.Blog'
)),
],
),
]
blog/migrations/0012_auto_20200612_2032.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-12 20:32
import
ckeditor.fields
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0011_auto_20200612_2029'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'blog'
,
name
=
'content'
,
),
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'description'
,
field
=
ckeditor
.
fields
.
RichTextField
(
default
=
'Beschreibung'
),
),
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'3af76d78-d81e-4250-9040-40ed2a85b3b9'
),
max_length
=
500
,
unique
=
True
),
),
]
blog/migrations/0013_auto_20200614_1910.py
deleted
100644 → 0
View file @
48676050
# Generated by Django 3.0.7 on 2020-06-14 19:10
import
ckeditor_uploader.fields
from
django.db
import
migrations
,
models
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'blog'
,
'0012_auto_20200612_2032'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'description'
,
field
=
ckeditor_uploader
.
fields
.
RichTextUploadingField
(
blank
=
True
),
),
migrations
.
AlterField
(
model_name
=
'blog'
,
name
=
'identifier'
,
field
=
models
.
CharField
(
default
=
uuid
.
UUID
(
'cccec805-270b-4d3f-aeca-8a29406b470a'
),
max_length
=
500
,
unique
=
True
),
),
]
djangoblog.sqlite3
deleted
100644 → 0
View file @
48676050
File deleted
portfolio/migrations/0001_initial.py
View file @
08328fb0
# Generated by Django 3.0.7 on 2020-06-
09 14:0
1
# Generated by Django 3.0.7 on 2020-06-
16 18:2
1
from
django.db
import
migrations
,
models
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment