From 261759f20e11dddf576cfea81647566ead25dfb2 Mon Sep 17 00:00:00 2001 From: Vicky Leong Date: Thu, 21 Jul 2016 11:12:05 -0400 Subject: [PATCH] Update 'Getting Started' section of README `django.conf.urls.patterns` is deprecated. The code already uses `django.conf.urls.url`, but the documentation doesn't reflect that. --- README.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 4d077da..3fbce38 100644 --- a/README.rst +++ b/README.rst @@ -43,15 +43,19 @@ Getting Started Include ``pinax-messages`` in your requirements file and add ``"pinax.messages"`` to your INSTALLED APPS setting. -Once you have the ``pinax-messages`` installed, hook up the URLs:: +Run Django migration (``python manage.py migrate``) so that +your project recognizes this new app. - urlpatterns = patterns("", +Once you have the ``pinax-messages`` installed and migrated, +hook up the URLs:: + + urlpatterns = [ # some cool URLs - (r"^messages/", include("pinax.messages.urls", namespace="pinax_messages")), + url(r"^messages/", include("pinax.messages.urls", namespace="pinax_messages")), # some other cool URLs - ) + ] Now all you need to do is wire up some templates.