articleapp
[pinterest clone (27)] articleapp 구현
1 models.py from django.contrib.auth.models import User from django.db import models # Create your models here. class Article(models.Model): writer = models.ForeignKey(User, on_delete=models.SET_NULL, related_name='arrticle', null=True) title = models.CharField(max_length=200, null=True) image = models.ImageField(upload_to='article/', null=False) content = models.TextField(null=True) created_at ..
[pinterest clone (26)] Articleapp 화면구성 (MagicGrid)
MagicGrid를 이용해 화면을 구성한다. github.com/e-oj/Magic-Grid e-oj/Magic-Grid A simple, lightweight Javascript library for dynamic grid layouts. - e-oj/Magic-Grid github.com 1 python manage.py startapp articleapp 2 settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ..