as a general rule freehosts don't allow long running processes and
therefore can't run Django, YMMMV let us know if you do get it going
on a freehost, I doubt it..

On Dec 31, 9:39 am, CreativeApex <timgoddardsem...@gmail.com> wrote:
> Ok, I've been following the tutorial.. I'm currently in the midst of
> part 3.  I have the development server running on my laptop and
> everything is working.  How Django works is 'clicking' with the
> exception of how it will work on a real server.
>
> I will be using free hosting.  I currently have freehostia, but
> considering using heliohost.org.
>
> In step 1: the tutorial states:
>
> "If your background is in PHP, you’re probably used to putting code
> under the Web server’s document root (in a place such as /var/www).
> With Django, you don’t do that. It’s not a good idea to put any of
> this Python code within your Web server’s document root, because it
> risks the possibility that people may be able to view your code over
> the Web. That’s not good for security.
>
> Put your code in some directory outside of the document root, such as /
> home/mycode."
>
> On freehostia, the root directory is /home and I have a /www folder
> containing a folder which contains my website.  I am not able to
> create a new folder in /home, but I can create one in my /www folder.
> My files are in /www/derelict.website.name.com/index.html so I could
> put my code in /www/backend/something.py.  Is this acceptable and what
> file permissions should I place on this folder?
>
> Second:
>
> In the settings.py it says I should use absolute paths.... what are
> absolute paths on a server? would it simply be /home/www/backend/
> something.py  or is there a unix file system nuance I need to know.
>
> Thirdly:
>
> Freehostia gives only this as a 'help' regarding python:
>
> The path to Python is:
>
> #!/usr/bin/python
>
> To execute a Python script you must ensure that the correct path is
> set in the beginning of the script.
> Once the path is set you must either:
>
> 1) create an .htaccess file and place the following code inside:
> AddHandler cgi-script .py
>
> 2) or rename the Python script by replacing .py with .cgi
> (no .htaccess is required in this case)
>
> Could someone dumb this down for me?
>
> Thanks

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.


Reply via email to