Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'example:': 0.03; 'sys': 0.05; "subject:' ": 0.07; 'scripts': 0.09; 'path.': 0.09; 'received:184.172': 0.09; '.py': 0.16; 'fine.': 0.16; 'safely.': 0.16; 'putting': 0.20; 'to:name:python-list@python.org': 0.20; 'import': 0.21; 'from:addr:chris': 0.22; 'example': 0.23; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'done.': 0.27; 'skip:# 10': 0.27; 'subject:list': 0.28; 'hosting': 0.28; 'cgi': 0.29; 'deploy': 0.29; 'folder': 0.30; 'good.': 0.32; 'skip:~ 10': 0.33; 'to:addr:python-list': 0.33; 'moved': 0.35; 'there': 0.35; 'add': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'different': 0.63; 'more': 0.63; 'received:67.18': 0.65; 'received:199': 0.71 Date: Sat, 15 Sep 2012 11:09:58 -0500 From: Chris Gonnerman User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: "python-list@python.org" Subject: Re: cannot concatenate 'str' and 'list' objects References: <071ad036-77ca-42d3-b68d-0dd3e3fac43e@googlegroups.com> <2138d293-c411-404d-bbf1-1afbae3fc597@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator191.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gonnerman.org X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([10.0.1.176]) [199.127.49.110]:56777 X-Source-Auth: chris@newcenturycomputers.net X-Email-Count: 1 X-Source-Cap: bmV3Y2VudDtuZXdjZW50O2dhdG9yMTkxLmhvc3RnYXRvci5jb20= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347725773 news.xs4all.nl 6880 [2001:888:2000:d::a6]:33956 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29249 > I moved to HostGaot because i heard there were the best in the hosting > business..... They are pretty good. However, you have to understand the site layout to do CGI safely. So long as your script are .cgi, putting them in ~/public_html is fine. If you need to deploy .py files, you need to put them in a different folder outside ~/public_html, for example ~/lib or ~/python, then in your CGI scripts you need to add that to the path. For example: #!/usr/bin/python import sys sys.path.append("../python") import MyModule, MyPackage.OtherModule This is more or less how all my CGI scripts on HostGator are done. -- Chris.