Commit 849ce458 authored by alexandre's avatar alexandre
Browse files

Removed unused import for ethertoff app

parent 49060ef8
import re
import os
import sys
from datetime import datetime
from etherpadlite.models import Pad, PadAuthor, PadServer
from django.contrib.auth.models import AnonymousUser
from django.contrib.sites.shortcuts import get_current_site
......
......@@ -3,21 +3,19 @@
# Python imports
import os
import codecs
import urllib
# PyPi imports
import markdown
from py_etherpad import EtherpadLiteClient
# Django imports
from django.core.management.base import BaseCommand, CommandError
from django.core.management.base import BaseCommand
# Django Apps import
from etherpadlite.models import Pad, PadAuthor
from etherpadlite.models import Pad
from django.conf import settings
class Command(BaseCommand):
......
......@@ -3,9 +3,6 @@
# Python imports
import os
import re
import sys
import codecs
import json
from urllib import error
from time import clock
......@@ -16,13 +13,12 @@ import rdflib
# Django imports
from django.core.management.base import BaseCommand, CommandError
from django.template.loader import render_to_string
from django.core.management.base import BaseCommand
# Django Apps import
from django.contrib.sites.models import Site
from etherpadlite.models import Pad, PadAuthor
from etherpadlite.models import Pad
from django.conf import settings
"""
......
from django.http import HttpResponseServerError
from django.template import Context, Template, loader
from django.template import Context, loader
from urllib2 import URLError
from ethertoff.context_processors import EthertoffError
from etherpadlite.models import Pad, PadAuthor, PadServer
from html5lib import HTMLParser, serializer, treebuilders, treewalkers
......
from django.contrib.auth import views as auth_views
# from etherpadlite.views import padDelete
from django.urls import path, re_path
from . import views
#from django.conf.urls import *
from django.views.generic import TemplateView
from django.http import HttpResponse
from django.conf import settings
from django.conf.urls import include
from django.conf.urls.static import static
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
......
......@@ -27,17 +27,15 @@ from django.template import RequestContext
from django.template.defaultfilters import slugify
from django.urls import reverse
from django.template.context_processors import csrf
from django.core.exceptions import PermissionDenied
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext_lazy as _
from django.db import IntegrityError
from django.core.paginator import Paginator
from django.conf import settings
from django.contrib.staticfiles import finders
# Django Apps import
from etherpadlite.models import *
from etherpadlite.models import Pad, PadAuthor
from etherpadlite import forms
from etherpadlite import config
from django.contrib.sites.shortcuts import get_current_site
......@@ -496,8 +494,8 @@ def pad_read(request, mode="r", slug=None):
except IOError:
articles = []
SITE = get_current_site(request)
# FIXME: construct url based on settings?
# SITE = get_current_site(request)
#href = "http://%s" % SITE.domain + request.path
href = request.path
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment