ValueError at /urun/roma-kolye/

The 'gorsel' attribute has no file associated with it.
Request Method: GET
Request URL: https://www.rubinojewellery.com/urun/roma-kolye/
Django Version: 2.0.9
Exception Type: ValueError
Exception Value:
The 'gorsel' attribute has no file associated with it.
Exception Location: /home/django-apps/rubino/env_rubino/lib/python3.6/site-packages/django/db/models/fields/files.py in _require_file, line 38
Python Executable: /usr/bin/python3
Python Version: 3.6.8
Python Path:
['/home/django-apps/rubino/myproject',
 '/home/django-apps/rubino/env_rubino/lib/python36.zip',
 '/home/django-apps/rubino/env_rubino/lib/python3.6',
 '/home/django-apps/rubino/env_rubino/lib/python3.6/lib-dynload',
 '/usr/lib/python3.6',
 '/home/django-apps/rubino/env_rubino/lib/python3.6/site-packages']
Server time: Prş, 28 Mar 2024 20:24:13 +0300

Error during template rendering

In template /home/django-apps/rubino/myproject/myproject/templates/base.html, error at line 0

The 'gorsel' attribute has no file associated with it.

1 {% load navigasyon_tags %}
2 {% load sepet_tags %}
3 {% load sistem_araclari %}
4 <!DOCTYPE html>
5 <html class="no-js" lang="zxx">
6
7 <head>
8 <meta charset="utf-8">
9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10 <meta name="viewport" content="width=device-width, initial-scale=1">

Traceback Switch to copy-and-paste view



Request information

USER

AnonymousUser

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
CONTEXT_DOCUMENT_ROOT
'/var/www/html'
CONTEXT_PREFIX
''
DOCUMENT_ROOT
'/var/www/html'
GATEWAY_INTERFACE
'CGI/1.1'
HTTP_ACCEPT
'*/*'
HTTP_HOST
'www.rubinojewellery.com'
HTTP_REFERER
'https://www.rubinojewellery.com/urun/roma-kolye'
HTTP_USER_AGENT
'claudebot'
PATH_INFO
'/urun/roma-kolye/'
PATH_TRANSLATED
'/home/django-apps/rubino/myproject/myproject/wsgi.py/urun/roma-kolye/'
QUERY_STRING
''
REMOTE_ADDR
'18.206.160.129'
REMOTE_PORT
'48694'
REQUEST_METHOD
'GET'
REQUEST_SCHEME
'https'
REQUEST_URI
'/urun/roma-kolye/'
SCRIPT_FILENAME
'/home/django-apps/rubino/myproject/myproject/wsgi.py'
SCRIPT_NAME
''
SERVER_ADDR
'104.248.242.72'
SERVER_ADMIN
'[no address given]'
SERVER_NAME
'www.rubinojewellery.com'
SERVER_PORT
'443'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SIGNATURE
('<address>Apache/2.4.34 (Ubuntu) Server at www.rubinojewellery.com Port '
 '443</address>\n')
SERVER_SOFTWARE
'Apache/2.4.34 (Ubuntu)'
SSL_TLS_SNI
'www.rubinojewellery.com'
apache.version
(2, 4, 33)
mod_wsgi.application_group
'rubinojewellery.com|'
mod_wsgi.callable_object
'application'
mod_wsgi.daemon_connects
'1'
mod_wsgi.daemon_restarts
'0'
mod_wsgi.daemon_start
'1711646652610098'
mod_wsgi.enable_sendfile
'0'
mod_wsgi.handler_script
''
mod_wsgi.ignore_activity
'0'
mod_wsgi.listener_host
''
mod_wsgi.listener_port
'443'
mod_wsgi.path_info
'/urun/roma-kolye/'
mod_wsgi.process_group
'rubino'
mod_wsgi.queue_start
'1711646652609863'
mod_wsgi.request_handler
'wsgi-script'
mod_wsgi.request_id
'RrS1yhtMPaQ'
mod_wsgi.request_start
'1711646652609606'
mod_wsgi.script_name
''
mod_wsgi.script_reloading
'1'
mod_wsgi.script_start
'1711646652610217'
mod_wsgi.thread_id
2
mod_wsgi.thread_requests
45
mod_wsgi.total_requests
91
mod_wsgi.version
(4, 5, 17)
wsgi.errors
<_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'>
wsgi.file_wrapper
''
wsgi.input
<mod_wsgi.Input object at 0x7fbe7a55ad50>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'https'
wsgi.version
(1, 0)

Settings

Using settings module myproject.settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ADMIN_REORDER
({'app': 'auth', 'label': 'Kullanıcı Hesapları'},
 {'app': 'kullanici', 'label': 'Kullanici İşlemleri'},
 {'app': 'musteri', 'label': 'Müşteri'},
 {'app': 'urun', 'label': 'Ürünler'},
 {'app': 'promosyon', 'label': 'Promosyon'},
 {'app': 'kargo', 'label': 'Kargo'},
 {'app': 'sepet', 'label': 'Sepet'},
 {'app': 'ebulten', 'label': 'E-Bülten'},
 {'app': 'navigasyon', 'label': 'Navigasyon'},
 {'app': 'sayfalar', 'label': 'Sayfalar'},
 {'app': 'ayarlar', 'label': 'Ayarlar'},
 {'app': 'auditlog', 'label': 'Loglar'})
ALLOWED_HOSTS
['104.248.242.72',
 'rubinojewellery.com',
 'rubino.tictocsoft.net',
 'www.rubinojewellery.com']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'auth.User'
BASE_DIR
'/home/django-apps/rubino/myproject'
BASE_PATH
'/home/django-apps/rubino/myproject/myproject'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CKEDITOR_CONFIGS
{'default': {'height': 200, 'toolbar': 'full', 'width': 570}}
CKEDITOR_UPLOAD_PATH
'media/ckeditor'
CSRF_COOKIE_AGE
31449600
CSRF_COOKIE_DOMAIN
None
CSRF_COOKIE_HTTPONLY
False
CSRF_COOKIE_NAME
'csrftoken'
CSRF_COOKIE_PATH
'/'
CSRF_COOKIE_SECURE
False
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.postgresql_psycopg2',
             'HOST': '127.0.0.1',
             'NAME': 'rubino_db',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '5432',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'rubino_user'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATETIME_FORMAT
'N j, Y, P'
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',
 '%Y-%m-%d %H:%M:%S.%f',
 '%Y-%m-%d %H:%M',
 '%Y-%m-%d',
 '%m/%d/%Y %H:%M:%S',
 '%m/%d/%Y %H:%M:%S.%f',
 '%m/%d/%Y %H:%M',
 '%m/%d/%Y',
 '%m/%d/%y %H:%M:%S',
 '%m/%d/%y %H:%M:%S.%f',
 '%m/%d/%y %H:%M',
 '%m/%d/%y']
DATE_FORMAT
'N j, Y'
DATE_INPUT_FORMATS
['%Y-%m-%d',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %b %Y',
 '%d %b, %Y',
 '%B %d %Y',
 '%B %d, %Y',
 '%d %B %Y',
 '%d %B, %Y']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_CHARSET
'utf-8'
DEFAULT_CONTENT_TYPE
'text/html'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
None
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
False
FILE_CHARSET
'utf-8'
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_TEMP_DIR
None
FIRST_DAY_OF_WEEK
0
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['suit',
 'ckeditor',
 'suit_ckeditor',
 'bootstrapform',
 'bootstrap3',
 'image_optimizer',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'reset_migrations',
 'django.contrib.sites',
 'django.contrib.sitemaps',
 'ayarlar',
 'ebulten',
 'navigasyon',
 'sayfalar',
 'urun',
 'sepet',
 'musteri',
 'kargo',
 'promosyon',
 'kullanici',
 'auditlog',
 'mptt']
INTERNAL_IPS
[]
LANGUAGES
(('tr', 'Turkish'), ('en', 'English'))
LANGUAGES_BIDI
['he', 'ar', 'fa', 'ur']
LANGUAGE_CODE
'tr-TR'
LANGUAGE_COOKIE_AGE
None
LANGUAGE_COOKIE_DOMAIN
None
LANGUAGE_COOKIE_NAME
'django_language'
LANGUAGE_COOKIE_PATH
'/'
LOCALE_PATHS
[]
LOGGING
{'disable_existing_loggers': True,
 'filters': {'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'}},
 'formatters': {'simple': {'format': '%(levelname)s %(message)s'},
                'verbose': {'format': '%(levelname)s %(asctime)s %(module)s '
                                      '%(process)d %(thread)d %(message)s'}},
 'handlers': {'console': {'class': 'logging.StreamHandler',
                          'filters': ['require_debug_true'],
                          'level': 'INFO'},
              'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
                              'level': 'ERROR'}},
 'loggers': {'django.request': {'handlers': ['mail_admins'],
                                'level': 'ERROR',
                                'propagate': False}},
 'version': 1}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
None
MANAGERS
[]
MEDIA_ROOT
'/home/django-apps/rubino/myproject/myproject/media/'
MEDIA_URL
'/media/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'auditlog.middleware.AuditlogMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.gzip.GZipMiddleware']
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
ODEME
'paytr'
OPTIMIZED_IMAGE_METHOD
'pillow'
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
PREPEND_WWW
False
PROJECT_DIR
'/home/django-apps/rubino/myproject/myproject'
ROOT_URLCONF
'myproject.urls'
SECRET_KEY
'********************'
SECURE_BROWSER_XSS_FILTER
False
SECURE_CONTENT_TYPE_NOSNIFF
False
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
None
SECURE_REDIRECT_EXEMPT
[]
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
False
SERVER_EMAIL
'root@localhost'
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_HTTPONLY
True
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_PATH
'/'
SESSION_COOKIE_SECURE
False
SESSION_ENGINE
'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_FILE_PATH
None
SESSION_SAVE_EVERY_REQUEST
True
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE
'myproject.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SITE_ID
1
SITE_ROOT
'/home/django-apps/rubino/myproject/myproject'
STATICFILES_DIRS
('/home/django-apps/rubino/myproject/myproject/static/',
 '/home/django-apps/rubino/myproject/myproject/media/')
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
'/home/django-apps/rubino/myproject/myproject/static_root'
STATIC_URL
'/static/'
SUIT_CONFIG
{'ADMIN_NAME': 'E TİCARET PAKETİ',
 'LIST_PER_PAGE': 20,
 'MENU': ({'app': 'auth', 'label': 'Kullanıcı Hesapları'},
          {'app': 'kullanici', 'label': 'Kullanici İşlemleri'},
          {'app': 'musteri', 'label': 'Müşteri'},
          {'app': 'urun', 'label': 'Ürünler'},
          {'app': 'promosyon', 'label': 'Promosyon'},
          {'app': 'kargo', 'label': 'Kargo'},
          {'app': 'sepet', 'label': 'Sepet'},
          {'app': 'ebulten', 'label': 'E-Bülten'},
          {'app': 'navigasyon', 'label': 'Navigasyon'},
          {'app': 'sayfalar', 'label': 'Sayfalar'},
          {'app': 'ayarlar', 'label': 'Ayarlar'},
          {'app': 'auditlog', 'label': 'Loglar'}),
 'SHOW_REQUIRED_ASTERISK': True}
TAKSIT
[0, 9]
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['/home/django-apps/rubino/myproject/myproject/templates/'],
  'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.template.context_processors.i18n',
                                     'django.template.context_processors.tz',
                                     'django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages']}}]
TEMPLATE_PATH
'/home/django-apps/rubino/myproject/myproject/templates'
TEST_NON_SERIALIZED_APPS
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR
','
THUMBNAIL_DEBUG
True
TIME_FORMAT
'P'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE
'Europe/Istanbul'
TRANSMETA_DEFAULT_LANGUAGE
'tr'
USE_ETAGS
False
USE_I18N
True
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
USE_TZ
False
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'myproject.wsgi.application'
X_FRAME_OPTIONS
'SAMEORIGIN'
YEAR_MONTH_FORMAT
'F Y'

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.