From 4726489b0df861baa323a203325026591382500d Mon Sep 17 00:00:00 2001 From: rlarkdmf1105 Date: Thu, 9 Nov 2023 13:08:43 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EA=B3=BC=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 273 +++++++++++++++++++++++++++++++++++++++++++++++++++++ kimgaeul | 1 + 2 files changed, 274 insertions(+) create mode 100644 .gitignore create mode 160000 kimgaeul diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..31c1dd0f --- /dev/null +++ b/.gitignore @@ -0,0 +1,273 @@ +# Created by https://www.toptal.com/developers/gitignore/api/python,django +# Edit at https://www.toptal.com/developers/gitignore?templates=python,django + +# Mac +.DS_STORE + +# vscode +.vscode/ + +### Django ### +*.log +*.pot +*.pyc +__pycache__/ +local_settings.py +db.sqlite3 +db.sqlite3-journal +media +secrets.json + +# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/ +# in your Git repository. Update and uncomment the following line accordingly. +# /staticfiles/ + +### Django.Python Stack ### +# Byte-compiled / optimized / DLL files +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo + +# Django stuff: + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +### Python ### +# Byte-compiled / optimized / DLL files + +# C extensions + +# Distribution / packaging + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. + +# Installer logs + +# Unit test / coverage reports + +# Translations + +# Django stuff: + +# Flask stuff: + +# Scrapy stuff: + +# Sphinx documentation + +# PyBuilder + +# Jupyter Notebook + +# IPython + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm + +# Celery stuff + +# SageMath parsed files + +# Environments + +# Spyder project settings + +# Rope project settings + +# mkdocs documentation + +# mypy + +# Pyre type checker + +# pytype static type analyzer + +# Cython debug symbols + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. + +### Python Patch ### +# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration +poetry.toml + +# ruff +.ruff_cache/ + +# LSP config files +pyrightconfig.json + +# End of https://www.toptal.com/developers/gitignore/api/python,django \ No newline at end of file diff --git a/kimgaeul b/kimgaeul new file mode 160000 index 00000000..8dd54755 --- /dev/null +++ b/kimgaeul @@ -0,0 +1 @@ +Subproject commit 8dd54755a46fa86803da98c19c995272f31f2a74 From 62b633ad5824594e156d2a82d9be7c58499eb256 Mon Sep 17 00:00:00 2001 From: rlarkdmf1105 Date: Thu, 9 Nov 2023 15:49:45 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=EC=9E=AC=EC=9E=AC=EC=A0=9C=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kimgaeul | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kimgaeul b/kimgaeul index 8dd54755..8c6fa584 160000 --- a/kimgaeul +++ b/kimgaeul @@ -1 +1 @@ -Subproject commit 8dd54755a46fa86803da98c19c995272f31f2a74 +Subproject commit 8c6fa584d45a964e6a80383e332106dfcf6b3657 From f9ff3bb0bb4697de8f1109fd051c1231a987a111 Mon Sep 17 00:00:00 2001 From: rlarkdmf1105 Date: Thu, 9 Nov 2023 15:56:34 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=ED=8F=B4=EB=8D=94=20=EB=82=B4=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asd/.gitignore | 273 ++++++++++++++++++ asd/README.md | 1 + asd/likeapp/__init__.py | 0 asd/likeapp/admin.py | 3 + asd/likeapp/apps.py | 6 + asd/likeapp/forms.py | 7 + asd/likeapp/migrations/0001_initial.py | 23 ++ .../0002_blog_like_user_blog_user.py | 26 ++ .../migrations/0003_blog_bookmark_user.py | 20 ++ asd/likeapp/migrations/__init__.py | 0 asd/likeapp/models.py | 15 + asd/likeapp/templates/create.html | 17 ++ asd/likeapp/templates/detail.html | 54 ++++ asd/likeapp/templates/index.html | 28 ++ asd/likeapp/templates/mybookmark.html | 13 + asd/likeapp/templates/read.html | 15 + asd/likeapp/templates/update.html | 17 ++ asd/likeapp/tests.py | 3 + asd/likeapp/urls.py | 15 + asd/likeapp/views.py | 73 +++++ asd/likeprj/__init__.py | 0 asd/likeprj/asgi.py | 16 + asd/likeprj/settings.py | 139 +++++++++ asd/likeprj/urls.py | 24 ++ asd/likeprj/wsgi.py | 16 + asd/manage.py | 22 ++ asd/userapp/__init__.py | 0 asd/userapp/admin.py | 3 + asd/userapp/apps.py | 6 + asd/userapp/migrations/__init__.py | 0 asd/userapp/models.py | 3 + asd/userapp/templates/login.html | 17 ++ asd/userapp/templates/signup.html | 17 ++ asd/userapp/tests.py | 3 + asd/userapp/urls.py | 8 + asd/userapp/views.py | 34 +++ kimgaeul | 1 - 37 files changed, 917 insertions(+), 1 deletion(-) create mode 100644 asd/.gitignore create mode 100644 asd/README.md create mode 100644 asd/likeapp/__init__.py create mode 100644 asd/likeapp/admin.py create mode 100644 asd/likeapp/apps.py create mode 100644 asd/likeapp/forms.py create mode 100644 asd/likeapp/migrations/0001_initial.py create mode 100644 asd/likeapp/migrations/0002_blog_like_user_blog_user.py create mode 100644 asd/likeapp/migrations/0003_blog_bookmark_user.py create mode 100644 asd/likeapp/migrations/__init__.py create mode 100644 asd/likeapp/models.py create mode 100644 asd/likeapp/templates/create.html create mode 100644 asd/likeapp/templates/detail.html create mode 100644 asd/likeapp/templates/index.html create mode 100644 asd/likeapp/templates/mybookmark.html create mode 100644 asd/likeapp/templates/read.html create mode 100644 asd/likeapp/templates/update.html create mode 100644 asd/likeapp/tests.py create mode 100644 asd/likeapp/urls.py create mode 100644 asd/likeapp/views.py create mode 100644 asd/likeprj/__init__.py create mode 100644 asd/likeprj/asgi.py create mode 100644 asd/likeprj/settings.py create mode 100644 asd/likeprj/urls.py create mode 100644 asd/likeprj/wsgi.py create mode 100644 asd/manage.py create mode 100644 asd/userapp/__init__.py create mode 100644 asd/userapp/admin.py create mode 100644 asd/userapp/apps.py create mode 100644 asd/userapp/migrations/__init__.py create mode 100644 asd/userapp/models.py create mode 100644 asd/userapp/templates/login.html create mode 100644 asd/userapp/templates/signup.html create mode 100644 asd/userapp/tests.py create mode 100644 asd/userapp/urls.py create mode 100644 asd/userapp/views.py delete mode 160000 kimgaeul diff --git a/asd/.gitignore b/asd/.gitignore new file mode 100644 index 00000000..31c1dd0f --- /dev/null +++ b/asd/.gitignore @@ -0,0 +1,273 @@ +# Created by https://www.toptal.com/developers/gitignore/api/python,django +# Edit at https://www.toptal.com/developers/gitignore?templates=python,django + +# Mac +.DS_STORE + +# vscode +.vscode/ + +### Django ### +*.log +*.pot +*.pyc +__pycache__/ +local_settings.py +db.sqlite3 +db.sqlite3-journal +media +secrets.json + +# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/ +# in your Git repository. Update and uncomment the following line accordingly. +# /staticfiles/ + +### Django.Python Stack ### +# Byte-compiled / optimized / DLL files +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo + +# Django stuff: + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +### Python ### +# Byte-compiled / optimized / DLL files + +# C extensions + +# Distribution / packaging + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. + +# Installer logs + +# Unit test / coverage reports + +# Translations + +# Django stuff: + +# Flask stuff: + +# Scrapy stuff: + +# Sphinx documentation + +# PyBuilder + +# Jupyter Notebook + +# IPython + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm + +# Celery stuff + +# SageMath parsed files + +# Environments + +# Spyder project settings + +# Rope project settings + +# mkdocs documentation + +# mypy + +# Pyre type checker + +# pytype static type analyzer + +# Cython debug symbols + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. + +### Python Patch ### +# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration +poetry.toml + +# ruff +.ruff_cache/ + +# LSP config files +pyrightconfig.json + +# End of https://www.toptal.com/developers/gitignore/api/python,django \ No newline at end of file diff --git a/asd/README.md b/asd/README.md new file mode 100644 index 00000000..dbd5b631 --- /dev/null +++ b/asd/README.md @@ -0,0 +1 @@ +# LikeLion_2semester_week6 diff --git a/asd/likeapp/__init__.py b/asd/likeapp/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/asd/likeapp/admin.py b/asd/likeapp/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/asd/likeapp/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/asd/likeapp/apps.py b/asd/likeapp/apps.py new file mode 100644 index 00000000..0b4a2ecb --- /dev/null +++ b/asd/likeapp/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class LikeappConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'likeapp' diff --git a/asd/likeapp/forms.py b/asd/likeapp/forms.py new file mode 100644 index 00000000..0223322f --- /dev/null +++ b/asd/likeapp/forms.py @@ -0,0 +1,7 @@ +from django import forms +from .models import Blog + +class BlogForm(forms.ModelForm): + class Meta: + model = Blog + fields = ['title', 'body'] \ No newline at end of file diff --git a/asd/likeapp/migrations/0001_initial.py b/asd/likeapp/migrations/0001_initial.py new file mode 100644 index 00000000..552e22b4 --- /dev/null +++ b/asd/likeapp/migrations/0001_initial.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.6 on 2023-10-27 06:46 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Blog', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=100)), + ('pub_date', models.DateTimeField(verbose_name='data published')), + ('body', models.TextField()), + ], + ), + ] diff --git a/asd/likeapp/migrations/0002_blog_like_user_blog_user.py b/asd/likeapp/migrations/0002_blog_like_user_blog_user.py new file mode 100644 index 00000000..976b84c2 --- /dev/null +++ b/asd/likeapp/migrations/0002_blog_like_user_blog_user.py @@ -0,0 +1,26 @@ +# Generated by Django 4.2.1 on 2023-11-03 09:39 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('likeapp', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='blog', + name='like_user', + field=models.ManyToManyField(blank=True, related_name='like_blogs', to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='blog', + name='user', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='blogs', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/asd/likeapp/migrations/0003_blog_bookmark_user.py b/asd/likeapp/migrations/0003_blog_bookmark_user.py new file mode 100644 index 00000000..7708a6ab --- /dev/null +++ b/asd/likeapp/migrations/0003_blog_bookmark_user.py @@ -0,0 +1,20 @@ +# Generated by Django 4.2.1 on 2023-11-09 03:59 + +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('likeapp', '0002_blog_like_user_blog_user'), + ] + + operations = [ + migrations.AddField( + model_name='blog', + name='bookmark_user', + field=models.ManyToManyField(blank=True, related_name='bookmark_user', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/asd/likeapp/migrations/__init__.py b/asd/likeapp/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/asd/likeapp/models.py b/asd/likeapp/models.py new file mode 100644 index 00000000..18af2ee2 --- /dev/null +++ b/asd/likeapp/models.py @@ -0,0 +1,15 @@ +from django.db import models +from django.conf import settings +from django.contrib.auth import get_user_model + +# Create your models here. +class Blog(models.Model): + title = models.CharField(max_length=100) + pub_date = models.DateTimeField('data published') + body = models.TextField() + user = models.ForeignKey(get_user_model(), on_delete=models.CASCADE, null=True, related_name='blogs') + like_user = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True, related_name='like_blogs') + bookmark_user = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True, related_name='bookmark_user') + + def __str__(self): + return self.title \ No newline at end of file diff --git a/asd/likeapp/templates/create.html b/asd/likeapp/templates/create.html new file mode 100644 index 00000000..9af5d2da --- /dev/null +++ b/asd/likeapp/templates/create.html @@ -0,0 +1,17 @@ +{% extends 'index.html' %} + +{% block title %} + Create +{% endblock %} + +{% block content %} +

Create Page

+
+
+ {% csrf_token %} + + {{form.as_table}} +
+ +
+{% endblock %} \ No newline at end of file diff --git a/asd/likeapp/templates/detail.html b/asd/likeapp/templates/detail.html new file mode 100644 index 00000000..23795ab1 --- /dev/null +++ b/asd/likeapp/templates/detail.html @@ -0,0 +1,54 @@ +{% extends 'index.html' %} + +{% block title %} + Detail + + + +{% endblock %} + +{% block content %} +

Detail Page

+
+

{{ blog.title }}

+

{{ blog.pub_date }}

+

{{ blog.body }}

+
+ + +
+
+ {% csrf_token %} + + + {{ blog.like_user.all|length }}명이 이 글을 좋아합니다. + +
+
+ +
+
+ {% csrf_token %} + + + {{ blog.bookmark_user.all|length}}명이 이 글을 북마크 했습니다. + +
+
+ + 글 수정하기 +
+ 글 삭제하기 +{% endblock %} \ No newline at end of file diff --git a/asd/likeapp/templates/index.html b/asd/likeapp/templates/index.html new file mode 100644 index 00000000..74440426 --- /dev/null +++ b/asd/likeapp/templates/index.html @@ -0,0 +1,28 @@ + + + + + + + {% block title %} + Index + {% endblock %} + + + + {% block content %} +

Index Page

+
+ {% endblock %} + + \ No newline at end of file diff --git a/asd/likeapp/templates/mybookmark.html b/asd/likeapp/templates/mybookmark.html new file mode 100644 index 00000000..c68d7cda --- /dev/null +++ b/asd/likeapp/templates/mybookmark.html @@ -0,0 +1,13 @@ +{% extends 'index.html' %} + +{% block content %} +

bookmark Page

+
+ +{% if user.is_active %} +

북마크 목록

+{% for blogs in blogs %} +

{{ blogs.title }}

+{% endfor %} +{% endif %} +{% endblock %} \ No newline at end of file diff --git a/asd/likeapp/templates/read.html b/asd/likeapp/templates/read.html new file mode 100644 index 00000000..0371532a --- /dev/null +++ b/asd/likeapp/templates/read.html @@ -0,0 +1,15 @@ +{% extends 'index.html' %} + +{% block title %} + Read +{% endblock %} + +{% block content %} +

Read Page

+
+ {% for blogs in blogs %} +

{{ blogs.title }}

+

{{ blogs.pub_date }}

+

{{ blogs.body }}

+ {% endfor %} +{% endblock %} \ No newline at end of file diff --git a/asd/likeapp/templates/update.html b/asd/likeapp/templates/update.html new file mode 100644 index 00000000..2d8ba2a0 --- /dev/null +++ b/asd/likeapp/templates/update.html @@ -0,0 +1,17 @@ +{% extends 'index.html' %} + +{% block title %} + Update +{% endblock %} + +{% block content %} +

Update Page

+
+
+ {% csrf_token %} + + {{ form.as_table }} +
+ +
+{% endblock %} \ No newline at end of file diff --git a/asd/likeapp/tests.py b/asd/likeapp/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/asd/likeapp/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/asd/likeapp/urls.py b/asd/likeapp/urls.py new file mode 100644 index 00000000..8e13d0f8 --- /dev/null +++ b/asd/likeapp/urls.py @@ -0,0 +1,15 @@ +from django.urls import path +from likeapp import views + +urlpatterns = [ + path('', views.index, name='index'), + path('create/', views.create, name='create'), + path('read/', views.read, name = 'read'), + path('mybookmark/', views.mybookmark, name='mybookmark'), + path('detail//', views.detail, name = 'detail'), + path('update//', views.update, name='update'), + path('delete//', views.delete, name = 'delete'), + + path('/like/', views.like, name='like'), + path('/bookmark/', views.bookmark, name='bookmark'), +] \ No newline at end of file diff --git a/asd/likeapp/views.py b/asd/likeapp/views.py new file mode 100644 index 00000000..16e23be2 --- /dev/null +++ b/asd/likeapp/views.py @@ -0,0 +1,73 @@ +from django.shortcuts import render, redirect, get_object_or_404 +from .forms import BlogForm +from django.utils import timezone +from .models import Blog + +# Create your views here. + +def index(request): + return render(request, 'index.html') + +def create(request): + if request.method == 'POST': + form = BlogForm(request.POST) + if form.is_valid(): + form = form.save(commit=False) + form.pub_date = timezone.now() + form.save() + return redirect('read') + else: + form = BlogForm + return render(request, 'create.html', {'form' : form}) + +def read(request): + blogs = Blog.objects.all() + return render(request, 'read.html', {'blogs' : blogs}) + +def detail(request, id): + blog = get_object_or_404(Blog, id = id) + return render(request, 'detail.html', {'blog' : blog}) + +def update(request, id): + blog = get_object_or_404(Blog, id = id) + if request.method == 'POST': + form = BlogForm(request.POST, instance=blog) + if form.is_valid(): + form = form.save(commit = False) + form.pub_date = timezone.now() + form.save() + return redirect('read') + else: + form = BlogForm(instance=blog) + return render(request, 'update.html', {'form' : form}) + +def delete(request, id): + blog = get_object_or_404(Blog, id = id) + blog.delete() + return redirect('read') + +def like(request, id): + if request.user.is_authenticated: + blog = get_object_or_404(Blog, id=id) + if blog.like_user.filter(id=request.user.id).exists(): + blog.like_user.remove(request.user) + else: + blog.like_user.add(request.user) + return redirect('detail', id=id) + return redirect('login') + +def bookmark(request, id): + if request.user.is_authenticated: + blog = get_object_or_404(Blog, id = id) + if blog.bookmark_user.filter(id = request.user.id).exists(): + blog.bookmark_user.remove(request.user) + else: + blog.bookmark_user.add(request.user) + return redirect('detail', id=id) + return redirect('login') + +def mybookmark(request): + if request.user.is_authenticated: + blogs = Blog.objects.filter(bookmark_user=request.user) + return render(request, 'mybookmark.html', {'blogs' : blogs}) + return redirect('login') \ No newline at end of file diff --git a/asd/likeprj/__init__.py b/asd/likeprj/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/asd/likeprj/asgi.py b/asd/likeprj/asgi.py new file mode 100644 index 00000000..fcd1ca6c --- /dev/null +++ b/asd/likeprj/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for likeprj project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'likeprj.settings') + +application = get_asgi_application() diff --git a/asd/likeprj/settings.py b/asd/likeprj/settings.py new file mode 100644 index 00000000..e10dfe41 --- /dev/null +++ b/asd/likeprj/settings.py @@ -0,0 +1,139 @@ +""" +Django settings for likeprj project. + +Generated by 'django-admin startproject' using Django 4.2.6. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.2/ref/settings/ +""" + +from pathlib import Path +import os, json +from django.core.exceptions import ImproperlyConfigured + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +secret_file = os.path.join(BASE_DIR, 'secrets.json') + +with open(secret_file) as f: + secrets = json.loads(f.read()) + +def get_secret(setting, secrets = secrets): + try: + return secrets[setting] + except KeyError: + error_msg = "Set the {} enviroment variable".format(setting) + raise ImproperlyConfigured(error_msg) + +SECRET_KEY = get_secret("SECRET_KEY") + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'likeapp.apps.LikeappConfig', + 'userapp', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'likeprj.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'likeprj.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.2/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.2/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.2/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/asd/likeprj/urls.py b/asd/likeprj/urls.py new file mode 100644 index 00000000..0f85836c --- /dev/null +++ b/asd/likeprj/urls.py @@ -0,0 +1,24 @@ +""" +URL configuration for likeprj project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.2/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path, include + +urlpatterns = [ + path('admin/', admin.site.urls), + path('',include('likeapp.urls')), + path('',include('userapp.urls')) +] \ No newline at end of file diff --git a/asd/likeprj/wsgi.py b/asd/likeprj/wsgi.py new file mode 100644 index 00000000..b94bb08d --- /dev/null +++ b/asd/likeprj/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for likeprj project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'likeprj.settings') + +application = get_wsgi_application() diff --git a/asd/manage.py b/asd/manage.py new file mode 100644 index 00000000..aebb9535 --- /dev/null +++ b/asd/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'likeprj.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/asd/userapp/__init__.py b/asd/userapp/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/asd/userapp/admin.py b/asd/userapp/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/asd/userapp/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/asd/userapp/apps.py b/asd/userapp/apps.py new file mode 100644 index 00000000..2b91b7a2 --- /dev/null +++ b/asd/userapp/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class UserappConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'userapp' diff --git a/asd/userapp/migrations/__init__.py b/asd/userapp/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/asd/userapp/models.py b/asd/userapp/models.py new file mode 100644 index 00000000..d49766e4 --- /dev/null +++ b/asd/userapp/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. \ No newline at end of file diff --git a/asd/userapp/templates/login.html b/asd/userapp/templates/login.html new file mode 100644 index 00000000..bb6be938 --- /dev/null +++ b/asd/userapp/templates/login.html @@ -0,0 +1,17 @@ +{% extends 'index.html' %} + +{% block title %} + Login +{% endblock %} + +{% block content %} +

Login Page

+
+
+ {% csrf_token %} + + {{ form.as_table }} +
+ +
+{% endblock %} \ No newline at end of file diff --git a/asd/userapp/templates/signup.html b/asd/userapp/templates/signup.html new file mode 100644 index 00000000..6d5a23f7 --- /dev/null +++ b/asd/userapp/templates/signup.html @@ -0,0 +1,17 @@ +{% extends 'index.html' %} + +{% block title %} + Signup +{% endblock %} + +{% block content %} +

Signup Page

+
+
+ {% csrf_token %} + + {{ form.as_table }} +
+ +
+{% endblock %} \ No newline at end of file diff --git a/asd/userapp/tests.py b/asd/userapp/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/asd/userapp/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/asd/userapp/urls.py b/asd/userapp/urls.py new file mode 100644 index 00000000..2c0a0ee3 --- /dev/null +++ b/asd/userapp/urls.py @@ -0,0 +1,8 @@ +from django.urls import path +import userapp.views + +urlpatterns = [ + path('signup/', userapp.views.signup, name = 'signup'), + path('login/', userapp.views.login, name = 'login'), + path('logout/', userapp.views.logout, name = 'logout'), +] diff --git a/asd/userapp/views.py b/asd/userapp/views.py new file mode 100644 index 00000000..9b7f26c2 --- /dev/null +++ b/asd/userapp/views.py @@ -0,0 +1,34 @@ +from django.shortcuts import render, redirect +from django.contrib import auth +from django.contrib.auth.forms import UserCreationForm, AuthenticationForm + +# Create your views here. +def signup(request): + if request.method == 'POST': + form = UserCreationForm(request.POST) + if form.is_valid(): + user = form.save() + auth.login(request, user) # 인증된 사용자를 로그인 처리 + return redirect('index') + else: + return render(request, 'signup.html', {'form': form}) + else: + form = UserCreationForm() + return render(request, 'signup.html', {'form' : form}) + +def login(request): + if request.method == 'POST': + form = AuthenticationForm(data = request.POST) + if form.is_valid(): + user = form.get_user() + auth.login(request, user) + return redirect('index') + else: + return render(request, 'signup.html', {'form': form}) + else: + form = AuthenticationForm() + return render(request, 'login.html', {'form' : form}) + +def logout(request): + auth.logout(request) + return redirect('index') \ No newline at end of file diff --git a/kimgaeul b/kimgaeul deleted file mode 160000 index 8c6fa584..00000000 --- a/kimgaeul +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8c6fa584d45a964e6a80383e332106dfcf6b3657 From de638759fa140faddfe2a125b8e6c8cb875396be Mon Sep 17 00:00:00 2001 From: rlarkdmf1105 Date: Thu, 9 Nov 2023 15:57:21 +0900 Subject: [PATCH 4/4] dd --- {asd => kimgaeul}/.gitignore | 0 {asd => kimgaeul}/README.md | 0 {asd => kimgaeul}/likeapp/__init__.py | 0 {asd => kimgaeul}/likeapp/admin.py | 0 {asd => kimgaeul}/likeapp/apps.py | 0 {asd => kimgaeul}/likeapp/forms.py | 0 {asd => kimgaeul}/likeapp/migrations/0001_initial.py | 0 .../likeapp/migrations/0002_blog_like_user_blog_user.py | 0 {asd => kimgaeul}/likeapp/migrations/0003_blog_bookmark_user.py | 0 {asd => kimgaeul}/likeapp/migrations/__init__.py | 0 {asd => kimgaeul}/likeapp/models.py | 0 {asd => kimgaeul}/likeapp/templates/create.html | 0 {asd => kimgaeul}/likeapp/templates/detail.html | 0 {asd => kimgaeul}/likeapp/templates/index.html | 0 {asd => kimgaeul}/likeapp/templates/mybookmark.html | 0 {asd => kimgaeul}/likeapp/templates/read.html | 0 {asd => kimgaeul}/likeapp/templates/update.html | 0 {asd => kimgaeul}/likeapp/tests.py | 0 {asd => kimgaeul}/likeapp/urls.py | 0 {asd => kimgaeul}/likeapp/views.py | 0 {asd => kimgaeul}/likeprj/__init__.py | 0 {asd => kimgaeul}/likeprj/asgi.py | 0 {asd => kimgaeul}/likeprj/settings.py | 0 {asd => kimgaeul}/likeprj/urls.py | 0 {asd => kimgaeul}/likeprj/wsgi.py | 0 {asd => kimgaeul}/manage.py | 0 {asd => kimgaeul}/userapp/__init__.py | 0 {asd => kimgaeul}/userapp/admin.py | 0 {asd => kimgaeul}/userapp/apps.py | 0 {asd => kimgaeul}/userapp/migrations/__init__.py | 0 {asd => kimgaeul}/userapp/models.py | 0 {asd => kimgaeul}/userapp/templates/login.html | 0 {asd => kimgaeul}/userapp/templates/signup.html | 0 {asd => kimgaeul}/userapp/tests.py | 0 {asd => kimgaeul}/userapp/urls.py | 0 {asd => kimgaeul}/userapp/views.py | 0 36 files changed, 0 insertions(+), 0 deletions(-) rename {asd => kimgaeul}/.gitignore (100%) rename {asd => kimgaeul}/README.md (100%) rename {asd => kimgaeul}/likeapp/__init__.py (100%) rename {asd => kimgaeul}/likeapp/admin.py (100%) rename {asd => kimgaeul}/likeapp/apps.py (100%) rename {asd => kimgaeul}/likeapp/forms.py (100%) rename {asd => kimgaeul}/likeapp/migrations/0001_initial.py (100%) rename {asd => kimgaeul}/likeapp/migrations/0002_blog_like_user_blog_user.py (100%) rename {asd => kimgaeul}/likeapp/migrations/0003_blog_bookmark_user.py (100%) rename {asd => kimgaeul}/likeapp/migrations/__init__.py (100%) rename {asd => kimgaeul}/likeapp/models.py (100%) rename {asd => kimgaeul}/likeapp/templates/create.html (100%) rename {asd => kimgaeul}/likeapp/templates/detail.html (100%) rename {asd => kimgaeul}/likeapp/templates/index.html (100%) rename {asd => kimgaeul}/likeapp/templates/mybookmark.html (100%) rename {asd => kimgaeul}/likeapp/templates/read.html (100%) rename {asd => kimgaeul}/likeapp/templates/update.html (100%) rename {asd => kimgaeul}/likeapp/tests.py (100%) rename {asd => kimgaeul}/likeapp/urls.py (100%) rename {asd => kimgaeul}/likeapp/views.py (100%) rename {asd => kimgaeul}/likeprj/__init__.py (100%) rename {asd => kimgaeul}/likeprj/asgi.py (100%) rename {asd => kimgaeul}/likeprj/settings.py (100%) rename {asd => kimgaeul}/likeprj/urls.py (100%) rename {asd => kimgaeul}/likeprj/wsgi.py (100%) rename {asd => kimgaeul}/manage.py (100%) rename {asd => kimgaeul}/userapp/__init__.py (100%) rename {asd => kimgaeul}/userapp/admin.py (100%) rename {asd => kimgaeul}/userapp/apps.py (100%) rename {asd => kimgaeul}/userapp/migrations/__init__.py (100%) rename {asd => kimgaeul}/userapp/models.py (100%) rename {asd => kimgaeul}/userapp/templates/login.html (100%) rename {asd => kimgaeul}/userapp/templates/signup.html (100%) rename {asd => kimgaeul}/userapp/tests.py (100%) rename {asd => kimgaeul}/userapp/urls.py (100%) rename {asd => kimgaeul}/userapp/views.py (100%) diff --git a/asd/.gitignore b/kimgaeul/.gitignore similarity index 100% rename from asd/.gitignore rename to kimgaeul/.gitignore diff --git a/asd/README.md b/kimgaeul/README.md similarity index 100% rename from asd/README.md rename to kimgaeul/README.md diff --git a/asd/likeapp/__init__.py b/kimgaeul/likeapp/__init__.py similarity index 100% rename from asd/likeapp/__init__.py rename to kimgaeul/likeapp/__init__.py diff --git a/asd/likeapp/admin.py b/kimgaeul/likeapp/admin.py similarity index 100% rename from asd/likeapp/admin.py rename to kimgaeul/likeapp/admin.py diff --git a/asd/likeapp/apps.py b/kimgaeul/likeapp/apps.py similarity index 100% rename from asd/likeapp/apps.py rename to kimgaeul/likeapp/apps.py diff --git a/asd/likeapp/forms.py b/kimgaeul/likeapp/forms.py similarity index 100% rename from asd/likeapp/forms.py rename to kimgaeul/likeapp/forms.py diff --git a/asd/likeapp/migrations/0001_initial.py b/kimgaeul/likeapp/migrations/0001_initial.py similarity index 100% rename from asd/likeapp/migrations/0001_initial.py rename to kimgaeul/likeapp/migrations/0001_initial.py diff --git a/asd/likeapp/migrations/0002_blog_like_user_blog_user.py b/kimgaeul/likeapp/migrations/0002_blog_like_user_blog_user.py similarity index 100% rename from asd/likeapp/migrations/0002_blog_like_user_blog_user.py rename to kimgaeul/likeapp/migrations/0002_blog_like_user_blog_user.py diff --git a/asd/likeapp/migrations/0003_blog_bookmark_user.py b/kimgaeul/likeapp/migrations/0003_blog_bookmark_user.py similarity index 100% rename from asd/likeapp/migrations/0003_blog_bookmark_user.py rename to kimgaeul/likeapp/migrations/0003_blog_bookmark_user.py diff --git a/asd/likeapp/migrations/__init__.py b/kimgaeul/likeapp/migrations/__init__.py similarity index 100% rename from asd/likeapp/migrations/__init__.py rename to kimgaeul/likeapp/migrations/__init__.py diff --git a/asd/likeapp/models.py b/kimgaeul/likeapp/models.py similarity index 100% rename from asd/likeapp/models.py rename to kimgaeul/likeapp/models.py diff --git a/asd/likeapp/templates/create.html b/kimgaeul/likeapp/templates/create.html similarity index 100% rename from asd/likeapp/templates/create.html rename to kimgaeul/likeapp/templates/create.html diff --git a/asd/likeapp/templates/detail.html b/kimgaeul/likeapp/templates/detail.html similarity index 100% rename from asd/likeapp/templates/detail.html rename to kimgaeul/likeapp/templates/detail.html diff --git a/asd/likeapp/templates/index.html b/kimgaeul/likeapp/templates/index.html similarity index 100% rename from asd/likeapp/templates/index.html rename to kimgaeul/likeapp/templates/index.html diff --git a/asd/likeapp/templates/mybookmark.html b/kimgaeul/likeapp/templates/mybookmark.html similarity index 100% rename from asd/likeapp/templates/mybookmark.html rename to kimgaeul/likeapp/templates/mybookmark.html diff --git a/asd/likeapp/templates/read.html b/kimgaeul/likeapp/templates/read.html similarity index 100% rename from asd/likeapp/templates/read.html rename to kimgaeul/likeapp/templates/read.html diff --git a/asd/likeapp/templates/update.html b/kimgaeul/likeapp/templates/update.html similarity index 100% rename from asd/likeapp/templates/update.html rename to kimgaeul/likeapp/templates/update.html diff --git a/asd/likeapp/tests.py b/kimgaeul/likeapp/tests.py similarity index 100% rename from asd/likeapp/tests.py rename to kimgaeul/likeapp/tests.py diff --git a/asd/likeapp/urls.py b/kimgaeul/likeapp/urls.py similarity index 100% rename from asd/likeapp/urls.py rename to kimgaeul/likeapp/urls.py diff --git a/asd/likeapp/views.py b/kimgaeul/likeapp/views.py similarity index 100% rename from asd/likeapp/views.py rename to kimgaeul/likeapp/views.py diff --git a/asd/likeprj/__init__.py b/kimgaeul/likeprj/__init__.py similarity index 100% rename from asd/likeprj/__init__.py rename to kimgaeul/likeprj/__init__.py diff --git a/asd/likeprj/asgi.py b/kimgaeul/likeprj/asgi.py similarity index 100% rename from asd/likeprj/asgi.py rename to kimgaeul/likeprj/asgi.py diff --git a/asd/likeprj/settings.py b/kimgaeul/likeprj/settings.py similarity index 100% rename from asd/likeprj/settings.py rename to kimgaeul/likeprj/settings.py diff --git a/asd/likeprj/urls.py b/kimgaeul/likeprj/urls.py similarity index 100% rename from asd/likeprj/urls.py rename to kimgaeul/likeprj/urls.py diff --git a/asd/likeprj/wsgi.py b/kimgaeul/likeprj/wsgi.py similarity index 100% rename from asd/likeprj/wsgi.py rename to kimgaeul/likeprj/wsgi.py diff --git a/asd/manage.py b/kimgaeul/manage.py similarity index 100% rename from asd/manage.py rename to kimgaeul/manage.py diff --git a/asd/userapp/__init__.py b/kimgaeul/userapp/__init__.py similarity index 100% rename from asd/userapp/__init__.py rename to kimgaeul/userapp/__init__.py diff --git a/asd/userapp/admin.py b/kimgaeul/userapp/admin.py similarity index 100% rename from asd/userapp/admin.py rename to kimgaeul/userapp/admin.py diff --git a/asd/userapp/apps.py b/kimgaeul/userapp/apps.py similarity index 100% rename from asd/userapp/apps.py rename to kimgaeul/userapp/apps.py diff --git a/asd/userapp/migrations/__init__.py b/kimgaeul/userapp/migrations/__init__.py similarity index 100% rename from asd/userapp/migrations/__init__.py rename to kimgaeul/userapp/migrations/__init__.py diff --git a/asd/userapp/models.py b/kimgaeul/userapp/models.py similarity index 100% rename from asd/userapp/models.py rename to kimgaeul/userapp/models.py diff --git a/asd/userapp/templates/login.html b/kimgaeul/userapp/templates/login.html similarity index 100% rename from asd/userapp/templates/login.html rename to kimgaeul/userapp/templates/login.html diff --git a/asd/userapp/templates/signup.html b/kimgaeul/userapp/templates/signup.html similarity index 100% rename from asd/userapp/templates/signup.html rename to kimgaeul/userapp/templates/signup.html diff --git a/asd/userapp/tests.py b/kimgaeul/userapp/tests.py similarity index 100% rename from asd/userapp/tests.py rename to kimgaeul/userapp/tests.py diff --git a/asd/userapp/urls.py b/kimgaeul/userapp/urls.py similarity index 100% rename from asd/userapp/urls.py rename to kimgaeul/userapp/urls.py diff --git a/asd/userapp/views.py b/kimgaeul/userapp/views.py similarity index 100% rename from asd/userapp/views.py rename to kimgaeul/userapp/views.py