Monday, May 31, 2021

Re: How does django-admin work?

Welcome to Django!

Django does not add django-admin to your path. Rather, when Django is installed it (sometimes) happens to be installed into a place which is already in your path. Otherwise, you need to add it to your path or use a packaging system such as anaconda which helps do that for you.

startproject simply copies a set of files to your directories, filling in a few details and changing the file names to match what you want to create since you give it the name of your new project.

hth

- Tom

On May 31, 2021, at 5:43 PM, J Lee <ljin0906@gmail.com> wrote:

I'm new to Django, and I've just been dazzled by the magic of Django. My main question is how does Django add django-admin to my path automatically and how does django-admin startproject create my files?

It may be waaaay over my head, but I welcome any and all response. I would like to learn from this. 

Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5b022968-ac51-4e49-873d-f9a3b7b88ba4n%40googlegroups.com.

No comments:

Post a Comment