I think you're supposed to raise an instance:
http://stackoverflow.com/a/3228626/240553 (shrug)


On Tue, May 14, 2013 at 6:00 PM, Cory Zue <notifications@github.com> wrote:

> In corehq/apps/app_manager/views.py:
>
> > @@ -623,6 +623,8 @@ def view_generic(req, domain, app_id=None, module_id=None, form_id=None, is_user
> >          if app_id:
> >              app = get_app(domain, app_id)
> >          if is_user_registration:
> > +            if not app.show_user_registration:
> > +                raise Http404()
>
> not sure if it matters (think it doesn't) but the django docs don't
> instantiate this: https://docs.djangoproject.com/en/dev/topics/http/views/was curious because i've seen it both ways.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/commcare-hq/pull/286/files#r4212511>
> .
>