FieldError at /api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/

Cannot resolve keyword 'created_at' into field. Choices are: downloaded_at, entry, entry_id, id, user, user_id
Request Method: GET
Request URL: https://netnest.org/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/
Django Version: 5.2.8
Exception Type: FieldError
Exception Value:
Cannot resolve keyword 'created_at' into field. Choices are: downloaded_at, entry, entry_id, id, user, user_id
Exception Location: /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/sql/query.py, line 1806, in names_to_path
Raised during: storage.views.FileDownloadTimeSeriesView
Python Executable: /var/www/development/backend/venv/bin/python3
Python Version: 3.12.3
Python Path:
['/var/www/development/backend',
 '/var/www/development/backend',
 '/var/www/development/backend/venv/bin',
 '/usr/lib/python312.zip',
 '/usr/lib/python3.12',
 '/usr/lib/python3.12/lib-dynload',
 '/var/www/development/backend/venv/lib/python3.12/site-packages']
Server time: Sat, 18 Apr 2026 08:14:49 +0000

Traceback Switch to copy-and-paste view

  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/core/handlers/exception.py, line 55, in inner
    1.         return inner
    2.     else:
    3.         @wraps(get_response)
    4.         def inner(request):
    5.             try:
    1.                 response = get_response(request)
                                     ^^^^^^^^^^^^^^^^^^^^^
    1.             except Exception as exc:
    2.                 response = response_for_exception(request, exc)
    3.             return response
    4.         return inner
    Local vars
    Variable Value
    exc
    FieldError("Cannot resolve keyword 'created_at' into field. Choices are: downloaded_at, entry, entry_id, id, user, user_id")
    get_response
    <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x78ffeb4e7ce0>>
    request
    <WSGIRequest: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/core/handlers/base.py, line 197, in _get_response
    1.         if response is None:
    2.             wrapped_callback = self.make_view_atomic(callback)
    3.             # If it is an asynchronous view, run it in a subthread.
    4.             if iscoroutinefunction(wrapped_callback):
    5.                 wrapped_callback = async_to_sync(wrapped_callback)
    6.             try:
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.             except Exception as e:
    2.                 response = self.process_exception_by_middleware(e, request)
    3.                 if response is None:
    4.                     raise
    5.         # Complain if the view returned None (a common error).
    Local vars
    Variable Value
    callback
    <function View.as_view.<locals>.view at 0x78ffe794c900>
    callback_args
    ()
    callback_kwargs
    {'entry_id': UUID('354a22f1-6eb7-450d-bad0-2d8a70b985fc')}
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>>
    request
    <WSGIRequest: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x78ffeb4e7ce0>
    wrapped_callback
    <function View.as_view.<locals>.view at 0x78ffe794c900>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/views/decorators/csrf.py, line 65, in _view_wrapper
    1.         async def _view_wrapper(request, *args, **kwargs):
    2.             return await view_func(request, *args, **kwargs)
    3.     else:
    4.         def _view_wrapper(request, *args, **kwargs):
    1.             return view_func(request, *args, **kwargs)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.     _view_wrapper.csrf_exempt = True
    2.     return wraps(view_func)(_view_wrapper)
    Local vars
    Variable Value
    args
    ()
    kwargs
    {'entry_id': UUID('354a22f1-6eb7-450d-bad0-2d8a70b985fc')}
    request
    <WSGIRequest: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
    view_func
    <function View.as_view.<locals>.view at 0x78ffe7a2c680>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/views/generic/base.py, line 105, in view
    1.             self = cls(**initkwargs)
    2.             self.setup(request, *args, **kwargs)
    3.             if not hasattr(self, "request"):
    4.                 raise AttributeError(
    5.                     "%s instance has no 'request' attribute. Did you override "
    6.                     "setup() and forget to call super()?" % cls.__name__
    7.                 )
    1.             return self.dispatch(request, *args, **kwargs)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.         view.view_class = cls
    2.         view.view_initkwargs = initkwargs
    3.         # __name__ and __qualname__ are intentionally left unchanged as
    4.         # view_class should be used to robustly determine the name of the view
    Local vars
    Variable Value
    args
    ()
    cls
    <class 'storage.views.FileDownloadTimeSeriesView'>
    initkwargs
    {}
    kwargs
    {'entry_id': UUID('354a22f1-6eb7-450d-bad0-2d8a70b985fc')}
    request
    <WSGIRequest: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
    self
    <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/rest_framework/views.py, line 515, in dispatch
    1.                                   self.http_method_not_allowed)
    2.             else:
    3.                 handler = self.http_method_not_allowed
    4.             response = handler(request, *args, **kwargs)
    5.         except Exception as exc:
    1.             response = self.handle_exception(exc)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.         self.response = self.finalize_response(request, response, *args, **kwargs)
    2.         return self.response
    3.     def options(self, request, *args, **kwargs):
    4.         """
    Local vars
    Variable Value
    args
    ()
    handler
    <bound method FileDownloadTimeSeriesView.get of <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>>
    kwargs
    {'entry_id': UUID('354a22f1-6eb7-450d-bad0-2d8a70b985fc')}
    request
    <rest_framework.request.Request: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
    self
    <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/rest_framework/views.py, line 475, in handle_exception
    1.         exception_handler = self.get_exception_handler()
    2.         context = self.get_exception_handler_context()
    3.         response = exception_handler(exc, context)
    4.         if response is None:
    1.             self.raise_uncaught_exception(exc)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.         response.exception = True
    2.         return response
    3.     def raise_uncaught_exception(self, exc):
    4.         if settings.DEBUG:
    Local vars
    Variable Value
    context
    {'args': (),
     'kwargs': {'entry_id': UUID('354a22f1-6eb7-450d-bad0-2d8a70b985fc')},
     'request': <rest_framework.request.Request: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>,
     'view': <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>}
    exc
    FieldError("Cannot resolve keyword 'created_at' into field. Choices are: downloaded_at, entry, entry_id, id, user, user_id")
    exception_handler
    <function custom_exception_handler at 0x78ffe68594e0>
    response
    None
    self
    <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/rest_framework/views.py, line 486, in raise_uncaught_exception
    1.     def raise_uncaught_exception(self, exc):
    2.         if settings.DEBUG:
    3.             request = self.request
    4.             renderer_format = getattr(request.accepted_renderer, 'format')
    5.             use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
    6.             request.force_plaintext_errors(use_plaintext_traceback)
    1.         raise exc
                   ^^^^^^^^^
    1.     # Note: Views are made CSRF exempt from within `as_view` as to prevent
    2.     # accidental removal of this exemption in cases where `dispatch` needs to
    3.     # be overridden.
    4.     def dispatch(self, request, *args, **kwargs):
    5.         """
    Local vars
    Variable Value
    exc
    FieldError("Cannot resolve keyword 'created_at' into field. Choices are: downloaded_at, entry, entry_id, id, user, user_id")
    renderer_format
    'json'
    request
    <rest_framework.request.Request: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
    self
    <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>
    use_plaintext_traceback
    True
  • /var/www/development/backend/venv/lib/python3.12/site-packages/rest_framework/views.py, line 512, in dispatch
    1.             # Get the appropriate handler method
    2.             if request.method.lower() in self.http_method_names:
    3.                 handler = getattr(self, request.method.lower(),
    4.                                   self.http_method_not_allowed)
    5.             else:
    6.                 handler = self.http_method_not_allowed
    1.             response = handler(request, *args, **kwargs)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.         except Exception as exc:
    2.             response = self.handle_exception(exc)
    3.         self.response = self.finalize_response(request, response, *args, **kwargs)
    4.         return self.response
    Local vars
    Variable Value
    args
    ()
    handler
    <bound method FileDownloadTimeSeriesView.get of <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>>
    kwargs
    {'entry_id': UUID('354a22f1-6eb7-450d-bad0-2d8a70b985fc')}
    request
    <rest_framework.request.Request: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
    self
    <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>
  • /var/www/development/backend/storage/views.py, line 4639, in get
    1.             time_bucket = TruncHour("created_at")
    2.         elif granularity == "month":
    3.             time_bucket = TruncMonth("created_at")
    4.         else:
    5.             time_bucket = TruncDay("created_at")
    6.         stats = (
    1.             qs.annotate(ts=time_bucket)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.               .values("ts")
    2.               .annotate(downloads=Count("id"))
    3.               .order_by("ts")
    4.         )
    5.         data = {
    Local vars
    Variable Value
    end
    None
    entry_id
    UUID('354a22f1-6eb7-450d-bad0-2d8a70b985fc')
    granularity
    'day'
    qs
    <QuerySet []>
    request
    <rest_framework.request.Request: GET '/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'>
    self
    <storage.views.FileDownloadTimeSeriesView object at 0x78ffe687e2d0>
    start
    None
    time_bucket
    TruncDay(F(created_at))
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/query.py, line 1654, in annotate
    1.     def annotate(self, *args, **kwargs):
    2.         """
    3.         Return a query set in which the returned objects have been annotated
    4.         with extra data or aggregations.
    5.         """
    6.         self._not_support_combined_queries("annotate")
    1.         return self._annotate(args, kwargs, select=True)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.     def alias(self, *args, **kwargs):
    2.         """
    3.         Return a query set with added aliases for extra data or aggregations.
    4.         """
    5.         self._not_support_combined_queries("alias")
    Local vars
    Variable Value
    args
    ()
    kwargs
    {'ts': TruncDay(F(created_at))}
    self
    <QuerySet []>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/query.py, line 1706, in _annotate
    1.                 raise ValueError(
    2.                     "The annotation '%s' conflicts with a field on "
    3.                     "the model." % alias
    4.                 )
    5.             if isinstance(annotation, FilteredRelation):
    6.                 clone.query.add_filtered_relation(annotation, alias)
    7.             else:
    1.                 clone.query.add_annotation(
                            ^
    1.                     annotation,
    2.                     alias,
    3.                     select=select,
    4.                 )
    5.         for alias, annotation in clone.query.annotations.items():
    6.             if alias in annotations and annotation.contains_aggregate:
    Local vars
    Variable Value
    alias
    'ts'
    annotation
    TruncDay(F(created_at))
    annotations
    {'ts': TruncDay(F(created_at))}
    args
    ()
    clone
    <QuerySet []>
    kwargs
    {'ts': TruncDay(F(created_at))}
    names
    {'id', 'user', 'user_id', 'downloaded_at', 'entry_id', 'entry'}
    select
    True
    self
    <QuerySet []>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/sql/query.py, line 1218, in add_annotation
    1.                 "Column aliases cannot contain whitespace characters, hashes, "
    2.                 "quotation marks, semicolons, or SQL comments."
    3.             )
    4.     def add_annotation(self, annotation, alias, select=True):
    5.         """Add a single annotation expression to the Query."""
    6.         self.check_alias(alias)
    1.         annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.         if select:
    2.             self.append_annotation_mask([alias])
    3.         else:
    4.             self.set_annotation_mask(set(self.annotation_select).difference({alias}))
    5.         self.annotations[alias] = annotation
    6.         if select and self.selected:
    Local vars
    Variable Value
    alias
    'ts'
    annotation
    TruncDay(F(created_at))
    select
    True
    self
    <django.db.models.sql.query.Query object at 0x78ffe687e510>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/functions/datetime.py, line 287, in resolve_expression
    1.                 "Trunc only valid on DateField, TimeField, or DateTimeField."
    2.             )
    3.         return sql, params
    4.     def resolve_expression(
    5.         self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False
    6.     ):
    1.         copy = super().resolve_expression(
                          
    1.             query, allow_joins, reuse, summarize, for_save
    2.         )
    3.         field = copy.lhs.output_field
    4.         # DateTimeField is a subclass of DateField so this works for both.
    5.         if not isinstance(field, (DateField, TimeField)):
    6.             raise TypeError(
    Local vars
    Variable Value
    __class__
    <class 'django.db.models.functions.datetime.TruncBase'>
    allow_joins
    True
    for_save
    False
    query
    <django.db.models.sql.query.Query object at 0x78ffe687e510>
    reuse
    None
    self
    TruncDay(F(created_at))
    summarize
    False
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/expressions.py, line 300, in resolve_expression
    1.         Return: an Expression to be added to the query.
    2.         """
    3.         c = self.copy()
    4.         c.is_summary = summarize
    5.         source_expressions = [
    6.             (
    1.                 expr.resolve_expression(query, allow_joins, reuse, summarize, for_save)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.                 if expr is not None
    2.                 else None
    3.             )
    4.             for expr in c.get_source_expressions()
    5.         ]
    6.         if not self.allows_composite_expressions and any(
    Local vars
    Variable Value
    allow_joins
    True
    c
    TruncDay(F(created_at))
    for_save
    False
    query
    <django.db.models.sql.query.Query object at 0x78ffe687e510>
    reuse
    None
    self
    TruncDay(F(created_at))
    summarize
    False
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/expressions.py, line 902, in resolve_expression
    1.         # Disable old-style iteration protocol inherited from implementing
    2.         # __getitem__() to prevent this method from hanging.
    3.         raise TypeError(f"argument of type '{self.__class__.__name__}' is not iterable")
    4.     def resolve_expression(
    5.         self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False
    6.     ):
    1.         return query.resolve_ref(self.name, allow_joins, reuse, summarize)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    1.     def replace_expressions(self, replacements):
    2.         if (replacement := replacements.get(self)) is not None:
    3.             return replacement
    4.         field_name, *transforms = self.name.split(LOOKUP_SEP)
    5.         # Avoid unnecessarily looking up replacements with field_name again as
    Local vars
    Variable Value
    allow_joins
    True
    for_save
    False
    query
    <django.db.models.sql.query.Query object at 0x78ffe687e510>
    reuse
    None
    self
    F(created_at)
    summarize
    False
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/sql/query.py, line 2050, in resolve_ref
    1.         else:
    2.             field_list = name.split(LOOKUP_SEP)
    3.             annotation = self.annotations.get(field_list[0])
    4.             if annotation is not None:
    5.                 for transform in field_list[1:]:
    6.                     annotation = self.try_transform(annotation, transform)
    7.                 return annotation
    1.             join_info = self.setup_joins(
                                    
    1.                 field_list, self.get_meta(), self.get_initial_alias(), can_reuse=reuse
    2.             )
    3.             targets, final_alias, join_list = self.trim_joins(
    4.                 join_info.targets, join_info.joins, join_info.path
    5.             )
    6.             if not allow_joins and len(join_list) > 1:
    Local vars
    Variable Value
    allow_joins
    True
    annotation
    None
    field_list
    ['created_at']
    name
    'created_at'
    reuse
    None
    self
    <django.db.models.sql.query.Query object at 0x78ffe687e510>
    summarize
    False
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/sql/query.py, line 1901, in setup_joins
    1.             return field.get_col(alias)
    2.         # Try resolving all the names as fields first. If there's an error,
    3.         # treat trailing names as lookups until a field can be resolved.
    4.         last_field_exception = None
    5.         for pivot in range(len(names), 0, -1):
    6.             try:
    1.                 path, final_field, targets, rest = self.names_to_path(
                                                               
    1.                     names[:pivot],
    2.                     opts,
    3.                     allow_many,
    4.                     fail_on_missing=True,
    5.                 )
    6.             except FieldError as exc:
    Local vars
    Variable Value
    alias
    'storage_filedownloadstat'
    allow_many
    True
    can_reuse
    None
    final_transformer
    <function Query.setup_joins.<locals>.final_transformer at 0x78ffe6859b20>
    joins
    ['storage_filedownloadstat']
    last_field_exception
    None
    names
    ['created_at']
    opts
    <Options for FileDownloadStat>
    pivot
    1
    self
    <django.db.models.sql.query.Query object at 0x78ffe687e510>
  • /var/www/development/backend/venv/lib/python3.12/site-packages/django/db/models/sql/query.py, line 1806, in names_to_path
    1.                     available = sorted(
    2.                         [
    3.                             *get_field_names_from_opts(opts),
    4.                             *self.annotation_select,
    5.                             *self._filtered_relations,
    6.                         ]
    7.                     )
    1.                     raise FieldError(
                                ^
    1.                         "Cannot resolve keyword '%s' into field. "
    2.                         "Choices are: %s" % (name, ", ".join(available))
    3.                     )
    4.                 break
    5.             # Check if we need any joins for concrete inheritance cases (the
    6.             # field lives in parent, but we are currently in one of its
    Local vars
    Variable Value
    allow_many
    True
    available
    ['downloaded_at', 'entry', 'entry_id', 'id', 'user', 'user_id']
    cur_names_with_path
    ('created_at', [])
    fail_on_missing
    True
    field
    None
    filtered_relation
    None
    name
    'created_at'
    names
    ['created_at']
    names_with_path
    []
    opts
    <Options for FileDownloadStat>
    path
    []
    pos
    -1
    self
    <django.db.models.sql.query.Query object at 0x78ffe687e510>


Request information

USER

Parsa

GET

No GET data

POST

No POST data

FILES

No FILES data

Variable Value
csrftoken
'********************'

META

Variable Value
CSRF_COOKIE
'HJWosw9NdaEdbKoabTfcj2vacSGaAvc9'
HTTP_ACCEPT
'*/*'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br, zstd'
HTTP_ACCEPT_LANGUAGE
'en-US,en;q=0.9'
HTTP_AUTHORIZATION
'********************'
HTTP_CONNECTION
'close'
HTTP_COOKIE
'********************'
HTTP_HOST
'netnest.org'
HTTP_PRIORITY
'u=0'
HTTP_REFERER
'https://netnest.org/api/schema/swagger-ui/'
HTTP_SEC_FETCH_DEST
'empty'
HTTP_SEC_FETCH_MODE
'cors'
HTTP_SEC_FETCH_SITE
'same-origin'
HTTP_USER_AGENT
('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 '
 'Firefox/149.0')
HTTP_X_FORWARDED_FOR
'217.218.37.40'
HTTP_X_FORWARDED_PROTO
'https'
HTTP_X_REAL_IP
'217.218.37.40'
PATH_INFO
'/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'
QUERY_STRING
''
RAW_URI
'/api/storage/files/354a22f1-6eb7-450d-bad0-2d8a70b985fc/download-stats/'
REMOTE_ADDR
'127.0.0.1'
REMOTE_PORT
'51114'
REQUEST_METHOD
'GET'
SCRIPT_NAME
''
SERVER_NAME
'127.0.0.1'
SERVER_PORT
'8001'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SOFTWARE
'gunicorn/23.0.0'
gunicorn.socket
<socket.socket fd=11, family=2, type=1, proto=0, laddr=('127.0.0.1', 8001), raddr=('127.0.0.1', 51114)>
wsgi.errors
<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x78ffe687d6f0>
wsgi.file_wrapper
<class 'gunicorn.http.wsgi.FileWrapper'>
wsgi.input
<gunicorn.http.body.Body object at 0x78ffe687dbe0>
wsgi.input_terminated
True
wsgi.multiprocess
True
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'https'
wsgi.version
(1, 0)

Settings

Using settings module filemanager.settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['*']
ALLOWED_HOSTS_ENV
'*'
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
'********************'
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'********************'
BACKEND_BASE_URL
'https://netnest.org'
BALE_API_KEY
'********************'
BALE_BOT_ID
1569399072
BASE_DIR
PosixPath('/var/www/development/backend')
BILLING_DEFAULT_PLAN_SLUG
'Free'
BILLING_PURGE_HANDLER
'storage.services.purge.purge_user_files'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS
'default'
CACHE_MIDDLEWARE_KEY_PREFIX
'********************'
CACHE_MIDDLEWARE_SECONDS
600
CELERY_ACCEPT_CONTENT
['json']
CELERY_BEAT_SCHEDULE
{'billing-enforce-expiry-and-purge-daily': {'schedule': <crontab: 0 3 * * * (m/h/dM/MY/d)>,
                                            'task': 'billing.tasks.enforce_subscription_expiry_and_purge'}}
CELERY_BROKER_URL
'redis://127.0.0.1:6379/0'
CELERY_RESULT_BACKEND
'redis://127.0.0.1:6379/1'
CELERY_RESULT_SERIALIZER
'json'
CELERY_TASK_SERIALIZER
'json'
CELERY_TIMEZONE
'UTC'
CERTBOT_EMAIL
'admin@netnest.org'
CORS_ALLOW_ALL_ORIGINS
True
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
True
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS
[]
CSRF_USE_SESSIONS
False
CUSTOM_DOMAIN_CERTBOT_EMAIL
'admin@netnest.org'
CUSTOM_DOMAIN_NGINX_BIN
'/usr/sbin/nginx'
CUSTOM_DOMAIN_NGINX_DIR
'/etc/nginx/conf.d'
CUSTOM_DOMAIN_NGINX_NAME
'custom_domains.conf'
CUSTOM_DOMAIN_NGINX_RELOAD_CMD
['/usr/bin/systemctl', 'reload', 'nginx']
CUSTOM_DOMAIN_NGINX_TEST_CMD
['/usr/sbin/nginx', '-t']
CUSTOM_DOMAIN_PROVISION_SYNC
True
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_HEALTH_CHECKS': False,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.postgresql',
             'HOST': 'localhost',
             'NAME': 'netnestdb7',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '5432',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'rpuser4net'}}
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_FROM_EMAIL
'info@netnest.org'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'smtp.c1.liara.email'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
'sweet_payne_qqpbhs'
EMAIL_PORT
587
EMAIL_SSL_CERTFILE
None
EMAIL_SSL_KEYFILE
'********************'
EMAIL_SUBJECT_PREFIX
'[Django] '
EMAIL_TIMEOUT
15
EMAIL_USE_LOCALTIME
False
EMAIL_USE_SSL
False
EMAIL_USE_TLS
True
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
FORMS_URLFIELD_ASSUME_HTTPS
False
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
FRONTEND_BASE_URL
'https://netnest.org'
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django_filters',
 'rest_framework',
 'corsheaders',
 'drf_spectacular',
 'rest_framework_simplejwt',
 'rest_framework_simplejwt.token_blacklist',
 'accounts',
 'storage',
 'api',
 'tickets',
 'billing',
 'ftp',
 'admin_api',
 'notes',
 'logs']
INTERNAL_IPS
[]
KAVENEGAR_API_KEY
'********************'
KAVENEGAR_TEMPLATE_SIGNUP
None
KAVENEGAR_VERIFY_TAG
''
KAVENEGAR_VERIFY_TYPE
'sms'
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'),
 ('ckb', 'Central Kurdish (Sorani)'),
 ('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'),
 ('ms', 'Malay'),
 ('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'),
 ('ug', 'Uyghur'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('uz', 'Uzbek'),
 ('vi', 'Vietnamese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', '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
{'handlers': {'file': {'class': 'logging.FileHandler',
                       'filename': '/var/log/netnest/django.log',
                       'level': 'ERROR'}},
 'root': {'handlers': ['file'], 'level': 'ERROR'},
 'version': 1}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
None
MANAGERS
[]
MEDIA_ROOT
PosixPath('/var/www/development/backend/media')
MEDIA_URL
'/media/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE
['corsheaders.middleware.CorsMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'storage.middleware.AllowedHostsFromDBMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'accounts.middleware.UpdateLastSeenMiddleware']
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NETNEST_PRIMARY_HOSTS
['netnest.org', 'www.netnest.org', 'localhost', '127.0.0.1']
NUMBER_GROUPING
0
OTP_CODE_LENGTH
6
OTP_EXPIRE_MINUTES
5
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PREPEND_WWW
False
PUBLIC_SCHEME
'https'
PUBLIC_SITE_DOMAIN
'netnest.org'
REST_FRAMEWORK
{'DEFAULT_AUTHENTICATION_CLASSES': '********************',
 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
 'DEFAULT_THROTTLE_CLASSES': ['rest_framework.throttling.AnonRateThrottle',
                              'rest_framework.throttling.UserRateThrottle'],
 'DEFAULT_THROTTLE_RATES': {'anon': '30/min',
                            'sftp_sync_now': '6/min',
                            'user': '120/min'},
 'EXCEPTION_HANDLER': 'filemanager.exception_handler.custom_exception_handler'}
ROOT_URLCONF
'filemanager.urls'
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
SECURE_CONTENT_TYPE_NOSNIFF
True
SECURE_CROSS_ORIGIN_OPENER_POLICY
'same-origin'
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
SECURE_HSTS_PRELOAD
False
SECURE_HSTS_SECONDS
0
SECURE_PROXY_SSL_HEADER
('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT
[]
SECURE_REFERRER_POLICY
'same-origin'
SECURE_SSL_HOST
None
SECURE_SSL_REDIRECT
True
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
True
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
'filemanager.settings'
SHORT_DATETIME_FORMAT
'm/d/Y P'
SHORT_DATE_FORMAT
'm/d/Y'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS
[]
SIMPLE_JWT
{'ACCESS_TOKEN_LIFETIME': '********************',
 'AUTH_HEADER_TYPES': '********************',
 'BLACKLIST_AFTER_ROTATION': True,
 'REFRESH_TOKEN_LIFETIME': '********************',
 'ROTATE_REFRESH_TOKENS': '********************'}
SMSIR_API_KEY
'********************'
SMSIR_ENABLE_NOTIFICATIONS
True
SMSIR_OTP_PARAM_NAME
'TOKEN'
SMSIR_TEMPLATE_ID_LOGIN
'967388'
SMSIR_TEMPLATE_ID_RESET
'967388'
SMSIR_TEMPLATE_ID_SIGNUP
'967388'
SMSIR_TEMPLATE_ID_TICKET_UPDATE_ADMIN
724011
SMSIR_TEMPLATE_ID_USER_ALERT
310159
SMSIR_TEMPLATE_ID_VERIFY_PHONE
''
SMSIR_TICKET_PARAM_NAME
'SHOMARETICKET'
SMSIR_USER_PARAM_NAME
'NAME'
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATIC_ROOT
PosixPath('/var/www/development/backend/staticfiles')
STATIC_URL
'/static/'
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},
 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}}
STORAGE_VIRUS_SCAN_ENABLED
False
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': [],
  '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_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
True
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'filemanager.wsgi.application'
X_FRAME_OPTIONS
'DENY'
YEAR_MONTH_FORMAT
'F Y'
ZARINPAL_MERCHANT_ID
'd146b535-d2e6-43b1-9b0a-30c3d55138f1'