Giter Site home page Giter Site logo

Comments (4)

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

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.

manishgupta24 avatar manishgupta24 commented on June 11, 2024

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:

Link

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.

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

Loosks like a bug; post your mongoengine version and i will look into it later today.

from django-mongoengine.

manishgupta24 avatar manishgupta24 commented on June 11, 2024

Yeah it was mongoengine issue.. I upgraded it and it worked like a charm. Thanks a lot.

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.