Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
This commit removes trailing whitespaces and
removes unused imports

Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
  • Loading branch information
Kappuccino111 committed Jun 27, 2024
1 parent e79eaf0 commit 825c530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions server/django/sensordata/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
from rest_framework.response import Response
from rest_framework import status
from .serializers import LwM2MSerializer
from django.shortcuts import render, redirect
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.auth import login
from .models import Device, Resource, Event, DeviceOperation, Firmware, ResourceType
import logging

Expand Down
7 changes: 2 additions & 5 deletions server/django/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"""

from pathlib import Path
import os

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
Expand Down Expand Up @@ -161,10 +160,8 @@

STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / 'static_collect'
STATICFILES_DIRS = [
BASE_DIR / 'staticfiles',
]
WHITENOISE_USE_FINDERS = True
STATICFILES_DIRS = [ BASE_DIR / 'staticfiles',]
WHITENOISE_USE_FINDERS = True

# Default primary key field type
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
Expand Down

0 comments on commit 825c530

Please sign in to comment.