Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes dead imports in the sitewebapp #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions DebsocWebsite/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.defaults import page_not_found
from django.conf.urls import url



Expand Down
1 change: 0 additions & 1 deletion sitewebapp/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.contrib import admin
from .models import Alumni, Members, access_tokens, blog, Comments, event
from nested_inline.admin import NestedStackedInline, NestedModelAdmin
# Register your models here.

class commentInLine(admin.TabularInline):
Expand Down
1 change: 0 additions & 1 deletion sitewebapp/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django import forms
from django.forms import ModelForm
from .models import Alumni, Comments, Members,blog

Expand Down
3 changes: 1 addition & 2 deletions sitewebapp/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from django.urls import path
from django.conf.urls import url, include
from django.conf.urls import include
from django.conf import settings
import django.views.defaults
from django.conf.urls.static import static
from . import views

Expand Down
8 changes: 2 additions & 6 deletions sitewebapp/views.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
from django.shortcuts import render, redirect, get_object_or_404, reverse
from django.http import HttpResponse, HttpResponseRedirect, HttpResponsePermanentRedirect, JsonResponse
from django.http import HttpResponse, HttpResponseRedirect, HttpResponsePermanentRedirect
from .models import *
from django.db.models import Count
from .forms import CommentForm, MemberAddForm, blogcform,alumniform
from django.utils import timezone
from django.views.decorators.cache import cache_control, never_cache
from django.contrib.auth.decorators import login_required
from django.views.decorators.cache import never_cache
from django.contrib.auth.decorators import user_passes_test
from datetime import datetime
from django.http import HttpResponseRedirect
import csv
# Create your views here.

@never_cache
Expand Down