Trying to set up a website using Django but something went wrong

52 views
Skip to first unread message

owen

unread,
Aug 6, 2016, 12:03:06 PM8/6/16
to Django users
I downloaded Django recently and I have all the necessary files (Or at least I think I do )

However when I try to set up a project through this line of code:

$ django-admin startproject mysite  

In the command prompt it returns the following message.

'django-admin' is not recognized as an internal or external command, operable program or batch file.'

I know django-admin is there because I searched for it...Can someone please help

Regards,
Owen

Huy T

unread,
Aug 6, 2016, 1:18:27 PM8/6/16
to django...@googlegroups.com
Is it in your path?
--
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/d445e0a6-bb06-423f-b50b-f48b51a214ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

M Hashmi

unread,
Aug 6, 2016, 2:08:11 PM8/6/16
to django...@googlegroups.com
1. Type "python" in your terminal and if it open ups Python interpreter that means path is setup for Python.
 
2. If confirmed that Python is installed you might want to install setuptools. 

3. With setuptools a small app "pip" which is programmed to bring packages upon request from pypi or Djangoproejcts official repositories for reusable apps.

4. Learn to create Virtualenv for your proejct its simply 3 commands but I am not sure what OS you are at so see docs for related OS.

5. Anytime if you are not getting response from a package command or in your case django-admin.py is not recoginized...you need to check installed packages by "pip freeze" command in terminal without quotes. It will show you all installed packages.

In your case terminal is not able to communicate with your python based app. There are only two reasons for it...you haven't configured pythonpath for OS or Django is not installed.

Go by checklist and if you are still stuck I will help you.
Regards,
Mudassar

On Sat, Aug 6, 2016 at 10:18 AM, Huy T <huys...@gmail.com> wrote:
Is it in your path?

On Aug 6, 2016, at 11:42 AM, owen <okel...@gmail.com> wrote:

I downloaded Django recently and I have all the necessary files (Or at least I think I do )

However when I try to set up a project through this line of code:

$ django-admin startproject mysite  

In the command prompt it returns the following message.

'django-admin' is not recognized as an internal or external command, operable program or batch file.'

I know django-admin is there because I searched for it...Can someone please help

Regards,
Owen

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

Andrew Emory

unread,
Aug 6, 2016, 7:44:55 PM8/6/16
to Django users
Do you have Python installed?
Reply all
Reply to author
Forward
0 new messages