Django collectstatic not does not find admin media content -
im running django 1.8.2 project on ubunutu virtualenv , gunicorn etc. reason collectstatic not admin media, work on local dev environment on osx.
im not sure problem comes from? settings? why work on osx , not on ubuntu server?
here settings:
import os base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) secret_key = '123' # security warning: don't run debug turned on in production! debug = false site_id = 1 allowed_hosts = ['localhost', '127.0.0.1'] admins = ( ) # application definition installed_apps = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'djcelery', 'djangobower', 'client', 'billable', 'recurring_invoice', 'company', 'app', ) middleware_classes = ( 'django.contrib.sessions.middleware.sessionmiddleware', 'django.middleware.common.commonmiddleware', 'django.middleware.csrf.csrfviewmiddleware', 'django.contrib.auth.middleware.authenticationmiddleware', 'django.contrib.auth.middleware.sessionauthenticationmiddleware', 'django.contrib.messages.middleware.messagemiddleware', 'django.middleware.clickjacking.xframeoptionsmiddleware', 'django.middleware.security.securitymiddleware', ) staticfiles_finders = ( "django.contrib.staticfiles.finders.filesystemfinder", 'djangobower.finders.bowerfinder', ) root_urlconf = 'stem.urls' templates = [ { 'backend': 'django.template.backends.django.djangotemplates', 'dirs': ['templates'], 'app_dirs': true, 'options': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] wsgi_application = 'stem.wsgi.application' databases = { 'default': { 'engine': 'django.db.backends.sqlite3', 'name': os.path.join(base_dir, 'db.sqlite3'), } } # internationalization # https://docs.djangoproject.com/en/1.8/topics/i18n/ language_code = 'en-us' time_zone = 'utc' use_i18n = true use_l10n = true use_tz = true static_url = '/static/' static_root = os.path.join(base_dir, 'static') media_url = '/media/' media_root = os.path.join(base_dir, 'media') bower_components_root = os.path.join(base_dir, 'components') import djcelery djcelery.setup_loader() celery_imports = ('recurring_invoice.tasks',) broker_url = "amqp://guest:guest@localhost:5672//" celerybeat_scheduler = 'djcelery.schedulers.databasescheduler' celery_accept_content = ['pickle', 'json', 'msgpack', 'yaml'] bower_installed_apps = ( 'jquery', 'underscore', 'angular#1.3.16', 'moment', )
Comments
Post a Comment