|
X-He-Spam-Score: -1.9
|
|
Return-Path: <evgeni@golov.de>
|
|
Delivered-To: dropbox@plan.io
|
|
Received: from m.launchco.com ([127.0.0.1])
|
|
by m.launchco.com with LMTP id IOemKaEMRl7HHQAAa1G0NA
|
|
for <dropbox@plan.io>; Fri, 14 Feb 2020 03:57:37 +0100
|
|
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on m.launchco.com
|
|
X-Spam-Level:
|
|
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE
|
|
autolearn=ham autolearn_force=no version=3.4.2
|
|
X-Spam-Report:
|
|
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
|
|
* [score: 0.0000]
|
|
* 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
|
|
X-Spam-Score: -1.9
|
|
Envelope-to: inbox+pulp+c71e+pulp@plan.io
|
|
Authentication-Results: m.launchco.com; dmarc=none (p=none dis=none) header.from=golov.de
|
|
Received: from shokki.die-welt.net (shokki.die-welt.net [188.68.62.55])
|
|
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
|
|
(No client certificate requested)
|
|
by m.launchco.com (Postfix) with ESMTPS id 8DAE980115
|
|
for <inbox+pulp+c71e+pulp@plan.io>; Fri, 14 Feb 2020 03:57:37 +0100 (CET)
|
|
Received: from localhost (localhost [127.0.0.1])
|
|
by shokki.die-welt.net (Postfix) with ESMTP id 205E0C09E7
|
|
for <inbox+pulp+c71e+pulp@plan.io>; Fri, 14 Feb 2020 02:57:37 +0000 (UTC)
|
|
Received: from shokki.die-welt.net ([127.0.0.1])
|
|
by localhost (shokki.die-welt.net [127.0.0.1]) (amavisd-new, port 10023)
|
|
with ESMTP id yU7rK51zI4f2 for <inbox+pulp+c71e+pulp@plan.io>;
|
|
Fri, 14 Feb 2020 02:57:36 +0000 (UTC)
|
|
Received: from [127.0.0.1] (ip-109-40-128-38.web.vodafone.de [109.40.128.38])
|
|
(Authenticated sender: sargentd@die-welt.net)
|
|
by shokki.die-welt.net (Postfix) with ESMTPSA id B6D40C0623
|
|
for <inbox+pulp+c71e+pulp@plan.io>; Fri, 14 Feb 2020 02:57:35 +0000 (UTC)
|
|
Date: Fri, 14 Feb 2020 02:57:32 +0000
|
|
From: Evgeni Golov <evgeni@golov.de>
|
|
To: Pulp <inbox+pulp+c71e+pulp@plan.io>
|
|
Subject: Re: [Pulp - Story #5859] As a user, I have a wrapper around django-admin that sets DJANGO_SETTINGS_MODULE=pulpcore.app.settings
|
|
In-Reply-To: <redmine.journal-53059.20200213213328.347028fbceb0d193@plan.io>
|
|
References: <redmine.issue-5859.20191210091512@plan.io> <redmine.journal-53059.20200213213328.347028fbceb0d193@plan.io>
|
|
Message-ID: <589E6BF7-A32C-4EA3-8285-985EC2608E37@golov.de>
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain;
|
|
charset=utf-8
|
|
Content-Transfer-Encoding: quoted-printable
|
|
|
|
Where does your /usr/share/bash-completion/completions/django-admin come fr=
|
|
om? pip install django does not create that file=2E
|
|
|
|
On February 13, 2020 9:33:28 PM UTC, Pulp <notifications@plan=2Eio> wrote:
|
|
>\--- Please write your response above this line ---
|
|
>
|
|
>
|
|
>Issue #5859 has been updated by mdepaulo@redhat=2Ecom=2E
|
|
>
|
|
>
|
|
>+1 to this=2E
|
|
>
|
|
>I just did some testing myself, by using a modified completions file:
|
|
>```
|
|
>[mdepaulo@mdepaulo ~]$ diff -u /usr/share/bash-completion/completions/dja=
|
|
ngo-admin ~/completions/pulp-django-admin=20
|
|
>--- /usr/share/bash-completion/completions/django-admin 2019-12-18 03:28:=
|
|
06=2E000000000 -0500
|
|
>+++ /home/mdepaulo/completions/pulp-django-admin 2020-02-13 16:26:56=2E62=
|
|
7202013 -0500
|
|
>@@ -37,7 +37,7 @@
|
|
> COMP_CWORD=3D$COMP_CWORD \
|
|
> DJANGO_AUTO_COMPLETE=3D1 $1 ) )
|
|
> }
|
|
>-complete -F _django_completion -o default django-admin=2Epy manage=2Epy =
|
|
django-admin
|
|
>+complete -F _django_completion -o default django-admin=2Epy manage=2Epy =
|
|
pulp-django-admin
|
|
>=20
|
|
> _python_django_completion()
|
|
> {
|
|
>```
|
|
>
|
|
>
|
|
>----------------------------------------
|
|
>Story #5859: As a user, I have a wrapper around django-admin that sets DJ=
|
|
ANGO_SETTINGS_MODULE=3Dpulpcore=2Eapp=2Esettings
|
|
>https://pulp=2Eplan=2Eio/issues/5859?pn=3D1#change-53059
|
|
>
|
|
>* Author: evgeni
|
|
>* Status: NEW
|
|
>* Priority: Normal
|
|
>* Assignee:=20
|
|
>* Category:=20
|
|
>* Sprint/Milestone: 3=2E2=2E0
|
|
>* Platform Release:=20
|
|
>* Blocks Release:=20
|
|
>* Backwards Incompatible: No
|
|
>* Groomed: Yes
|
|
>* Sprint Candidate: Yes
|
|
>* Tags:=20
|
|
>* QA Contact:=20
|
|
>* Complexity:=20
|
|
>* Smash Test:=20
|
|
>* Verified: No
|
|
>* Verification Required: No
|
|
>* Sprint: Sprint 66
|
|
>----------------------------------------
|
|
>### Background
|
|
>
|
|
>Users who want to apply migrations must configure their environment to sp=
|
|
ecify `DJANGO_SETTINGS_MODULE=3Dpulpcore=2Eapp=2Esettings`=2E This is a has=
|
|
sle that affects all users=2E
|
|
>
|
|
>### Solution
|
|
>
|
|
>1\=2E Create a wrapper around django-admin called `pulp-manage` =20
|
|
>2\=2E Have it set DJANGO_SETTINGS_MODULE=3Dpulpcore=2Eapp=2Esettings =20
|
|
>3\=2E Document it
|
|
>
|
|
>It should provide autocompletion=2E
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>--
|
|
>You have received this notification because you have either subscribed to=
|
|
or are involved in a project on Pulp Planio=2E =20
|
|
>To change your notification preferences, please click here: https://pulp=
|
|
=2Eplan=2Eio/my/account?tour=3Dmail_preferences
|
|
>
|
|
>
|
|
>This notification was cheerfully delivered by https://plan=2Eio
|
|
>=C2=A0
|
|
|
|
--=20
|
|
Sent from my Android phone with K-9 Mail=2E Please excuse my brevity=2E
|