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

Square Brackets after every field #518

Open
cycclipscom opened this issue Feb 21, 2025 · 5 comments
Open

Square Brackets after every field #518

cycclipscom opened this issue Feb 21, 2025 · 5 comments

Comments

@cycclipscom
Copy link

Bug Report

Description

Every field is shown with a [] after it.

Steps to Reproduce

I followed the steps on the Horilla site to install Horilla on a fresh Ubuntu 22.04 LTS install. Then setup apache2 with mod-wsgi. Configured the default site to point to the horilla/wsgi.and visited the page. After logging in, I go to any page with fields and there are [] after each one.

Expected Behavior

There to not be [] after every field.

Actual Behavior

I see [] after each field

Screenshots

Image

Environment

  • Django Version: 4.2.11
  • Python Version: 3
  • Operating System: Ubuntu
  • Browser: Chrome
@horilla-opensource
Copy link
Owner

Hi @cycclipscom

Thanks for reporting this issue! The [] appearing after each field is known to occur when hosting Horilla with Apache.

We recommend trying to run Horilla with Gunicorn and Nginx, as this should resolve the issue.

That said, we’re already working on an update to transition the affected views to Class-Based Views (CBV), which will address this issue in the next version of Horilla. Stay tuned for the update! 🚀

Let us know if you need any help setting up Gunicorn and Nginx.

Thanks for your patience and for contributing to the improvement of Horilla!

Best Regards,
Team Horilla

@cycclipscom
Copy link
Author

cycclipscom commented Feb 25, 2025

Okay. I originally tried it with Gunicorn and Nginx but was unable to get it to work. After working on it for many hours, I switched to Apache got it running in about 20 minutes.

Is there a guide you recommend for setting up Horilla with Gunicorn/Nginx?

I figured out how to use gunicorn with apache and it's working without the []

@horilla-opensource
Copy link
Owner

Hi @cycclipscom ,

Glad to hear you got it running with Apache! If you're still interested in setting up Horilla with Gunicorn and Nginx, you can follow the steps shared in the documentation.

https://docs.google.com/document/d/15XQmAqSPUM5i8ORWYdZSMm-zBEabAbS0JGH9VLIjm_Y/edit?usp=sharing

Out of curiosity, how is your setup working without []? Would love to understand more about your configuration!

Best Regards,
Team Horilla

@cycclipscom
Copy link
Author

It all seems to be working well, although when I did a password reset it had a localhost URL instead of the correct URL. I looked but couldn't find how to change it. Any ideas?

@horilla-opensource
Copy link
Owner

horilla-opensource commented Feb 28, 2025

Hi @cycclipscom ,

It seems the password reset email is using the default Django forgot password template. You can check the template at base > forms.py in the PassWordResetForm class.

Additionally, please make sure you've updated horilla_apps.py by replacing:
WHITE_LABELLING = False
with
WHITE_LABELLING = True

Let us know if you need any further help!

Best Regards,
Team Horilla

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