Wednesday, April 20, 2011

Unable to find file which sets Django installation's location

I have a Django installation at /home/masi/mySite.

How can you set that the files at the folder */home/masi/public_html/mySite* uses the Django installation?

From stackoverflow
  • Have you read the documentation? Since you've completed the installation, this is the next step.

    http://docs.djangoproject.com/en/dev/intro/tutorial01/

  • <location "/">
    
        SetHandler python-program
    
        PythonHandler django.core.handlers.modpython
    
        SetEnv DJANGO_SETTINGS_MODULE myproject.settings
    
        PythonPath "['/home/masi/public_html'] + sys.path"
    
    </location>
    

    In http.conf the python path will specify the location of the django project.

    Also http://www.djangoproject.com/ provides great documentation.

    Masi : Thank you for the answer!

0 comments:

Post a Comment