own.bgbest.net
Open in
urlscan Pro
90.154.229.19
Public Scan
URL:
http://own.bgbest.net:8000/?em=u*****.l****@s**.se
Submission: On June 27 via api from US — Scanned from DE
Submission: On June 27 via api from US — Scanned from DE
Form analysis
1 forms found in the DOMName: pasteform — POST https://dpaste.com/
<form action="https://dpaste.com/" name="pasteform" id="pasteform" method="post">
<div id="pastebinTraceback" class="pastebin" style="display: none;">
<input type="hidden" name="language" value="PythonConsole">
<input type="hidden" name="title" value="OperationalError at /">
<input type="hidden" name="source" value="Django Dpaste Agent">
<input type="hidden" name="poster" value="Django">
<textarea name="content" id="traceback_area" cols="140" rows="25">Environment:
Request Method: GET
Request URL: http://own.bgbest.net:8000/?em=u*****.l****@s**.se
Django Version: 3.2.25
Python Version: 3.7.3
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'netf']
Installed 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']
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 200, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 209, in get_new_connection
conn = Database.connect(**conn_params)
The above exception (unable to open database file) was the direct cause of the following exception:
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/root/gy/netf/views.py", line 74, in home
<source code not available>
File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 412, in count
return self.query.get_count(using=self.db)
File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py", line 528, in get_count
number = obj.get_aggregation(using, ['__count'])['__count']
File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py", line 513, in get_aggregation
result = compiler.execute_sql(SINGLE)
File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/compiler.py", line 1173, in execute_sql
cursor = self.connection.cursor()
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 259, in cursor
return self._cursor()
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 235, in _cursor
self.ensure_connection()
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/usr/local/lib/python3.7/dist-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 200, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 209, in get_new_connection
conn = Database.connect(**conn_params)
Exception Type: OperationalError at /
Exception Value: unable to open database file
</textarea>
<br><br>
<input type="submit" value="Share this traceback on a public website">
</div>
</form>
Text Content
OPERATIONALERROR AT / unable to open database file Request Method: GET Request URL: http://own.bgbest.net:8000/?em=u*****.l****@s**.se Django Version: 3.2.25 Exception Type: OperationalError Exception Value: unable to open database file Exception Location: /usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py, line 209, in get_new_connection Python Executable: /usr/bin/python3 Python Version: 3.7.3 Python Path: ['/root/gy', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages'] Server time: Thu, 27 Jun 2024 21:22:45 +0000 TRACEBACK SWITCH TO COPY-AND-PASTE VIEW * /usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py, line 219, in ensure_connection 212. ) 213. 214. @async_unsafe 215. def ensure_connection(self): 216. """Guarantee that a connection to the database is established.""" 217. if self.connection is None: 218. with self.wrap_database_errors: 219. self.connect() … 220. 221. # ##### Backend-specific wrappers for PEP-249 connection methods ##### 222. 223. def _prepare_cursor(self, cursor): 224. """ 225. Validate the connection is usable and perform database cursor wrapping. ▶ Local vars Variable Value self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * /usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py, line 33, in inner 26. event_loop = get_running_loop() 27. except RuntimeError: 28. pass 29. else: 30. if PY37 or event_loop.is_running(): 31. raise SynchronousOnlyOperation(message) 32. # Pass onwards. 33. return func(*args, **kwargs) … 34. return inner 35. # If the message is actually a function, then be a no-arguments decorator. 36. if callable(message): 37. func = message 38. message = 'You cannot call this from an async context - use a thread or sync_to_async.' 39. return decorator(func) ▶ Local vars Variable Value args (<django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0>,) func <function BaseDatabaseWrapper.connect at 0x755f4420> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' * /usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py, line 200, in connect 193. # Reset parameters defining when to close the connection 194. max_age = self.settings_dict['CONN_MAX_AGE'] 195. self.close_at = None if max_age is None else time.monotonic() + max_age 196. self.closed_in_transaction = False 197. self.errors_occurred = False 198. # Establish the connection 199. conn_params = self.get_connection_params() 200. self.connection = self.get_new_connection(conn_params) … 201. self.set_autocommit(self.settings_dict['AUTOCOMMIT']) 202. self.init_connection_state() 203. connection_created.send(sender=self.__class__, connection=self) 204. 205. self.run_on_commit = [] 206. ▶ Local vars Variable Value conn_params {'check_same_thread': False, 'database': '/root/gy/db.sqlite3', 'detect_types': 3, 'uri': True} max_age 0 self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * /usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py, line 33, in inner 26. event_loop = get_running_loop() 27. except RuntimeError: 28. pass 29. else: 30. if PY37 or event_loop.is_running(): 31. raise SynchronousOnlyOperation(message) 32. # Pass onwards. 33. return func(*args, **kwargs) … 34. return inner 35. # If the message is actually a function, then be a no-arguments decorator. 36. if callable(message): 37. func = message 38. message = 'You cannot call this from an async context - use a thread or sync_to_async.' 39. return decorator(func) ▶ Local vars Variable Value args (<django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0>, {'check_same_thread': False, 'database': '/root/gy/db.sqlite3', 'detect_types': 3, 'uri': True}) func <function DatabaseWrapper.get_new_connection at 0x754b94b0> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' * /usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py, line 209, in get_new_connection 202. RuntimeWarning 203. ) 204. kwargs.update({'check_same_thread': False, 'uri': True}) 205. return kwargs 206. 207. @async_unsafe 208. def get_new_connection(self, conn_params): 209. conn = Database.connect(**conn_params) … 210. if PY38: 211. create_deterministic_function = functools.partial( 212. conn.create_function, 213. deterministic=True, 214. ) 215. else: ▶ Local vars Variable Value conn_params {'check_same_thread': False, 'database': '/root/gy/db.sqlite3', 'detect_types': 3, 'uri': True} self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * THE ABOVE EXCEPTION (UNABLE TO OPEN DATABASE FILE) WAS THE DIRECT CAUSE OF THE FOLLOWING EXCEPTION: * /usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py, line 47, in inner 40. response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc) 41. return response 42. return inner 43. else: 44. @wraps(get_response) 45. def inner(request): 46. try: 47. response = get_response(request) … 48. except Exception as exc: 49. response = response_for_exception(request, exc) 50. return response 51. return inner 52. 53. ▶ Local vars Variable Value exc OperationalError('unable to open database file') get_response <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x759d3c70>> request <WSGIRequest: GET '/?em=u*****.l****@s**.se'> * /usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py, line 181, in _get_response 174. 175. if response is None: 176. wrapped_callback = self.make_view_atomic(callback) 177. # If it is an asynchronous view, run it in a subthread. 178. if asyncio.iscoroutinefunction(wrapped_callback): 179. wrapped_callback = async_to_sync(wrapped_callback) 180. try: 181. response = wrapped_callback(request, *callback_args, **callback_kwargs) … 182. except Exception as e: 183. response = self.process_exception_by_middleware(e, request) 184. if response is None: 185. raise 186. 187. # Complain if the view returned None (a common error). ▶ Local vars Variable Value callback <function home at 0x745f9c00> callback_args () callback_kwargs {} middleware_method <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7420e910>> request <WSGIRequest: GET '/?em=u*****.l****@s**.se'> response None self <django.core.handlers.wsgi.WSGIHandler object at 0x759d3c70> wrapped_callback <function home at 0x745f9c00> * /root/gy/netf/views.py, line 74, in home 74. <source code not available> … ▶ Local vars Variable Value country 'DE' ema 'u*****.l****@s**.se' ip '80.255.7.105' request <WSGIRequest: GET '/?em=u*****.l****@s**.se'> unique_identifier None user_agent ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like ' 'Gecko) Chrome/126.0.0.0 Safari/537.36') * /usr/local/lib/python3.7/dist-packages/django/db/models/query.py, line 412, in count 405. 406. If the QuerySet is already fully cached, return the length of the 407. cached results set to avoid multiple SELECT COUNT(*) calls. 408. """ 409. if self._result_cache is not None: 410. return len(self._result_cache) 411. 412. return self.query.get_count(using=self.db) … 413. 414. def get(self, *args, **kwargs): 415. """ 416. Perform the query and return a single object matching the given 417. keyword arguments. 418. """ ▶ Local vars Variable Value self Error in formatting: OperationalError: unable to open database file * /usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py, line 528, in get_count 521. 522. def get_count(self, using): 523. """ 524. Perform a COUNT() query using the current filter constraints. 525. """ 526. obj = self.clone() 527. obj.add_annotation(Count('*'), alias='__count', is_summary=True) 528. number = obj.get_aggregation(using, ['__count'])['__count'] … 529. if number is None: 530. number = 0 531. return number 532. 533. def has_filters(self): 534. return self.where ▶ Local vars Variable Value obj <django.db.models.sql.query.Query object at 0x72578110> self <django.db.models.sql.query.Query object at 0x72578fb0> using 'default' * /usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py, line 513, in get_aggregation 506. self.extra = {} 507. 508. outer_query.clear_ordering(True) 509. outer_query.clear_limits() 510. outer_query.select_for_update = False 511. outer_query.select_related = False 512. compiler = outer_query.get_compiler(using) 513. result = compiler.execute_sql(SINGLE) … 514. if result is None: 515. result = [None] * len(outer_query.annotation_select) 516. 517. converters = compiler.get_converters(outer_query.annotation_select.values()) 518. result = next(compiler.apply_converters((result,), converters)) 519. ▶ Local vars Variable Value added_aggregate_names ['__count'] compiler <django.db.models.sql.compiler.SQLCompiler object at 0x725780d0> existing_annotations [] outer_query <django.db.models.sql.query.Query object at 0x72578110> self <django.db.models.sql.query.Query object at 0x72578110> using 'default' * /usr/local/lib/python3.7/dist-packages/django/db/models/sql/compiler.py, line 1173, in execute_sql 1166. if result_type == MULTI: 1167. return iter([]) 1168. else: 1169. return 1170. if chunked_fetch: 1171. cursor = self.connection.chunked_cursor() 1172. else: 1173. cursor = self.connection.cursor() … 1174. try: 1175. cursor.execute(sql, params) 1176. except Exception: 1177. # Might fail for server-side cursors (e.g. connection closed) 1178. cursor.close() 1179. raise ▶ Local vars Variable Value chunk_size 100 chunked_fetch False params ('80.255.7.105',) result_type 'single' self <django.db.models.sql.compiler.SQLCompiler object at 0x725780d0> sql ('SELECT COUNT(*) AS "__count" FROM "netf_visit" WHERE ' '"netf_visit"."ip_address" = %s') * /usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py, line 33, in inner 26. event_loop = get_running_loop() 27. except RuntimeError: 28. pass 29. else: 30. if PY37 or event_loop.is_running(): 31. raise SynchronousOnlyOperation(message) 32. # Pass onwards. 33. return func(*args, **kwargs) … 34. return inner 35. # If the message is actually a function, then be a no-arguments decorator. 36. if callable(message): 37. func = message 38. message = 'You cannot call this from an async context - use a thread or sync_to_async.' 39. return decorator(func) ▶ Local vars Variable Value args (<django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0>,) func <function BaseDatabaseWrapper.cursor at 0x755f46f0> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' * /usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py, line 259, in cursor 252. return self.connection.close() 253. 254. # ##### Generic wrappers for PEP-249 connection methods ##### 255. 256. @async_unsafe 257. def cursor(self): 258. """Create a cursor, opening a connection if necessary.""" 259. return self._cursor() … 260. 261. @async_unsafe 262. def commit(self): 263. """Commit a transaction and reset the dirty flag.""" 264. self.validate_thread_sharing() 265. self.validate_no_atomic_block() ▶ Local vars Variable Value self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * /usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py, line 235, in _cursor 228. if self.queries_logged: 229. wrapped_cursor = self.make_debug_cursor(cursor) 230. else: 231. wrapped_cursor = self.make_cursor(cursor) 232. return wrapped_cursor 233. 234. def _cursor(self, name=None): 235. self.ensure_connection() … 236. with self.wrap_database_errors: 237. return self._prepare_cursor(self.create_cursor(name)) 238. 239. def _commit(self): 240. if self.connection is not None: 241. with self.wrap_database_errors: ▶ Local vars Variable Value name None self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * /usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py, line 33, in inner 26. event_loop = get_running_loop() 27. except RuntimeError: 28. pass 29. else: 30. if PY37 or event_loop.is_running(): 31. raise SynchronousOnlyOperation(message) 32. # Pass onwards. 33. return func(*args, **kwargs) … 34. return inner 35. # If the message is actually a function, then be a no-arguments decorator. 36. if callable(message): 37. func = message 38. message = 'You cannot call this from an async context - use a thread or sync_to_async.' 39. return decorator(func) ▶ Local vars Variable Value args (<django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0>,) func <function BaseDatabaseWrapper.ensure_connection at 0x755f44f8> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' * /usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py, line 219, in ensure_connection 212. ) 213. 214. @async_unsafe 215. def ensure_connection(self): 216. """Guarantee that a connection to the database is established.""" 217. if self.connection is None: 218. with self.wrap_database_errors: 219. self.connect() … 220. 221. # ##### Backend-specific wrappers for PEP-249 connection methods ##### 222. 223. def _prepare_cursor(self, cursor): 224. """ 225. Validate the connection is usable and perform database cursor wrapping. ▶ Local vars Variable Value self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * /usr/local/lib/python3.7/dist-packages/django/db/utils.py, line 90, in __exit__ 83. db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__) 84. if issubclass(exc_type, db_exc_type): 85. dj_exc_value = dj_exc_type(*exc_value.args) 86. # Only set the 'errors_occurred' flag for errors that may make 87. # the connection unusable. 88. if dj_exc_type not in (DataError, IntegrityError): 89. self.wrapper.errors_occurred = True 90. raise dj_exc_value.with_traceback(traceback) from exc_value … 91. 92. def __call__(self, func): 93. # Note that we are intentionally not using @wraps here for performance 94. # reasons. Refs #21109. 95. def inner(*args, **kwargs): 96. with self: ▶ Local vars Variable Value db_exc_type <class 'sqlite3.OperationalError'> dj_exc_type <class 'django.db.utils.OperationalError'> dj_exc_value OperationalError('unable to open database file') exc_type <class 'sqlite3.OperationalError'> exc_value OperationalError('unable to open database file') self <django.db.utils.DatabaseErrorWrapper object at 0x725784f0> traceback <traceback object at 0x737904e0> * /usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py, line 219, in ensure_connection 212. ) 213. 214. @async_unsafe 215. def ensure_connection(self): 216. """Guarantee that a connection to the database is established.""" 217. if self.connection is None: 218. with self.wrap_database_errors: 219. self.connect() … 220. 221. # ##### Backend-specific wrappers for PEP-249 connection methods ##### 222. 223. def _prepare_cursor(self, cursor): 224. """ 225. Validate the connection is usable and perform database cursor wrapping. ▶ Local vars Variable Value self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * /usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py, line 33, in inner 26. event_loop = get_running_loop() 27. except RuntimeError: 28. pass 29. else: 30. if PY37 or event_loop.is_running(): 31. raise SynchronousOnlyOperation(message) 32. # Pass onwards. 33. return func(*args, **kwargs) … 34. return inner 35. # If the message is actually a function, then be a no-arguments decorator. 36. if callable(message): 37. func = message 38. message = 'You cannot call this from an async context - use a thread or sync_to_async.' 39. return decorator(func) ▶ Local vars Variable Value args (<django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0>,) func <function BaseDatabaseWrapper.connect at 0x755f4420> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' * /usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py, line 200, in connect 193. # Reset parameters defining when to close the connection 194. max_age = self.settings_dict['CONN_MAX_AGE'] 195. self.close_at = None if max_age is None else time.monotonic() + max_age 196. self.closed_in_transaction = False 197. self.errors_occurred = False 198. # Establish the connection 199. conn_params = self.get_connection_params() 200. self.connection = self.get_new_connection(conn_params) … 201. self.set_autocommit(self.settings_dict['AUTOCOMMIT']) 202. self.init_connection_state() 203. connection_created.send(sender=self.__class__, connection=self) 204. 205. self.run_on_commit = [] 206. ▶ Local vars Variable Value conn_params {'check_same_thread': False, 'database': '/root/gy/db.sqlite3', 'detect_types': 3, 'uri': True} max_age 0 self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> * /usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py, line 33, in inner 26. event_loop = get_running_loop() 27. except RuntimeError: 28. pass 29. else: 30. if PY37 or event_loop.is_running(): 31. raise SynchronousOnlyOperation(message) 32. # Pass onwards. 33. return func(*args, **kwargs) … 34. return inner 35. # If the message is actually a function, then be a no-arguments decorator. 36. if callable(message): 37. func = message 38. message = 'You cannot call this from an async context - use a thread or sync_to_async.' 39. return decorator(func) ▶ Local vars Variable Value args (<django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0>, {'check_same_thread': False, 'database': '/root/gy/db.sqlite3', 'detect_types': 3, 'uri': True}) func <function DatabaseWrapper.get_new_connection at 0x754b94b0> kwargs {} message 'You cannot call this from an async context - use a thread or sync_to_async.' * /usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py, line 209, in get_new_connection 202. RuntimeWarning 203. ) 204. kwargs.update({'check_same_thread': False, 'uri': True}) 205. return kwargs 206. 207. @async_unsafe 208. def get_new_connection(self, conn_params): 209. conn = Database.connect(**conn_params) … 210. if PY38: 211. create_deterministic_function = functools.partial( 212. conn.create_function, 213. deterministic=True, 214. ) 215. else: ▶ Local vars Variable Value conn_params {'check_same_thread': False, 'database': '/root/gy/db.sqlite3', 'detect_types': 3, 'uri': True} self <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x725788b0> Environment: Request Method: GET Request URL: http://own.bgbest.net:8000/?em=u*****.l****@s**.se Django Version: 3.2.25 Python Version: 3.7.3 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'netf'] Installed 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'] Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 219, in ensure_connection self.connect() File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner return func(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 200, in connect self.connection = self.get_new_connection(conn_params) File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner return func(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 209, in get_new_connection conn = Database.connect(**conn_params) The above exception (unable to open database file) was the direct cause of the following exception: File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/root/gy/netf/views.py", line 74, in home <source code not available> File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 412, in count return self.query.get_count(using=self.db) File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py", line 528, in get_count number = obj.get_aggregation(using, ['__count'])['__count'] File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py", line 513, in get_aggregation result = compiler.execute_sql(SINGLE) File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/compiler.py", line 1173, in execute_sql cursor = self.connection.cursor() File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner return func(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 259, in cursor return self._cursor() File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 235, in _cursor self.ensure_connection() File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner return func(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 219, in ensure_connection self.connect() File "/usr/local/lib/python3.7/dist-packages/django/db/utils.py", line 90, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 219, in ensure_connection self.connect() File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner return func(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 200, in connect self.connection = self.get_new_connection(conn_params) File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 33, in inner return func(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/django/db/backends/sqlite3/base.py", line 209, in get_new_connection conn = Database.connect(**conn_params) Exception Type: OperationalError at / Exception Value: unable to open database file REQUEST INFORMATION USER AnonymousUser GET Variable Value em 'u*****.l****@s**.se' POST No POST data FILES No FILES data COOKIES No cookie data META Variable Value CONTENT_LENGTH '' CONTENT_TYPE 'text/plain' DJANGO_SETTINGS_MODULE 'home.settings' GATEWAY_INTERFACE 'CGI/1.1' HOME '/root' HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' HTTP_ACCEPT_ENCODING 'gzip, deflate' HTTP_ACCEPT_LANGUAGE 'de-DE,de;q=0.9;q=0.9' HTTP_CONNECTION 'keep-alive' HTTP_HOST 'own.bgbest.net:8000' HTTP_UPGRADE_INSECURE_REQUESTS '1' HTTP_USER_AGENT ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like ' 'Gecko) Chrome/126.0.0.0 Safari/537.36') LANG 'en_GB.UTF-8' LESSCLOSE '/usr/bin/lesspipe %s %s' LESSOPEN '| /usr/bin/lesspipe %s' LOGNAME 'root' LS_COLORS 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:' MAIL '/var/mail/root' NO_AT_BRIDGE '1' OLDPWD '/root' PATH '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' PATH_INFO '/' PWD '/root/gy' QUERY_STRING 'em=u*****.l****@s**.se' REMOTE_ADDR '80.255.7.105' REMOTE_HOST '' REQUEST_METHOD 'GET' RUN_MAIN 'true' SCRIPT_NAME '' SERVER_NAME 'raspberrypi' SERVER_PORT '8000' SERVER_PROTOCOL 'HTTP/1.1' SERVER_SOFTWARE 'WSGIServer/0.2' SHELL '/bin/bash' SHLVL '2' SSH_CLIENT '105.108.103.121 18773 22' SSH_CONNECTION '105.108.103.121 18773 10.10.10.2 22' SSH_TTY '/dev/pts/25' STY '1006.pts-25.raspberrypi' TERM 'screen' TERMCAP ('SC|screen|VT 100/ANSI X3.64 virtual terminal:\\\n' '\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n' '\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n' '\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n' '\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n' '\t:li#34:co#100:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n' '\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:\\\n' '\t:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:\\\n' '\t:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:\\\n' '\t:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:\\\n' '\t:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mh=\\E[2m:mr=\\E[7m:\\\n' '\t:me=\\E[m:ms:\\\n' '\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n' '\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n' '\t' ':ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n' '\t:po=\\E[5i:pf=\\E[4i:Km=\\E[M:k0=\\E[10~:k1=\\EOP:k2=\\EOQ:\\\n' '\t:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:k7=\\E[18~:\\\n' '\t:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:F2=\\E[24~:\\\n' '\t:F3=\\E[1;2P:F4=\\E[1;2Q:F5=\\E[1;2R:F6=\\E[1;2S:\\\n' '\t:F7=\\E[15;2~:F8=\\E[17;2~:F9=\\E[18;2~:FA=\\E[19;2~:\\\n' '\t:FB=\\E[20;2~:FC=\\E[21;2~:FD=\\E[23;2~:FE=\\E[24;2~:kb=\x7f:\\\n' '\t:K2=\\EOE:kB=\\E[Z:kF=\\E[1;2B:kR=\\E[1;2A:*4=\\E[3;2~:\\\n' '\t:*7=\\E[1;2F:#2=\\E[1;2H:#3=\\E[2;2~:#4=\\E[1;2D:%c=\\E[6;2~:\\\n' '\t:%e=\\E[5;2~:%i=\\E[1;2C:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:\\\n' '\t:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:\\\n' '\t:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:') TEXTDOMAIN 'Linux-PAM' TZ 'UTC' USER 'root' WINDOW '0' XDG_RUNTIME_DIR '/run/user/0' XDG_SESSION_CLASS 'user' XDG_SESSION_ID '424916' XDG_SESSION_TYPE 'tty' _ '/usr/bin/python3' wsgi.errors <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> wsgi.file_wrapper <class 'wsgiref.util.FileWrapper'> wsgi.input <django.core.handlers.wsgi.LimitedStream object at 0x741ed050> wsgi.multiprocess False wsgi.multithread True wsgi.run_once False wsgi.url_scheme 'http' wsgi.version (1, 0) SETTINGS USING SETTINGS MODULE HOME.SETTINGS Setting Value ABSOLUTE_URL_OVERRIDES {} ADMINS [] ALLOWED_HOSTS ['rayocrm.com', 'own.bgbest.net', 'cloud.bgbest.net', '78c2a22ff589d6a1d6ac9252ecbb92cd.serveo.net'] APPEND_SLASH True AUTHENTICATION_BACKENDS ['django.contrib.auth.backends.ModelBackend'] AUTH_PASSWORD_VALIDATORS '********************' AUTH_USER_MODEL 'auth.User' BASE_DIR '/root/gy' CACHES {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} CACHE_MIDDLEWARE_ALIAS 'default' CACHE_MIDDLEWARE_KEY_PREFIX '********************' CACHE_MIDDLEWARE_SECONDS 600 CSRF_COOKIE_AGE 31449600 CSRF_COOKIE_DOMAIN None CSRF_COOKIE_HTTPONLY False CSRF_COOKIE_NAME 'csrftoken' CSRF_COOKIE_PATH '/' CSRF_COOKIE_SAMESITE 'Lax' 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.sqlite3', 'HOST': '', 'NAME': '/root/gy/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} DATABASE_ROUTERS [] DATA_UPLOAD_MAX_MEMORY_SIZE 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS 1000 DATA_UPLOAD_MAX_NUMBER_FILES 100 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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] 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_AUTO_FIELD 'django.db.models.BigAutoField' DEFAULT_CHARSET 'utf-8' DEFAULT_EXCEPTION_REPORTER 'django.views.debug.ExceptionReporter' DEFAULT_EXCEPTION_REPORTER_FILTER 'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL 'webmaster@localhost' DEFAULT_HASHING_ALGORITHM 'sha256' 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_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 420 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 ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'netf'] INTERNAL_IPS [] LANGUAGES [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] LANGUAGES_BIDI ['he', 'ar', 'ar-dz', 'fa', 'ur'] LANGUAGE_CODE 'en-us' LANGUAGE_COOKIE_AGE None LANGUAGE_COOKIE_DOMAIN None LANGUAGE_COOKIE_HTTPONLY False LANGUAGE_COOKIE_NAME 'django_language' LANGUAGE_COOKIE_PATH '/' LANGUAGE_COOKIE_SAMESITE None LANGUAGE_COOKIE_SECURE False LOCALE_PATHS [] LOGGING {} LOGGING_CONFIG 'logging.config.dictConfig' LOGIN_REDIRECT_URL '/accounts/profile/' LOGIN_URL '/accounts/login/' LOGOUT_REDIRECT_URL None MANAGERS [] MEDIA_ROOT '' MEDIA_URL '/' 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'] MIGRATION_MODULES {} MONTH_DAY_FORMAT 'F j' NUMBER_GROUPING 0 PASSWORD_HASHERS '********************' PASSWORD_RESET_TIMEOUT '********************' PASSWORD_RESET_TIMEOUT_DAYS '********************' PREPEND_WWW False ROOT_URLCONF 'home.urls' SECRET_KEY '********************' SECURE_BROWSER_XSS_FILTER False SECURE_CONTENT_TYPE_NOSNIFF True SECURE_HSTS_INCLUDE_SUBDOMAINS False SECURE_HSTS_PRELOAD False SECURE_HSTS_SECONDS 0 SECURE_PROXY_SSL_HEADER None SECURE_REDIRECT_EXEMPT [] SECURE_REFERRER_POLICY 'same-origin' 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_SAMESITE 'Lax' 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 False SESSION_SERIALIZER 'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE 'home.settings' SHORT_DATETIME_FORMAT 'm/d/Y P' SHORT_DATE_FORMAT 'm/d/Y' SIGNING_BACKEND 'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS [] STATICFILES_DIRS ('/root/gy/static',) STATICFILES_FINDERS ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE 'django.contrib.staticfiles.storage.StaticFilesStorage' STATIC_ROOT '/root/gy/staticfiles' STATIC_URL '/static/' TEMPLATES [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/netf/templates/'], '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']}}] TEST_NON_SERIALIZED_APPS [] TEST_RUNNER 'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR ',' TIME_FORMAT 'P' TIME_INPUT_FORMATS ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] TIME_ZONE 'UTC' USE_I18N True USE_L10N True USE_THOUSAND_SEPARATOR False USE_TZ True USE_X_FORWARDED_HOST False USE_X_FORWARDED_PORT False WSGI_APPLICATION 'home.wsgi.application' X_FRAME_OPTIONS 'DENY' 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.