From b5a5f08fdbb11c0246a1d4b2822854a3cc891a62 Mon Sep 17 00:00:00 2001 From: Bill Prin Date: Wed, 2 Mar 2016 14:35:54 -0800 Subject: [PATCH] Fix up Django URLs Managed VMs tutorial should serve the polls app from the index. Container Engine url should also have a dollar sign. --- container_engine/django_tutorial/mysite/urls.py | 2 +- managed_vms/django_cloudsql/mysite/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/container_engine/django_tutorial/mysite/urls.py b/container_engine/django_tutorial/mysite/urls.py index a312d05bb091..25a4648c8d02 100644 --- a/container_engine/django_tutorial/mysite/urls.py +++ b/container_engine/django_tutorial/mysite/urls.py @@ -17,7 +17,7 @@ from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns = [ - url(r'^', include('polls.urls')), + url(r'^$', include('polls.urls')), ] # Only serve static files from Django during development diff --git a/managed_vms/django_cloudsql/mysite/urls.py b/managed_vms/django_cloudsql/mysite/urls.py index 8bf3e234959e..7de13b17ef33 100644 --- a/managed_vms/django_cloudsql/mysite/urls.py +++ b/managed_vms/django_cloudsql/mysite/urls.py @@ -15,5 +15,5 @@ from django.conf.urls import include, url from django.contrib import admin -urlpatterns = [url(r'^polls/', include('polls.urls')), +urlpatterns = [url(r'^$', include('polls.urls')), url(r'^admin/', admin.site.urls)]