(request, domain)
return HttpResponseRedirect(reverse('view_app', args=[domain, app._id]))
New Blank Application according to defaults. So that we can link here
    instead of creating a form and posting to the above link, which was getting
    annoying for the Dashboard.
New Blank Application according to defaults. So that we can link here
    instead of creating a form and posting to the above link, which was getting
    annoying for the Dashboard.
New Blank Application according to defaults . So that we can link here instead of creating a form and posting to the above link which was getting annoying for the Dashboard .
def default_new_app(request, domain):
    """New Blank Application according to defaults. So that we can link here
    instead of creating a form and posting to the above link, which was getting
    annoying for the Dashboard.
    """
    send_hubspot_form(HUBSPOT_APP_TEMPLATE_FORM_ID, request)
    track_workflow(request.couch_user.username, "User created a new blank application")

    lang = 'en'
    app = Application.new_app(domain, _("Untitled Application"), lang=lang)
    add_ons.init_app(request, app)

    if request.project.secure_submissions:
        app.secure_submissions = True
    clear_app_cache(request, domain)
    app.save()
    return HttpResponseRedirect(reverse('view_app', args=[domain, app._id]))
def default_new_app ( request , domain ) : send_hubspot_form ( HUBSPOT_APP_TEMPLATE_FORM_ID , request ) track_workflow ( request . couch_user . username , "User created a new blank application" ) lang = 'en' app = Application . new_app ( domain , _ ( "Untitled Application" ) , lang = lang ) add_ons . init_app ( request , app ) if request . project . secure_submissions : app . secure_submissions = True clear_app_cache ( request , domain ) app . save ( ) return HttpResponseRedirect ( reverse ( 'view_app' , args = [ domain , app . _id ] ) )