Comments (7)
The app generates the token automatically - then in the admin you can manually send out the invite to the user.
Or you could use the invitation_code_sent signal to send out the emails automatically.
On 25/02/2012, at 15.32, Harshil Parikh wrote:
Hi,
Does this app generate an email with an activation token once a user submits an email in the invite form? If you have any working examples of how this works, that would be great.
Reply to this email directly or view it on GitHub:
#2
from django-hunger.
It seems like there is a hard requirement for a BETA_EMAIL_MODULE & BETA_EMAIL_CONFIRM_FUNCTION in receivers.py to successfully send an email. Sorry for the potentially trivial question, but how would these be configured if I am using standard django email settings such as EMAIL_HOST, EMAIL_PORT, etc.
from django-hunger.
i think it would be a good idea if there were some default invite email sending functions. This can be done fairly easily I believe!
from django-hunger.
I have added some watered down examples of the email functions I'm currently using.
I'm just using the standard Django email framework to send out these mails.
from django-hunger.
Perhaps we can have some sensible defaults for these emails. I saw the commit that you attached but they still rely on a user-defined template mail/<template_name>.txt/html
, which might be confusing esp. because there isn't much documentation. Can we have as default an email template with request.get_host()
(in the case that they aren't using the sites framework)? I think that would be a sensible default option.
from django-hunger.
I prefer to keep the actual emails as templates in the spirit of many other reusable django apps.
But you're welcome to edit the beta_mails.py to include request.get_host() and add default templates to the examples/ folder
On 26/02/2012, at 11.14, Simon Ye wrote:
Perhaps we can have some sensible defaults for these emails. I saw the commit that you attached but they still rely on a user-defined template
mail/<template_name>.txt/html
, which might be confusing esp. because there isn't much documentation. Can we have as default an email template with request.get_host() (in the case that they aren't using the sites framework)? I think that would be a sensible default option.
Reply to this email directly or view it on GitHub:
#2 (comment)
from django-hunger.
Thanks for providing the examples. I am not sure if you are actually implementing them right now, but they don't work right off the bat. Certain changes are necessary (mainly removing the signal parameter) to the receiver functions to get them to work properly.
from django-hunger.
Related Issues (20)
- Put v2.0.0a up on PyPI HOT 2
- InviteView redirects to 'hunger-verified'. HOT 3
- Support both Pre and Post Registration Beta Flow HOT 1
- DeprecationWarning: django.conf.urls.defaults
- missing url for beta_verify_invite HOT 3
- Should hunger.views.InviteView be blacklisted.
- One URL, two views (authenticated vs. not) HOT 2
- Invitations are never sent HOT 2
- More than one private invite per user causes InviteView to throw an error
- verify_invite should not have login_required decorator HOT 3
- Boolean settings set to False are always overridden by DEFAULT_SETTINGS in utils.py HOT 1
- remaining_invites is ambiguous HOT 2
- is_in_beta function HOT 1
- Compatibility with Django 1.7 HOT 7
- Can you make a group and then add invites to everyone in the group HOT 2
- Problems Starting the example server HOT 1
- New release? HOT 2
- invite_email.email
- Django 1.4, 'module' object has no attribute 'PY2' HOT 2
- Invited user via email is redirected to login url HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-hunger.