Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0a425f

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

File tree

Expand file treeCollapse file tree

3 files changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-4
lines changed

‎cloud_logging/api/list_logs.py

Copy file name to clipboardExpand all lines: cloud_logging/api/list_logs.py
+1-2Lines 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

Copy file name to clipboardExpand all lines: container_engine/django_tutorial/mysite/urls.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: managed_vms/django_cloudsql/mysite/urls.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.