Skip to content

Commit

Permalink
Merge pull request #72 from junnie082/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
junnie082 authored Jun 18, 2024
2 parents 135aaa4 + 6ccfbab commit bccfb32
Show file tree
Hide file tree
Showing 2,011 changed files with 95,826 additions and 528 deletions.
File renamed without changes.
Binary file removed scoopadive/.pyvenv 2.cfg.icloud
Binary file not shown.
Binary file removed scoopadive/bin/.Activate 2.ps1.icloud
Binary file not shown.
Binary file removed scoopadive/bin/.activate 2.fish.icloud
Binary file not shown.
Binary file modified scoopadive/board/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/board/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/board/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/board/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/board/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/board/__pycache__/views.cpython-310.pyc
Binary file not shown.
15 changes: 13 additions & 2 deletions scoopadive/board/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by Django 5.0 on 2024-01-19 06:40
# Generated by Django 5.0 on 2024-01-26 05:14

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


Expand All @@ -9,18 +10,24 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('postName', models.CharField(max_length=200)),
('content', models.TextField()),
('writer', models.CharField(max_length=20)),
('date', models.DateTimeField()),
('images', models.ImageField(blank=True, null=True, upload_to='')),
('voter', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
],
options={
'db_table': 'Post',
},
),
migrations.CreateModel(
name='Answer4Post',
Expand All @@ -29,7 +36,11 @@ class Migration(migrations.Migration):
('content', models.TextField()),
('writer', models.CharField(max_length=20)),
('date', models.DateTimeField()),
('voter', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='board.post')),
],
options={
'db_table': 'Answer4Post',
},
),
]

This file was deleted.

18 changes: 0 additions & 18 deletions scoopadive/board/migrations/0003_answer4post_images.py

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions scoopadive/board/migrations/0005_rename_title_post_postname.py

This file was deleted.

20 changes: 0 additions & 20 deletions scoopadive/board/migrations/0006_answer4post_voter.py

This file was deleted.

20 changes: 0 additions & 20 deletions scoopadive/board/migrations/0007_post_voter.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion scoopadive/board/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def answer_create(request, post_id):
post = get_object_or_404(Post, pk=post_id)
writer = request.user
content = request.POST.get('content')
print("content: " + str(content))

# Check if content is not None and not an empty string
if content is not None and content.strip():
Expand Down
Binary file modified scoopadive/common/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/common/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/common/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/common/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/common/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/common/__pycache__/views.cpython-310.pyc
Binary file not shown.
18 changes: 0 additions & 18 deletions scoopadive/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,6 @@ def logout_view(request):
logout(request)
return redirect('main:index')

# def signup(request):
# if request.method == "POST":
# form = UserForm(request.POST)
# if form.is_valid():
# form.save()
# username = form.cleaned_data.get('username')
# raw_password = form.cleaned_data.get('password1')
# user = authenticate(username=username, password=raw_password)
# login(request, user)
# return redirect('main:index')
# else:
# print("Form is not valid. Errors:", form.errors)
# else:
# form = UserForm()
#
# return render(request, 'common/signup.html', {'form': form})


def signup(request):
if request.method == 'POST':
# Extract user registration data from the POST request
Expand Down
Binary file modified scoopadive/db.sqlite3
Binary file not shown.
Binary file removed scoopadive/divepedia/..__init__ 2.py.icloud
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified scoopadive/divepedia/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/divepedia/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/divepedia/__pycache__/api.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/divepedia/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/divepedia/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/divepedia/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified scoopadive/divepedia/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file removed scoopadive/divepedia/migrations/..__init__ 2.py.icloud
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit bccfb32

Please sign in to comment.