Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 15, 2011 18:09:43

n.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

django-admin.py not working?


I'm running Windows Vista and Im trying to create a project.

When I try to run FULLPATH\django-admin.py startproject webapp1, I get
back the help list. This happens no matter what subcommand I use. I
took a screen shot an posted a similar question on SO herehttp://stackoverflow.com/questions/4696831/help-with-django-installationAny help would be much appreciated.

Nai

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 15, 2011 18:20:00

A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

django-admin.py not working?


You will have to specially run the script with python.. so:

python FULLPATH\django-admin.py startproject webapp1

I'm not sure why it behaves like this.

On 15 January 2011 18:00, nai <chng.nai...@gmail.com> wrote:
> I'm running Windows Vista and Im trying to create a project.
>
> When I try to run FULLPATH\django-admin.py startproject webapp1, I get
> back the help list. This happens no matter what subcommand I use. I
> took a screen shot an posted a similar question on SO here
>http://stackoverflow.com/questions/4696831/help-with-django-installation>
> Any help would be much appreciated.
>
> Nai
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 15, 2011 18:24:17

n.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

django-admin.py not working?


OMG THAT WORKED! Thank you so much but I don't understand why NONE of
the documentation mentioned anything about putting a python in front
of it. URGH!!

Thanks again!

On Jan 15, 6:19 pm, Acorn <shiniest.ac...@gmail.com> wrote:
> You will have to specially run the script with python.. so:
>
>    python FULLPATH\django-admin.py startproject webapp1
>
> I'm not sure why it behaves like this.
>
> On 15 January 2011 18:00, nai <chng.nai...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I'm running Windows Vista and Im trying to create a project.
>
> > When I try to run FULLPATH\django-admin.py startproject webapp1, I get
> > back the help list. This happens no matter what subcommand I use. I
> > took a screen shot an posted a similar question on SO here
> >http://stackoverflow.com/questions/4696831/help-with-django-installation>
> > Any help would be much appreciated.
>
> > Nai
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group
> > athttp://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Jan. 18, 2011 09:16:11

D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

django-admin.py not working?


You're right - they don't (and you can suggest they do - other code on
the same page does show this e.g. python manage.py runserver).

However... Django is written in Python and it does say right on the
"Getting started" page (http://docs.djangoproject.com/en/dev/intro/)
that "If you’re new to Python, you might want to start by getting an
idea of what the language is like. Django is 100% Python, so if you’ve
got minimal comfort with Python you’ll probably get a lot more out of
Django.". Assuming that you have programmed before (but not in
Python), you would then follow the link to "Dive into Python". It
would tell you how to install ActivePython on Windows (http://
diveintopython.org/installing_python/windows.html). You would then
want to see how to run a program, so you'd read "Diving In" (http://
diveintopython.org/getting_to_know_python/index.html), where it tells
you how to run a program under the ActivePython IDE on Windows. If
you do not want to (or cannot) do it this way, then you would need to
dig a little deeper... one clue is provided at the end of this "Diving
In" page - "you can run a Python program from the command line: python
odbchelper.py", which implies that the word "python" is needed in
front of a program name to make it run... makes sense?

In summary; the developers have done a fantastic job and built a
complex tool that hugely simplifies your life. While the docs do
their best to make getting started really easy, they do not (and
should not) repeat the Python fundamentals that are well documented
elsewhere. Getting to grips with some Python basics will make your
learning curve so much easier.

P.S. This blog article may also shed some light in a much broader
sense -http://dougalmatthews.com/articles/2009/dec/14/django-its-just-python/On Jan 15, 8:24 pm, nai <chng.nai...@gmail.com> wrote:
> OMG THAT WORKED! Thank you so much but I don't understand why NONE of
> the documentation mentioned anything about putting a python in front
> of it. URGH!!
>
> Thanks again!
>
> On Jan 15, 6:19 pm, Acorn <shiniest.ac...@gmail.com> wrote:
>
> > You will have to specially run the script with python.. so:
>
> >    python FULLPATH\django-admin.py startproject webapp1
>
> > I'm not sure why it behaves like this.
>
> > On 15 January 2011 18:00, nai <chng.nai...@gmail.com> wrote:
>
> > > I'm running Windows Vista and Im trying to create a project.
>
> > > When I try to run FULLPATH\django-admin.py startproject webapp1, I get
> > > back the help list. This happens no matter what subcommand I use. I
> > > took a screen shot an posted a similar question on SO here
> > >http://stackoverflow.com/questions/4696831/help-with-django-installation>
> > > Any help would be much appreciated.
>
> > > Nai
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Django users" group.
> > > To post to this group, send email to django-users@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group
> > > athttp://groups.google.com/group/django-users?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support