Where is django-admin?

120 views
Skip to first unread message

Pelle Pälsänger

unread,
Apr 27, 2017, 9:22:13 AM4/27/17
to Django users
Hi!

I try to learn how to create web apps with django following https://pythonprogramming.net/django-web-development-with-python-intro/.
I have done:
c:\Python34\Lib\site-packages>git clone https://github.com/django/django.git
c:\Python34\Lib\site-packages>py -m pip install Django==1.11

Then django-admin startproject mysite fails because django-admin is not recognized. I cannot find it? Where is the result of the installation with django-admin?
I work with Windows10.
BR. Pelle 

Pelle Pälsänger

unread,
Apr 27, 2017, 9:22:13 AM4/27/17
to Django users
Hi!

I try to learn how to create web apps with django on windows10. 
I have downloaded django1.11 ($git clone https://github.com/django/django.git) and installed it ($py -m pip install Django==1.11).

Then I try to start a project with django-admin startproject mySite, but django-admin is not recognized as a command. I search for django-admin but I cannot find it. Tell me why? Where should I find it, to add it to path!?

BR. Pelle

ludovic coues

unread,
Apr 28, 2017, 3:08:17 AM4/28/17
to django...@googlegroups.com
You might be more successful with a different tutorial. I recommend django girls for all beginner. It's great tutorial, the most beginner friendly I've seen. That's how I learned to use form in django.

This link is where they show how to install django, with instructions about windows, win8 and win10.


--
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 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/931b6b5f-23a6-4b25-b13e-106409230681%40googlegroups.com.

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

Pelle Pälsänger

unread,
Apr 28, 2017, 4:50:51 AM4/28/17
to Django users
OK, I have done installations of pip, myvenv and django. No problems.
Then I try django-admin.py startproject mysite . But nothing happens. No messages in the command window and no new directories in C:\Users\stig\djangogirls. The same problem as before following another tutorial. Does anyone have any clue?
Best Regards from Stig Larsson 

Andréas Kühne

unread,
Apr 28, 2017, 5:43:54 AM4/28/17
to django...@googlegroups.com
Have you tried searching for django-admin.py?

It is a regular python file that should be installed in your virtual environment. I have never used django on windows, so I don't know where that would be. 

If you can find the file your path probably needs updating?

Regards,

Andréas

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

Pelle Pälsänger

unread,
Apr 28, 2017, 7:09:04 AM4/28/17
to Django users
Yes I know where django-admin.py is. I put C:\Users\stig\djangogirls\myvenv\Scripts in my path. 
BR,
Stig



Den torsdag 27 april 2017 kl. 15:22:13 UTC+2 skrev Pelle Pälsänger:

shahab emami

unread,
Apr 28, 2017, 9:12:15 AM4/28/17
to Django users
then you have to open your command line in the same path that django-admin.py is.

Pelle Pälsänger

unread,
May 2, 2017, 2:13:26 AM5/2/17
to Django users
Yes, I have done that and made (myvenv) C:\Users\stig\djangogirls\myvenv\Scripts>django-admin.py startproject mysite . , but no djangogirls\mysite created.
My django-admin looks like below. Maybe something should be added to make it work?
#!c:\users\stig\djangogirls\myvenv\scripts\python.exe
from django.core import management

if __name__ == "__main__":
management.execute_from_command_line()

Pelle Pälsänger

unread,
May 2, 2017, 9:31:30 AM5/2/17
to Django users


Den torsdag 27 april 2017 kl. 15:22:13 UTC+2 skrev Pelle Pälsänger:

Pelle Pälsänger

unread,
May 2, 2017, 9:35:02 AM5/2/17
to Django users
Hi friends!
It worked when I run $python django-admin.exe startproject mysite, not with django-admin.py. This is Windows 10.1. Python 3.6.1. 

BR.
Stig


Den torsdag 27 april 2017 kl. 15:22:13 UTC+2 skrev Pelle Pälsänger:
Reply all
Reply to author
Forward
0 new messages