-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexes aren't synced after db creation #124
Comments
Doesn't look like a documentation issue but a program bug. Can you try that with the latest devel of all projects? If it's still an issue, tests+patches welcome :-) |
I have tried it with a dummy project before reporting using the last version of the hg/git (hg+https://bitbucket.org/wkornewald/django-nonrel hg+https://bitbucket.org/wkornewald/djangotoolbox git+https://github.com/django-nonrel/mongodb-engine) so I can confirm you this issue. |
Sorry, I meant the |
After severals attemps and even recreating a totally new project I'm unable to syncdb with the devel branch (and same branch for the 2 other projects). Error:
What am I missing? |
No module named utils?! WTF. Are you sure you've installed MongoDB Engine correctly? Didn't delete any files? Is it importing the correct package? |
Yeah, that was pretty much my reaction. requirements.txt:
My procedure looks like that, in an empty directory:
And then I got the error. 'python -c "import django_mongodb_engine"' doesn't return any error. |
You should use the
|
Oh strange, the setup recommand the hg repository (that don't have a develop branch), maybe you should change that: http://django-mongodb.org/topics/setup.html Interesting, this time at the first syncdb I've got the site ID bug (that I don't have on master) http://django-mongodb.org/troubleshooting.html but the fix indicated didn't worked (manage.py tellsideid got me a django.contrib.sites.models.DoesNotExist: Site matching query does not exist.). I've add to disable the site app in the INSTALLED_APP. Anyway, I can now confirm that the initial bug is also affecting develop branch :) |
I think you confused things a bit :-) The repos recommended in the setup docs are the stable ones. I was asking you to confirm the bug against the unstable repos ( Anyway. It's a bug. Marking for milestone 0.5 |
That's not very important but it's just that I didn't realised that there were git repository, I've just looked at the mercurial one and didn't found any develop branch ;) Thanks for your quick reactions :) |
I am still getting this error and I have tried everything I can to fix it (setting the right python path and also setting the django_settings_module which afterward allowed me to import django_mongodb_engine in the python interactive shell without any errors). I am on Mac OSX 10.7.3 using python 2.7.1 Here is the error I am getting when I try running runserver or run_gunicorn runserverValidating models... Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x104f50ed0>> run_gunicorn (also syncdb)Traceback (most recent call last): I have installed and re-installed the module over and over again to make this work but still nothing. Is there a solution to this yet? I am also doing this on django 1.4 |
Just now also tried reinstalling with a requirements.txt with:
using pip and still the same error. Even when running this with pip it downgraded my django install to 1.3.1 and still the same errors... |
Hi, I got it to work had to copy the django folder in the django-nonrel zip file into a library folder then include it in my pythonpath then I got it work. |
this solved my problem |
(was: "[documentation] lack of information on indexes creation")
Hello,
Here http://django-mongodb.org/reference/model-options.html we can read "and generates the corresponding MongoDB indexes on syncdb." which is totally true but this lack 2 informations:
Kind regards,
The text was updated successfully, but these errors were encountered: