Skip to content

Commit

Permalink
Update 'Getting Started' section of README
Browse files Browse the repository at this point in the history
`django.conf.urls.patterns` is deprecated. The code already uses
`django.conf.urls.url`, but the documentation doesn't reflect that.
  • Loading branch information
vleong2332 committed Jul 21, 2016
1 parent 4c8c390 commit 261759f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.rst
Expand Up @@ -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.

Expand Down

0 comments on commit 261759f

Please sign in to comment.