summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-19 00:26:38 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-19 00:26:38 +0100
commit1d7dc2ca5db0119e01547cd7b01fb77720450d1c (patch)
treebc39b446f56658105cf120e429cac654ac0f92ff /module/web
parentset +x mode (diff)
downloadpyload-1d7dc2ca5db0119e01547cd7b01fb77720450d1c.tar.xz
cleaned
Diffstat (limited to 'module/web')
-rw-r--r--module/web/ServerThread.py3
-rw-r--r--module/web/ajax/models.py1
-rw-r--r--module/web/ajax/urls.py1
-rw-r--r--module/web/ajax/views.py1
-rw-r--r--module/web/pyload/views.py1
-rw-r--r--module/web/settings.py4
-rw-r--r--module/web/urls.py1
7 files changed, 1 insertions, 11 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py
index 790ac152b..6113ac297 100644
--- a/module/web/ServerThread.py
+++ b/module/web/ServerThread.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
import threading
-import os
from os.path import join
import subprocess
@@ -19,4 +18,4 @@ class WebServer(threading.Thread):
except Exception, e:
print e
#os.system("python " + join(self.pycore.path,"module","web","manage.py runserver %s:%s" % (host,port)))
- #@TODO: better would be real python code \ No newline at end of file
+ #@TODO: better would be real python code
diff --git a/module/web/ajax/models.py b/module/web/ajax/models.py
index 71a836239..35e0d6486 100644
--- a/module/web/ajax/models.py
+++ b/module/web/ajax/models.py
@@ -1,3 +1,2 @@
-from django.db import models
# Create your models here.
diff --git a/module/web/ajax/urls.py b/module/web/ajax/urls.py
index 9849004d1..2a7e109c3 100644
--- a/module/web/ajax/urls.py
+++ b/module/web/ajax/urls.py
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
-from django.conf import settings
urlpatterns = patterns('ajax',
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py
index 584ad1a0e..b09a80581 100644
--- a/module/web/ajax/views.py
+++ b/module/web/ajax/views.py
@@ -3,7 +3,6 @@ from django.http import HttpResponse
from django.http import HttpResponseForbidden
from django.http import HttpResponseServerError
from django.conf import settings
-from django.shortcuts import render_to_response
from django.utils import simplejson
from django.core.serializers import json
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 0cdc87873..904e312e7 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -1,7 +1,6 @@
# Create your views here.
import mimetypes
from django.http import HttpResponse
-from django.http import HttpResponseRedirect
from django.http import HttpResponseNotFound
from django.conf import settings
from django.shortcuts import render_to_response
diff --git a/module/web/settings.py b/module/web/settings.py
index 2c7f4ecd8..894583aa4 100644
--- a/module/web/settings.py
+++ b/module/web/settings.py
@@ -6,10 +6,6 @@ TEMPLATE_DEBUG = DEBUG
import os.path
import sys
-from os import chdir
-from os.path import dirname
-from os.path import abspath
-from os import sep
import xmlrpclib
SERVER_VERSION = "0.3"
diff --git a/module/web/urls.py b/module/web/urls.py
index 2145a8dd4..1392b827a 100644
--- a/module/web/urls.py
+++ b/module/web/urls.py
@@ -3,7 +3,6 @@ from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
-from os.path import join
admin.autodiscover()