Giter Site home page Giter Site logo

django-mailfriend's Introduction

This simple app allows you to include an "e-mail this to a friend" link (as seen on many newspaper websites) on any page that can be accessed via a get_absolute_url() method.

The sending user must be a registered user; the recipient can be anyone with an e-mail address.

The app handles displaying a form to the user, sending the e-mail, and returning a confirmation page.

django-mailfriend's People

Contributors

ipmb avatar justquick avatar

Stargazers

 avatar Philippe Ombredanne avatar Mathieu Pillard avatar Khash  avatar J*Bergantine avatar Carl Meyer avatar Dan Hilton avatar Trent Jurewicz avatar Luiz Boaretto avatar  avatar Jannis Leidel avatar Matt Croydon avatar Patrick Taylor avatar

Watchers

Kasey Kelly avatar James Cloos avatar Jessi Hall avatar  avatar

django-mailfriend's Issues

Tests fail under postgresql_psycopg2

Something about the way the fakeapp is getting shoehorned in is preventing the proper relations from getting created in Postgres.


Traceback (most recent call last):
  File "/Users/pete/django/projects/mailfriend/src/django-mailfriend/mailfriend/tests/__init__.py", line 24, in setUp
    self.fake_item = FakeItem.objects.create(slug="mail-me")
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/manager.py", line 126, in create
    return self.get_query_set().create(**kwargs)
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/query.py", line 315, in create
    obj.save(force_insert=True)
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/base.py", line 410, in save
    self.save_base(force_insert=force_insert, force_update=force_update)
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/base.py", line 495, in save_base
    result = manager._insert(values, return_id=update_pk)
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/manager.py", line 177, in _insert
    return insert_query(self.model, values, **kwargs)
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/query.py", line 1087, in insert_query
    return query.execute_sql(return_id)
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/sql/subqueries.py", line 320, in execute_sql
    cursor = super(InsertQuery, self).execute_sql(None)
  File "/Users/pete/django/projects/mailfriend/lib/python2.6/site-packages/django/db/models/sql/query.py", line 2369, in execute_sql
    cursor.execute(sql, params)
ProgrammingError: relation "fakeapp_fakeitem" does not exist

Multiple to addresses

We are starting to use this project in production and have the use case of needing to send mail to multiple recipients. I see people entering to addresses separated by commas/semicolons which breaks validation (and the view itself before my last patch). Im going to work on this problem this week and will follow up when I have a fix

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.