lincolnloop / django-mailfriend Goto Github PK
View Code? Open in Web Editor NEWGeneric "mail this to a friend" app for Django
Home Page: http://code.google.com/p/django-mailfriend/
License: Other
Generic "mail this to a friend" app for Django
Home Page: http://code.google.com/p/django-mailfriend/
License: Other
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.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.