got error in terminal, ubuntu

13 views
Skip to first unread message

AKHIL KORE

unread,
Nov 2, 2022, 10:52:31 AM11/2/22
to django...@googlegroups.com
(myprojectenv) user@DIPL-PC290:~/myprojectdir$ django-admin.py startproject myproject ~/myprojectdir
django-admin.py: command not found

Kasper Laudrup

unread,
Nov 2, 2022, 1:17:33 PM11/2/22
to django...@googlegroups.com
For security reasons the current working directory is not in your PATH
on Unix systems. You need to provide the full path to the executable you
want to run, eg. ./django-admin.py.

Of course, the file needs to have the executable bit set as well.

Alternatively, ensure that django-admin.py is in your PATH environment
as well as being executable of course.

You could also run the python source with the python interpreter instead
of making it executable.

Kind regards,

Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature

subin

unread,
Nov 3, 2022, 3:26:35 PM11/3/22
to django...@googlegroups.com
Ready for your next order of [product name]? Order now so you don’t run out!

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/32dd97ae-119b-0fa6-be8c-c3830e7d03cc%40stacktrace.dk.

subin

unread,
Nov 3, 2022, 3:44:48 PM11/3/22
to django...@googlegroups.com
I will continue learning more about .

On Wed, Nov 2, 2022 at 3:52 PM AKHIL KORE <akhilk...@gmail.com> wrote:
(myprojectenv) user@DIPL-PC290:~/myprojectdir$ django-admin.py startproject myproject ~/myprojectdir
django-admin.py: command not found

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

Jana (Codi Coop)

unread,
Nov 3, 2022, 10:32:15 PM11/3/22
to django...@googlegroups.com
Make sure you've installed Django on your system, or you virtual environment if you're using one. If you've installed Django on your virtual environment, the problem might be that you haven't activated it.


------- Original Message -------
El dimecres, 2 de novembre 2022 a les 6:43 AM, AKHIL KORE <akhilk...@gmail.com> va escriure:

(myprojectenv) user@DIPL-PC290:~/myprojectdir$ django-admin.py startproject myproject ~/myprojectdir
django-admin.py: command not found

--
Reply all
Reply to author
Forward
0 new messages