From 7b9804778804da413494584fc53b62affb713886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=EC=95=84=EB=A6=BC?= Date: Sun, 28 Jul 2024 01:31:30 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=EC=B6=A9=EB=8F=8C=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- accounts/migrations/0001_initial.py | 163 ------------------ accounts/migrations/0002_alter_user_email.py | 17 -- .../migrations/0003_alter_user_nickname.py | 22 --- accounts/migrations/__init__.py | 0 mustgou/settings.py | 1 - requirements.txt | 1 - 6 files changed, 204 deletions(-) delete mode 100644 accounts/migrations/0001_initial.py delete mode 100644 accounts/migrations/0002_alter_user_email.py delete mode 100644 accounts/migrations/0003_alter_user_nickname.py delete mode 100644 accounts/migrations/__init__.py diff --git a/accounts/migrations/0001_initial.py b/accounts/migrations/0001_initial.py deleted file mode 100644 index 69a4e42..0000000 --- a/accounts/migrations/0001_initial.py +++ /dev/null @@ -1,163 +0,0 @@ -# Generated by Django 4.2.14 on 2024-07-26 10:15 - -import django.contrib.auth.models -import django.contrib.auth.validators -from django.db import migrations, models -import django.utils.timezone - - -class Migration(migrations.Migration): - initial = True - - dependencies = [ - ("auth", "0012_alter_user_first_name_max_length"), - ] - - operations = [ - migrations.CreateModel( - name="User", - fields=[ - ( - "id", - models.BigAutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("password", models.CharField(max_length=128, verbose_name="password")), - ( - "last_login", - models.DateTimeField( - blank=True, null=True, verbose_name="last login" - ), - ), - ( - "is_superuser", - models.BooleanField( - default=False, - help_text=( - "Designates that this user has all permissions without " - "explicitly assigning them." - ), - verbose_name="superuser status", - ), - ), - ( - "username", - models.CharField( - error_messages={ - "unique": "A user with that username already exists." - }, - help_text=( - "Required. 150 characters or fewer. " - "Letters, digits and @/./+/-/_ only." - ), - max_length=150, - unique=True, - validators=[ - django.contrib.auth.validators.UnicodeUsernameValidator() - ], - verbose_name="username", - ), - ), - ( - "first_name", - models.CharField( - blank=True, max_length=150, verbose_name="first name" - ), - ), - ( - "last_name", - models.CharField( - blank=True, max_length=150, verbose_name="last name" - ), - ), - ( - "email", - models.EmailField( - blank=True, max_length=254, verbose_name="email address" - ), - ), - ( - "is_staff", - models.BooleanField( - default=False, - help_text=( - "Designates whether " - "the user can log into this admin site." - ), - verbose_name="staff status", - ), - ), - ( - "is_active", - models.BooleanField( - default=True, - help_text=( - "Designates whether this user should " - "be treated as active. " - "Unselect this instead of deleting accounts." - ), - verbose_name="active", - ), - ), - ( - "date_joined", - models.DateTimeField( - default=django.utils.timezone.now, verbose_name="date joined" - ), - ), - ( - "nickname", - models.CharField( - error_messages={"unique": "이미 사용 중인 닉네임입니다."}, - max_length=20, - unique=True, - ), - ), - ( - "profile_pic", - models.ImageField( - default="default_profile_pic.jpg", upload_to="profile_pics" - ), - ), - ("reliability", models.IntegerField(default=100)), - ( - "groups", - models.ManyToManyField( - blank=True, - help_text=( - "The groups this user belongs to. " - "A user will get all permissions granted to " - "each of their groups." - ), - related_name="user_set", - related_query_name="user", - to="auth.group", - verbose_name="groups", - ), - ), - ( - "user_permissions", - models.ManyToManyField( - blank=True, - help_text="Specific permissions for this user.", - related_name="user_set", - related_query_name="user", - to="auth.permission", - verbose_name="user permissions", - ), - ), - ], - options={ - "verbose_name": "user", - "verbose_name_plural": "users", - "abstract": False, - }, - managers=[ - ("objects", django.contrib.auth.models.UserManager()), - ], - ), - ] diff --git a/accounts/migrations/0002_alter_user_email.py b/accounts/migrations/0002_alter_user_email.py deleted file mode 100644 index a25cd95..0000000 --- a/accounts/migrations/0002_alter_user_email.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 4.2.14 on 2024-07-27 04:04 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("accounts", "0001_initial"), - ] - - operations = [ - migrations.AlterField( - model_name="user", - name="email", - field=models.EmailField(max_length=254, unique=True), - ), - ] diff --git a/accounts/migrations/0003_alter_user_nickname.py b/accounts/migrations/0003_alter_user_nickname.py deleted file mode 100644 index d440332..0000000 --- a/accounts/migrations/0003_alter_user_nickname.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 4.2.14 on 2024-07-27 04:09 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("accounts", "0002_alter_user_email"), - ] - - operations = [ - migrations.AlterField( - model_name="user", - name="nickname", - field=models.CharField( - error_messages={"unique": "이미 사용 중인 닉네임입니다."}, - max_length=20, - null=True, - unique=True, - ), - ), - ] diff --git a/accounts/migrations/__init__.py b/accounts/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/mustgou/settings.py b/mustgou/settings.py index e178e50..11f1718 100644 --- a/mustgou/settings.py +++ b/mustgou/settings.py @@ -41,7 +41,6 @@ "rest_framework", "rest_framework.authtoken", "accounts", - "myapp", "users", "friends", "restaurants", diff --git a/requirements.txt b/requirements.txt index 607c8d9..f94865d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ asgiref==3.8.1 -backports.zoneinfo==0.2.1 Django==4.2.14 djangorestframework==3.15.2 pillow==10.4.0 From 03a0d34fab60e768419fae766ddbdf38ac1919fc Mon Sep 17 00:00:00 2001 From: dkfla Date: Mon, 29 Jul 2024 00:42:47 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20mysql=20=EC=84=B8=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mustgou/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustgou/settings.py b/mustgou/settings.py index 11f1718..ec09c3f 100644 --- a/mustgou/settings.py +++ b/mustgou/settings.py @@ -87,7 +87,7 @@ "NAME": "MustGoU", "USER": "root", "PASSWORD": config("DB_PASSWORD"), - "HOST": "127.0.0.1", + "HOST": "192.168.219.107", "PORT": "3306", } }