Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem rendering file .css?
#1
I was able to embed inside a python function html5 tags, but I could not style with css the page in the browser? Accessing the source code from the browser and clicking the .css file link and can't find the path and read the .css file ?

Follow the directory :

/
file.css
index.py
server.py
Reply
#2
Are you trying to this without using a web-framework?
Reply
#3
(Oct-11-2019, 06:12 PM)snippsat Wrote: Are you trying to this without using a web-framework?

I am developing a Web Framework Mvc in python, where I can already print the html in the browser but I have a path problem to access file.css to style
Reply
#4
(Oct-11-2019, 06:32 PM)JohnnyCoffee Wrote: I am developing a Web Framework Mvc in python, where I can already print the html in the browser but I have a path problem to access file.css to style
when you do this you has to do a lot of study.
At lowest level in WSGI,serving static files and routing with wsgi.

Most look at how other has done it,as they have spend a lot of time on this.
Here werkzeug underlying layer of Flask and bottle as they are a thin layer above WSGI.
The Base Structure werkzeug
ROUTING STATIC FILES Bottle
Reply
#5
(Oct-11-2019, 07:29 PM)snippsat Wrote:
(Oct-11-2019, 06:32 PM)JohnnyCoffee Wrote: I am developing a Web Framework Mvc in python, where I can already print the html in the browser but I have a path problem to access file.css to style
when you do this you has to do a lot of study. At lowest level in WSGI,serving static files and routing with wsgi. Most look at how other has done it,as they have spend a lot of time on this. Here werkzeug underlying layer of Flask and bottle as they are a thin layer above WSGI. The Base Structure werkzeug ROUTING STATIC FILES Bottle

Grateful I'll take a look.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Jinja2 HTML <a> tags not rendering properly ChaitanyaPy 4 3,184 Jun-28-2020, 06:12 PM
Last Post: ChaitanyaPy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020