Clean static_url management, add icons and clean settings.py and config.py.tmpl management with the static urls.
import os, logging
SITE_ID = 1
BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
BASE_URL = '/~ymh/platform/'
WEB_URL = 'http://localhost/'
STATIC_URL = BASE_URL + 'static/site/'
STREAM_URL = "rtmp://localhost/vod/media/"
STREAM_SRC_PREFIX = ""
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.abspath(BASE_DIR + "../static/")
# Absolute path to the directory that static files (js, css, swf...)
# DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder
STATIC_ROOT = "C:/user/myfolder/my_platform/platform/web/static"
CONTENT_ROOT = MEDIA_ROOT + "media/content/"
# PATH where uploaded media are put.
STREAM_PATH = CONTENT_ROOT
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'platform', # Or path to database file if using sqlite3.
'USER': 'iri', # Not used with sqlite3.
'PASSWORD': 'iri', # Not used with sqlite3.
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '5432', # Set to empty string for default. Not used with sqlite3.
}
}
DEBUG = True
TEMPLATE_DEBUG = DEBUG
LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../log/log.txt"))
LOG_LEVEL = logging.DEBUG
INDEX_PATH = os.path.abspath(BASE_DIR + "../index/")
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'iri.ddc@gmail.com'
EMAIL_HOST_PASSWORD = 'ddciripompidou'
EMAIL_PORT = 587
ACCOUNT_ACTIVATION_DAYS = 7
REGISTRATION_OPEN = False
LDT_MAX_SEARCH_NUMBER = 50
LDT_JSON_DEFAULT_INDENT = 0
EMPTY_MEDIA_EXTERNALID = None
AUTO_INDEX_AFTER_SAVE = True