Skip to content
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

@rudi48

Description

@rudi48

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

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