Hi,

I have emptied the OSQA/cache folder. But I still see the forum in maintenance mode.

As i am using the built in db, is there a way to change the default OSQA/db/osqa.db ? to change the maintenance_mode key?

asked 09 Oct '11, 08:29

coolcat's gravatar image

coolcat
106249
accept rate: 0%

edited 09 Oct '11, 10:46

rickross's gravatar image

rickross ♦♦
12.5k2814972

Is there something that prevents you to go to the administration, select "Maintenance mode" from the tools navigation and turn it off? Let me know if something does prevent you and I'll tell you how to turn it off using the management console.

(09 Oct '11, 08:46) Jordan ♦♦

hi, I was moving my site from one server to another. So before i moved, i put the site into maintenance mode. Then copied the db to the new server. The new server is in AWS. Now it is still showing the maintenance mode (of course). But I am not sure how to turn it back.

(09 Oct '11, 08:49) coolcat

So i am not able to login as admin :(

(09 Oct '11, 08:50) coolcat

@coolcat, all meta.osqa.net postings are required to have a clear, specific question in their title field. Please correct the title of this posting right away. Thanks.

(09 Oct '11, 09:13) Jordan ♦♦

Navigate to your OSQA installation directory then do the following:

  1. Run: python manage.py shell
  2. from forum import settings
  3. settings.MAINTAINANCE_MODE.set_value(None)
link

answered 09 Oct '11, 09:09

Jordan's gravatar image

Jordan ♦♦
3.1k618
accept rate: 39%

Hi Jordan, When I run the 1st command I get the following error.

[root@ip-10-243-2-97 OSQA]# python manage.py shell Traceback (most recent call last): File "manage.py", line 2, in <module> from django.core.management import execute_manager ImportError: No module named django.core.management

(09 Oct '11, 09:13) coolcat

I solved the No module named....error by providing the full path to the python in my case it was was

/opt/ActivePython-2.6/bin/python manage.py shell

The steps 2 and 3 were spot on.

Thanks a lot. It works now.

(09 Oct '11, 09:27) coolcat
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
×7

Asked: 09 Oct '11, 08:29

Seen: 559 times

Last updated: 09 Oct '11, 10:46

powered by OSQA