Skip to content

Commit

Permalink
Fix up Django URLs
Browse files Browse the repository at this point in the history
Managed VMs tutorial should serve the polls
app from the index.

Container Engine url should also have a dollar
sign.
  • Loading branch information
Bill Prin committed Mar 2, 2016
1 parent edcff80 commit deb1e86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cloud_logging/api/list_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

# [START all]
import argparse
import sys

from googleapiclient import discovery
from oauth2client.client import GoogleCredentials
Expand All @@ -39,7 +38,7 @@ def list_logs(project_id, logging_service):
response = request.execute()
if not response:
print("No logs found in {0} project").format(project_id)
return False
return False
for log in response['logs']:
print(log['name'])

Expand Down
2 changes: 1 addition & 1 deletion container_engine/django_tutorial/mysite/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion managed_vms/django_cloudsql/mysite/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

0 comments on commit deb1e86

Please sign in to comment.