I am using Pyforms for generating forms. But, I have to use stylesheet/css/html-api in my pyforms. I also follow step which have been given on this link. I want to know how to add css and making my layout beautiful. Can you please give me a better solution for that
Asked
Active
Viewed 729 times
2 Answers
1
If you're using the PyForms version 3.0, you can do this:
Import the settings
from pyforms import settings as formSettings
Modify the PYFORMS_STYLESHEET variable
formSettings.PYFORMS_STYLESHEET = cssFilePath
It works for me.

thepabloaguilar
- 53
- 1
- 8
0
Youu can add a css stylesheet by importing settings
and adding a settings.py
file where you reference the css file.
from pysettings import conf
import settings
conf+=settings
settings.py
PYFORMS_STYLESHEET = "stylesheet.css"

Error404
- 719
- 9
- 30