The Open-Source Happiness Packets project was created by Sasha
Romijn <https://twitter.com/mxsash>
and Mikey
Ariel <https://twitter.com/thatdocslady>
in March 2016. The idea came
about while we were building our Healthy Minds in a Healthy
Community <https://github.com/erikr/well-being/>
presentation for
Djangocon Europe 2016 <https://2016.djangocon.eu/speakers/13>
. One
of the issues we wanted to address in the presentation was that many
people are unaware of how loved, appreciated, or admired they are by
their peers, since our culture seems to discourage positive feedback and
amplify negative feedback. With this project, we wanted to provide a
platform for people to send positive feedback, thanks, or just a kind
word to their peers, with hope to make it easier and more acceptable for
people to spread happiness, gratitude and appreciation in open-source
communities.
The structure and format of the site is basic, and contributions are welcome!
To run this project or the tests, you need to set up a virtualenv, install the dev requirements and set
the correct DJANGO_SETTINGS_MODULE
, for example with::
virtualenv --no-site-packages --prompt='(happinesspackets)' virtualenv/
source virtualenv/bin/activate
pip install -r requirements/dev.txt
export DJANGO_SETTINGS_MODULE=happinesspackets.settings.dev
./t
The t
command is a very short shell script that runs the tests with the correct settings and reports on coverage.
To run the integration tests::
./manage.py test -v 2 -p integration_test*.py --settings=happinesspackets.settings.tsting
This repository contains some documentation directly related to the code, built with Sphinx. To build the docs::
cd docs
make html
open _build/html/index.html
Bumps ipython from 4.1.1 to 7.16.3.
d43c7c7
release 7.16.35fa1e40
Merge pull request from GHSA-pq7m-3gw7-gq5x8df8971
back to dev9f477b7
release 7.16.2138f266
bring back release helper from master branch5aa3634
Merge pull request #13341 from meeseeksmachine/auto-backport-of-pr-13335-on-7...bcae8e0
Backport PR #13335: What's new 7.16.28fcdcd3
Pin Jedi to <0.17.2.2486838
release 7.16.120bdc6f
fix conda buildDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps django from 1.11.29 to 2.2.24.
2da029d
[2.2.x] Bumped version for 2.2.24 release.f27c38a
[2.2.x] Fixed CVE-2021-33571 -- Prevented leading zeros in IPv4 addresses.053cc95
[2.2.x] Fixed CVE-2021-33203 -- Fixed potential path-traversal via admindocs'...6229d87
[2.2.x] Confirmed release date for Django 2.2.24.f163ad5
[2.2.x] Added stub release notes and date for Django 2.2.24.bed1755
[2.2.x] Changed IRC references to Libera.Chat.63f0d7a
[2.2.x] Refs #32718 -- Fixed file_storage.test_generate_filename and model_fi...5fe4970
[2.2.x] Post-release version bump.61f814f
[2.2.x] Bumped version for 2.2.23 release.b8ecb06
[2.2.x] Fixed #32718 -- Relaxed file name validation in FileField.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
A class of active
is added to a sidebar element on all pages, resulting in two elements having the class of active
for all pages other than home.
It is observed that the element that is associated with the home url(i.e. 'What are happiness packets?') in the sidebar, always has an active class on all the pages.
On analysis, it was found that since the following code in happinesspackets\messaging\urls.py
is true for all cases of url patterns,
urlpatterns = [
url(r'^$', StartView.as_view(), name='start'),
it results in the active class being added to the corresponding element for all pages that utilize templates\base.html
template.
{% url 'messaging:start' as url %}
<li role="presentation" {% if url in request.path %}class="active"{% endif %}><a href="{{ url }}">What are Happiness Packets?</a></li>
Only the element that is mapped with the current url should have an active
class.
This is basically a feature request wherein a feature which could switch the site into night mode or day mode view as per the user needs can be added. The feature would help users use the site in dark with less strain on eyes.
Archive list has too many entries. So the page length is becoming too long. So it's better to have only few entries on first load and load the rest when user wants to.
Are there other things that need to be configured before opbeat can be used?
I'm getting errors like:
2018-08-01 05:33:27,281 gunicorn[7924]: ERROR opbeat.errors: Unable to reach Opbeat server: <urlopen error [Errno -2] Name or service not known> (url: https://intake.opbeat.com/api/v1/organizations/None/apps/None/transactions/)
Happiness Packets is a simple platform to anonymously reach out to the people that you appreciate or to whom you are thankful in your community
GitHub Repository Homepagepython django