0

I upload my project using FTP on webfaction and now using putty i logged in. But same project is working fine but after uploading it is giving error viewdoesnotexist i dont know what changes i have to do i am a newbie. And yeah! a have made changes in apache httpd.conf and created scene_finder.wsgi.

ViewDoesNotExist at /index Could not import scene_finder.views. Error was: No module named views Request Method: GET Request URL: http://gbtech.webfactional.com/index Django Version: 1.3 Exception Type: ViewDoesNotExist Exception Value:
Could not import scene_finder.views. Error was: No module named view

Thanks in advance

Madhur Rampal
  • 55
  • 1
  • 3
  • Are you sure PYTHONPATH holds the directory of your site? Just to make sure, you can always add this to the wsgi script: import sys if '/my/path/' not in sys.path: sys.path.append('/my/path') . – Damian Jul 06 '11 at 14:00
  • In which file i should have append and how? – Madhur Rampal Jul 06 '11 at 14:06
  • @ Damian Ok i added in urls.py import sys sys.path.append(r"/home/webapps/django/scene_finder/scene") scene is the folder name where view.py exist.. Nw where i have done wrong.. – Madhur Rampal Jul 06 '11 at 14:10

1 Answers1

0

In your scene_finder.wsgi there'll probably be some code that sets up your PYTHONPATH. Make sure it includes /home/webapps/django/scene_finder/scene.

Dominic Rodger
  • 97,747
  • 36
  • 197
  • 212