Received: by 10.68.125.233 with SMTP id mt9mr14493953pbb.5.1335202025597; Mon, 23 Apr 2012 10:27:05 -0700 (PDT) X-BeenThere: cherrypy-users@googlegroups.com Received: by 10.68.243.163 with SMTP id wz3ls19282387pbc.3.gmail; Mon, 23 Apr 2012 10:27:03 -0700 (PDT) Received: by 10.68.227.230 with SMTP id sd6mr14487063pbc.8.1335202023460; Mon, 23 Apr 2012 10:27:03 -0700 (PDT) Received: by 10.68.227.230 with SMTP id sd6mr14487061pbc.8.1335202023446; Mon, 23 Apr 2012 10:27:03 -0700 (PDT) Return-Path: Received: from remote.itgroupnw.com (remote.itgroupnw.com. [67.136.133.82]) by gmr-mx.google.com with ESMTPS id g5si20493051pbk.2.2012.04.23.10.27.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Apr 2012 10:27:03 -0700 (PDT) Received-SPF: pass (google.com: domain of t...@probo.com designates 67.136.133.82 as permitted sender) client-ip=67.136.133.82; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of t...@probo.com designates 67.136.133.82 as permitted sender) smtp.mail=t...@probo.com Received: from [192.168.192.12] (192.168.192.12) by ECHO.probo.local (192.168.192.2) with Microsoft SMTP Server (TLS) id 8.1.436.0; Mon, 23 Apr 2012 10:26:58 -0700 Message-ID: <4F9590E3.9060405@probo.com> Date: Mon, 23 Apr 2012 10:26:59 -0700 From: Tim Roberts Organization: Providenza & Boekelheide, Inc. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: "cherrypy-users@googlegroups.com" Subject: Re: [cherrypy-users] 404 error, unable to load css styles and img src! References: <54db922f-77ce-4695-acf6-6e59a8d17fb4@h5g2000vbx.googlegroups.com> In-Reply-To: <54db922f-77ce-4695-acf6-6e59a8d17fb4@h5g2000vbx.googlegroups.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-Path: t...@probo.com Eugene NGONTANG wrote: > And in the console i get 404 error from the server for these > resources. > > I don't know if the error is from cheetah but i think it could be from > cherrypy since i have a 404 error, manning that the resource is not > located by the server. Even when i put the full path of my css files > and images, the same thing happen Right. Cherrypy is not a general purpose web server, like Apache. ALL incoming requests are sent directly to your CherryPy application. Your CherryPy app handles exactly one request: /index. Everything else gets a 404, including /styles/my_style.css and /home/papi/projets/my_project/src/admin/images/log.png. There are several solutions. If you will only have a couple of static requests, you can specify in your app configuration that certain directories should be handles as static content: http://docs.cherrypy.org/stable/progguide/files/static.html If you will have a lot of such files, it is often better to run a real web server, and have it route specific directories to your CherryPy app. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.