Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Django to 2.x LTS #2490

Closed
noliveleger opened this issue Oct 30, 2019 · 0 comments
Closed

Upgrade Django to 2.x LTS #2490

noliveleger opened this issue Oct 30, 2019 · 0 comments
Assignees
Milestone

Comments

@noliveleger
Copy link
Contributor

Django 1.11 Warning:

Specifying a namespace in django.conf.urls.include() without providing an app_name is deprecated. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.

kpi/urls/__init__.py:41
  /srv/src/kpi/kpi/urls/__init__.py:41: RemovedInDjango20Warning: 
    url(r'^api/v2/', include(router_api_v2.urls, namespace=URL_NAMESPACE)),

on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.11/ref/models/fields/#django.db.models.ForeignKey.on_delete

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0023_partial_permissions.py:34: 
    field=models.ForeignKey(related_name='asset_partial_permissions', to='kpi.Asset'),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0023_partial_permissions.py:39:     field=models.ForeignKey(related_name='user_partial_permissions', to=settings.AUTH_USER_MODEL),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0014_discoverable_subscribable_collections.py:32:     field=models.ForeignKey(to='kpi.Collection'),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0014_discoverable_subscribable_collections.py:37:     field=models.ForeignKey(to=settings.AUTH_USER_MODEL),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0022_assetfile.py:38: 
    field=models.ForeignKey(related_name='asset_files', to='kpi.Asset'),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0022_assetfile.py:43:  field=models.ForeignKey(related_name='asset_files', to=settings.AUTH_USER_MODEL),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0002_auto_20150619_0603.py:27: 
    ('asset', models.ForeignKey(to='kpi.Asset')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0002_auto_20150619_0603.py:28:
    ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0002_auto_20150619_0603.py:49: 
    field=models.ForeignKey(related_name='assets', blank=True, to='kpi.Collection', null=True),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0003_assetsnapshot.py:28: 
    ('asset', models.ForeignKey(to='kpi.Asset', null=True)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0003_assetsnapshot.py:29: 
    ('owner', models.ForeignKey(related_name='asset_snapshots', to=settings.AUTH_USER_MODEL, null=True)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0018_export_task.py:32: 
    ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0015_assetversion.py:65: 
    ('asset', models.ForeignKey(related_name='asset_versions', to='kpi.Asset')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/management/commands/import_survey_drafts_from_dkobo.py:29: 
    user = models.ForeignKey(User, related_name="survey_drafts")

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:33: 
    ('owner', models.ForeignKey(related_name='assets', to=settings.AUTH_USER_MODEL, null=True)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:54: 
    ('owner', models.ForeignKey(related_name='owned_collections', to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:55: 
    ('parent', mptt.fields.TreeForeignKey(related_name='children', blank=True, to='kpi.Collection', null=True)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:72: 
    ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:86: 
    ('content_type', models.ForeignKey(to='contenttypes.ContentType')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:87: 
    ('permission', models.ForeignKey(to='auth.Permission')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:88: 
    ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0001_initial.py:101: 
    field=models.ForeignKey(related_name='assets', to='kpi.Collection', null=True),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0005_taguid.py:20: 
    ('tag', models.OneToOneField(to='taggit.Tag')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kpi/migrations/0012_onetimeauthenticationkey.py:24: 
    ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/hub/migrations/0003_auto_20160318_1808.py:29: 
    ('user', models.OneToOneField(related_name='extra_details', to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/hub/migrations/0002_formbuilderpreference.py:36: 
    ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kobo/apps/hook/migrations/0001_tables_creation.py:31: 
    ('asset', models.ForeignKey(related_name='hooks', to='kpi.Asset')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kobo/apps/hook/migrations/0001_tables_creation.py:49: 
    ('hook', models.ForeignKey(related_name='logs', to='hook.Hook')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kobo/apps/help/migrations/0001_initial.py:34: 
    ('last_editor', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kobo/apps/help/migrations/0001_initial.py:49: 
    ('message', models.ForeignKey(to='help.InAppMessage')),

kpi/tests/test_deployment_backends.py::test_initial_kuids
  /srv/src/kpi/kobo/apps/help/migrations/0001_initial.py:50: 
    ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),

Passing a 3-tuple to django.conf.urls.include() is deprecated. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.

kobo/apps/external_integrations/tests/test_cors.py::CorsTests::test_cors_response_with_trusted_origin
  /srv/src/kpi/kobo/urls.py:15: 
    url(r'^admin/', include(admin.site.urls)),

Field._get_val_from_obj is deprecated, use value_from_object instead.
value = self._get_val_from_obj(obj)

kobo/apps/hook/tests/test_email.py::EmailTestCase::test_notifications
kobo/apps/hook/tests/test_parser.py::ParserTestCase::test_json_parser
kobo/apps/hook/tests/test_parser.py::ParserTestCase::test_xml_parser
  /opt/venv/lib/python3.8/site-packages/jsonbfield/fields.py:55: RemovedInDjango20Warning: 

DeprecationWarning: The S3BotoStorage backend is deprecated in favor of the S3Boto3Storage backend and will be removed in django-storages 1.8. This backend is mostly in bugfix only mode and has been for quite a while (in much the same way as its underlying library 'boto'). For performance, security and new feature reasons it is strongly recommended that you update to the S3Boto3Storage backend. Please see the migration docs https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#migrating-boto-to-boto3.
warnings.warn(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants