Open radist opened 7 years ago
Пробуйте так
docker-compose run --rm crawler python3 setup.py develop --user
Обновился контейнер python3 в hub.docker.com и теперь немного по другому.
Похоже опять чтото обновилось: docker-compose run --rm crawler python3 setup.py develop --user Creating pompcraigslistexample_zookeeper_1 ... Starting pompcraigslistexample_redis_1 ... done Creating pompcraigslistexample_zookeeper_1 Creating pompcraigslistexample_zookeeper_1 ... error
ERROR: for pompcraigslistexample_zookeeper_1 Cannot create container for service zookeeper: b'invalid port specification: "None"' Creating pompcraigslistexample_grafana_1 ... error
Что-то похоже на https://github.com/docker/compose/issues/4810 Но не могу найти в докер файле в чем дело
В докер файле все вроде в норме. Вот та же проблема и решение такое https://github.com/docker/compose/issues/4729#issuecomment-299598394
Нужно:
docker-compose
docker-compose < 1.12.0
Спасибо за помошь! Ну и вообще за мега-труд по созданию этого проекта. На Python 3.5.3 установилось
Вроде работает: started 502 finished 502 exeptions 230 Это нормально?
parsed 264 imported 264
exeptions 230
это нормально хоть и стало ошибок в разы больше.
В статье https://habrahabr.ru/post/278445/ сделал оговорку по этому поводу:
Примечание: в примере умышлено не исправлены ошибки в разборе некоторых страниц, для того что бы в процессе работы райсились исключения.
Не заработал django. На случай что дело в игре с версиями питона снес все, сделал с нуля. Выполняя команду $ docker-compose run --rm dataview sh -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'myemail@example.com', 'admin')\" | manage dataview shell" ... Starting pompcraigslistexample_kafka_1 ... done Python 3.6.1 (default, May 10 2017, 03:31:24) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)
2017-05-11 11:29:12,033 DEBUG MainProcess django.db.backends (0.089) INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES ('pbkdf2_sha256$24000$i1KMMcQyJiYD$5EfJnwJuauFlA1upwZ908Eg27Nt7YDOmPbYo7Abrobo=', NULL, true, 'admin', '', '', 'myemail@example.com', true, true, '2017-05-11T11:29:11.902954+00:00'::timestamptz) RETURNING "auth_user"."id"; args=('pbkdf2_sha256$24000$i1KMMcQyJiYD$5EfJnwJuauFlA1upwZ908Eg27Nt7YDOmPbYo7Abrobo=', None, True, 'admin', '', '', 'myemail@example.com', True, True, datetime.datetime(2017, 5, 11, 11, 29, 11, 902954, tzinfo=
)) Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/core/management/commands/shell.py", line 69, in handle self.run_shell(shell=options['interface']) File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/core/management/commands/shell.py", line 61, in run_shell raise ImportError ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) psycopg2.IntegrityError: duplicate key value violates unique constraint "auth_user_username_key" DETAIL: Key (username)=(admin) already exists.
Ошибка говорит о том что БД осталось старое.
DETAIL: Key (username)=(admin) already exists.
тут нужно:
А почему не завелась джанга нужно посмотреть логи.
Странно я удалял все докер контейнеры и имиджы.. Прошлый раз кажется такая же проблема была. Сейчас удалил все еще раз... docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES docker images all REPOSITORY TAG IMAGE ID CREATED SIZE Пробую еще раз с нуля
Та же ошибка
DETAIL: Key (username)=(admin) already exists.
Может из-за того что команду docker-compose run --rm dataview manage dataview migrate
пришлось запуска два раза, первый раз она упала с :
Starting pompcraigslistexample_grafana_1 ... . done Creating pompcraigslistexample_postgres_1 Creating pompcraigslistexample_postgres_1 ... done Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/db/backends/base/base.py", line 199, in ensure_connection self.connect() File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/db/backends/base/base.py", line 171, in connect self.connection = self.get_new_connection(conn_params) File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/db/backends/postgresql/base.py", line 175, in get_new_connection connection = Database.connect(**conn_params) File "/root/lib/python3.6/site-packages/psycopg2-2.6.1-py3.6-linux-x86_64.egg/psycopg2/__init__.py", line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) psycopg2.OperationalError: FATAL: the database system is starting up
Нужно еще удалить и ./postgres-data
Так как контейнер постгреса сконфигурен так
https://github.com/estin/pomp-craigslist-example/blob/master/docker-compose.yml#L26
Т.е. использует файловую систему хост машины, а не контейнера (или отдельного volume)
Вот спасибо за подсказку...
Ха! Я еще думал чего так перестраховываюсь - аж имиджы удаляю..
А недостраховался... Удалил бы и саму директорию проектом, скачал бы с github-а с нуля, глядишь и заработало бы..
Что сейчас и проверяю.
Встало.Урра. Вроде работает. Правда крейгу и прошлый раз не понравился :) "This IP has been automatically blocked."
Рад слышать что все завелось. Видимо нужно поддержку прокси внедрять, но опять не вижу особого смысла продолжать усложнять этот проект. Цель его была показать как можно собрать что-то на подобное https://github.com/istresearch/scrapy-cluster
К сожалению, как-то недолго прожило...Буквально через день зайти не смог:
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/core/handlers/base.py", line 134, in get_response
resolver_match = resolver.resolve(request.path_info)
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/core/urlresolvers.py", line 404, in resolve
raise Resolver404({'tried': tried, 'path': new_path})
django.core.urlresolvers.Resolver404: {'tried': [[<RegexURLResolver <RegexURLPattern list> (admin:admin) ^admin/>]], 'path': 'admin'}
Если зайти по http://localhost:8080/admin ? Случаем настройки не менялись и не пряталась ли джанго за nginx?
Ага.При этом http://localhost:8090/ на графану нормально идет. nginx стоит, но он на 80 и выключение его ничего не меняет. Настройки не менялись. Но!! Я гугланул тогда, и видел что эта же проблема из-за питона свежего кажется, там у других сайтов на джанге такое же было, и они меняли сам код чтобы не падало на всех последующих версиях.
Но чтото не найду сейчас.. Вот более полный лог, может он больше скажет `Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup (bit, current)) # missing attribute django.template.base.VariableDoesNotExist: Failed lookup for key [errors] in 'None' 2017-05-11 15:43:46,355 DEBUG MainProcess django.template Exception while resolving variable 'show' in template 'admin/change_list.html'. Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 883, in _resolve_lookup current = current[bit] File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/context.py", line 77, in getitem raise KeyError(key) KeyError: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [show] in "[{'True': True, 'False': False, 'None': None, 'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_multipart] in 'None'
2017-05-11 15:43:46,386 DEBUG MainProcess django.db.backends (0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = '86b8teintwechmwmlu4vg2ngnbau14qf' AND "django_session"."expire_date" > '2017-05-11T15:43:46.381341+00:00'::timestamptz); args=('86b8teintwechmwmlu4vg2ngnbau14qf', datetime.datetime(2017, 5, 11, 15, 43, 46, 381341, tzinfo=
в этом логе нету Resolver404
а остальная ругань нормальное явление django 1.9.x при уровне логировании DEBUG
, Многие считают это ошибкой, но нет это штатное поведение и в DEBUG
выдаются трейсы.
Воспроизвести не могу - Resolver404
Покажите настройку nginx.
Есть подозрение что он проксирует на http://localhost:8080/admin/admin
вместо http://localhost:8080/admin
. Или что-то подобное.
И как стартует джанго? через manage dataview runserver 0.0.0.0:8080
?
Джанго специально ни как не запускаю, просто запуск докера проекта и все: docker-compose up -d Нгинх выключен.
Зря я лог обрезал, думал повторы уберу.. Вот весь лог:
`2017-05-11 15:17:23,841 DEBUG MainProcess django.db.backends (0.002)
SELECT c.relname, c.relkind
FROM pg_catalog.pg_class c
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind IN ('r', 'v')
AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
AND pg_catalog.pg_table_is_visible(c.oid); args=None
2017-05-11 15:17:23,872 DEBUG MainProcess django.db.backends.schema CREATE TABLE "django_migrations" ("id" serial NOT NULL PRIMARY KEY, "app" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "applied" timestamp with time zone NOT NULL); (params None)
2017-05-11 15:17:24,045 DEBUG MainProcess django.db.backends (0.173) CREATE TABLE "django_migrations" ("id" serial NOT NULL PRIMARY KEY, "app" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "applied" timestamp with time zone NOT NULL); args=None
2017-05-11 15:17:24,149 DEBUG MainProcess django.db.backends (0.001) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
2017-05-11 15:17:24,152 DEBUG MainProcess django.db.backends.schema CREATE TABLE "django_content_type" ("id" serial NOT NULL PRIMARY KEY, "name" varchar(100) NOT NULL, "app_label" varchar(100) NOT NULL, "model" varchar(100) NOT NULL); (params None)
2017-05-11 15:17:24,189 DEBUG MainProcess django.db.backends (0.037) CREATE TABLE "django_content_type" ("id" serial NOT NULL PRIMARY KEY, "name" varchar(100) NOT NULL, "app_label" varchar(100) NOT NULL, "model" varchar(100) NOT NULL); args=None
2017-05-11 15:17:24,191 DEBUG MainProcess django.db.backends.schema ALTER TABLE "django_content_type" ADD CONSTRAINT "django_content_type_app_label_76bd3d3b_uniq" UNIQUE ("app_label", "model"); (params [])
2017-05-11 15:17:24,201 DEBUG MainProcess django.db.backends (0.010) ALTER TABLE "django_content_type" ADD CONSTRAINT "django_content_type_app_label_76bd3d3b_uniq" UNIQUE ("app_label", "model"); args=[]
2017-05-11 15:17:24,209 DEBUG MainProcess django.db.backends (0.001)
SELECT c.relname, c.relkind
FROM pg_catalog.pg_class c
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind IN ('r', 'v')
AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
AND pg_catalog.pg_table_is_visible(c.oid); args=None
2017-05-11 15:17:24,211 DEBUG MainProcess django.db.backends (0.001) INSERT INTO "django_migrations" ("app", "name", "applied") VALUES ('contenttypes', '0001_initial', '2017-05-11T15:17:24.209758+00:00'::timestamptz) RETURNING "django_migrations"."id"; args=('contenttypes', '0001_initial', datetime.datetime(2017, 5, 11, 15, 17, 24, 209758, tzinfo=
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 883, in _resolve_lookup current = current[bit] TypeError: 'RegexURLResolver' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'RegexURLResolver' object has no attribute 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [name] in '<RegexURLResolver
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 883, in _resolve_lookup current = current[bit] TypeError: 'RegexURLResolver' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'RegexURLResolver' object has no attribute 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [name] in '<RegexURLResolver
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 883, in _resolve_lookup current = current[bit] TypeError: 'RegexURLResolver' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'RegexURLResolver' object has no attribute 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [name] in '<RegexURLResolver
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup (bit, current)) # missing attribute django.template.base.VariableDoesNotExist: Failed lookup for key [errors] in 'None' 2017-05-11 15:22:26,308 DEBUG MainProcess django.template Exception while resolving variable 'show' in template 'admin/change_list.html'. Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 883, in _resolve_lookup current = current[bit] File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/context.py", line 77, in getitem raise KeyError(key) KeyError: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [show] in "[{'True': True, 'False': False, 'None': None, 'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_multipart] in 'None'
2017-05-11 15:22:26,345 DEBUG MainProcess django.db.backends (0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = '86b8teintwechmwmlu4vg2ngnbau14qf' AND "django_session"."expire_date" > '2017-05-11T15:22:26.337590+00:00'::timestamptz); args=('86b8teintwechmwmlu4vg2ngnbau14qf', datetime.datetime(2017, 5, 11, 15, 22, 26, 337590, tzinfo=
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup (bit, current)) # missing attribute django.template.base.VariableDoesNotExist: Failed lookup for key [errors] in 'None' 2017-05-11 15:43:40,900 DEBUG MainProcess django.template Exception while resolving variable 'show' in template 'admin/change_list.html'. Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 883, in _resolve_lookup current = current[bit] File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/context.py", line 77, in getitem raise KeyError(key) KeyError: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [show] in "[{'True': True, 'False': False, 'None': None, 'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_multipart] in 'None'
2017-05-11 15:43:40,943 DEBUG MainProcess django.db.backends (0.007) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = '86b8teintwechmwmlu4vg2ngnbau14qf' AND "django_session"."expire_date" > '2017-05-11T15:43:40.928397+00:00'::timestamptz); args=('86b8teintwechmwmlu4vg2ngnbau14qf', datetime.datetime(2017, 5, 11, 15, 43, 40, 928397, tzinfo=
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_popup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_popup] in "[{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'errors'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup (bit, current)) # missing attribute django.template.base.VariableDoesNotExist: Failed lookup for key [errors] in 'None' 2017-05-11 15:43:46,355 DEBUG MainProcess django.template Exception while resolving variable 'show' in template 'admin/change_list.html'. Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 883, in _resolve_lookup current = current[bit] File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/context.py", line 77, in getitem raise KeyError(key) KeyError: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 889, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'show'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [show] in "[{'True': True, 'False': False, 'None': None, 'csrf_token': <SimpleLazyObject: <function csrf.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 891, in _resolve_lookup current = getattr(current, bit) AttributeError: 'NoneType' object has no attribute 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 898, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'is_multipart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/lib/python3.6/site-packages/Django-1.9.2-py3.6.egg/django/template/base.py", line 905, in _resolve_lookup
(bit, current)) # missing attribute
django.template.base.VariableDoesNotExist: Failed lookup for key [is_multipart] in 'None'
2017-05-11 15:43:46,386 DEBUG MainProcess django.db.backends (0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = '86b8teintwechmwmlu4vg2ngnbau14qf' AND "django_session"."expire_date" > '2017-05-11T15:43:46.381341+00:00'::timestamptz); args=('86b8teintwechmwmlu4vg2ngnbau14qf', datetime.datetime(2017, 5, 11, 15, 43, 46, 381341, tzinfo=