Skip to content

Commit f0a425f

Browse files
committed
Merge pull request #214 from GoogleCloudPlatform/djangourls
Fix up Django URLs
2 parents edcff80 + deb1e86 commit f0a425f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cloud_logging/api/list_logs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
# [START all]
2727
import argparse
28-
import sys
2928

3029
from googleapiclient import discovery
3130
from oauth2client.client import GoogleCredentials
@@ -39,7 +38,7 @@ def list_logs(project_id, logging_service):
3938
response = request.execute()
4039
if not response:
4140
print("No logs found in {0} project").format(project_id)
42-
return False
41+
return False
4342
for log in response['logs']:
4443
print(log['name'])
4544

container_engine/django_tutorial/mysite/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
1818

1919
urlpatterns = [
20-
url(r'^', include('polls.urls')),
20+
url(r'^$', include('polls.urls')),
2121
]
2222

2323
# Only serve static files from Django during development

managed_vms/django_cloudsql/mysite/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
from django.conf.urls import include, url
1616
from django.contrib import admin
1717

18-
urlpatterns = [url(r'^polls/', include('polls.urls')),
18+
urlpatterns = [url(r'^$', include('polls.urls')),
1919
url(r'^admin/', admin.site.urls)]

0 commit comments

Comments
 (0)