Opened 7 years ago

Last modified 3 years ago

#28426 closed New feature

startproject with a remote template gives an authentication prompt on Python 2 but 401: Unauthorized on Python 3 — at Version 2

Reported by: Elena Georgiou Strouthos Owned by: nobody
Component: Core (Management commands) Version: 1.11
Severity: Normal Keywords:
Cc: Nahuel Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Elena Georgiou Strouthos)

We have a Django template hosted in a private repository.

When we run
django-admin.py startproject --template=https://bitbucket.org/<team>/simple_template/get/master.zip --name=Procfile myproject .
with Python 2.7 we get a prompt for username and password.

However the same command using Python 3.6 returns the following error:
CommandError: couldn't download URL https://bitbucket.org/<team>/simple_template/get/master.zip to master.zip: HTTP Error 401: Unauthorized

Change History (2)

comment:1 by Tim Graham, 7 years ago

Component: UncategorizedCore (Management commands)
Summary: Starting a project from a template with Django 1.11 and Python 3startproject with a remote template gives an authentication prompt on Python 2 but 401: Unauthorized on Python 3
Triage Stage: UnreviewedAccepted

Perhaps there's a difference in urlretrieve() between Python 2 and 3. I'm not sure if there's anything Django can do about it. Do you want to investigate?

comment:2 by Elena Georgiou Strouthos, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top