From 95d09b338ac7aed2b387bf143a5cfd1c4b29f612 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 15 Dec 2009 17:48:30 +0100 Subject: new Django webinterface(in development), small fixes --- module/web/settings.py | 127 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 module/web/settings.py (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py new file mode 100644 index 000000000..0dc86d699 --- /dev/null +++ b/module/web/settings.py @@ -0,0 +1,127 @@ +# -*- coding: utf-8 -*- +# Django settings for pyload project. + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +import ConfigParser +import os.path +from os import chdir +from os.path import dirname +from os.path import abspath +from os import sep +import xmlrpclib + +SERVER_VERSION = "0.3" + +PROJECT_DIR = os.path.dirname(__file__) + +#chdir(dirname(abspath(__file__)) + sep) +config = ConfigParser.SafeConfigParser() +config.read(os.path.join(PROJECT_DIR,"..","..","config")) + +ssl = "" + +if config.get("ssl", "activated") == "True": + ssl = "s" + +server_url = "http%s://%s:%s@%s:%s/" % ( + ssl, + config.get("remote", "username"), + config.get("remote", "password"), + config.get("remote", "listenaddr"), + config.get("remote", "port") + ) + +PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True) + +TEMPLATE = config.get('webinterface','template') + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), + ) + +MANAGERS = ADMINS + +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = 'pyload.db' # Or path to database file if using sqlite3. +DATABASE_USER = '' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'America/Chicago' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = os.path.join(PROJECT_DIR, "media/") + + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" + +#MEDIA_URL = 'http://localhost:8000/media' +MEDIA_URL = '/media/' +#MEDIA_URL = os.path.join(PROJECT_DIR, "media/") + +LOGIN_REDIRECT_URL = "/" + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/media/admin/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '+u%%1t&c7!e$0$*gu%w2$@to)h0!&x-r*9e+-=wa4*zxat%x^t' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', + # 'django.template.loaders.eggs.load_template_source', + ) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + ) + +ROOT_URLCONF = 'urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. + os.path.join(PROJECT_DIR, "templates"), + ) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + #'django.contrib.sites', + 'django.contrib.admin', + 'pyload', + 'ajax', + ) + + +AUTH_PROFILE_MODULE = 'pyload.User' +LOGIN_URL = '/login' \ No newline at end of file -- cgit v1.2.3 From fe85f003f3adfb568c8b1a650035128c183a739d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 16 Dec 2009 17:09:14 +0100 Subject: some Webinterface Json Code --- module/web/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 0dc86d699..00395b328 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -97,7 +97,10 @@ TEMPLATE_LOADERS = ( # 'django.template.loaders.eggs.load_template_source', ) + MIDDLEWARE_CLASSES = ( + 'django.middleware.gzip.GZipMiddleware', + 'django.middleware.http.ConditionalGetMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', @@ -123,5 +126,5 @@ INSTALLED_APPS = ( ) -AUTH_PROFILE_MODULE = 'pyload.User' +AUTH_PROFILE_MODULE = 'pyload.UserProfile' LOGIN_URL = '/login' \ No newline at end of file -- cgit v1.2.3 From 511ae48877f8f3fae2a3ba282d979c33f2ea5491 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 17 Dec 2009 16:14:26 +0100 Subject: webinterface: config working, downloadable files --- module/web/settings.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 00395b328..2695b0648 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -18,7 +18,10 @@ PROJECT_DIR = os.path.dirname(__file__) #chdir(dirname(abspath(__file__)) + sep) config = ConfigParser.SafeConfigParser() -config.read(os.path.join(PROJECT_DIR,"..","..","config")) + +PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..") + +config.read(os.path.join(PYLOAD_DIR,"config")) ssl = "" @@ -36,6 +39,8 @@ server_url = "http%s://%s:%s@%s:%s/" % ( PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True) TEMPLATE = config.get('webinterface','template') +DL_ROOT = os.path.join(PYLOAD_DIR, config.get('general','download_folder')) + ADMINS = ( # ('Your Name', 'your_email@domain.com'), @@ -44,7 +49,7 @@ ADMINS = ( MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = 'pyload.db' # Or path to database file if using sqlite3. +DATABASE_NAME = os.path.join(PROJECT_DIR, 'pyload.db') # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. @@ -55,7 +60,7 @@ DATABASE_PORT = '' # Set to empty string for default. Not used with # although not all choices may be available on all operating systems. # If running in a Windows environment this must be set to the same as your # system time zone. -TIME_ZONE = 'America/Chicago' +TIME_ZONE = 'Europe' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html -- cgit v1.2.3 From d08271cbb66f3ccbd8f3c5cf707008388ff4297e Mon Sep 17 00:00:00 2001 From: mkaay Date: Thu, 17 Dec 2009 21:33:13 +0100 Subject: new xml config for core --- module/web/settings.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 2695b0648..2c7f4ecd8 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -4,8 +4,8 @@ DEBUG = True TEMPLATE_DEBUG = DEBUG -import ConfigParser import os.path +import sys from os import chdir from os.path import dirname from os.path import abspath @@ -17,11 +17,12 @@ SERVER_VERSION = "0.3" PROJECT_DIR = os.path.dirname(__file__) #chdir(dirname(abspath(__file__)) + sep) -config = ConfigParser.SafeConfigParser() PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..") -config.read(os.path.join(PYLOAD_DIR,"config")) +sys.path.append(os.path.join(PYLOAD_DIR, "module")) +from XMLConfigParser import XMLConfigParser +config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml")) ssl = "" @@ -132,4 +133,4 @@ INSTALLED_APPS = ( AUTH_PROFILE_MODULE = 'pyload.UserProfile' -LOGIN_URL = '/login' \ No newline at end of file +LOGIN_URL = '/login' -- cgit v1.2.3 From 1d7dc2ca5db0119e01547cd7b01fb77720450d1c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 19 Dec 2009 00:26:38 +0100 Subject: cleaned --- module/web/settings.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'module/web/settings.py') 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" -- cgit v1.2.3 From 9453269684b8d17411d8bbc4ecd0c7958670ff42 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 21 Dec 2009 19:59:59 +0100 Subject: log view, progressbar test --- module/web/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 894583aa4..13452b4d0 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -20,6 +20,9 @@ sys.path.append(os.path.join(PYLOAD_DIR, "module")) from XMLConfigParser import XMLConfigParser config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml")) +#DEBUG = config.get("general","debug") + + ssl = "" if config.get("ssl", "activated") == "True": @@ -37,7 +40,7 @@ PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True) TEMPLATE = config.get('webinterface','template') DL_ROOT = os.path.join(PYLOAD_DIR, config.get('general','download_folder')) - +LOG_ROOT = os.path.join(PYLOAD_DIR, config.get('log','log_folder')) ADMINS = ( # ('Your Name', 'your_email@domain.com'), -- cgit v1.2.3 From 013d1c2f9831bb53e74cbec31e3a752996b3f0b9 Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 4 Jan 2010 17:54:56 +0100 Subject: fixed webserver --- module/web/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 13452b4d0..5a948ef55 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -18,7 +18,7 @@ PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..") sys.path.append(os.path.join(PYLOAD_DIR, "module")) from XMLConfigParser import XMLConfigParser -config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml")) +config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml"), os.path.join(PYLOAD_DIR,"module","config","core_default.xml")) #DEBUG = config.get("general","debug") -- cgit v1.2.3 From 464a571cb50a14ed7d31f7ea9cdabf38eada0ac8 Mon Sep 17 00:00:00 2001 From: Wugy Date: Wed, 6 Jan 2010 15:02:51 +0100 Subject: WWWWWWWAAAAAAAAAA RaNaN du macht mich wahnsinnig 93 zeilen und 4,5k zeichen --- module/web/settings.py | 270 ++++++++++++++++++++++++------------------------- 1 file changed, 135 insertions(+), 135 deletions(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 5a948ef55..6cdd89fa2 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -1,135 +1,135 @@ -# -*- coding: utf-8 -*- -# Django settings for pyload project. - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -import os.path -import sys -import xmlrpclib - -SERVER_VERSION = "0.3" - -PROJECT_DIR = os.path.dirname(__file__) - -#chdir(dirname(abspath(__file__)) + sep) - -PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..") - -sys.path.append(os.path.join(PYLOAD_DIR, "module")) -from XMLConfigParser import XMLConfigParser -config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml"), os.path.join(PYLOAD_DIR,"module","config","core_default.xml")) - -#DEBUG = config.get("general","debug") - - -ssl = "" - -if config.get("ssl", "activated") == "True": - ssl = "s" - -server_url = "http%s://%s:%s@%s:%s/" % ( - ssl, - config.get("remote", "username"), - config.get("remote", "password"), - config.get("remote", "listenaddr"), - config.get("remote", "port") - ) - -PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True) - -TEMPLATE = config.get('webinterface','template') -DL_ROOT = os.path.join(PYLOAD_DIR, config.get('general','download_folder')) -LOG_ROOT = os.path.join(PYLOAD_DIR, config.get('log','log_folder')) - -ADMINS = ( - # ('Your Name', 'your_email@domain.com'), - ) - -MANAGERS = ADMINS - -DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = os.path.join(PROJECT_DIR, 'pyload.db') # Or path to database file if using sqlite3. -DATABASE_USER = '' # Not used with sqlite3. -DATABASE_PASSWORD = '' # Not used with sqlite3. -DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. -DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. - -# Local time zone for this installation. Choices can be found here: -# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name -# although not all choices may be available on all operating systems. -# If running in a Windows environment this must be set to the same as your -# system time zone. -TIME_ZONE = 'Europe' - -# Language code for this installation. All choices can be found here: -# http://www.i18nguy.com/unicode/language-identifiers.html -LANGUAGE_CODE = 'en-us' - -SITE_ID = 1 - -# If you set this to False, Django will make some optimizations so as not -# to load the internationalization machinery. -USE_I18N = True - -# Absolute path to the directory that holds media. -# Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = os.path.join(PROJECT_DIR, "media/") - - -# URL that handles the media served from MEDIA_ROOT. Make sure to use a -# trailing slash if there is a path component (optional in other cases). -# Examples: "http://media.lawrence.com", "http://example.com/media/" - -#MEDIA_URL = 'http://localhost:8000/media' -MEDIA_URL = '/media/' -#MEDIA_URL = os.path.join(PROJECT_DIR, "media/") - -LOGIN_REDIRECT_URL = "/" - -# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a -# trailing slash. -# Examples: "http://foo.com/media/", "/media/". -ADMIN_MEDIA_PREFIX = '/media/admin/' - -# Make this unique, and don't share it with anybody. -SECRET_KEY = '+u%%1t&c7!e$0$*gu%w2$@to)h0!&x-r*9e+-=wa4*zxat%x^t' - -# List of callables that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.load_template_source', - 'django.template.loaders.app_directories.load_template_source', - # 'django.template.loaders.eggs.load_template_source', - ) - - -MIDDLEWARE_CLASSES = ( - 'django.middleware.gzip.GZipMiddleware', - 'django.middleware.http.ConditionalGetMiddleware', - 'django.middleware.common.CommonMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', - ) - -ROOT_URLCONF = 'urls' - -TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. - os.path.join(PROJECT_DIR, "templates"), - ) - -INSTALLED_APPS = ( - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - #'django.contrib.sites', - 'django.contrib.admin', - 'pyload', - 'ajax', - ) - - -AUTH_PROFILE_MODULE = 'pyload.UserProfile' -LOGIN_URL = '/login' +# -*- coding: utf-8 -*- +# Django settings for pyload project. + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +import os.path +import sys +import xmlrpclib + +SERVER_VERSION = "0.3" + +PROJECT_DIR = os.path.dirname(__file__) + +#chdir(dirname(abspath(__file__)) + sep) + +PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..") + +sys.path.append(os.path.join(PYLOAD_DIR, "module")) +from XMLConfigParser import XMLConfigParser +config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml"), os.path.join(PYLOAD_DIR,"module","config","core_default.xml")) + +#DEBUG = config.get("general","debug") + + +ssl = "" + +if config.get("ssl", "activated") == "True": + ssl = "s" + +server_url = "http%s://%s:%s@%s:%s/" % ( + ssl, + config.get("remote", "username"), + config.get("remote", "password"), + config.get("remote", "listenaddr"), + config.get("remote", "port") + ) + +PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True) + +TEMPLATE = config.get('webinterface','template') +DL_ROOT = os.path.join(PYLOAD_DIR, config.get('general','download_folder')) +LOG_ROOT = os.path.join(PYLOAD_DIR, config.get('log','log_folder')) + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), + ) + +MANAGERS = ADMINS + +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = os.path.join(PROJECT_DIR, 'pyload.db') # Or path to database file if using sqlite3. +DATABASE_USER = '' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'Europe' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = os.path.join(PROJECT_DIR, "media/") + + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" + +#MEDIA_URL = 'http://localhost:8000/media' +MEDIA_URL = '/media/' + config.get('webinterface','template') + '/' +#MEDIA_URL = os.path.join(PROJECT_DIR, "media/") + +LOGIN_REDIRECT_URL = "/" + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/media/admin/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '+u%%1t&c7!e$0$*gu%w2$@to)h0!&x-r*9e+-=wa4*zxat%x^t' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', + # 'django.template.loaders.eggs.load_template_source', + ) + + +MIDDLEWARE_CLASSES = ( + 'django.middleware.gzip.GZipMiddleware', + 'django.middleware.http.ConditionalGetMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + ) + +ROOT_URLCONF = 'urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. + os.path.join(PROJECT_DIR, "templates"), + ) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + #'django.contrib.sites', + 'django.contrib.admin', + 'pyload', + 'ajax', + ) + + +AUTH_PROFILE_MODULE = 'pyload.UserProfile' +LOGIN_URL = '/login' -- cgit v1.2.3 From 92d2362fe691c9e6f047b5a8db59ad3cb95a67e0 Mon Sep 17 00:00:00 2001 From: spoob Date: Sat, 9 Jan 2010 15:47:39 +0100 Subject: Updated XML Config Changes --- module/web/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 6cdd89fa2..3b242164c 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -18,7 +18,7 @@ PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..") sys.path.append(os.path.join(PYLOAD_DIR, "module")) from XMLConfigParser import XMLConfigParser -config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml"), os.path.join(PYLOAD_DIR,"module","config","core_default.xml")) +config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml")) #DEBUG = config.get("general","debug") -- cgit v1.2.3 From 3d655ddbfbd96abecb9a9c9bebf6e43eb710ab12 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 10 Jan 2010 16:20:31 +0100 Subject: fixed manage.py, addBox working, some code formatted and cleaned --- module/web/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/web/settings.py') diff --git a/module/web/settings.py b/module/web/settings.py index 3b242164c..dff1dc29d 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -132,4 +132,4 @@ INSTALLED_APPS = ( AUTH_PROFILE_MODULE = 'pyload.UserProfile' -LOGIN_URL = '/login' +LOGIN_URL = '/login' \ No newline at end of file -- cgit v1.2.3