Open yogeshmr opened 7 years ago
The part2 server request to load the app callable from the djangoapp doesn't work in Django version 1.10.1
The contents of the helloworld/urls.py has to be changed
from:
from django.conf.urls import patterns, include, url from django.contrib import admin
urlpatterns = patterns( '',
# url(r'^$', 'helloworld.views.home', name='home'), # url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)), (r'^hello', 'helloworld.views.index'),
)
To:
from django.conf.urls import include, url from django.contrib import admin
from . import views
urlpatterns = [
url(r'^admin/', admin.site.urls), url(r'^hello/', views.index),
]
The part2 server request to load the app callable from the djangoapp doesn't work in Django version 1.10.1
The contents of the helloworld/urls.py has to be changed
from:
from django.conf.urls import patterns, include, url from django.contrib import admin
urlpatterns = patterns( '',
Examples:
)
To:
from django.conf.urls import include, url from django.contrib import admin
from . import views
urlpatterns = [
]