Advertisement
Guest User

error sentry

a guest
Jan 17th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.14 KB | None | 0 0
  1. AttributeError: module 'back_office.settings' has no attribute 'NAME'
  2.   File "apps/billing/views.py", line 133, in upload_services_prices
  3.     upload_service_prices.change_prices(prices_file)
  4.   File "utils/upload_service_prices.py", line 215, in change_prices
  5.     conn = get_connection()
  6.   File "utils/upload_service_prices.py", line 20, in get_connection
  7.     database=settings.NAME,
  8.  
  9. TypeError: int() argument must be a string, a bytes-like object or a number, not 'AttributeError'
  10.   File "django/core/handlers/exception.py", line 34, in inner
  11.     response = get_response(request)
  12.   File "django/core/handlers/base.py", line 126, in _get_response
  13.     response = self.process_exception_by_middleware(e, request)
  14.   File "django/core/handlers/base.py", line 124, in _get_response
  15.     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  16.   File "django/contrib/auth/decorators.py", line 21, in _wrapped_view
  17.     return view_func(request, *args, **kwargs)
  18.   File "apps/billing/views.py", line 138, in upload_services_prices
  19.     pp = pprint.PrettyPrinter(e)
  20.   File "python3.7/pprint.py", line 121, in __init__
  21.     indent = int(indent)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement