"django: support for string view arguments to url() is deprecated and will be removed in django 1.10" Code Answer

2

i have found the answer to my question. it was indeed an import error. for django 1.10, you now have to import the app's view.py, and then pass the second argument of url() without quotes. here is my code now in urls.py:

from django.conf.urls import url
from django.contrib import admin
import main.views

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', main.views.home)
]

i did not change anything in the app or view.py files.

props to @rik poggi for illustrating how to import in his answer to this question: django - import views from separate apps

By nmathews on August 7 2022

Answers related to “django: support for string view arguments to url() is deprecated and will be removed in django 1.10”

Only authorized users can answer the Search term. Please sign in first, or register a free account.