Project

Profile

Help

Story #5859 ยป Re_ [Pulp - Story #5859] As a user, I have a wrapper around django-admin that sets DJANGO_SETTINGS_MODULE=pulpcore.app.settings - 2020-02-14T02_57_49Z.eml

evgeni, 02/14/2020 03:57 AM

 
1
X-He-Spam-Score: -1.9
2
Return-Path: <evgeni@golov.de>
3
Delivered-To: dropbox@plan.io
4
Received: from m.launchco.com ([127.0.0.1])
5
	by m.launchco.com with LMTP id IOemKaEMRl7HHQAAa1G0NA
6
	for <dropbox@plan.io>; Fri, 14 Feb 2020 03:57:37 +0100
7
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on m.launchco.com
8
X-Spam-Level: 
9
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE
10
	autolearn=ham autolearn_force=no version=3.4.2
11
X-Spam-Report: 
12
	* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
13
	*      [score: 0.0000]
14
	*  0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
15
X-Spam-Score: -1.9
16
Envelope-to: inbox+pulp+c71e+pulp@plan.io
17
Authentication-Results: m.launchco.com; dmarc=none (p=none dis=none) header.from=golov.de
18
Received: from shokki.die-welt.net (shokki.die-welt.net [188.68.62.55])
19
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
20
	(No client certificate requested)
21
	by m.launchco.com (Postfix) with ESMTPS id 8DAE980115
22
	for <inbox+pulp+c71e+pulp@plan.io>; Fri, 14 Feb 2020 03:57:37 +0100 (CET)
23
Received: from localhost (localhost [127.0.0.1])
24
	by shokki.die-welt.net (Postfix) with ESMTP id 205E0C09E7
25
	for <inbox+pulp+c71e+pulp@plan.io>; Fri, 14 Feb 2020 02:57:37 +0000 (UTC)
26
Received: from shokki.die-welt.net ([127.0.0.1])
27
	by localhost (shokki.die-welt.net [127.0.0.1]) (amavisd-new, port 10023)
28
	with ESMTP id yU7rK51zI4f2 for <inbox+pulp+c71e+pulp@plan.io>;
29
	Fri, 14 Feb 2020 02:57:36 +0000 (UTC)
30
Received: from [127.0.0.1] (ip-109-40-128-38.web.vodafone.de [109.40.128.38])
31
	(Authenticated sender: sargentd@die-welt.net)
32
	by shokki.die-welt.net (Postfix) with ESMTPSA id B6D40C0623
33
	for <inbox+pulp+c71e+pulp@plan.io>; Fri, 14 Feb 2020 02:57:35 +0000 (UTC)
34
Date: Fri, 14 Feb 2020 02:57:32 +0000
35
From: Evgeni Golov <evgeni@golov.de>
36
To: Pulp <inbox+pulp+c71e+pulp@plan.io>
37
Subject: Re: [Pulp - Story #5859] As a user, I have a wrapper around django-admin that sets DJANGO_SETTINGS_MODULE=pulpcore.app.settings
38
In-Reply-To: <redmine.journal-53059.20200213213328.347028fbceb0d193@plan.io>
39
References: <redmine.issue-5859.20191210091512@plan.io> <redmine.journal-53059.20200213213328.347028fbceb0d193@plan.io>
40
Message-ID: <589E6BF7-A32C-4EA3-8285-985EC2608E37@golov.de>
41
MIME-Version: 1.0
42
Content-Type: text/plain;
43
 charset=utf-8
44
Content-Transfer-Encoding: quoted-printable
45

    
46
Where does your /usr/share/bash-completion/completions/django-admin come fr=
47
om? pip install django does not create that file=2E
48

    
49
On February 13, 2020 9:33:28 PM UTC, Pulp <notifications@plan=2Eio> wrote:
50
>\--- Please write your response above this line ---
51
>
52
>
53
>Issue #5859 has been updated by mdepaulo@redhat=2Ecom=2E
54
>
55
>
56
>+1 to this=2E
57
>
58
>I just did some testing myself, by using a modified completions file:
59
>```
60
>[mdepaulo@mdepaulo ~]$ diff -u /usr/share/bash-completion/completions/dja=
61
ngo-admin ~/completions/pulp-django-admin=20
62
>--- /usr/share/bash-completion/completions/django-admin	2019-12-18 03:28:=
63
06=2E000000000 -0500
64
>+++ /home/mdepaulo/completions/pulp-django-admin	2020-02-13 16:26:56=2E62=
65
7202013 -0500
66
>@@ -37,7 +37,7 @@
67
>                    COMP_CWORD=3D$COMP_CWORD \
68
>                    DJANGO_AUTO_COMPLETE=3D1 $1 ) )
69
> }
70
>-complete -F _django_completion -o default django-admin=2Epy manage=2Epy =
71
django-admin
72
>+complete -F _django_completion -o default django-admin=2Epy manage=2Epy =
73
pulp-django-admin
74
>=20
75
> _python_django_completion()
76
> {
77
>```
78
>
79
>
80
>----------------------------------------
81
>Story #5859: As a user, I have a wrapper around django-admin that sets DJ=
82
ANGO_SETTINGS_MODULE=3Dpulpcore=2Eapp=2Esettings
83
>https://pulp=2Eplan=2Eio/issues/5859?pn=3D1#change-53059
84
>
85
>* Author: evgeni
86
>* Status: NEW
87
>* Priority: Normal
88
>* Assignee:=20
89
>* Category:=20
90
>* Sprint/Milestone: 3=2E2=2E0
91
>* Platform Release:=20
92
>* Blocks Release:=20
93
>* Backwards Incompatible: No
94
>* Groomed: Yes
95
>* Sprint Candidate: Yes
96
>* Tags:=20
97
>* QA Contact:=20
98
>* Complexity:=20
99
>* Smash Test:=20
100
>* Verified: No
101
>* Verification Required: No
102
>* Sprint: Sprint 66
103
>----------------------------------------
104
>### Background
105
>
106
>Users who want to apply migrations must configure their environment to sp=
107
ecify `DJANGO_SETTINGS_MODULE=3Dpulpcore=2Eapp=2Esettings`=2E This is a has=
108
sle that affects all users=2E
109
>
110
>### Solution
111
>
112
>1\=2E Create a wrapper around django-admin called `pulp-manage` =20
113
>2\=2E Have it set DJANGO_SETTINGS_MODULE=3Dpulpcore=2Eapp=2Esettings =20
114
>3\=2E Document it
115
>
116
>It should provide autocompletion=2E
117
>
118
>
119
>
120
>
121
>--
122
>You have received this notification because you have either subscribed to=
123
 or are involved in a project on Pulp Planio=2E =20
124
>To change your notification preferences, please click here: https://pulp=
125
=2Eplan=2Eio/my/account?tour=3Dmail_preferences
126
>
127
>
128
>This notification was cheerfully delivered by https://plan=2Eio
129
>=C2=A0
130

    
131
--=20
132
Sent from my Android phone with K-9 Mail=2E Please excuse my brevity=2E
    (1-1/1)