any idea whats wrong...

On Sat, Jun 16, 2012 at 10:39 PM, Sabbineni Navneet <
sabbsnavneet1...@gmail.com> wrote:

> when i try only books.
> the error shown is
>
> runnerw.exe C:\Python27\python.exe "C:\Program Files
> (x86)\JetBrains\PyCharm 2.5.1\helpers\pycharm\django_manage.py" syncdb
> C:/Users/navneet/PycharmProjects/djangotest2
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\JetBrains\PyCharm
> 2.5.1\helpers\pycharm\django_manage.py", line 20, in <module>
>     run_module(manage_file, None, '__main__', True)
>   File "C:\Python27\lib\runpy.py", line 176, in run_module
>     fname, loader, pkg_name)
>   File "C:\Python27\lib\runpy.py", line 82, in _run_module_code
>     mod_name, mod_fname, mod_loader, pkg_name)
>   File "C:\Python27\lib\runpy.py", line 72, in _run_code
>     exec code in run_globals
>   File "C:\Users\navneet\PycharmProjects\djangotest2\manage.py", line 11,
> in <module>
>     execute_from_command_line(sys.argv)
>   File "C:\Python27\Lib\site-packages\django\core\management\__init__.py",
> line 443, in execute_from_command_line
>     utility.execute()
>   File "C:\Python27\Lib\site-packages\django\core\management\__init__.py",
> line 382, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "C:\Python27\Lib\site-packages\django\core\management\base.py",
> line 196, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File "C:\Python27\Lib\site-packages\django\core\management\base.py",
> line 232, in execute
>     output = self.handle(*args, **options)
>   File "C:\Python27\Lib\site-packages\django\core\management\base.py",
> line 371, in handle
>     return self.handle_noargs(**options)
>   File
> "C:\Python27\Lib\site-packages\django\core\management\commands\syncdb.py",
> line 57, in handle_noargs
>     cursor = connection.cursor()
>   File "C:\Python27\Lib\site-packages\django\db\backends\dummy\base.py",
> line 15, in complain
>     raise ImproperlyConfigured("settings.DATABASES is improperly
> configured. "
> django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
> improperly configured. Please supply the ENGINE value. Check settings
> documentation for more details.
>
>
> On Sat, Jun 16, 2012 at 9:36 PM, Ernesto Guevara 
> <eguevara2...@gmail.com>wrote:
>
>> Check the structure of project:
>>
>> Here I use Eclipse, and my project have this structure:
>>
>> myproject>myproject>app
>>
>> In your case:
>>
>> djangotest2>djangotest2>books
>>
>> Or:
>>
>> djangotest2>books
>>
>> And in installed_apps:
>>
>> INSTALLED_APPS = (
>>     'books',
>> )
>>
>>
>> 2012/6/16 Sabbineni Navneet <sabbsnavneet1...@gmail.com>
>>
>>> project name is djangotest2 and app name is books
>>> settings.py
>>> INSTALLED_APPS = (
>>>     'djangotest2.books',
>>>
>>>
>>>
>>> )
>>> DATABASES = {
>>>     'default': {
>>>         'ENGINE': 'django.db.backends.mysql', # Add
>>> 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
>>>         'NAME': 'xam',                      # Or path to database file
>>> if using sqlite3.
>>>         'USER': 'root',                      # 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.
>>>     }
>>> }
>>>
>>>
>>> It shows an error :no module named books found when i use syncdb.
>>> so anyone can please help.......
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/django-users/-/yQ3f-LdGKrEJ.
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>

-- 
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.

Reply via email to