OSLL / mooc-lp-statistics

1 stars 1 forks source link

Настраиваемый путь к логу в App/another_functions.py #44

Closed zmm closed 7 years ago

zmm commented 7 years ago
ArturAzarau commented 7 years ago

Вот это непонятно как сделать

npatyur commented 7 years ago

Нужно обсудить скрипт local_deploy.sh pull request: https://github.com/OSLL/mooc-lp-statistics/pull/96

npatyur commented 7 years ago

Новый pull request с другой веткой: https://github.com/OSLL/mooc-lp-statistics/pull/97

zmm commented 7 years ago

возникла проблема вот с таким логом pdaemon.txt

Environment:

Request Method: GET Request URL: http://mooc-lp-statistics/

Django Version: 1.9.4 Python Version: 2.7.6 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'App', 'rest_framework'] Installed Middleware: ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']

Traceback:

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1. response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/var/www/mooc-lp-statistics/App/views.py" in home

  1. list_of_result_lists = App.another_functions.parsing()

File "/var/www/mooc-lp-statistics/App/another_functions.py" in parsing

  1. list_of_result_lists += [razbor_stroki(line)]

File "/var/www/mooc-lp-statistics/App/another_functions.py" in razbor_stroki

  1. elem[len(elem) - 1] = elem[len(elem) - 1][:15]

File "/usr/local/lib/python2.7/dist-packages/pyparsing.py" in getitem

  1. return self.__toklist[i]

Exception Type: IndexError at / Exception Value: list index out of range