lona-web-org / presentations

This repo contains slides and demo-projects for Lona related presentations
0 stars 1 forks source link

Webshop demo not working #2

Open florian-rabis opened 1 week ago

florian-rabis commented 1 week ago

Hi,
I had to adjust the settings.py to get the webshop example running.
It seems the picocss middleware is missing. Additionally, a line further down was duplicated.

...

MIDDLEWARES = [
    'lona_picocss.middlewares.LonaPicocssMiddleware',
]

...

FRONTEND_TEMPLATE = lona_picocss.settings.FRONTEND_TEMPLATE                          # one removed

...

I also had to add the demo directory to the Python path to ensure the modules were found correctly. Unfortunately, running the Makefile on Windows didn't work for me, even after adjusting all the paths.

After that, I was able to start everything using lona run-server --project-root="webshop" --settings="settings.py".

fscherf commented 6 days ago

Hi @florian-rabis!

Nice! Can you open a pr with the fix?