Skip to content

Commit

Permalink
dry run3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratyaksh2309 committed Dec 2, 2024
1 parent f4c8e64 commit 6a30ed3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions socbackend/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,12 @@ def delete(self, request):

class BasicProjectListView(generics.ListAPIView):
permission_classes = []

if True:
upload_projects("./projects.csv")
queryset = Project.objects.all()
serializer_class = BasicProjectSerializer

# class ProjectListView(generics.ListAPIView):

# class ProjectAddView(generics.CreateAPIView):
# queryset = Project.objects.all()
# serializer_class = ProjectAdditionSerializer
Expand Down
2 changes: 0 additions & 2 deletions socbackend/socbackend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
'django.contrib.auth.backends.ModelBackend', # Default backend for user authentication
]


INSTALLED_APPS = [
"corsheaders",
"django.contrib.admin",
Expand Down Expand Up @@ -170,7 +169,6 @@
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
# "NAME": ':memory',
}
}

Expand Down

0 comments on commit 6a30ed3

Please sign in to comment.