Итак, я работаю над адаптацией существующего проекта django (v1.11.5), и я перенес свои модификации:
$ python2 manage.py makemigrations
Migrations for 'genetics_ark':
genetics_ark/migrations/0002_analysis_analysisvariant_annotation_cnv_decon_deconcnv_decongene_decongenecnv_deconsample_gene_genep.py
- Create model Analysis
- Create model AnalysisVariant
- Create model Annotation
- Create model Gene
- Create model GenePanel
- Create model Meta
- Create model Model
- Create model ModelRegion
- Create model Panel
- Create model Reference
- Create model Region
- Create model SamplePanel
- Create model Transcript
- Create model TranscriptRegion
- Create model CNV
- Create model Decon
- Create model DeconCNV
- Create model Decongene
- Create model DecongeneCNV
- Create model DeconSample
$ python2 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, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'genetics_ark_db'
HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
Operations to perform:
Apply all migrations: admin, auth, contenttypes, genetics_ark, sessions
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 genetics_ark.0001_initial... OK
Applying genetics_ark.0002_analysis_analysisvariant_annotation_cnv_decon_deconcnv_decongene_decongenecnv_deconsample_gene_genep... OK
Applying sessions.0001_initial... OK
Однако добавленные мною модели не были добавлены в базу данных, в то время как части django были:
- auth_group
- auth_group_permissions
- auth_permission
- AUTH_USER
- auth_user_groups
- auth_user_user_permissions
- django_admin_log
- django_content_type
- django_migrations
- django_session
Я уже модифицировал базу данных, используя предыдущую версию проекта, и я не смог найти никакой разницы, которая могла бы объяснить, почему она не работает. Кроме того, когда я "runserver", он не работает, и в терминале не отображается сообщение об ошибке.
Любой совет?