Django-fobi on google app engine - django

I am successfully able to install django-fobi in my virtual environment but when I hit localhost:8080/admin it gives me the following error:
ImportError: No module named fobi.contrib.plugins.form_handlers.mail
I get this error when i run my django project on google app engine.

You have likely configured something wrong. Could you post your project setup somewhere?

Related

My demo django project doesn't start server after a restarting command prompt

I have created demo django project, now I cant run the server. I'm getting "ImportError: Couldn't import Django" I dont know what I'm missing.
You must install Django. The error is about this. Maybe you installed django on a virtual environment and you have deactivated it?

local server error in divio app installation django-cms

I am trying to install DIVIO app ,
and when I try to set it up this is the error i received:
New version 3.3.2 is available. Type `divio version` to show information about upgrading.
Usage: divio project setup [OPTIONS] SLUG
Error: Invalid value for "-p" / "--path": Path "." is not writable...
I am running windows 7 and docker terminal is already running
Your Divio application is trying to write some files, but doesn't have permission to. This issue is generally caused when your Divio projects are not located within your user's filespace.
Make sure that in the Divio application settings your projects will be somewhere within your home folder.

Django openid (google-app-engine) error: No module named django_openid_auth

I'd like my users to be able to log in to my django project using their google accounts login (instead of having to sign up and create a new one). I found this : http://learnedstuffs.wordpress.com/2012/05/22/django-google-account-authentication/
But it doesn't work for me. After deploying my project in to Google apps engine it shows an error: ImportError: No module named django_openid_auth. I've checked many times - i did install django-openid-auth (by virtualenv). I'm new to django and I have no idea what I'm doing wrong.
Can anybody please help me with it? Thanks!
I found the solution: Packages installed in system or virtualenv environments won't get uploaded to GAE production servers. Packages should be in GAE project folder.

Google App Engine and Django support

I'm trying to deploy my Django app to Google App Engine (GAE) as per this document. I created and configured a Google Cloud SQL instance, as described in that document. I use PyCharm as development environment and created a GAE project with Django support.
I configured a local server to point to the GAE server. When I try to launch the GAE local server in PyCharm, it's raising exceptions on an improperly configured database in SETTINGS.PY:
google.appengine.ext.django.backends.rdbms' isn't an available database backend
I can see from the stack trace that the local server is using the Django version in /Library/Python/2.7/site-packages while I presume it should use the one in /usr/local/google_appengine/lib.
What would be the best way to solve this given that I have other Django projects as well that should use the Django version in /Library/Python/2.7/site-packages? If I modify my PYTHONPATH to include the GAE version of Django, would not all my projects be referencing that version of Django?
EDIT: To be more precise, the GAE local server starts just fine but throws the mentioned stack trace when I do a syncdb task to update my database.
EDIT 2: In PyCharm Settings under Python Interpreter, I found the possibility to modify paths and added the Django 1.4 version as distributed with GAE SDK. When I start the GAE development server, I can actually see it uses the Django version from the GAE SDK but it still crashes on the database definitions:
Error was: No module named google.appengine.ext.django.backends.rdbms.base
EDIT 3: I ran into problems when trying to deploy an existing Django app using the tutorial. See this separate question.
Looks like PyCharms call of syncdb is using the wrong Django installation.
google.appengine.ext.django.backends.rdbms is not part of the official Django distribution, but it is part of GAEs django.
My GAE django is in /usr/local/google_appengine/lib/
If you're on linux/OS X you could add this to your .bashrc/.bash_profile and make syncdb use this:
export GAE="/usr/local/google_appengine"
export PYTHONPATH="$PYTHONPATH:$GAE:$GAE/lib/django_1_4"
export PATH=${PATH}:$GAE/lib/django_1_4/django/bin/
export PATH=${PATH}:/usr/local/mysql/bin
I wrote a tutorial about using Django with GAE and Google Cloud SQL. There might be some relevant infos there as well.

No module named filterspecs

In eclipse,when i create new project, i got an error like,
Error creating Django project
settings.py file not created
Stdout:
Stderr:
If i synchronize present project and runserver, iam getting Error: No module named filterspecs.But i haven't used filterspecs in my project. Already filterspecs.py installed in usr/local/lib/python2.7/dist-packages/django/contrib/admin.
Kindly advise to rectify the error.
You may be using django.contrib.admin.filterspecs to create custom filters for your admin pages, such as outlined here:
Custom Filter in Django Admin on Django 1.3 or below
Unfortunatelly, you will have to rewrite these using the new list_filter module functionality.
See the manual here:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter
This happened to me as well, even though my code wasn't directly using any filterspecs.
Run python manage.py runserver --traceback to see exactly where the error is coming from.
This module was removed in Django 1.4, but other external modules you have listed in your settings.py might still be using it, so make sure you upgrade everything in your INSTALLED_APPS list. In my case, I was using an outdated version of FeinCMS, but after I upgraded it, the error went away.
Obviously, your system is lacking filterspecs module which is required by the project. Install it by typing sudo pip install filterspecs in the console (if you are on linux)