0

I run django server using

/opt/python27/bin/python manage.py runserver

But the command prompt says

Quit the server with CONTROL-C.

I want to know that can i keep it running all the time. Anything wrong with that??. I was thinking of running in background and then do my usual stuff

Mirage
  • 561
  • 4
  • 10
  • 25

2 Answers2

2

You can run it all the time. You can further append a "&" at the end of the command so to puts the process in the background. Thus use this instead:

/opt/python27/bin/python manage.py runserver &
Uku Loskit
  • 160
  • 2
  • 10
  • 3
    Yes. But this is a terrible, terrible way to run a server. Use Apache and `mod_wsgi`. Don't think of this as anything but a way to test something quickly. – S.Lott May 24 '11 at 14:36
1

Yes you can keep it running all the time. Don't run it as a foreground process in the terminal, run as a background process.

Richard
  • 3,892
  • 2
  • 18
  • 13