diff --git a/accounts/migrations/0002_alter_user_is_admin.py b/accounts/migrations/0002_alter_user_is_admin.py deleted file mode 100644 index 7328adf..0000000 --- a/accounts/migrations/0002_alter_user_is_admin.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.2 on 2024-04-01 06:57 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('accounts', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='is_admin', - field=models.BooleanField(default=False, verbose_name='is mello'), - ), - ] diff --git a/accounts/migrations/0003_alter_user_is_admin.py b/accounts/migrations/0003_alter_user_is_admin.py deleted file mode 100644 index a54f43c..0000000 --- a/accounts/migrations/0003_alter_user_is_admin.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.2 on 2024-04-01 06:58 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('accounts', '0002_alter_user_is_admin'), - ] - - operations = [ - migrations.AlterField( - model_name='user', - name='is_admin', - field=models.BooleanField(default=False, verbose_name='is admin'), - ), - ] diff --git a/accounts/__init__.py b/core/__init__.py similarity index 100% rename from accounts/__init__.py rename to core/__init__.py diff --git a/accounts/admin.py b/core/admin.py similarity index 100% rename from accounts/admin.py rename to core/admin.py diff --git a/accounts/apps.py b/core/apps.py similarity index 62% rename from accounts/apps.py rename to core/apps.py index 3e3c765..8115ae6 100644 --- a/accounts/apps.py +++ b/core/apps.py @@ -1,6 +1,6 @@ from django.apps import AppConfig -class AccountsConfig(AppConfig): +class CoreConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' - name = 'accounts' + name = 'core' diff --git a/accounts/migrations/0001_initial.py b/core/migrations/0001_initial.py similarity index 94% rename from accounts/migrations/0001_initial.py rename to core/migrations/0001_initial.py index 8df0ffb..2d61165 100644 --- a/accounts/migrations/0001_initial.py +++ b/core/migrations/0001_initial.py @@ -1,6 +1,6 @@ -# Generated by Django 4.2 on 2024-04-01 06:31 +# Generated by Django 4.2 on 2024-04-01 15:30 -import accounts.user_manager +import core.user_manager from django.db import migrations, models import django.utils.timezone @@ -37,7 +37,7 @@ class Migration(migrations.Migration): 'abstract': False, }, managers=[ - ('objects', accounts.user_manager.UserManager()), + ('objects', core.user_manager.UserManager()), ], ), ] diff --git a/accounts/migrations/__init__.py b/core/migrations/__init__.py similarity index 100% rename from accounts/migrations/__init__.py rename to core/migrations/__init__.py diff --git a/accounts/models.py b/core/models.py similarity index 100% rename from accounts/models.py rename to core/models.py diff --git a/accounts/tests.py b/core/tests.py similarity index 100% rename from accounts/tests.py rename to core/tests.py diff --git a/accounts/user_manager.py b/core/user_manager.py similarity index 100% rename from accounts/user_manager.py rename to core/user_manager.py diff --git a/accounts/views.py b/core/views.py similarity index 100% rename from accounts/views.py rename to core/views.py diff --git a/main/settings/base.py b/main/settings/base.py index c720a10..f18a4f0 100644 --- a/main/settings/base.py +++ b/main/settings/base.py @@ -4,7 +4,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent.parent -AUTH_USER_MODEL = 'accounts.User' +AUTH_USER_MODEL = 'core.User' # Application definition @@ -15,7 +15,7 @@ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'accounts.apps.AccountsConfig' + 'core.apps.CoreConfig' ] MIDDLEWARE = [ diff --git a/main/urls.py b/main/urls.py index 755cac8..7dc8666 100644 --- a/main/urls.py +++ b/main/urls.py @@ -2,7 +2,7 @@ from django.urls import path, include from django.conf import settings from django.conf.urls.static import static -from accounts.views import LandingPageView +from core.views import LandingPageView urlpatterns = [ path('admin/', admin.site.urls),