0
我在Windows 8上使用Git Bash,我試圖在Django中設置一個新項目。我已經安裝了Python(3.4版)和Django(1.7.4),並在Windows中添加了一個環境變量路徑,如下所示:C:\ python34 \ scripts。窗口上的python settings.py
一旦試圖創建一個項目,我嘗試從內等程序中運行settings.py命令:
$settings.py
而且再次收到相同的錯誤...其實堆放着這已經兩天!
./settings.py: line 12: import: command not found
./settings.py: line 13: import: syntax error near unexpected token '('
./settings.py: line 13: 'BASE_DIR = os.pathdirname(os.path.dirname(__file__))'
你想用'settings.py'做什麼? – 2015-02-08 14:15:41