I can't upload files on my Django's website -


i have created online store in django. works on pc. have moved on shared hosting, can't upload anything. can add new information in database without images.

i 404 error. have media_url , media_root configured corectly in settings.

who know how fix issues?

my settings.py file(this first experience django , python):

"""

django settings public project.  generated 'django-admin startproject' using django 1.8.8.  more information on file, see https://docs.djangoproject.com/en/1.8/topics/settings/  full list of settings , values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """  # build paths inside project this: os.path.join(base_dir, ...) import os  base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))   # quick-start development settings - unsuitable production # see https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/  # security warning: keep secret key used in production secret! secret_key = ''  # security warning: don't run debug turned on in production! debug = true  allowed_hosts = ['*']   # application definition  installed_apps = (     'django.contrib.admin',     'django.contrib.auth',     'django.contrib.contenttypes',     'django.contrib.sessions',     'django.contrib.messages',     'django.contrib.staticfiles',     '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', )  root_urlconf = 'public.urls'  templates = [     {         'backend': 'django.template.backends.django.djangotemplates',         'dirs': [],         '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 = 'public.wsgi.application'   # database # https://docs.djangoproject.com/en/1.8/ref/settings/#databases  databases = {     'default': {         'engine': 'django.db.backends.mysql',          'name': '',         'user': '',         'password': '',         'host': 'localhost',   # or ip address db hosted on     } }   # 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  media_url = '/media/' media_root = "/home/scrisoft/public_html/bushare/app/static/media/" # static files (css, javascript, images) # https://docs.djangoproject.com/en/1.8/howto/static-files/  static_url = "http://bushare.scrisoft.com/app/static/"  staticfiles_dirs = (     os.path.join(base_dir, "static"),     '/home/scrisoft/public_html/bushare/app/static/', ) 

the address of website http://bushare.scrisoft.com/


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -