Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6859073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:14:18+00:00 2026-05-27T02:14:18+00:00

I am using Cherrypy v3.2. I fail to find good docs about how to

  • 0

I am using Cherrypy v3.2. I fail to find good docs about how to write nice config files. At the moment here is an excerpt of what I have (the original file is fairly large) :

[global]
server.thread_pool = 8
server.socket_host = '10.109.26.56'
server.socket_port = 8000
tools.sessions.on = True

[/]
tools.staticdir.root = "C:\Documents and Settings\ginssj\Desktop\cherry"

[/img/loading_transparent.gif]
tools.staticfile.on = True
tools.staticfile.filename = "C:\Documents and Settings\ginssj\Desktop\cherry\img\loading_transparent.gif"

[/style/jquery.jgrowl.css]
tools.staticfile.on = True
tools.staticfile.filename = "C:\Documents and Settings\ginssj\Desktop\cherry\style\jquery.jgrowl.css"

[/style/iegl/Samples.css]
tools.staticfile.on = True
tools.staticfile.filename = "C:\Documents and Settings\ginssj\Desktop\cherry\style\iegl\Samples.css"

The thing is that my app has to get deployed on different machines, and I’d like to have to change the absolute root path only once. Is is possible to specify other paths as relative to the root that I specify on top ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:14:19+00:00Added an answer on May 27, 2026 at 2:14 am

    staticdir and staticfile are two different tools; they don’t share config. If you’re going to use staticfile, then set its root:

    [/]
    tools.staticfile.root = "C:\Documents and Settings\ginssj\Desktop\cherry"
    

    and then you can use relative file paths for the .file entries:

    [/style/iegl/Samples.css]
    tools.staticfile.on = True
    tools.staticfile.filename = "style\iegl\Samples.css"
    

    If you’d like to use staticdir to serve all the files in a single folder (like \style) then set staticdir.root similarly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a html page displayed using... cherrypy.quickstart(ShowHTML(htmlfile), config=configfile) Once the page is loaded
I have a web application written using CherryPy, which is run locally on 127.0.0.1:4321
Let's say I have some code (using CherryPy) that looks like this: import cherrypy
I'm using python and CherryPy to create a simple internal website that about 2
Using online interfaces to a version control system is a nice way to have
I have a small Python web application using the Cherrypy framework. I am by
I've created a Python web app using CherryPy, and have deployed in on my
Good morning. As the title indicates, I've got some questions about using python for
I'm evaluating and looking at using CherryPy for a project that's basically a JavaScript
I'm working on a django app right and I'm using cherrypy as the server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.