semvec/pypi-packages huggingface dataset:
django-cbvpatterns 0.1
A better patterns() for classbased views
License: BSD

Django-cbvpatterns
==================

A nicer version of `patterns()` for use with class based views. Inspired
largely by Loic.

What is this?
-------------

If you're a big fan of class based views in Django, you might often find your
urls.py starting to look a little cluttered. Something like

    from django.conf.urls import patterns, url

    from ponies import views


    urlpatterns = patterns('',
        url(r'^$', views.Index.as_view(), name='index'),
        url(r'^ponies/$', views.PonyList.as_view(), name='pony-list'),
        url(r'^ponies/create/$', views.PonyCreate.as_view(), name='pony-create'),
        url(r'^ponies/(?P<pk>\d+)/$', views.PonyDetail.as_view(), name='pony-detail'),
        url(r'^ponies/(?P<pk>\d+)/edit/$', views.PonyUpdate.as_view(), name='pony-update'),
    )

The shortcuts you can use in patterns are really functional-view specific. The
functional version looks much nicer:

    from django.conf.urls import patterns, url


    urlpatterns = patterns('ponies.views',
        url(r'^$', 'index', name='index'),
        url(r'^ponies/$', 'pony_list', name='pony-list'),
        url(r'^ponies/create/$', 'pony_create', name='pony-create'),
        url(r'^ponies/(?P<pk>\d+)/$', 'pony_detail', name='pony-detail'),
        url(r'^ponies/(?P<pk>\d+)/edit/$', 'pony_update, name='pony-update'),
    )

So we can now have a class based view version which has the same feel:

    from cbvpatterns import patterns, url


    urlpatterns = patterns('ponies.views',
        url(r'^$', 'Index', name='index'),
        url(r'^ponies/$', 'PonyList', name='pony-list'),
        url(r'^ponies/create/$', 'PonyCreate', name='pony-create'),
        url(r'^ponies/(?P<pk>\d+)/$', 'PonyDetail', name='pony-detail'),
        url(r'^ponies/(?P<pk>\d+)/edit/$', 'PonyUpdate, name='pony-update'),
    )

You can also pass in the actual view classes directly, rather than using the
strnig representation.

Contributing
------------

Development takes place
`on GitHub <http://github.com/mjtamlyn/django-cbvpatterns>`_; pull requests are
welcome. Run tests with `tox <http://tox.readthedocs.org/>`_.
sentry-comments 0.3.0
A Sentry extension to add comments to sentry events.
License: BSD

sentry-comments
===============

.. image:: https://travis-ci.org/andialbrecht/sentry-comments.png?branch=master
   :target: https://travis-ci.org/andialbrecht/sentry-comments

sentry-comments is an extension for Sentry which lets you add comments
to sentry events.

**Important Notice** Sentry (>=6.4) supports adding notes to events out-of-the-
box. So there's no need for this extension anymore.

.. image:: https://sentry-comments.readthedocs.org/en/latest/_images/event.png
   :width: 90%


Installation
============

To install the comments extension run::

  pip install sentry-comments

Then add ``sentry_comments`` to the ``INSTALLED_APPS`` list in your Sentry
configuration::

    INSTALLED_APPS += ('sentry_comments',)

(See https://github.com/getsentry/sentry/issues/1042 why this is needed.)

Run ``sentry --config=your.conf.py upgrade`` to create the new tables
required by this plugin.


Demo
====

To run a demo instance with this plugin locally::

  cd demo/
  ./mkdemo.sh

You'll need ``virtualenv`` in your PATH to run this script.


License
=======

sentry-comments is licensed under the BSD license.