Debian 9.4 ошибка при установке
5 years 1 month ago #2099
by PolPav
PolPav replied the topic: Debian 9.4 ошибка при установке
Максимальная доступная версия Django: 2.0.3. Вероятно, нужно обновлять python. Пакеты обновлены до последней версии из респозитория. Завтра попробую обновить из других источников.
Спасибо за помощь!
Спасибо за помощь!
Please Войти or Create an account to join the conversation.
- PolPav
-
Topic Author
- Offline
- Новый участник
-
Less
More
- Posts: 5
5 years 1 month ago #2100
by mitshel
mitshel replied the topic: Debian 9.4 ошибка при установке
не нужно джанго обновлять!!!!
Нужно обновить только django-constance:
python3 -m pip install django-constance[database]==2.1
Нужно обновить только django-constance:
python3 -m pip install django-constance[database]==2.1
Please Войти or Create an account to join the conversation.
- mitshel
-
- Offline
- Администратор
-
Less
More
- Posts: 297
- Karma: 8
5 years 1 month ago #2101
by PolPav
PolPav replied the topic: Debian 9.4 ошибка при установке
Здравствуйте. Обновил и заработало!
И миграция прошла успешно:
root@:/sopds# python3 manage.py migrate
System check identified some issues:
WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default'
HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, s uch as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: docs.djangoproject.com/en/2 . 0/ref/databases/#mysql-sql-mode
Operations to perform:
Apply all migrations: admin, auth, contenttypes, database, opds_catalog, sessi ons
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying database.0001_initial... OK
/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py:71: Warn ing: (1071, 'Specified key was too long; max key length is 1000 bytes')
return self.cursor.execute(query, args)
Applying opds_catalog.0001_initial... OK
Applying opds_catalog.0002_auto_20161115_1810... OK
Applying opds_catalog.0003_auto_20161116_0955... OK
Applying opds_catalog.0004_auto_20161116_1852... OK
Applying opds_catalog.0005_auto_20161204_2138... OK
Applying sessions.0001_initial... OK
Спасибо огромное за помощь!
Warning: Spoiler!
[ Click to expand ]
[ Click to hide ]
root@:/home# python3 -m pip install django-constance[database]==2.1
Collecting django-constance[database]==2.1
Downloading django_constance-2.1.0-py2.py3-none-any.whl (43kB)
23% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√▀ | 10kB 84kB/s eta 0:00: 47% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√▐ | 20kB 71% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┼ 94% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√ 100% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б √┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬| 51kB 128kB/s
Requirement already satisfied: django-picklefield; extra == "database" in /usr/l ocal/lib/python3.5/dist-packages (from django-constance[database]==2.1)
Installing collected packages: django-constance
Found existing installation: django-constance 2.0.0
Uninstalling django-constance-2.0.0:
Successfully uninstalled django-constance-2.0.0
Successfully installed django-constance-2.1.0
Collecting django-constance[database]==2.1
Downloading django_constance-2.1.0-py2.py3-none-any.whl (43kB)
23% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√▀ | 10kB 84kB/s eta 0:00: 47% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√▐ | 20kB 71% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┼ 94% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√ 100% |Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б √┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬Б√┬| 51kB 128kB/s
Requirement already satisfied: django-picklefield; extra == "database" in /usr/l ocal/lib/python3.5/dist-packages (from django-constance[database]==2.1)
Installing collected packages: django-constance
Found existing installation: django-constance 2.0.0
Uninstalling django-constance-2.0.0:
Successfully uninstalled django-constance-2.0.0
Successfully installed django-constance-2.1.0
Warning: Spoiler!
[ Click to expand ]
[ Click to hide ]
root@:/sopds# python3 manage.py migrate
System check identified some issues:
WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default'
HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, s uch as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: docs.djangoproject.com/en/2 . 0/ref/databases/#mysql-sql-mode
Operations to perform:
Apply all migrations: admin, auth, contenttypes, database, opds_catalog, sessi ons
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying database.0001_initial... OK
/usr/local/lib/python3.5/dist-packages/django/db/backends/mysql/base.py:71: Warn ing: (1071, 'Specified key was too long; max key length is 1000 bytes')
return self.cursor.execute(query, args)
Applying opds_catalog.0001_initial... OK
Applying opds_catalog.0002_auto_20161115_1810... OK
Applying opds_catalog.0003_auto_20161116_0955... OK
Applying opds_catalog.0004_auto_20161116_1852... OK
Applying opds_catalog.0005_auto_20161204_2138... OK
Applying sessions.0001_initial... OK
Please Войти or Create an account to join the conversation.
- PolPav
-
Topic Author
- Offline
- Новый участник
-
Less
More
- Posts: 5
Time to create page: 0.094 seconds