Django-admin problem

105 views
Skip to first unread message

Mikko

unread,
May 4, 2018, 12:51:16 PM5/4/18
to Django users
Hi,

I'm trying to follow the tutorial, but I got this problem at the very beginning when I tried ''django-admin startproject mysite'':

django-admin : The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable pr
ogram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ django-admin startproject mysite
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (django-admin:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Could someone help me to overcome this?


Jani Tiainen

unread,
May 4, 2018, 2:26:43 PM5/4/18
to django...@googlegroups.com
Hi,

By the looks of error you're running windows.

By default scripts are not in PATH so you need to type something like c:\python36\scripts\django-admin.py

Or you should use virtualenv (or pipenv) which would set path correctly.

--
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/28096273-fd67-4084-ba8a-f4e3c75d5916%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew Pava

unread,
May 4, 2018, 2:30:09 PM5/4/18
to django...@googlegroups.com

And you’re using PowerShell instead of the command prompt.  I typically just work in the command prompt.  With PowerShell, you may have to be more explicit in your path, such as using “.\django-admin startproject mysite”

Mikko Meronen

unread,
May 4, 2018, 3:50:54 PM5/4/18
to django...@googlegroups.com
Thank you for your help.

I also found a video that helped me with PowerShell (just if someone else has the same problem): https://www.youtube.com/watch?v=3TqO5FfhV28


2018-05-04 21:27 GMT+03:00 Matthew Pava <Matthe...@iss.com>:

And you’re using PowerShell instead of the command prompt.  I typically just work in the command prompt.  With PowerShell, you may have to be more explicit in your path, such as using “.\django-admin startproject mysite”

 

From: django...@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jani Tiainen
Sent: Friday, May 4, 2018 1:26 PM
To: django...@googlegroups.com
Subject: Re: Django-admin problem

 

Hi,

 

By the looks of error you're running windows.

 

By default scripts are not in PATH so you need to type something like c:\python36\scripts\django-admin.py

 

Or you should use virtualenv (or pipenv) which would set path correctly.

 

pe 4. toukokuuta 2018 klo 19.51 Mikko <mikkovil...@gmail.com> kirjoitti:

Hi,

 

I'm trying to follow the tutorial, but I got this problem at the very beginning when I tried ''django-admin startproject mysite'':

 

django-admin : The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable pr

ogram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

+ django-admin startproject mysite

+ ~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (django-admin:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

 

Could someone help me to overcome this?

 

 

--
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.

--
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.

--
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.

Kamal Kumar Bharadwaj

unread,
May 4, 2018, 5:48:27 PM5/4/18
to django...@googlegroups.com
Hi all,

Thanks for al your help. My error was i was missing a / in websites/urls.py  in urlpatterns(music).

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
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.

--
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.

--
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.
Reply all
Reply to author
Forward
0 new messages