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

Part 2 django app doesn't execute well with Django 1.10.1 #7

Open
yogeshmr opened this issue Oct 7, 2016 · 0 comments
Open

Part 2 django app doesn't execute well with Django 1.10.1 #7

yogeshmr opened this issue Oct 7, 2016 · 0 comments

Comments

@yogeshmr
Copy link

yogeshmr commented Oct 7, 2016

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:
# 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),

]

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

1 participant