django-admin startproject tutorial conflicts with pip module #9517
Replies: 4 comments 2 replies
-
What's the content of the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I can reproduce with the following steps:
Here is the directory structure:
Here is the content of the from django.contrib.auth.models import Group, User
from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ['url', 'username', 'email', 'groups']
class GroupSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Group
fields = ['url', 'name'] I tried to rebuild the wheel and source distribution from the repo and it's not there, but when I download them from PyPI, they are included in the tarball & wheel, I guess a |
Beta Was this translation helpful? Give feedback.
-
This sounds like a packaging bug: the content of the source distribution and wheel aren't matching what's in the repo. Is it worth publishing a new 3.15.2-post, same as 3.1.5.2 but without this extra content? It will require one of the maintainers to do it (I think @tomchristie @auvipy @peterthomassen - sorry for tagging). As a side note, is there an appetite to automate the release process? Feels like there is room for human error at the moment, and PyPI supports trusted publisher which enable publishing from GH actions without having a long lived PyPI token. |
Beta Was this translation helpful? Give feedback.
-
Trying to follow the: Tutorial 1: Serialization I created the venv and installed the 3 packages as instructed. Then when I try to:
django-admin startproject tutorial
it says it conflicts with and existing Python module. Using other name for the project works ok. There is a tutorial module inside the site-packages probably bundled with one of the packages that I installed with pip but it's conflicting with the project name. Maybe it's a good a idea to check why is this module being installed or change the documentation to startproject with any other name.Beta Was this translation helpful? Give feedback.
All reactions