Skip to content

Commit

Permalink
Get rid of Django URL warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Prin committed Mar 12, 2016
1 parent 6454cf0 commit 1034b81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion container_engine/django_tutorial/mysite/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

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

# Only serve static files from Django during development
Expand Down
4 changes: 1 addition & 3 deletions container_engine/django_tutorial/polls/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
# limitations under the License.

from django.conf.urls import url
from django.contrib import admin

from . import views

urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^admin/', admin.site.urls)
url(r'^$', views.index, name='index')
]
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'^$', include('polls.urls')),
urlpatterns = [url(r'^', include('polls.urls')),
url(r'^admin/', admin.site.urls)]

0 comments on commit 1034b81

Please sign in to comment.