Giter Club home page Giter Club logo

Comments (12)

avelino avatar avelino commented on June 1, 2024

Hi man, not support django 1.6, on requeriment file recommend used django 1.5!

from django-mongoengine.

dannyroa avatar dannyroa commented on June 1, 2024

Got it. Thanks!

from django-mongoengine.

dannyroa avatar dannyroa commented on June 1, 2024

Actually, just downgraded to Django 1.5. Still getting the same error.

from django-mongoengine.

ramast avatar ramast commented on June 1, 2024

Same here. Django 1.5.1

from django-mongoengine.

ramast avatar ramast commented on June 1, 2024

It has something to do with INSTALLED_APPS
when I copied INSTALLED_APPS as it is from the example site after removing debug_toolbar it works fine

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_mongoengine.auth',
'django_mongoengine.admin.sites',
'django_mongoengine.admin',
'django.contrib.admin',
'main'
)

from django-mongoengine.

last-partizan avatar last-partizan commented on June 1, 2024

when you set django database engine to 'django.db.backends.dummy' it's supposed to throw that error when something accessing db;

closing issue.

from django-mongoengine.

yoanisgil avatar yoanisgil commented on June 1, 2024

I'm facing the same issue. My DATABASES settings looks like this:

DATABASES = {
    'default': {'ENGINE': 'django.db.backends.dummy'}
}

which I got from here

@last-partizan if the engine is not set to 'django.db.backends.dummy' then what it should be set to? Also, I was wondering if the project is supposed to support migrations?

Below my requirements.txt:

Django==1.8
django-rest-swagger==0.3.4
djangorestframework==3.3.0
mysqlclient==1.3.7
PyYAML==3.11
wheel==0.24.0
gunicorn==19.3.0
rest_condition==1.0.2
virtualenvwrapper==4.7.1
PyJWT==1.4.0
django-jenkins==0.18.1
coverage==4.0.3
pep8==1.6.2
pyflakes==1.0.0
mongoengine==0.10.0
django-rest-framework-mongoengine==3.3.0
-e git://github.com/MongoEngine/django-mongoengine.git#egg=django-mongoengine

from django-mongoengine.

last-partizan avatar last-partizan commented on June 1, 2024

Original error is raised by django when it's using something that needs db access.
You can configure it to whatever you want. If you need another db with migrations - just configure it like always.

from django-mongoengine.

rubenalvesbcn avatar rubenalvesbcn commented on June 1, 2024

Hi all

I'm having the same problem.

I'm using Django REST Framework, Mongoengine and Django REST Framework Mongoengine

It's clear that the exception is raised because the settings.DATABASES is not set, once when using mongoengine, this is not required.

How should we proceed? Use a MySQL to authentication and Mongoengine to anything else? I really don't know how to proceed.

from django-mongoengine.

last-partizan avatar last-partizan commented on June 1, 2024

Probably yes, it's better to use mysql or postgres for basic django parts like auth/contenttypes, and mongo for anything else.

from django-mongoengine.

rubenalvesbcn avatar rubenalvesbcn commented on June 1, 2024

Hm

I think that using two different databases on the same application is not a "good practice", but it seems that is the only option if we want the power of Django REST Framework and Mongoengine together.

from django-mongoengine.

tan234 avatar tan234 commented on June 1, 2024

python manage.py makemigrations
python manage.py migrate

from django-mongoengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.