Connecting to a database

2011-04-24 Thread Hurin
Hi,

I have a python script where I have to fill the following info to
connect to my DB:

DATABASES = {
'default': {
'ENGINE': 'sqlite3','mysql', # Add 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': os.path.dirname(os.path.abspath( __file__ )) + '/
database/local.db', # Or path to database file if using sqlite3.
'USER': '',  # Not used with sqlite3.
'PASSWORD': '',  # Not used with sqlite3.
'HOST': '',  # Set to empty string for
localhost. Not used with sqlite3.
'PORT': '',  # Set to empty string for
default. Not used with sqlite3.
},


I am not familiar with python, I know that os.path.dirname is a way to
reference the location where the script is being run, but I am not
sure if it is the right syntax to point to my database. Should I leave
it like that or would it be something like

mysql://localhost:3306/dbName"

For reference, I am trying to install CDR-Stats and I have python-
django and python-mysqldb installed.

Thanks to whoever can point me out in the right direction

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Initial install

2011-04-22 Thread Hurin
Hi, using Django framework for CDR-Stats + Asterisk. The instructions
kind of confuses me. The How to get Django section has 2 options:
-Get the latest official version
and
- Get the latest development version

I am choosing the first one, but after that, it says:

After you get it
See the installation guide for further instructions.



My question is: is Option 1 enough to setup my environment for CDR-
Stats? I want to use it with  a MYSQL DB, so I am not entirely sure I
would have to follow the installation guide.

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.