I have got this in appcfg.py file : "EXTRA_PATHS = [ DIR_PATH, os.path.join(DIR_PATH, 'lib', 'antlr3'), os.path.join(DIR_PATH, 'lib', 'django'), os.path.join(DIR_PATH, 'lib', 'webob'), os.path.join(DIR_PATH, 'lib', 'yaml', 'lib'), ] " So, for this point it is ok I think. For the other point, I also verified, django is in /<GAE_SDK_FOLDER>/ lib, no pb. What the pb then? Thx :)
On 10 mar, 13:40, nivhab <yaniv.ha...@gmail.com> wrote: > Hi Arbi, > > Seems like a problem with the python path. Django should be a part of > your google app-engine installation: Check under /<GAE_SDK_FOLDER>/lib > and see if 'django' folder exist there. Also check to see that the > appcfg.py file under the google_appengine directory contains the line: > > os.path.join(DIR_PATH, 'lib', 'django'), > > If this is not the case then your installation is incomplete. > > Hope that helps. > Yaniv > > On Mar 10, 12:03 pm, arbi <arbin...@gmail.com> wrote: > > > Hi, > > > I am making the tutorial of google to "activate" django in app > > engine > > :http://code.google.com/intl/fr-FR/appengine/articles/appengine_helper... > > > I made "python manage.py runserver" and it worked : > > " INFO:root:Running application google-app-engine-django on port > > 8000:http://localhost:8000" > > > So I went to my browser and write "http://localhost:8000", but it > > failed. The traceback is: > > > ERROR:root:Exception encountered handling request > > Traceback (most recent call last): > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 2711, in _HandleRequest > > base_env_dict=env_dict) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 380, in Dispatch > > base_env_dict=base_env_dict) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 1998, in Dispatch > > self._module_dict) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 1916, in ExecuteCGI > > reset_modules = exec_script(handler_path, cgi_path, hook) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 1812, in > > ExecuteOrImportScript > > exec module_code in script_module.__dict__ > > File "/Users/brouard/mysite/main.py", line 28, in <module> > > from appengine_django import InstallAppengineHelperForDjango > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 982, in decorate > > return func(self, *args, **kwargs) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 1572, in load_module > > return self.FindAndLoadModule(submodule, fullname, search_path) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 982, in decorate > > return func(self, *args, **kwargs) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 1480, in > > FindAndLoadModule > > description) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 982, in decorate > > return func(self, *args, **kwargs) > > File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ > > GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ > > google/appengine/tools/dev_appserver.py", line 1430, in > > LoadModuleRestricted > > description) > > File "/Users/brouard/mysite/appengine_django/__init__.py", line 115, > > in <module> > > from django import VERSION > > ImportError: No module named django > > INFO:root:"GET /favicon.ico HTTP/1.1" 500 - > > > So the pb is "No module named django". It seems to be a common issue > > encountered by django users. But I can't solve it. > > How can I? > > > Thx a lot > > > Arbi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---