[GH-ISSUE #363] warnings, as seen on travis-ci #278

Closed
opened 2026-02-26 10:30:29 +03:00 by kerem · 4 comments
Owner

Originally created by @ThomasWaldmann on GitHub (Sep 30, 2018).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/363

Originally assigned to: @ThomasWaldmann on GitHub.

========= warnings summary =========
/home/travis/build/nsupdate-info/nsupdate.info/nsupdate/accounts/migrations/0001_initial.py:18: RemovedInDjango20Warning: on_delete will be a required arg for OneToOneField 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
  ('user', models.OneToOneField(related_name='profile', primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL, verbose_name='user')),

/home/travis/build/nsupdate-info/nsupdate.info/nsupdate/main/migrations/0002_auto_20141115_2227.py:50: RemovedInDjango20Warning: 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
  field=models.ForeignKey(related_name='blacklisted_domains', verbose_name='created by', to=settings.AUTH_USER_MODEL),

(and some more of these ... ^^^^^)

/home/travis/build/nsupdate-info/nsupdate.info/nsupdate/urls.py:29: RemovedInDjango20Warning: 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.
  url(r'^admin/', include(admin.site.urls)),

/home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/social_core/utils.py:107: RemovedInDjango20Warning: Using user.is_authenticated() and user.is_anonymous() as a method is deprecated. Remove the parentheses to use it as an attribute.
  authenticated = user.is_authenticated()

/home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/django/contrib/auth/__init__.py:23: DeprecationWarning: Dropbox V1 api is deprecated and will be shute down 2017-06-28 https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/
  return import_string(path)()

/home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/django/core/handlers/base.py:52: RemovedInDjango20Warning: Old-style middleware using settings.MIDDLEWARE_CLASSES is deprecated. Update your middleware and use settings.MIDDLEWARE instead.
  "instead.", RemovedInDjango20Warning
Originally created by @ThomasWaldmann on GitHub (Sep 30, 2018). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/363 Originally assigned to: @ThomasWaldmann on GitHub. ``` ========= warnings summary ========= /home/travis/build/nsupdate-info/nsupdate.info/nsupdate/accounts/migrations/0001_initial.py:18: RemovedInDjango20Warning: on_delete will be a required arg for OneToOneField 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 ('user', models.OneToOneField(related_name='profile', primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL, verbose_name='user')), /home/travis/build/nsupdate-info/nsupdate.info/nsupdate/main/migrations/0002_auto_20141115_2227.py:50: RemovedInDjango20Warning: 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 field=models.ForeignKey(related_name='blacklisted_domains', verbose_name='created by', to=settings.AUTH_USER_MODEL), (and some more of these ... ^^^^^) /home/travis/build/nsupdate-info/nsupdate.info/nsupdate/urls.py:29: RemovedInDjango20Warning: 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. url(r'^admin/', include(admin.site.urls)), /home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/social_core/utils.py:107: RemovedInDjango20Warning: Using user.is_authenticated() and user.is_anonymous() as a method is deprecated. Remove the parentheses to use it as an attribute. authenticated = user.is_authenticated() /home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/django/contrib/auth/__init__.py:23: DeprecationWarning: Dropbox V1 api is deprecated and will be shute down 2017-06-28 https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/ return import_string(path)() /home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/django/core/handlers/base.py:52: RemovedInDjango20Warning: Old-style middleware using settings.MIDDLEWARE_CLASSES is deprecated. Update your middleware and use settings.MIDDLEWARE instead. "instead.", RemovedInDjango20Warning ```
kerem closed this issue 2026-02-26 10:30:29 +03:00
Author
Owner

@elnappo commented on GitHub (Nov 13, 2018):

Only nsupdate.info/nsupdate/urls.py:29: RemovedInDjango20Warning is relevant for us but it is already fixed. What to do with the remaining warnings?

<!-- gh-comment-id:438294836 --> @elnappo commented on GitHub (Nov 13, 2018): Only `nsupdate.info/nsupdate/urls.py:29: RemovedInDjango20Warning` is relevant for us but it is already fixed. What to do with the remaining warnings?
Author
Owner

@ThomasWaldmann commented on GitHub (Nov 13, 2018):

iirc, i fixed all in our code except the dropbox stuff, which i could not make sense of / could not find.

where does it come from / why / do we need to care?

<!-- gh-comment-id:438297607 --> @ThomasWaldmann commented on GitHub (Nov 13, 2018): iirc, i fixed all in our code except the dropbox stuff, which i could not make sense of / could not find. where does it come from / why / do we need to care?
Author
Owner

@elnappo commented on GitHub (Nov 13, 2018):

It seems like this warning comes from social-auth-app-django. As we are not using Dropbox OAuth and 2017-06-28 was a while ago, I think we can ignore this.

<!-- gh-comment-id:438303950 --> @elnappo commented on GitHub (Nov 13, 2018): It seems like this warning comes from `social-auth-app-django`. As we are not using Dropbox OAuth and 2017-06-28 was a while ago, I think we can ignore this.
Author
Owner

@ThomasWaldmann commented on GitHub (Nov 13, 2018):

ok, guess we can close this, all done.

<!-- gh-comment-id:438362512 --> @ThomasWaldmann commented on GitHub (Nov 13, 2018): ok, guess we can close this, all done.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#278
No description provided.