Skip to content

Commit

Permalink
feat : 활동사진 화면, 활동사진 상세보기 화면, 활동사진 게시글 작성 텍스트 에디터 적용(#1)(#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
effort-type committed Apr 25, 2024
1 parent 02d0144 commit bab02bd
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 11,242 deletions.
Binary file modified homePage/db.sqlite3
Binary file not shown.
19 changes: 19 additions & 0 deletions homePage/picture/migrations/0004_alter_picture_content.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 5.0.1 on 2024-04-25 16:15

import ckeditor_uploader.fields
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('picture', '0003_alter_picture_image'),
]

operations = [
migrations.AlterField(
model_name='picture',
name='content',
field=ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='내용'),
),
]
5 changes: 4 additions & 1 deletion homePage/picture/models.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField


# Create your models here.

class Picture(models.Model):
title = models.CharField(max_length=30)
content = models.TextField()
# content = models.TextField()
content = RichTextUploadingField(blank=True, null=True, verbose_name='내용')

image = models.ImageField(upload_to='pictures/image/%Y/%m/%d', blank=False)

created_at = models.DateTimeField(auto_now_add=True)
Expand Down
Binary file not shown.
7 changes: 0 additions & 7 deletions homePage/picture/static/picture/bootstrap/scripts.js

This file was deleted.

Loading

0 comments on commit bab02bd

Please sign in to comment.