Comments (12)
Hi man, not support django 1.6, on requeriment file recommend used django 1.5!
from django-mongoengine.
Got it. Thanks!
from django-mongoengine.
Actually, just downgraded to Django 1.5. Still getting the same error.
from django-mongoengine.
Same here. Django 1.5.1
from django-mongoengine.
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.
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.
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.
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.
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.
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.
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.
python manage.py makemigrations
python manage.py migrate
from django-mongoengine.
Related Issues (20)
- How does the Permission are automatically made in auth module? HOT 1
- get_deleted_objects needs to be changed for admin view HOT 1
- Appconfig models is empty OrderedDict HOT 4
- Too slow with >1K documents! HOT 2
- unable to createsuperuser HOT 1
- Sub query using mongoengine
- fixes for django:3.1 import FieldDoesNotExist
- FieldDoesNotExist import Exception HOT 1
- there are many RemovedInDjango40Warning warnings HOT 2
- something wrong with django_mongoengine/forms/document_options.py HOT 4
- mongo-admin from django_mongoengine not supporting FieldList. Throwing ValidationError for list HOT 3
- Cannot import EMPTY_CHANGELIST_VALUE in django VERSION = (3, 0, 8, 'final', 0) HOT 2
- Is this package still maintained? HOT 1
- Admin pagination seems to be off by one. HOT 2
- Do not recommend djongo in the readme. HOT 1
- Is this project alive? HOT 4
- UI issue HOT 2
- Using list in a "not_contains" query HOT 1
- ModuleNotFoundError: No module named 'typing_extensions' HOT 3
- '_thread._local' object has no attribute 'no_dereferencing_class' for simple querryset HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-mongoengine.