Hi!
I wanted to simply go through Quickstart but I stuck in here:
django-admin startproject tutorial .  # Note the trailing '.' character

I use dev-containers with default settings but regardless of that I get: 
"CommandError: 'tutorial' conflicts with the name of an existing Python 
module and cannot be used as a project name. Please try another name."

It turns out that when I installed "pip install djangorestframework". This 
package itself contain extra directory /tutorial (Python recognise it as 
independent package - which spawn conflict and unable to install in 
"tutorial" directory as Quickstart say). 

It's strange why isn't located in djangorestframework/tutorial as the rest 
of framework code (except dependencies). 

You don't find information about this in any other place - path shows only 
when you delete restdjangoframework package via pip.

So following the Quickstart we goes to the point where adding trailing 
 (as note in comments) "." character couldn't have help us as well. 

Rule that say "mkdir tutorial" is also unnecessary - django-admin create 
the directory for us.

Python version: 3.12 / 
dev-image: "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye"  

Discussion page was suspended so I report it here - the easiest way is 
changing "tutorial" in docs for something else or repairing build in pypi.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/django-rest-framework/08ff07c4-0d47-4da9-8015-1b0bf22677fen%40googlegroups.com.

Reply via email to