django-admin.py: command not found (bluehost server)

前端 未结 2 2009
清歌不尽
清歌不尽 2021-01-14 22:19

After struggling more than 6 hours, I decided to ask for help.

Mission: To create a project with the help of Django
Tools: Windows Vista, Putty SSH
Loca

相关标签:
2条回答
  • 2021-01-14 22:35

    Add django path to your $PATH.

    Change you ~/.bashrc to

    # .bashrc
    export PATH=$HOME/.local/bin:$HOME/.local/usr/bin:$HOME/Django-1.5/bin/:$PATH
    
     #User specific aliases and functions
    
    
    alias mv='mv -i'
    alias rm='rm -i'
    alias cp='cp -i'
    
    # Source global definitions
    if [ -f /etc/bashrc ]; then
            . /etc/bashrc
    fi
    ~
    ~
    
    0 讨论(0)
  • 2021-01-14 23:01

    Modify your .bashrc PATH entry to look like:

    export PATH=$HOME/Django-1.5/bin/:$HOME/.local/bin:$HOME/.local/usr/bin:$PATH
    

    And reload your .bashrc by doing:

    # . ~/.bashrc
    
    0 讨论(0)
提交回复
热议问题