well mongodb actually no run en django core, but exist other alternative
https://github.com/django-nonrel/django-nonrel   and
http://django-mongodb.org/

Cheers

On Sun, Nov 25, 2012 at 3:19 AM, Chanh Le <giaosu...@gmail.com> wrote:

> In the settings.py
> import mongoengine
> mongoengine.connect('cooking')
> AUTHENTICATION_BACKENDS = (
>     'mongoengine.django.auth.MongoEngineBackend',
>     )
> SESSION_ENGINE = 'mongoengine.django.sessions'
>
>
> MIDDLEWARE_CLASSES = (
>     'django.middleware.common.CommonMiddleware',
>     'django.contrib.sessions.middleware.SessionMiddleware',
>     'django.middleware.csrf.CsrfViewMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
>     'django.contrib.messages.middleware.MessageMiddleware',
>     'django.contrib.sessions.middleware.SessionMiddleware',
>
>     # Uncomment the next line for simple clickjacking protection:
>     # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
>     )
>
> INSTALLED_APPS = (
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.sites',
>     'django.contrib.messages',
>     'django.contrib.staticfiles',
>     # Uncomment the next line to enable the admin:
>     'django.contrib.admin',
>     # Uncomment the next line to enable admin documentation:
>     # 'django.contrib.admindocs',
>     'tastypie',
>     'tastypie_mongoengine',
>     'django.contrib.sessions',
>     'api',
>     )
>
> But when run syncdb it has error
>  django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
> improperly configured. Please supply the ENGINE value.
> How to config this correct?
>
> --
> 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/-/tsety0NmZMsJ.
> 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