I was told in another question that I should disable debug mode. How do I do that? I followed the Ubuntu with MySQL guide and this is how my init.d script starts the server:

authbind --deep ./manage.py runserver www.compiler-design.com:80 &

asked 09 Oct '10, 06:43

configurator's gravatar image

configurator
61229
accept rate: 0%

@configurator, tootie_ma is correct, however there's one thing, are you using the embedded server in production? Because that server is for test and development purposes, it's single threaded and much slower. You should be using apache with mod_wsgi or even mod_python (although mod_python is not supported anymore).

(09 Oct '10, 10:23) Hernani Cerq... ♦♦

Maybe they mean Django Debug mode setting located in settings_local.py? But it's turned off by default AFAIK.

To turn off debug mode simply make sure to have:

DEBUG = False

in settings_local.py file in root folder of OSQA

link

answered 09 Oct '10, 09:38

tootie_ma's gravatar image

tootie_ma
356311
accept rate: 57%

I need to restart Apache for the DEGBUG mode to take effect. Could someone comment on why?

(29 Aug '11, 07:04) i1der
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×6

Asked: 09 Oct '10, 06:43

Seen: 672 times

Last updated: 29 Aug '11, 07:04

powered by OSQA