Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCPEu-0005AO-9V for pgsql-www@arkaria.postgresql.org; Tue, 25 Jan 2022 17:04:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nCPEt-0005Jc-5k for pgsql-www@arkaria.postgresql.org; Tue, 25 Jan 2022 17:04:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCPEs-0005JT-RK for pgsql-www@lists.postgresql.org; Tue, 25 Jan 2022 17:04:14 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nCPEq-0003Jy-By for pgsql-www@lists.postgresql.org; Tue, 25 Jan 2022 17:04:13 +0000 Received: by mail-lj1-x234.google.com with SMTP id j14so16140712lja.3 for ; Tue, 25 Jan 2022 09:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dYo70x4ClRdpjAlyXMPXH+la5i+QUDqixQ7cm4XNAxY=; b=tdVN+b9ZoJ67F7LOiea5x9e92VA/t2POlrVQpEPC/jfhxAywbWqmOqCZHkeLq7bCb1 OVasCgH6Nxrbswu+zhjW24Juqune1TIlNZXERbJV4hTNFZZrIeArLC4MRB7c6Yzhh8Sx UFczSlQ1iVaciRzc+DMsOsxC2HIg1yA7BOo/jKA53sAacdL+bFGt+BGCblTV1juGGjdh Ipnh7kqq3uXKaxCy2nOZk1Ib3L4xPFO+bJT/1dkNd9p2dt3uKVy5rHHNF4ex41GehoW2 rjSlOGrU5MOiFnjOb140/OcPeVSi4jnQ3lhWQW7IH2ml2GQCfyx8Hh00fzvwM/8vXwvb LxWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dYo70x4ClRdpjAlyXMPXH+la5i+QUDqixQ7cm4XNAxY=; b=o3fpy+67suOw5X/6GITKrP5uPadylB/LoL9D3QJlrPTFjVEVChOwcgJnziXts9BjQ1 qJl+WGsLJm4Bo4tR7NVvuD+BMDBuif6+yZ6gkGU0GK3lwrGm4XvbYU7gM2oSIUOBpNI6 In4yzYohltCLHFh0N6QAxKJy4je/WKhS2H61Ov5NNsXLBcz1YVfrpJxPHP/J1HLUuk9/ q1O+lYpm7czHVcM5OSCCTpct8vNS1GRaN4WOLPz38+siESKrW2qwwKAiBysQVwAKs7Z7 Xuyiro5cm5xkFaqB2Sv4qKpAPyc9F/sKCJzKa+keGRwiJ0/U183IGCXZR8wrCjXyOaNs VIhQ== X-Gm-Message-State: AOAM531WTj5rGN/5TvM6T+aJ2u5rKFrQe+w3ePdnb1SlYSOt9FNe92Oa RFGGzNnZH6D7FxRqrcJWKRQdpFZB6PHf1KDnaQeWiA== X-Google-Smtp-Source: ABdhPJzMynBqCklZtl+1+29yIV/+MlSUULpwwq9IoEQGd7kyNuXG/z7bocrVvM6wNSWTvtOtX+4syvePL9I7CBPPFTg= X-Received: by 2002:a2e:b53a:: with SMTP id z26mr10813258ljm.444.1643130250676; Tue, 25 Jan 2022 09:04:10 -0800 (PST) MIME-Version: 1.0 References: <33b7c479-c85d-0d48-4971-1b093925e326@pgug.de> In-Reply-To: <33b7c479-c85d-0d48-4971-1b093925e326@pgug.de> From: Magnus Hagander Date: Tue, 25 Jan 2022 18:03:59 +0100 Message-ID: Subject: Re: Update Commitfest requirements and README To: "Andreas 'ads' Scherbaum" Cc: pgsql-www@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Jan 22, 2022 at 6:34 PM Andreas 'ads' Scherbaum wrote: > > > Hello, > > While trying something out on the Commitfest, I found that the README > and the dependencies are quite outdated. It still requires Django 1.8, as example. > And a couple modules are missing, which are not listed in the dependencies. > > Attached patch takes a first shot at this problem, updates dependencies and > README to Django 3.2 and adds all missing modules (so far). Yeah, this looks cvorrect. Applied. > This brings the website into a state where it at least starts. > But then when I try to login, I run into this error: > > 'Settings' object has no attribute 'PGAUTH_REDIRECT' > > Apparently the example settings for local_settings.py are incomplete. yeah. You need to set PGAUTH_REDIRECT and PGAUTH_KEY to have it integrate with a local pgweb. I think the intention was at some point to make it usable without that, and just with local accounts, but it doesn't appear to be -- either that was never done or it has gone broken over time. I think you can make it work locally by just commenting out all references to the "pgcommitfest.auth" module from urls.py? -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/