I am totally green on Python and Django, but I am very eager to install OSQa on my Windows. As expected, I encountered big trouble now and stuck in it.

In order to give you what happened I will give you all of step that I went through, hoping you guys can shed me light on it. OS: win 7 home Python: 27 in C:Python27. Then I downloaded easy installer, changed Path of windows into C:Python27Scripts; Through RUN I installed the following:

easy_install django
easy_install markdown
easy_install html5lib
easy_install south
easy_install python-openid
easy_install django-debug-toolbar
easy_install <dbadapter> #where dbaddapter is one of python-mysql or psycopg2 (mysql or postgres)

Since I just want to play with OSQA little bit then migrate database to bigger one, sqlite is ok for now, that is why I did not install mysql.

After that, I SVNed OSQA here C:Python27Libsite-packagesosqa . Went to C:Python27Libsite-packagesosqa I changed settings_local.py.dist into settings_local.py, database is:

DATABASE_NAME = 'C:Python27Libsqlite3' # Or path to database file if using sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_ENGINE = 'sqlite3' #mysql, etc
DATABASE_HOST = ''
DATABASE_PORT = ''

Then I put: cpython27libsite-packagesmanage.py sycnbd --all into cmd.exe however it rendered cmd.exe, nothing more. What wrong with this? Which sqlite should I use? from Python or Django? both of them have sqlite.

Thanks for your input and time.

asked 30 Dec '10, 03:14

sadsadsad's gravatar image

sadsadsad
16112
accept rate: 0%

edited 31 Dec '10, 11:30

rickross's gravatar image

rickross ♦♦
12.5k2914972

@sadsadsad, "A Newbie to Django and Python has big trouble installing OSQA" is not a question. All postings at this site are now required to have titles that are clear, proper questions. Thanks.

(31 Dec '10, 10:44) rickross ♦♦

The option DATABASE_NAME is not the path to the sqlite wrapper, is an arbitrary path where you want your database file to be created. Try setting it to for example:

os.path.join(os.path.dirname(__file__),'db')

that will place the database in a file named db, in the root of your OSQA source.

link

answered 30 Dec '10, 05:35

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

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:

×156
×6

Asked: 30 Dec '10, 03:14

Seen: 596 times

Last updated: 31 Dec '10, 11:30

powered by OSQA