Sending email from contact form to all superuser.

2020-07-14 Thread Exactly musty
You will use django send_mail in your views,just go to the django doc,and search for send_mail -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsu

Sending email from contact form to all superuser.

2020-07-14 Thread Ngazetungue Muheue
Hi everyone , please help me on how to send email to all superuser of my system from the contact form on my template. Example: I have Contact form and i want the message send by users through the form to be save into django model (admin) and at the same time the same message should go to the

Re: Re-Order rendering of input fields of django-contact-form?

2018-11-09 Thread amit pant
can we use clean method instead of __init__ On Mon 5 Nov, 2018, 4:47 PM Aashutosh Rathi, wrote: > Yes, this works for me. > Make sure > > > super(AddLabForm, self).__init__(*args, **kwargs) >fields_keyOrder = ['id', 'date', 'start_time', 'end_time'] >if 'keyOrder' in self.fields:

Re: Re-Order rendering of input fields of django-contact-form?

2018-11-05 Thread Aashutosh Rathi
Yes, this works for me. Make sure super(AddLabForm, self).__init__(*args, **kwargs) fields_keyOrder = ['id', 'date', 'start_time', 'end_time'] if 'keyOrder' in self.fields: self.fields.keyOrder = fields_keyOrder else: self.fields = OrderedDict((k, self.f

Re: problrm with django contact form

2017-03-25 Thread Bassam Ramadan
im getting "POST /email/ HTTP/1.1" 302 0 On Saturday, March 25, 2017 at 7:28:59 PM UTC+2, Melvyn Sopacua wrote: > > Hello, > > > > On Saturday 25 March 2017 09:13:19 Bassam Ramadan wrote: > > > > > but i do not receive any mail on my email account > > > > You didn't setup your EMAIL_ setting

Re: problrm with django contact form

2017-03-25 Thread Melvyn Sopacua
Hello, On Saturday 25 March 2017 09:13:19 Bassam Ramadan wrote: > but i do not receive any mail on my email account You didn't setup your EMAIL_ settings[1]. -- Melvyn Sopacua [1] https://docs.djangoproject.com/en/1.10/ref/settings/#email-host -- You received this message because yo

problrm with django contact form

2017-03-25 Thread Bassam Ramadan
hello everybody, i created a django project on my local machine ( laptop ) and i setup django form for getting email from my website visitors but when i try it it working fine and do not give me any errors but i do not receive any mail on my email account -- You received this message because

Re: Contact form and sending confirmation an page.

2015-02-08 Thread Vijay Khemlani
One way would be to render the page after the submit and scroll down to the form. Other would be submitting the form by ajax. On Sun, Feb 8, 2015 at 6:30 PM, inoyon artlover KLANGRAUSCH < inoyonartlo...@googlemail.com> wrote: > Hi there! > > I got one page. On the page is

Contact form and sending confirmation an page.

2015-02-08 Thread inoyon artlover KLANGRAUSCH
Hi there! I got one page. On the page is a contact form. After clicking the 'send' button I want to change the form containing div to 'thank you for mailing us' div. And stay at the same 'id' on the page. One way to solve it is to put an another template and load

Re: Help in Django-contact-form

2015-01-27 Thread Vijay Khemlani
5 at 10:45 PM, Karim wrote: > Can you show us also the view? > > On Wed, Jan 28, 2015 at 8:04 AM, Akash Nimare > wrote: > >> Hello everyone. I am using a third party app django-contact-form. It is >> working fine but the problem is it does not show my models in admin.

Re: Help in Django-contact-form

2015-01-27 Thread Karim
Can you show us also the view? On Wed, Jan 28, 2015 at 8:04 AM, Akash Nimare wrote: > Hello everyone. I am using a third party app django-contact-form. It is > working fine but the problem is it does not show my models in admin. I > can't see the data in admin. The docs are very p

Help in Django-contact-form

2015-01-27 Thread Akash Nimare
Hello everyone. I am using a third party app django-contact-form. It is working fine but the problem is it does not show my models in admin. I can't see the data in admin. The docs are very poor. Here is my model.py from django.db import models from contact_form.forms import ContactForm

Re: Re-Order rendering of input fields of django-contact-form?

2015-01-21 Thread Tobias Dacoir
Ah it works. After I restarted Django and hit F5 again it re-orders it now. So the code above is the solution. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an em

Re: Re-Order rendering of input fields of django-contact-form?

2015-01-21 Thread Tobias Dacoir
It still complained about the request, but I was finally able to get it to work using this code: def __init__(self, request, *args, **kwargs): super(CustomContactForm, self).__init__(request=request, *args, ** kwargs) fields_keyOrder = ['name', 'reason', 'email', 'body']

Re: Re-Order rendering of input fields of django-contact-form?

2015-01-21 Thread Paul Royik
> > So pass the request > def __init__(self, request, *args, **kwargs): self.request=request super(CustomContactForm, self).__init__(*args, **kwargs) self.fields.keyOrder = ['name', 'reason', 'email', 'body'] -- You received this message because you are subscribed to

Re: Re-Order rendering of input fields of django-contact-form?

2015-01-21 Thread Tobias Dacoir
Unfortunately this doesn't work as the contact form needs to be passed the request as well. I tried to modify the call to super but it didn't work. As a workaround what I did now was to look at the HTML Code that the tag {{ form.as_p }} creates, and copy and paste that into the HTM

Re: Re-Order rendering of input fields of django-contact-form?

2015-01-20 Thread Paul Royik
Try def __init__(self, *args, **kwargs): super(CustomContactForm, self).__init__(*args, **kwargs) self.fields.keyOrder = ['name', 'reason', 'email', 'body'] On Tuesday, January 20, 2015 at 11:26:01 PM UTC+2, Tobias Dacoir wrote: > >

Re-Order rendering of input fields of django-contact-form?

2015-01-20 Thread Tobias Dacoir
I'm using django-contact-form which allows me to subclass it and add custom fields to it. However all my added fields will appear at the bottom. I even tried overwriting the original fields but still the order they appear is wrong. How can I control this? I tried searching for an answer

Re: How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread AJ
feedbackform = feedbackform() Thanks, Aj On Monday, 19 January 2015 15:43:34 UTC+5:30, Tobias Dacoir wrote: > > I need to include two different contact forms in my app. One a general > contact form and another Report / Feedback form that pre-fills some data > depending on which si

Re: How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread Tobias Dacoir
orm(ContactForm): additional = forms.CharField(max_length=100, label='additional field test') subject_template_name = "contact_form/report_form_subject.txt" template_name = 'contact_form/report_form.txt' And the template, thanks to you is easy as pie: repor

Re: How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread Vijay Khemlani
the official documentation I'm still unsure if I need to type > anything in my views.py at all. > As far as I understand this, I just need to subclass ContactForm somehow: > > class ContactForm(forms.Form): > """ > The base contact form class from which a

Re: How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread Tobias Dacoir
somehow: class ContactForm(forms.Form): """ The base contact form class from which all contact form classes should inherit. If you don't need any custom functionality, you can simply use this form to provide basic contact functionality; it will collect name,

Re: How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread Tobias Dacoir
According to the official documentation I'm still unsure if I need to type anything in my views.py at all. As far as I understand this, I just need to subclass ContactForm somehow: class ContactForm(forms.Form): """ The base contact form class from which all contact form cl

Re: How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread Tobias Dacoir
Thanks for the reply. I was wondering about the if statement about request.type as well, but I took the code from Stackoverflow and a combination of the original source code. It calls a Class.as_view() and I wasn't sure if I need to overwrite that as well. I didn't really want to write all the

Re: How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread Vijay Khemlani
rent contact forms in my app. One a general > contact form and another Report / Feedback form that pre-fills some data > depending on which site it was called from. > So I hit google, found django-contact-form, installed it and after > creating some basic templates (and rest of the configurat

How to subclass django-contact-form to create custom contact form?

2015-01-19 Thread Tobias Dacoir
I need to include two different contact forms in my app. One a general contact form and another Report / Feedback form that pre-fills some data depending on which site it was called from. So I hit google, found django-contact-form, installed it and after creating some basic templates (and rest

Re: Question on creating a contact form app using bootstrap template

2014-08-19 Thread Mario Gudelj
t; >> > class="form-control" placeholder="Your Name *" id="name" required >> data-validation-required-message="Please enter your name."> >> >>

Re: Question on creating a contact form app using bootstrap template

2014-08-19 Thread Martin Spasov
se enter your name."> > > > Send Message > > > 2014年8月19日火曜日 10時42分19秒 UTC+9 Collin Anderson: >> >> I recommend making the same contact form in django first, then merg

Re: Question on creating a contact form app using bootstrap template

2014-08-19 Thread Kim
] }}? Send Message 2014年8月19日火曜日 10時42分19秒 UTC+9 Collin Anderson: > > I recommend making the same contact form in django first, then merge the > two. Your starter template only makes the form look good, it doesn't > provide much function

Re: Question on creating a contact form app using bootstrap template

2014-08-18 Thread Collin Anderson
I recommend making the same contact form in django first, then merge the two. Your starter template only makes the form look good, it doesn't provide much functionality. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Question on creating a contact form app using bootstrap template

2014-08-18 Thread Kim
Anyone? 2014年8月18日月曜日 16時13分28秒 UTC+9 Kim: > > Hi, > > I'm learning python/django and am building my personal page using this > template (http://startbootstrap.com/templates/agency/). > > Since it already has a contact form, I would like to integrate django form >

Question on creating a contact form app using bootstrap template

2014-08-18 Thread Kim
Hi, I'm learning python/django and am building my personal page using this template (http://startbootstrap.com/templates/agency/). Since it already has a contact form, I would like to integrate django form app on that to actually work. I was looking at the django doc (

Re: Prepopulating a contact form

2012-07-18 Thread Sithembewena Lloyd Dube
(initial=initial) > > > On Wed, Jul 18, 2012 at 11:23 AM, Sithembewena Lloyd Dube < > zebr...@gmail.com> wrote: > > Hi everyone, > > > > I have a contact form in my app and would like to prepopulate it with > user > > details where a user is logge

Re: Prepopulating a contact form

2012-07-18 Thread Tomas Neme
user = request.user initial = {} if user.is_authenticated: initial.update({ 'name': user.name, 'email_address': user.email_address }) form = MyContactForm(initial=initial) On Wed, Jul 18, 2012 at 11:23 AM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > I have

Prepopulating a contact form

2012-07-18 Thread Sithembewena Lloyd Dube
Hi everyone, I have a contact form in my app and would like to prepopulate it with user details where a user is logged in. Basically, I do the following: reg_user = get_registered_user(request) # get my form object I would like to do something like: if reg_user: my_form.name

Re: Contact form wizard - values ​​between forms

2012-07-09 Thread Leandro Alves
Does anyone have any tip please? Thanks. On Monday, July 9, 2012 1:34:18 PM UTC+2, Leandro Alves wrote: > > Hi guys, > > I know this might sound simple, but how can I get/use the values of the > fields from ContactForm1 into ContactForm2? > > from django import forms > > class ContactForm1(fo

Contact form wizard - values ​​between forms

2012-07-09 Thread Leandro Alves
Hi guys, I know this might sound simple, but how can I get/use the values of the fields from ContactForm1 into ContactForm2? from django import forms class ContactForm1(forms.Form): subject = forms.CharField(max_length=100) sender = forms.EmailField() class ContactForm2(forms.Form):

Re: Class-based FormView Contact Form

2011-09-12 Thread Paul Walsh
Hi Russ, Thanks for the input. I am actually looking to use FormView as opposed to UpdateView or CreateView because I am not working with model data at all: I want to create a simple contact form, and send the data of the form to a recipient via email - I don't want to write anything to t

Re: Class-based FormView Contact Form

2011-09-05 Thread Russell Keith-Magee
On Mon, Sep 5, 2011 at 6:17 PM, Paul Walsh wrote: > Anyone? > I really want to use class-based views, but it is hard with so much missing > in terms of examples/tutorials. Hi Paul, First off, apologies for the current state of the Class-based views documentation. It's one of the known weak point

Re: Class-based FormView Contact Form

2011-09-05 Thread Paul Walsh
Anyone? I really want to use class-based views, but it is hard with so much missing in terms of examples/tutorials. thx. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg

Class-based FormView Contact Form

2011-09-01 Thread Paul Walsh
I want to make a contact form using the class-based FormView. How do I pass the recipient email? Let's say I want a pre-defined recipient, and also the option for the sender of the form to receive a copy. I can do this with a function view but I'd like to use the new class-base

Re: Creating a simple contact form

2011-06-19 Thread raj
webfaction and can give you a response for what we > > do > > > when I get home late tonight--the email part was a bit annoying to > > > setup--the main thing is to recognize that they are using their mailbox. > > > > Best, > > > William > > > >

Re: Creating a simple contact form

2011-06-17 Thread william ratcliff
to > > setup--the main thing is to recognize that they are using their mailbox. > > > > Best, > > William > > > > > > > > > > > > > > > > On Fri, Jun 17, 2011 at 2:27 AM, raj wrote: > > > Hey guys, > > >

Re: Creating a simple contact form

2011-06-17 Thread raj
email part was a bit annoying to > setup--the main thing is to recognize that they are using their mailbox. > > Best, > William > > > > > > > > On Fri, Jun 17, 2011 at 2:27 AM, raj wrote: > > Hey guys, > > > I have a webfaction account, and I was try

Re: Creating a simple contact form

2011-06-17 Thread Alex s
et home late tonight--the email part was a bit annoying to > setup--the main thing is to recognize that they are using their mailbox. > > Best, > William > > > On Fri, Jun 17, 2011 at 2:27 AM, raj wrote: > >> Hey guys, >> >> I have a webfaction account, an

Re: Creating a simple contact form

2011-06-17 Thread william ratcliff
t; > I have a webfaction account, and I was trying to get a contact form > working for my website. The problem is that I can't seem to get it to > work. Can someone walk me through this? I couldn't figure it out from > the djangobook tutorial. I think something is wrong with m

Re: Creating a simple contact form

2011-06-17 Thread Ibrahim Khalil
ccount, and I was trying to get a contact form >> working for my website. The problem is that I can't seem to get it to >> work. Can someone walk me through this? I couldn't figure it out from >> the djangobook tutorial. I think something is wrong with my settings >&

Re: Creating a simple contact form

2011-06-17 Thread Tiago Almeida
Try opening a django shell and calling send_mail by hand to see what exception you get (if any). Best Regards, On 17 Jun, 07:27, raj wrote: > Hey guys, > > I have a webfaction account, and I was trying to get a contact form > working for my website. The problem is that I can't

Re: Creating a simple contact form

2011-06-16 Thread Kenneth Gonsalves
On Thu, 2011-06-16 at 23:27 -0700, raj wrote: > The problem is that I can't seem to get it to > work. what does not work? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "D

Creating a simple contact form

2011-06-16 Thread raj
Hey guys, I have a webfaction account, and I was trying to get a contact form working for my website. The problem is that I can't seem to get it to work. Can someone walk me through this? I couldn't figure it out from the djangobook tutorial. I think something is wrong with my settings

Re: has anyone forced django-contact-form to send the email from the contactor

2011-03-19 Thread shofty
'd be simple, but i cant work out how to do it. > > It is simple: > > https://bitbucket.org/ubernostrum/django-contact-form/src/1d3791fa4df... > > This is where the from email address is configured. If you want to > override this, you can either monkey patch that attri

Re: has anyone forced django-contact-form to send the email from the contactor

2011-03-18 Thread Tom Evans
et.org/ubernostrum/django-contact-form/src/1d3791fa4dfb/contact_form/forms.py#cl-149 This is where the from email address is configured. If you want to override this, you can either monkey patch that attribute after form construction or (cleaner) sub-class the form and override that attribute. Cheers T

has anyone forced django-contact-form to send the email from the contactor

2011-03-18 Thread shofty
n get past this. im using django-contact-form https://bitbucket.org/ubernostrum/django-contact-form/ i found a fork that allows you to mess with the headers but i couldn't get the message into the reply-to field in a way that worked. https://bitbucket.org/miracle2k/django-contact-form if an

Re: Contact form doesn't see user as logged in

2011-01-04 Thread Catalyst
Thank you, this worked. I appreciate the fast response Łukasz. On Jan 3, 11:38 pm, Łukasz Rekucki wrote: > On 4 January 2011 02:27, Catalyst wrote: > > >  I am having trouble with a contact form on my site. Whenever I hit > > the page, it doesn't see that the user is l

Re: Contact form doesn't see user as logged in

2011-01-03 Thread Kenneth Gonsalves
On Tue, 2011-01-04 at 08:38 +0100, Łukasz Rekucki wrote: > How do you check that user is logged in ? If it's via request.user, > then it doesn't work 'cause you > aren't passing the request object to your template's context. The > recomended way to do this is using RequestContext: > > from django.

Re: Contact form doesn't see user as logged in

2011-01-03 Thread Łukasz Rekucki
On 4 January 2011 02:27, Catalyst wrote: >  I am having trouble with a contact form on my site. Whenever I hit > the page, it doesn't see that the user is logged in. Here's how my > code looks. How do you check that user is logged in ? If it's via request.user, then it

Contact form doesn't see user as logged in

2011-01-03 Thread Catalyst
I am having trouble with a contact form on my site. Whenever I hit the page, it doesn't see that the user is logged in. Here's how my code looks. #forms.py from django import forms from django.utils.translation import ungettext, ugettext_lazy as _ class ContactForm(

Re: Error with passing 'form_class' arg with Django Contact Form

2010-05-07 Thread Karen Tracey
On Fri, May 7, 2010 at 4:33 AM, Daniel Roseman wrote: > Not sure if that would cause the error you're seeing - > looks like you've run into the Django bug that swallows your actual > exception > I think the problem you are referring to is where the end of the traceback is "raise wrapped" and ther

Re: Error with passing 'form_class' arg with Django Contact Form

2010-05-07 Thread Daniel Roseman
On May 7, 1:48 am, Ricko wrote: > Hi All, > > Bashing my head against a wall trying to understand this issue. > Playing around with Django-Contact-Form app, and trying to use my own > subclassed Form in the views. From the code in views, it looks like it > just takes an option

Error with passing 'form_class' arg with Django Contact Form

2010-05-06 Thread Ricko
Hi All, Bashing my head against a wall trying to understand this issue. Playing around with Django-Contact-Form app, and trying to use my own subclassed Form in the views. From the code in views, it looks like it just takes an optional arg, form_class, which can be your Form subclassed from

Re: Subject line in django-contact-form

2009-12-29 Thread shacker
On Dec 29, 6:42 pm, James Bennett wrote: > > If this really bothers you, it's trivial to set up your own > contact-form class which collects a subject line as well. Trivial depending on your level of experience :) For benefit of others, here's how I solved it: 1) In my ow

Re: Subject line in django-contact-form

2009-12-29 Thread James Bennett
On Tue, Dec 29, 2009 at 8:24 PM, shacker wrote: > Hmm, I find that odd.  It's standard practice to let the user enter > the subject for a contact form. I wouldn't want my inbox filled with > contacts from site users, all with the same subject line. In my experience, it's

Re: Subject line in django-contact-form

2009-12-29 Thread Rolando Espinoza La Fuente
dict. I'm trying to understand, sorry but I'm not native english speaker :) The code only defines 3 form fields: name, email, body http://bitbucket.org/ubernostrum/django-contact-form/src/tip/contact_form/forms.py#cl-140 The only references to "subject" that I see is the descrip

Re: Subject line in django-contact-form

2009-12-29 Thread shacker
On Dec 29, 6:03 pm, Rolando Espinoza La Fuente wrote: > > The "subject" is not intended to be filled with user input through the web > form. Hmm, I find that odd. It's standard practice to let the user enter the subject for a contact form. I wouldn't want my in

Re: Subject line in django-contact-form

2009-12-29 Thread Rolando Espinoza La Fuente
On Tue, Dec 29, 2009 at 9:40 PM, shacker wrote: > The docs and code for ubernostrum's django-contact-form imply that the > app includes a Subject field by default. But putting {{form}} in > contact_form.html only gives you name, email address, and message > fields. It's

Subject line in django-contact-form

2009-12-29 Thread shacker
The docs and code for ubernostrum's django-contact-form imply that the app includes a Subject field by default. But putting {{form}} in contact_form.html only gives you name, email address, and message fields. It's not clear to me those fields are showing up but the Subject field

Re: Contact form

2009-08-10 Thread When ideas fail
Ok thanks, i'll have a look at the setup then. On 10 Aug, 20:29, Daniel Roseman wrote: > On Aug 10, 8:23 pm, When ideas fail wrote: > > > > > Hi, i've created a contact fom based on the one in the docs but i > > don't know what to put as the action in the form element as part of > > template. I

Re: Contact form

2009-08-10 Thread Daniel Roseman
On Aug 10, 8:23 pm, When ideas fail wrote: > Hi, i've created a contact fom based on the one in the docs but i > don't know what to put as the action in the form element as part of > template. I've got this template: > > > {{ form.as_p }} > > > > but presuambly the data is being handled by the

Contact form

2009-08-10 Thread When ideas fail
Hi, i've created a contact fom based on the one in the docs but i don't know what to put as the action in the form element as part of template. I've got this template: {{ form.as_p }} but presuambly the data is being handled by the view. I'd appreciate any help, i tried it without an action a

Re: Reusable Contact Form include error?

2009-07-07 Thread 10000angrycats
Ran into a slight problem implementing that one Rajesh - getting the form to submit the form data wasn't quite right with the simple contect processor you described. I then hit on the obvious solution: implement the redirection using the form HTML. Changing that snippet to use /contact/thanks/ di

Re: Reusable Contact Form include error?

2009-07-03 Thread Rajesh D
On Jul 3, 8:57 am, 1angrycats wrote: > Great suggestion Rajesh. > > I've shifted everything into a custom context processor and > everythign's runnign well, with the view showing and emailing from any > page, however there's a final step I'm looking to resolve: returning > the HttpResponseR

Re: Reusable Contact Form include error?

2009-07-03 Thread 10000angrycats
Great suggestion Rajesh. I've shifted everything into a custom context processor and everythign's runnign well, with the view showing and emailing from any page, however there's a final step I'm looking to resolve: returning the HttpResponseRedirect within the context processor fails silently. T

Re: Reusable Contact Form include error?

2009-07-03 Thread 10000angrycats
Great suggestion Rajesh. I've shifted everything into a custom context processor and everythign's runnign well, with the view showing and emailing from any page, however there's a final step I'm looking to resolve: returning the HttpResponseRedirect within the context processor fails silently. T

Re: Reusable Contact Form include error?

2009-07-02 Thread Reiner
a few other Django > n00bs in the future too). > > I've dug around as best I can but can't find a - probably simple - > solution to an issue I'm having. I've created a simple contact form as > described here:http://www.djangobook.com/en/2.0/chapter07/but I've >

Re: Reusable Contact Form include error?

2009-07-02 Thread Rajesh D
ple - > solution to an issue I'm having. I've created a simple contact form as > described here:http://www.djangobook.com/en/2.0/chapter07/but I've > extended it slightly by using an include on the form to pull it in to > multiple templates. > > & it works great f

Reusable Contact Form include error?

2009-07-02 Thread 10000angrycats
Hi everyone, long time lurker, first time botherer. I hope someone here can help me out (& possibly a few other Django n00bs in the future too). I've dug around as best I can but can't find a - probably simple - solution to an issue I'm having. I've created a simple c

Re: Including user's email in message body with a contact form

2009-05-18 Thread Catalyst
That did it! Thanks Alan. On May 18, 6:48 am, zayatzz wrote: > have you tried replacing > cd['message'], > with > cd['message']+cd['email'], > or > cd['message']+' your mail address is '+cd['email'], > > Alan. > > On May 18, 1:19 pm, Catalyst wrote: > > >  I followed the instructions here to

Re: Including user's email in message body with a contact form

2009-05-18 Thread zayatzz
have you tried replacing cd['message'], with cd['message']+cd['email'], or cd['message']+' your mail address is '+cd['email'], Alan. On May 18, 1:19 pm, Catalyst wrote: >  I followed the instructions here to build a contact > form:http://www.djangobook.com/en/2.0/chapter07/ > >  This works g

Including user's email in message body with a contact form

2009-05-18 Thread Catalyst
I followed the instructions here to build a contact form: http://www.djangobook.com/en/2.0/chapter07/ This works great, except I want to add the user's email address into the message body of the email that's sent through. In other words... To: [Site Owner's Email] From

Re: Sending attachments with django-contact-form

2009-03-20 Thread Dana
Your the man john, that worked with basically no modification, thanks a ton! On Mar 16, 8:27 pm, John Hensley wrote: > On Mar 16, 2009, at 3:46 PM, Dana wrote: > > > > > I am wondering what the simplest way to send an attachment with   > > django- > > contact-

Re: Sending attachments with django-contact-form

2009-03-16 Thread John Hensley
On Mar 16, 2009, at 3:46 PM, Dana wrote: > I am wondering what the simplest way to send an attachment with > django- > contact-form (http://code.google.com/p/django-contact-form/) is. [...] > Im interested in just a simple example of sending a file along with > the other email

Sending attachments with django-contact-form

2009-03-16 Thread Dana
Hello, I am wondering what the simplest way to send an attachment with django- contact-form (http://code.google.com/p/django-contact-form/) is. I don't have much experience with sending emails with Python, so Im a bit lost. I tried overriding the save method but couldn't get it functi

Re: django-contact-form contexts?

2009-01-16 Thread JHeasly
Hello Ryan, Admittedly the docs at http://django-contact-form.googlecode.com/svn/trunk/docs/overview.txt just say you need to create the template files "contact_form/ contact_form_subject.txt" and "contact_form/contact_form.txt" and not much else, but in "contact_form_subject.txt" you need to pu

django-contact-form contexts?

2009-01-16 Thread chyea
What contexts are made available to the email templates (.txt files)? When I receive emails from the form provided by the default setup, I'm being given the following for both the subject, and the message of the email. > Thank you in advance Ryan --~--~-~--~~~---~--~

Re: [solved] Problems with mails and django-contact-form

2008-09-14 Thread Benjamin Buch
Forget about it. Everything works fine. I just didn't check the spam filter... -benjamin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goo

Re: Django-contact-form, Akismet and UnicodeEncodeError

2008-05-05 Thread Emil
Forgot to mention, I'm using python2.5. Help me, Obi-Wan GoogleGroup, you're my only hope. //emil On 5 Maj, 02:15, Emil <[EMAIL PROTECTED]> wrote: > Hi folks. > > I'm having this annoying problem that I don't have the skill to solve. > I'm using James

Django-contact-form, Akismet and UnicodeEncodeError

2008-05-04 Thread Emil
Hi folks. I'm having this annoying problem that I don't have the skill to solve. I'm using James Bennetts django-contact-form (r46 from svn) and I'm subclassing the AkismetContactForm class that's included. I have the latest revision of akismet.py too. My django version

embedding django-contact-form in a generic view

2008-03-26 Thread Evan H. Carmi
Hi, I have a archive index generic view that is working at /portfolio/. I also have a http://code.google.com/p/django-contact-form/ contact form at /contact/. I want to have the form currently located at /contact/ be on the same page as my generic view at /portfolio/. I am wondering what is

Re: Django Snippets-contact form

2007-12-05 Thread mike
Gul You hit the nail right on the head...thanks a bunch. On Dec 5, 10:52 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > I doubt the problem is with base.html itself, but there might still be > a mismatch of block names. > > contact.html is expecting the following blocks to be defined in base

Re: Django Snippets-contact form

2007-12-05 Thread Marty Alchin
I doubt the problem is with base.html itself, but there might still be a mismatch of block names. contact.html is expecting the following blocks to be defined in base.html: * fulltitle * header * extrahead * content-wrap While thankyou.html is expecting the following blocks instead: * billboar

Re: Django Snippets-contact form

2007-12-05 Thread mike
Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > > mike napisał(a): > > > > I have been trying to implement the contact form from the Django > > > Snippets page found here. > > > >http://www.djangosnippets.org/snippets/261/I'm able to make it all &

Re: Django Snippets-contact form

2007-12-05 Thread mike
On Dec 5, 10:36 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > mike napisał(a): > > > I have been trying to implement the contact form from the Django > > Snippets page found here. > > >http://www.djangosnippets.org/snippets/261/ I'm able to make it all &g

Re: Django Snippets-contact form

2007-12-05 Thread Jarek Zgoda
mike napisał(a): > I have been trying to implement the contact form from the Django > Snippets page found here. > > http://www.djangosnippets.org/snippets/261/ I'm able to make it all > work together, but the contacts.html page, is blank unless i remove > the{% exten

Re: Django Snippets-contact form

2007-12-05 Thread mike
\'Email\' appears not to be valid.','message','2','1','Field \'message\' is empty.');return document.MM_returnValue" /> {% endblock %}

Django Snippets-contact form

2007-12-05 Thread mike
I have been trying to implement the contact form from the Django Snippets page found here. http://www.djangosnippets.org/snippets/261/ I'm able to make it all work together, but the contacts.html page, is blank unless i remove the{% extends "base.html" %} part. After removi

Re: Contact Form not Rendering Properly

2007-09-12 Thread rskm1
> The html code isn't being rendered properly. I'm assuming this is a slightly-noobish question (I'm still a novice myself, so if the problem is something more subtle, nevermind me). Your template seems a little light on the use of the "|escape" filter. So if any of the values in your database

Contact Form not Rendering Properly

2007-09-11 Thread John
I'm trying to render the contact form in Django. When i enter http://127.0.0.1:8000/contacts/ I'm only getting a partial form (NAME AND PHONE INBOX BOX IS DISPLAYED) with a bunch of html code. The html code isn't being rendered properly.The submit button isn't being disp

Re: Contact Form App

2007-04-11 Thread Chris Moffitt
> > Is there a newform contact form snippet to use in a django website to > add the possibility to send email messages from a webpage to an email > address, without spam? Here's what we're using in Satchmo - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo

Contact Form App

2007-04-11 Thread Alessandro Ronchi
Is there a newform contact form snippet to use in a django website to add the possibility to send email messages from a webpage to an email address, without spam? Thanks in advance. -- Alessandro Ronchi Skype: aronchi - Wengo: aleronchi http://www.alessandroronchi.net - Il mio sito personale

Re: Help with Contact Form

2006-12-01 Thread Jorge Gajon
On 11/30/06, luxagraf <[EMAIL PROTECTED]> wrote: > > Hello all I have a quick question, I just whipped up a custom > manipulator for a contact form and, following the suggestion in the > django docs, I'm using a > > HttpResponseRedirect("/contact/thankyou/"

  1   2   >