Skip to content

Commit

Permalink
Merge pull request #307 from bounswe/fix/BE-fix-migrations
Browse files Browse the repository at this point in the history
fix: remove admin import to resolve migration inconsistency
  • Loading branch information
hikasap authored Oct 20, 2024
2 parents bef8e60 + dac378c commit 12d5bc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
# 'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
Expand Down
4 changes: 2 additions & 2 deletions backend/backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
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.contrib import admin
from django.urls import path, include
from rest_framework import permissions
from django.shortcuts import render
Expand All @@ -25,7 +25,7 @@


urlpatterns = [
path('admin/', admin.site.urls),
# path('admin/', admin.site.urls),
path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
path(
Expand Down
2 changes: 1 addition & 1 deletion backend/onboarding/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.contrib import admin
# from django.contrib import admin

# Register your models here.

0 comments on commit 12d5bc6

Please sign in to comment.