|
Revision 1784, 485 bytes
(checked in by JensDiemer, 4 weeks ago)
|
|
check if settings.py exist in win start batch.
|
| Line | |
|---|
| 1 | @echo off |
|---|
| 2 | |
|---|
| 3 | REM go into the same directory where this file stored (Project root) |
|---|
| 4 | cd /d "%~dp0" |
|---|
| 5 | |
|---|
| 6 | if not exist "%~dp0PyLucid\settings.py" ( |
|---|
| 7 | echo. |
|---|
| 8 | echo Error: There exist no settings.py! |
|---|
| 9 | echo. |
|---|
| 10 | echo Please create "%~dp0PyLucid\settings.py" |
|---|
| 11 | echo. |
|---|
| 12 | echo More info at http://www.pylucid.org |
|---|
| 13 | echo. |
|---|
| 14 | pause |
|---|
| 15 | exit |
|---|
| 16 | ) |
|---|
| 17 | |
|---|
| 18 | REM use the local django packages |
|---|
| 19 | set PYTHONPATH="%~dp0" |
|---|
| 20 | |
|---|
| 21 | echo. |
|---|
| 22 | echo Starting django development server... |
|---|
| 23 | echo. |
|---|
| 24 | |
|---|
| 25 | python manage.py runserver |
|---|
| 26 | |
|---|
| 27 | pause |
|---|