echevemaster / fedora-college

Fedora College's website
Other
12 stars 10 forks source link

WSGI with relative folder #22

Open yograterol opened 10 years ago

yograterol commented 10 years ago

In the WSGI file there a absolute path, I recommend add a relative path.

sys.path.insert(0,"/home/engineer/fedora-college")

https://github.com/echevemaster/fedora-college/blob/develop/fedora_college.wsgi#L5

hammadhaleem commented 10 years ago

This is a sample production file, currently having the path for server I am running. I guess, an absolute path is required for the wsgi ? Isn't it ?

yograterol commented 10 years ago

A relative path work, or a path join.

hammadhaleem commented 10 years ago

yohan, I was getting issues with relative path. Please can you do this ?

also, the new file is here : https://github.com/echevemaster/fedora-college/blob/develop/apache/fedora_college.wsgi#L5 Thanks