Git Product home page Git Product logo

bounce's People

Contributors

benjmaq avatar cfahlgren1 avatar marcorichetta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bounce's Issues

Error pages not showing correctly on live website

I was checking the custom error pages on the live website, and to my surprise got the Django error page instead (see image). Production settings seem to have DEBUG=False so not really sure why this happens.

Screenshot from 2020-10-22 18-38-47

Missing handler404 view

I noticed there is no handler404 view and would like to add that if it's okay? There are multiple 404 templates so would need clarification on which to use.

Slack link is not valid anymore

Hi, saw your Reddit link and I'm interested in contributing. But there where no activities in the last three weeks. Everything fine? Your Slack channel invitation also seems to be expired.
Have a nice weekend.

Ask user for location to load map

If user location was given, load map from users longitude and latitude, this can be done through the JS library to ask for the user location, then pass the lng and lat into the mapbox script to load map.

Dockerize Project

Dockerize the application so that it is easy to setup environment and tests without hassles of dependencies

Return error in form if email already exists

Currently, the django form doesn't inform user on the front end if the email already exists. By following the guide below, it is pretty easy to present an error on the frontend.

You can accomplish this without much hassle!
Using the form is_valid() method you can check for any errors (Like the already existent email), and render the same page but this time including the error for the user to see.

Look at this simple example: https://www.dark-hamster.com/application/how-to-display-form-error-in-django/

Originally posted by @marcorichetta in #16 (comment)

Integrity error caused by duplicate signup email

Just tried to enter the same email twice and got this error.
imagen

This error should be kept in the home view using EmailSignupForm.
The form is not valid if the email already exists in the database.

Docker implementation issue

Hey,

I think there are a few things missing in the setup guide. Currently, it does not work for a completely new contributor. I've kept track of the few things I've had to do manually, and I'll push a PR once I'm able to get everything working.

In the meantime, I'm facing an issue when running command ./manage.py loaddata bounce_data.json

bash: ./manage.py: /usr/bin/env: bad interpreter: Permission denied

I also tried python ./manage.py loaddata bounce_data.json but then I have

Traceback (most recent call last):
  File "./manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/loaddata.py", line 71, in handle
    with transaction.atomic(using=self.using):
  File "/usr/local/lib/python3.8/site-packages/django/db/transaction.py", line 175, in __enter__
    if not connection.get_autocommit():
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 390, in get_autocommit
    self.ensure_connection()
  File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
    self.connect()
  File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
    self.connect()
  File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
    connection = Database.connect(**conn_params)
  File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 127, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Can you help @cfahlgren1 ?
Thanks

Add tests in Django

Add tests for CI/CD Pipeline for API, Model,End to End testing with cypress.io
Use django-nose or coverage to track testing coverage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.