Comments (4)
Take a look at example/tumblelog/settings.py
That project is configured to use mongo sessions and auth.
manage.py migrate is supposed to throw that exception, becouse you don't setup any databases besides mongo and mongo doesn't use migrations
from django-mongoengine.
I edited my settings.py file according to tumblelog example. But It is still throwing error:
TypeError: __init__() got an unexpected keyword argument 'auto_created'
I have attached settings.py file. and error log is:
Unhandled exception in thread started by <function wrapper at 0x7f69f92ea398>
Traceback (most recent call last):
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
six.reraise(*_exception)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django_mongoengine-0.2.1-py2.7.egg/django_mongoengine/mongo_auth/models.py", line 42, in <module>
class ContentType(document.Document):
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django_mongoengine-0.2.1-py2.7.egg/django_mongoengine/mongo_auth/models.py", line 43, in ContentType
name = fields.StringField(max_length=100)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/django_mongoengine-0.2.1-py2.7.egg/django_mongoengine/fields/djangoflavor.py", line 27, in __init__
super(DjangoField, self).__init__(*args, **kwargs)
File "/home/manish/Desktop/admin_picknbox/local/lib/python2.7/site-packages/mongoengine/fields.py", line 63, in __init__
super(StringField, self).__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'auto_created'
``
from django-mongoengine.
Loosks like a bug; post your mongoengine version and i will look into it later today.
from django-mongoengine.
Yeah it was mongoengine issue.. I upgraded it and it worked like a charm. Thanks a lot.
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.