remove ./ from commands

31 views
Skip to first unread message

ken....@catapultconsulting.net

unread,
Apr 21, 2016, 11:25:53 AM4/21/16
to Django users
I just installed django 1.9.5.  Now I have to type ./manage.py when I used to just type manage.py.  How do I get rid of the need to type ./ 
osx el capitan

Gergely Polonkai

unread,
Apr 21, 2016, 1:14:52 PM4/21/16
to Django users
This is not a Django question per se, but you can either use

python manage.py

or add the directory where the manage.py script reside to the path. This latter depends on what shell you use, but I guess it’s the default of OS X, so your command becomes this:

export PATH="/Path/where/your/project/lives:$PATH"

After this one, you can enter plain

manage.py
2016-04-21 6:46 GMT+02:00 <ken....@catapultconsulting.net>:
I just installed django 1.9.5.  Now I have to type ./manage.py when I used to just type manage.py.  How do I get rid of the need to type ./ 
osx el capitan

--
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/8c85511f-b848-4e20-8339-5bcb403184eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ludovic coues

unread,
Apr 21, 2016, 1:16:19 PM4/21/16
to django...@googlegroups.com
Do you have the current dir in your path ?


2016-04-21 6:46 GMT+02:00 <ken....@catapultconsulting.net>:
> --
> 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/8c85511f-b848-4e20-8339-5bcb403184eb%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

Григор Колев

unread,
Apr 21, 2016, 1:56:51 PM4/21/16
to Django users
I have no idea how it is on the OSX, but on Linux
./ mean ( run as program and i must have +x on file).
The good idea is on the first line in manage.py to add something like that:
#!env/bin/python
or
#!/usr/bin/env python

It is the python interpreter path

Try to add this line.
On linux if have this line manage.py run without to need activate virtualenv

Camilo Torres

unread,
Apr 23, 2016, 10:35:01 PM4/23/16
to Django users
On Thursday, April 21, 2016 at 6:55:53 AM UTC-4:30, ken....@catapultconsulting.net wrote:
I just installed django 1.9.5.  Now I have to type ./manage.py when I used to just type manage.py.  How do I get rid of the need to type ./ 
osx el capitan

Hi,
export PAHT=$PATH:.
then run your command. 
Reply all
Reply to author
Forward
0 new messages