WebFaction
Community site: login faq

Hi.

I'm trying to deploy a Django nonrel (mongodb) server and I managed myself to configure all the system properly (I don't know even how). All works perfectly except that one model ins't getting data from the database.

In this image you can see how the c variable (which is assigned with c = champions.objects.all() in the code) isn't getting any data at all while the variable ss does. alt text

I checked if the problem happened in the shell too but no. You can see in the next image how the python shell in the ssh session returns the objects perfectly.

alt text

Does anyone have a clue that may help me? Thanks in advance.

asked 06 Sep '16, 11:03

yrthgze
11
accept rate: 0%


OK, I solved it removing the MongoMeta from the models and redoing the syncdb after dropping all the collections. Thanks

permanent link

answered 06 Sep '16, 16:13

yrthgze
11
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×908
×29
×7

question asked: 06 Sep '16, 11:03

question was seen: 1,545 times

last updated: 06 Sep '16, 16:13

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM