Comments (6)
Can you please show your particular query?
from djangotoolbox.
The query has no particularity : sc = Score.objects.get(_id=score_id)
The error only happens when my Score instance has comments.
Besides, my class "Score" has no field "t". And when I remove all the "db_column" of the Comment class, it works just fine
from djangotoolbox.
Right. Could you poste a traceback? It's probably a simple typo somewhere. btw are you using the latest develop branches?
from djangotoolbox.
I've just following these instructions : http://django-mongodb.org/topics/setup.html
I realize now that djangotoolbox comes from bitbucket and not github. This doc is still up to date ?
Anyway, this is the traceback:
Environment:
Request Method: GET
Request URL: (-- url --)
Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django_mongodb_engine',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_mongodb_engine',
'jn.search',
'jn.upload',
'jn.registration',
'compressor']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
-
File "/Users/adriencog/Development/master/jn/../jn/search/views.py" in display_score
response = callback(request, _callback_args, *_callback_kwargs)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/django/db/models/manager.py" in get
sc = Score.objects.get(_id=int(score_id))
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/django/db/models/query.py" in get
return self.get_query_set().get(_args, *_kwargs)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/django/db/models/query.py" in len
num = len(clone)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/django/db/models/query.py" in iterator
self._result_cache = list(self.iterator())
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/django/db/models/base.py" in __init**
obj = model(_row[index_start:aggregate_start], *_{'**entity_exists': True})
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/djangotoolbox/fields.py" in set
setattr(self, field.attname, val)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/djangotoolbox/fields.py" in to_python
obj.**dict**[self.field.name] = self.field.to_python(value)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/djangotoolbox/fields.py" in _convert
return self._convert(self.item_field.to_python, value)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/djangotoolbox/fields.py" in
return self._type(func(value, _args, *_kwargs) for value in values)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/djangotoolbox/fields.py" in to_python
return self._type(func(value, _args, *_kwargs) for value in values)
-
File "/Users/adriencog/Development/jn/env/lib/python2.7/site-packages/django/db/models/base.py" in init
return self.embedded_model(**values)
-
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0])
Exception Type: TypeError at /score/ (...)
Exception Value: 't' is an invalid keyword argument for this function
from djangotoolbox.
Any solution found yet? Having the same issue!
from djangotoolbox.
I don't have any solution, I decided to switch to MongoEngine : http://mongoengine.org/
It works very well and it's not a fork of Django. I'm using it as a replacement for Django Models.
Django-nonrel was cool but as a fork, I don't think it's maintained enough (for my use case anyway)
from djangotoolbox.
Related Issues (20)
- django.utils.timezone is not available in djangoappengine yet HOT 1
- NoReverseMatch at /admin/auth/user/52ade053f9bed911e71dfa5e/ HOT 1
- Allow Distinct Queries HOT 2
- Nonetype object has no attribute 'model' HOT 1
- Please add documentation HOT 1
- Add ordering by fields in embedded models or dicts
- Support for max_length for ListField and SetField
- Incompatibility with Django 1.7
- python 2 print statement on test files cause exception HOT 1
- Incompatability With Django 1.8 HOT 7
- DatabaseError: Unsupported type for property : <class 'django.utils.safestring.SafeText'> HOT 6
- Bug fix
- No support DateTimeField ? is it be design ?
- Please delete this issue. Unable to remove it.
- This database doesn't support filtering on non-primary key ForeignKey fields.
- RemovedInDjango110Warning: SubfieldBase has been deprecated HOT 3
- No module named from django.utils.importlib import import_module
- importlib issue after installing django 1.11 HOT 5
- DynamicSiteIDMiddleware fails when application when the request.host is an IPv6 address
- Cert errors related to stale docs build
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 djangotoolbox.