Questions tagged [django-nonrel]

Django-nonrel is an independent branch of Django that adds NoSQL database support to the ORM. The long-term goal is to add NoSQL support to the official Django release.

Django-nonrel is an independent branch of Django that adds NoSQL database support to the ORM. The long-term goal is to add NoSQL support to the official Django release.

Example article create application using MongoDB database. enter link description here

370 questions
92
votes
1 answer

Django - How to make a variable available to all templates?

I would like to know how to pass a variable to all my templates, without repeating the same code on every method in my views.py file? In the example below I would like to make categories (an array of category objects) available to all templates in…
ipegasus
  • 14,796
  • 9
  • 52
  • 76
49
votes
7 answers

Python- How to flush the log? (django)

I'm working with Django-nonrel on Google App Engine, which forces me to use logging.debug() instead of print(). The "logging" module is provided by Django, but I'm having a rough time using it instead of print(). For example, if I need to verify the…
22
votes
2 answers

Django makemessages ignore switch doesn't work for me

I have problems localizing a django-nonrel project, which is deployed to GAE. Because of GAE I have to put everything into my project folder, so it looks like something like this project + django + dbindexer + registration + myapp ... +…
balazs
  • 5,698
  • 7
  • 37
  • 45
21
votes
4 answers

Django-nonrel + Django-registration problem: unexpected keyword argument 'uidb36' when resetting password

I'm using Django-nonrel with registration app. Things seem to be working fine, except when I try to reset my password. When clicking on reset-password link sent to me in email, Django produces error message: password_reset_confirm() got an…
19
votes
8 answers

Can't login to Django /admin interface

First of all, I am a newbie. I'm running Ubuntu 11.04 which comes with Python 2.7 so I installed Python2.5 in different dir to run Django-Non-Rel on Google App Engine. I did the Guestbook tutorial and now I am trying to add admin access but when I…
nana
  • 4,426
  • 1
  • 34
  • 48
17
votes
4 answers

Unit testing task queues in AppEngine

For a very long time now I've been using task queues on AppEngine to schedule tasks, just the way I'm supposed to. But what I've always been wondering is how does one write tests for that? Until now I've simply made tests to make sure an error…
Swizec Teller
  • 2,322
  • 1
  • 19
  • 24
10
votes
3 answers

How to use static files with django nonrel

I'm trying to use the Django nonrel project for google app engine. I setup the test project as described here. I added a new folder to the project named "static" for my static files. And for the app.yaml file i added the lines; - url: /static …
syloc
  • 4,569
  • 5
  • 34
  • 49
10
votes
3 answers

OperationFailure: database error: not authorized for query on database.system.namespaces

I am beginner lift with django mongodb on heroku [ addon : mongolab ]. heroku run python manage.py syncdb Running python manage.py syncdb attached to terminal... up, run.2332 Creating tables ... OperationFailure: database error: not authorized for…
9
votes
3 answers

Django-nonrel import cache fail

I am trying to setup django-nonrel on GAE (Google App Engine) - following the steps here http://www.allbuttonspressed.com/projects/djangoappengine#installation The test application works great - I was able to use the cache API in the application,…
Iftah
  • 9,512
  • 2
  • 33
  • 45
9
votes
4 answers

Django-nonrel form field for ListField

I'm experimenting with django-nonrel on appengine and trying to use a djangotoolbox.fields.ListField to implement a many-to-many relation. As I read in the documentation a ListField is something that you can use to make a workaround for…
Rman
  • 230
  • 2
  • 9
8
votes
2 answers

Django-nonrel vs Django-mongodb vs Mongokit vs pymongo native

Working on a Django project that requires a NoSQL store and I believe I've settled on Mongo. I've seen a lot of topics that talk about Mongo and Django, but none that mentioned Django-nonrel, and I can't see why it might have been disqualified, but…
bmelton
  • 982
  • 1
  • 9
  • 23
7
votes
4 answers

Django App Engine: AttributeError: 'AnonymousUser' object has no attribute 'backend'

I am using djangoappengine. When I try create a new user, authenticate that user, and log them in, I get the following error AttributeError: 'AnonymousUser' object has no attribute 'backend'. My code is simple and looks like: user =…
speedplane
  • 15,673
  • 16
  • 86
  • 138
7
votes
2 answers

Exception AttributeError message when using manage.py in django-nonrel for Google app engine

I'm using Python 2.7 and django-nonrel for running Django projects on Google app engine. I'm using version 1.6 of the Google app engine SDK. I run python manage.py syncdb or python manage.py deploy. After the command completes I get the following…
Kris
  • 1,403
  • 3
  • 17
  • 26
7
votes
1 answer

How to make a custom query using django-nonrel and mongodb

Is there a recommended way to make a custom query to mongodb using django nonrel? I have an entire site set up and running well, now I am just adding in some geospatial indexing and queries, and wanted to know if for geospatial queries there is…
Tom Gruner
  • 9,635
  • 1
  • 20
  • 26
7
votes
4 answers

django-nonrel syncdb and mongodb: pymongo.errors.OperationFailure

I am using django-nonrel with mongodb-engine I am getting the following error when I run python manage.py syncdb: Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File…
Joshua
  • 91
  • 3
1
2 3
24 25