I setup a new database, I call it "tracker". I setup a user called "django" to manage all my Django databases. I setup "Database Permissions" to all.
In my settings file, I have...
DATABASES = {
'default' : {
'ENGINE': 'django.db.backends.mysql',
'NAME': '/var/lib/mysql/tracker',
'USER': 'django',
'PASSWORD': 'passwd',
'HOST': '',
'PORT':'',
}
}
I verified that 'tracker' exists as a database, but I didn't make any tables for it yet. My first question, do I have to create at least one table? or when I type 'python manage.py syncdb', I get the following...
/tracker# python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 382, in execute
having problems setting up the database.
I setup a new database, I call it "tracker". I setup a user called "django" to manage all my Django databases. I setup "Database Permissions" to all.
In my settings file, I have...
DATABASES = {
'default' : {
'ENGINE': 'django.db.backends.mysql',
'NAME': '/var/lib/mysql/tracker',
'USER': 'django',
'PASSWORD': 'passwd',
'HOST': '',
'PORT':'',
}
}
I verified that 'tracker' exists as a database, but I didn't make any tables for it yet. My first question, do I have to create at least one table? or when I type 'python manage.py syncdb', I get the following...