Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webshop demo not working #2

Open
florian-rabis opened this issue Sep 13, 2024 · 1 comment
Open

Webshop demo not working #2

florian-rabis opened this issue Sep 13, 2024 · 1 comment

Comments

@florian-rabis
Copy link

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
Copy link
Member

fscherf commented Sep 13, 2024

Hi @florian-rabis!

Nice! Can you open a pr with the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants