Django-admin.py Not Working (-bash:django-admin.py: Command Not Found)
I'm having trouble getting django-admin.py to work... it's in this first location: /Users/mycomp/bin/ but I think I need it in another location for the terminal to recognize it, n
Solution 1:
you need to export /Users/mycomp/bin to environment variable PATH
for a session
export PATH=/Users/mycomp/bin:$PATH
for permanent, whenever you use bash
echo"export PATH=/Users/mycomp/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc
Note: And I think django automatically create executable django-admin
file in the bin folder (notice there is no extensions .py) when you installed, So you should try django-admin
only too.
Post a Comment for "Django-admin.py Not Working (-bash:django-admin.py: Command Not Found)"