Reputation: 878
Basically copied this tutorial
http://peterhudec.github.io/authomatic/examples/django-simple.html
Then I used python manage.py runserver
to initiate the server (using cmd prompt in Win 8). Local server seems to set up just fine.
But once I try to load up the page, it throws up this error:
ImportError at /
No module named google.appengine.api
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.6.5
Exception Type: ImportError
Exception Value:
No module named google.appengine.api
Exception Location: C:\Python27\lib\site-packages\authomatic\providers\gaeopenid.py in <module>, line 29
Python Executable: C:\Python27\python.exe
Python Version: 2.7.7
Python Path:
['C:\\Users\\darkace\\Documents\\2013 - 2014\\Python\\Django\\example',
'C:\\windows\\SYSTEM32\\python27.zip',
'C:\\Python27\\DLLs',
'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win',
'C:\\Python27\\lib\\lib-tk',
'C:\\Python27',
'C:\\Python27\\lib\\site-packages']
Server time: Mon, 25 Aug 2014 20:14:34 +0100
Is the problem that the module is missing (if so which ones do I need?), or do I need to install/run app engine, or does my setup need to be different for windows?
Not really sure what I'm doing to be honest
Upvotes: 2
Views: 447
Reputation: 1356
you're using this provider, so you need install the appengine SDK, or change the provider.
In the django sample, the author refers the google provider in this line:
from authomatic.providers import oauth2, oauth1, openid, gaeopenid
remove the gaeopenid reference and will work
Upvotes: 2