Bounce
Bounce copied to clipboard
Join Early Access Button not working with Django Form
On the home page of Bounce, the 'Join Early Access' button isn't submitting the Django form. It currently only works by pressing enter.
I'd like to see if I can take this one, but I tried to make the django app run locally and I'm facing issues with dependencies etc. Also, I'm not really familiar with Django so need to do some research on how it works. I looked on stackoverflow a bit and can't seem to figure out why the button does not work. If you have any idea, please share and I can try to implement it. But first I need to get it running locally for testing, right?
Hey, I plan to write some documentation on how to setup a local environment before it is dockerized and is easier to setup an environment. What are you having issues with? I think the issue is how the form is setup. And yes you definitely want to get it running locally.
Hi @cfahlgren1, Found your repo to be appealing as I have experience with Django and love basketball. However while setting up the project locally, specifically when installing the requirements I faced the following error:
~~Error: pg_config executable not found.~~
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).`
~~I also tried commenting out psycopg2 and installing the psycopg2-binary package instead but psycopg2 is also a dependency for xlwt Seems like this might be resolved with the pg_config. Can you help? Thanks!~~
EDIT: Resolved this by sudo apt-get install libpq-dev python-dev
Hi @cfahlgren1, Found your repo to be appealing as I have experience with Django and love basketball. However while setting up the project locally, specifically when installing the requirements I faced the following error:
~Error: pg_config executable not found.~
pg_config is required to build psycopg2 from source. Please add the directory containing pg_config to the $PATH or specify the full executable path with the option: python setup.py build_ext --pg-config /path/to/pg_config build ... or with the pg_config option in 'setup.cfg'. If you prefer to avoid building psycopg2 from source, please install the PyPI 'psycopg2-binary' package instead. For further information please check the 'doc/src/install.rst' file (also at <https://www.psycopg.org/docs/install.html>).`
~I also tried commenting out psycopg2 and installing the psycopg2-binary package instead but psycopg2 is also a dependency for xlwt Seems like this might be resolved with the pg_config. Can you help? Thanks!~
EDIT: Resolved this by
sudo apt-get install libpq-dev python-dev
Glad you were able to resolve it and thank you for coming to contribute :). As for the dev environment, we are currently almost done simplifying the build process by using docker. Once this is finished, the environment will be as easy as two or three commands. You can find the pull request here.
@BenjMaq @vaibhvshrma , the dev environment is now simplified with docker and can be setup in linux with a few commands. Checkout the README for instructions on creating the environment.
@vaibhvshrma , the dev environment is now simplified with docker and can be setup in linux with a few commands. Checkout the README for instructions on creating the environment.
Wow thanks @cfahlgren1, this was much needed, I couldn't set up the codebase even after multiple attempts. Will give it a whirl sometime later today.