django-nonrel

Installing Python 2.5 on Mac 10.6, for GAE/Django-nonrel (and i'm a new mac user)

梦想与她 提交于 2019-12-23 04:03:41
问题 My big problem here is that I'm 1 day into learning MacOSX so the basics need to be explained to me like I'm a 4 yr old. I'm running OS 10.6, Snow Leopard, which comes with Python 2.6. The real problem is getting Aptana 2.0 to debug Google App Engine SDK, which I require PIL for image transforming, which requires python 2.5, with the app using the Django-nonrel framework (I realize I didn't make this easy on myself). I'm already familiar with Python, Google App Engine and Django-nonrel, but

Django MongoDB problem

天涯浪子 提交于 2019-12-22 05:28:21
问题 my django app run with mysql, but when i try with mongodb then show thie error Traceback (most recent call last): File "manage.py", line 14, in <module> execute_manager(settings) File "/home/abdullah/django-trunk/django/core/management/__init__.py", line 442, in execute_manager utility.execute() File "/home/abdullah/django-trunk/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/abdullah/django-trunk/django/core

Why do I get an InvalidDocument exception when saving an object into MongoDB in Django for the first time?

梦想与她 提交于 2019-12-21 23:54:59
问题 I've been having a nightmare of a time trying to get MongoDB working with Django. I now have it successfully installed, but it errors upon the first attempt to save an object. I've been following this tutorial, and the Post model they present I have copied precisely. Here is the code for the model: from django.db import models from djangotoolbox.fields import ListField class Post(models.Model): title = models.CharField(max_length=200) text = models.TextField() tags = ListField() comments =

Recommendations with hierarchical data on non-relational databases?

爱⌒轻易说出口 提交于 2019-12-21 05:09:06
问题 I'm developing an web application that uses a non-relational database as a backend (django-nonrel + AppEngine). I need to store some hierarchical data (projects/subproject_1/subproject_N/tasks), and I'm wondering which pattern should I use. For now I thought of: Adjacency List (store the item's parent id) Nested sets (store left and right values for the item) In my case, the depth of nesting for a normal user will not exceed 4-5 levels. Also, on the UI, I would like to have a pagination for

Authenticated but user.is_authenticated remains false

我与影子孤独终老i 提交于 2019-12-19 10:17:54
问题 Creating simple app using GAE / Django-nonrel (I don't think the problem is specific to GAE or the nonrel fork, most likey PEBKAC as python/django noob and would occur on basic django installation). I am using django.contrib.auth for authentication. In settings.py MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core

django-nonrel and the admin page

徘徊边缘 提交于 2019-12-19 09:41:23
问题 I am trying to set-up the Django admin suite for my site on AppEngine and it is not working. I am using the django-nonrel setup with . The rest of my site seems to work fine but I need to get the admin working so I can start working with the datastore. Here is the error I get: DoesNotExist at /admin/ Site matching query does not exist. My url patterns includes this pattern: url(r'^admin/', include(admin.site.urls)), My settings include: 'autoload', 'django.contrib.auth', 'django.contrib

GAE SDK 1.6.4 dev_appserver datastore flush

。_饼干妹妹 提交于 2019-12-17 21:12:23
问题 Hoping to get a comment from the GAE python team on this one. Has something changed between 1.6.3, 1.6.4 with regards to the way the dev_appserver datastore is flushed to disk on app exit? I'm using django-nonrel, and on 1.6.3, and before, I used to be able to load up a python shell: python manage.py shell (manage.py is provided by django-nonrel) I could then import my models and acceess the datastore, modify entities, and quit. On 1.6.4, I'm able to do that, but when I quit, changes are not

gae_mini_profiler {% profiler_includes %} gives Invalid block tag: 'profiler_includes'

那年仲夏 提交于 2019-12-13 13:23:17
问题 I am attempting to install gae_mini_profiler in my django-nonrel app I placed the {% profiler_includes %} tag at the bottom of my base.html It results in a Exception Type: TemplateSyntaxError Exception Value: Invalid block tag: 'profiler_includes' I placed from gae_mini_profiler import profiler application = profiler.ProfilerWSGIMiddleware(application) at the bottom of djangoppengine/main/__init__.py I followed all the other instructions at https://github.com/kamens/gae_mini_profiler#start

django-nonrel exclude listfield from admin

六月ゝ 毕业季﹏ 提交于 2019-12-13 04:23:12
问题 I've ran into a typical problem where I have a ListField in a model. I'd like to use the Django admin to play around with the object and the ListField isn't that crucial, it's a list of embedded objects that I can live without. When I use this, I get the error on the main admin page. If I don't use the ModelAdmin object when registering the original Item object, I only get the error if I try to add an Item. from django.contrib import admin class ItemAdmin(admin.ModelAdmin): exclude = ('bids',

Nothing getting stored in django non-rel for google app engine

浪子不回头ぞ 提交于 2019-12-13 02:23:30
问题 I am unable to save anything in my django non-rel development project.. I have google app engine sdk installed with django non -rel. I can access the django admin page but cannot login because neither superuser is getting saved anywhere. I tried creating user in manage.py shell. But after closing the shell window, the user object i saved earlier was not there. Please help me how to save data to database in django-non-rel.. My settings.py file is - # Django settings for bookncart project. #