Project initialization

43 views
Skip to first unread message

Lara Garg

unread,
Jan 19, 2019, 6:06:52 PM1/19/19
to Django users
Why write django-admin startproject xyz and not just django startproject xyz?
Thanks in advance

tribhuvan kishor

unread,
Jan 20, 2019, 1:12:12 AM1/20/19
to django...@googlegroups.com
first, check your Django properly installed or not.
and tell me which operating system you are using.

On Sun, Jan 20, 2019 at 4:36 AM Lara Garg <lg...@ec.iitr.ac.in> wrote:
Why write django-admin startproject xyz and not just django startproject xyz?
Thanks in advance

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/045eb142-bd03-4891-9f8d-2343babe635a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
regards 
Tribhuvan Kishor Bhaskar

Lara Garg

unread,
Jan 20, 2019, 9:30:48 AM1/20/19
to Django users
Yes, it's properly installed and currently i am using Debian

Jani Tiainen

unread,
Jan 20, 2019, 10:03:14 AM1/20/19
to django...@googlegroups.com
Hi,

If you were wondering why django-admin and not django. Explanation is rather simple. When Django python package is built "django-admin" is designated as a script that will be executed. Django within python namespace is just name of the package.

So that's why django-admin is used to bootstrap your project. Note that it is not necessary to do that, it's just for convenience.

You could just manually create files and it would work just fine. There also exists templates for cookie-cutter tool that can build similar structuers.


--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

Nigel Copley

unread,
Jan 20, 2019, 2:21:45 PM1/20/19
to django...@googlegroups.com
On this topic I've been wondering why some people use python manage.py startapp instead of django-admin startapp, is there any difference?

Lara Garg

unread,
Jan 20, 2019, 5:06:17 PM1/20/19
to Django users
Most of the terminology that you have used is complete alien to me rn, but I hope to get there soon and will be able to understand then.
Thanks

Jason

unread,
Jan 20, 2019, 8:51:07 PM1/20/19
to Django users
Might be beneficial to review this documentation  https://docs.djangoproject.com/en/2.1/ref/django-admin/

It does a good job of specifying the differences.

Myself, using OSX and/or docker for all my projects, I only use django-admin to start a project, and use manage.py for everything else.

Lara Garg

unread,
Jan 21, 2019, 11:47:35 AM1/21/19
to django...@googlegroups.com
Yes it was, indeed.
Thanks and Regards

Lara Garg
B.tech, ECE (III)
IIT ROORKEE
mobile: (+91)8954240448
email: lg...@ec.iitr.ac.in


--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/62RzaOKRHzQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages