django-rest-framework-mongoengine-example
django-rest-framework-mongoengine-example copied to clipboard
django-rest-framework-mongoengine-example
https://github.com/BurkovBA/django-rest-framework-mongoengine-example/blob/dcae174fe19f785d7c629b9eca450da3fe7e6e2b/project/project/routers.py#L79 This line should be ``` try: ret[api_view_key] = reverse( api_view_key, ============> line fixed, this cannot be url_name as thats a variable from the previous for loop. args=args, kwargs=kwargs, request=request,...
class DocumentSerializer(serializers.ModelSerializer): File "/home/test/.virtualenvs/perm_test_django_mongo/lib/python3.6/site-packages/rest_framework_mongoengine/serializers.py", line 117, in DocumentSerializer me_fields.DateField: drf_fields.DateField, MongoEngine Did not even had DateField, How did you use it ?
Hello, I have managed to install and run your example, however I cannot createsuperuser to login to admin as well as I don't know how to create new user, how...
(venv2) D:\gits\django-rest-framework-mongoengine-example\project>python manage.py createsuperuser Using a default mongo database Username: test1 Email: [email protected] Password: Password (again): Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "D:\tools\python36\venv2\lib\site-packages\django\core\management\__init__.py", line...
Request Method: | POST -- | -- http://127.0.0.1:8007/admin/login/?next=/admin/ 1.9 AttributeError 'MetaDict' object has no attribute 'pk' D:\tools\python36\venv2\lib\site-packages\django\contrib\auth\__init__.py in login, line 111 D:\tools\python36\venv2\Scripts\python3.6.exe 3.6.5
AUTHENTICATION_BACKENDS = ( 'mongoengine.django.auth.MongoEngineBackend', #'django_mongoengine.mongo_auth.backends.MongoEngineBackend', #'mongo_auth.backends.MongoEngineBackend', ) AUTH_USER_MODEL = 'mongo_auth.MongoUser' MONGOENGINE_USER_DOCUMENT = 'userprofile.models.User'
i have download this project but it didnot work please contact me
Hi, Thank you for this working example. It is very good. Does this support latest libraries as well? If not, do you have latest library versions which are supported in...
hi,guys: i got a error: `TypeError: get_api_root_view() got an unexpected keyword argument 'api_urls'` i check the get_api_root_views(),as the error.no parameter this is in cmd: ``` url(r'^api/', include(router.urls, namespace='api')), File "C:\Python34\rest1\lib\site-packages\rest_framework\routers.py",...