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

Improve documentation re. workstation setup vs. development setup #11

Open
papoteur-mga opened this issue Feb 13, 2019 · 6 comments
Open

Comments

@papoteur-mga
Copy link

papoteur-mga commented Feb 13, 2019

Hello,

I just tried the application patzilla 0.162.0.

As soon I try to open the site, I get a server error. In console message, it seems that templates/urlcleaner.js is claimed but not present. Indeed, I found only templates/urlcleaner.min.js.

I'm on a Mageia distro. I set a virtualenv, then used pip to get the installation. This worked. Then I created a patzilla.ini as development config.

Launching the server is OK.

  File "/home/yves/.venv27/lib/python2.7/site-packages/mako/runtime.py", line 804, in _lookup_template
    raise exceptions.TemplateLookupException(str(compat.exception_as()))
TemplateLookupException: Can not locate template for uri 'patzilla.navigator:templates/'

I never tried it before.
Best

@amotl
Copy link
Member

amotl commented Feb 13, 2019

Dear Papoteur,

thanks for writing in. We will try to have look into the issue. In the meanwhile, you might want to try to toggle the configuration setting

# Whether to run the instance in development mode
development_mode    = true

When setting this to true, as in the default of the development configuration, PatZilla will try to acquire templates/urlcleaner.js, right. When setting this to false, it really should go for the templates/urlcleaner.min.js.

Let's check what PatZilla will say after making this change. Maybe this will reveal that more things are missing?

With kind regards,
Andreas.

@papoteur-mga
Copy link
Author

Oh, yes, its really better.
Thanks
Do you need other tests?

@amotl
Copy link
Member

amotl commented Feb 13, 2019

When everything works as expected now, I assume this is a good thing? Please let me know if you need further assistance. Regarding the issue...

Problem scope

It might well be that it's just a documentation / configuration blueprint glitch.

Let me explain: When running in development mode, you are usually running the code directly from the working tree of the source code repository.

On the other hand, when installing PatZilla using pip install patzilla, you are not really in development mode, as the package contains a bundled Javascript frontend already and will install into your Python's site-packages.

Proposal

I conclude the documentation should be enhanced to say that one should reach out to the production.ini then, right? There, development mode would actually be turned off by default through

development_mode    = false

and everything should be fine then. Would this have helped you already?

Conclusion

You already told us that

Then I created a patzilla.ini as development config.

So another question would be whether you actually intended to install PatZilla in development mode? Then, it would be a different story (but probably also to be solved by improving the documentation). Just let us know, thanks in advance!

@papoteur-mga
Copy link
Author

Hi,
It was intended that I configure a development mode. I did it because my installation is local and that meant that it will be easier to follow what is done. No other reason.
Yes, documentation can be improved by saying what development is intended for and which consequences are implied.

@amotl
Copy link
Member

amotl commented Feb 13, 2019

Thanks for clarifying that. We will try to improve the documentation of

@amotl amotl changed the title [0.162.0] Internal error Improve documentation re. workstation setup vs. development setup Feb 17, 2019
@amotl
Copy link
Member

amotl commented Jun 15, 2022

@think-nice-things recently reported the same thing over at #52. Thank you!

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