Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions home/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
import os
Expand Down Expand Up @@ -27,6 +28,8 @@ class Post(models.Model):
# 리스트 만든 날짜
# created_at = models.DateTimeField(auto_now_add=True)

author = models.ForeignKey(User, null=True, on_delete=models.SET_NULL)

# 이클래스 모델 불러오기
# lecture = models.ForeignKey(Lecture, null=True, blank=True, on_delete=models.SET_NULL)
# activity = models.ForeignKey(Activity, null=True, blank=True, on_delete=models.SET_NULL)
Expand Down
2 changes: 1 addition & 1 deletion home/templates/home/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</a>
</li>
<li class="nav-item dropdown ms-2">
<a class="navbar-brand" href="/" style="color: #FFFFF4;">
<a class="navbar-brand" href="/accounts/logout/" style="color: #FFFFF4;">
<img src="{% static 'img/nav_login.png' %}" alt="LOGIN" width="25" height="25" class="d-inline-block align-text-top me-1">
LOG OUT
</a>
Expand Down
1 change: 1 addition & 0 deletions home/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from . import views
from django.views.generic import TemplateView


urlpatterns = [
path('delete_<int:pk>/', views.postDelete, name='postDelete'),
path('edit_list_<int:pk>/', views.postEdit, name='postEdit'),
Expand Down
2 changes: 1 addition & 1 deletion home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .forms import PostForm
from .models import Post, Category

from datetime import datetime,time
from datetime import datetime, time, timedelta
from django.utils.dateformat import DateFormat
from django.utils import timezone
from django.http import HttpResponseRedirect
Expand Down
Empty file removed join/__init__.py
Empty file.
4 changes: 0 additions & 4 deletions join/admin.py

This file was deleted.

6 changes: 0 additions & 6 deletions join/apps.py

This file was deleted.

18 changes: 0 additions & 18 deletions join/forms.py

This file was deleted.

28 changes: 0 additions & 28 deletions join/models.py

This file was deleted.

103 changes: 0 additions & 103 deletions join/static/css/login.css

This file was deleted.

Binary file removed join/static/img/greendot.png
Binary file not shown.
Binary file removed join/static/img/my.png
Binary file not shown.
Binary file removed join/static/img/reddot.png
Binary file not shown.
Binary file removed join/static/img/save.png
Binary file not shown.
Binary file removed join/static/img/start_logo.png
Binary file not shown.
6 changes: 0 additions & 6 deletions join/static/join/bootstrap/bootstrap.min.css

This file was deleted.

1 change: 0 additions & 1 deletion join/static/join/bootstrap/bootstrap.min.css.map

This file was deleted.

100 changes: 0 additions & 100 deletions join/templates/join/login.html

This file was deleted.

Loading