Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

working path for file load is "/"? #3

Copy link
Copy link
@rudi48

Description

@rudi48
Issue body actions

Hello,
I try to use the web framework bottle, with an application, which works on Ubuntu 14.04.
When I try to load my template file from the web browser (firefox):
return template('index.tpl', **settings)
I will get an HTML error 500 (internal server error).
When I try to load a static file, I will get an HTML error 404 (file not found).

When I run in a test program:
print(os.path.abspath(os.getcwd()))
I will get just "/".

Usually in "bottle" the program directory is the root for file loads.
How can I set it up, to make the root for file loads the program directory?

Regards, Rudolf

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.