Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix up Django URLs
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
commit deb1e86c4c0dac13ac00bbd32fb61dcc2d9c3c47
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)]