473,287 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Questions in Contact us function( Django)

hi

currently, i am using Django to create webpage, in view.py the code is in the following:

Expand|Select|Wrap|Line Numbers
  1.  
  2. def contact(request):
  3.     if request.method == 'POST':
  4.         form = ContactForm(request.POST)
  5.         if form.is_valid():
  6.             # Do form processing here...
  7.             return HttpResponseRedirect('/on_success/')
  8.     else:
  9.         form = ContactForm()
  10.     return render_to_response('contactus.html', {'form': form})
  11.  
  12. def success(request):
  13.     return render_to_response("on_success.html")
  14.  
in my form.py , it is like this:
Expand|Select|Wrap|Line Numbers
  1. class ContactForm(forms.Form):
  2.     subject = forms.CharField(max_length=100)
  3.     message = forms.CharField()
  4.     sender = forms.EmailField()
  5.     cc_myself = forms.BooleanField(required=False)
  6.  
but i don not understand where is the Email is sent to as there is only sender's Email address, where to configure the receiver email address and how to configure the Mail server? i am very new to Django framework, just pick it up and learning in the process, can anyone help me to understand and smooth of application, thanks in advance :)
Nov 4 '07 #1
2 1368
bartonc
6,596 Expert 4TB
I'm guessing that Python does not need to be aware of the sending address.
That's most likely handled by PHP or HTML.
Nov 4 '07 #2
I'm guessing that Python does not need to be aware of the sending address.
That's most likely handled by PHP or HTML.
hi

but the filed is sender so this means it is sender's email address, right? then i am wondering where is receiver's address? so where this email is sending to??
Nov 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: flamesrock | last post by:
Firstly, this topic is NOT intended for trolling or starting any flame wars. I want to know if anyone has experience with these frameworks, and if so, how do they compare? Which one do you...
0
by: eric.moritz | last post by:
One of the most respected and award-winning newspaper Web teams in the world has moved to Florida and is looking for an experienced server-side Web developer. NDN Productions -- the online and...
0
by: Jeff Rush | last post by:
Coming to PyCon 2006 in Dallas in a few weeks? Want to make a name for yourself before you arrive? Think Django is cool and want everyone else to know it? Whip up a Django app to slide into...
13
by: Ilias Lazaridis | last post by:
I have implemented a simple schema evolution support for django, due to a need for a personal project. Additionally, I've provided an Audit: http://case.lazaridis.com/wiki/DjangoAudit As a...
0
by: kang jia | last post by:
hi i am currently learning Django framework and i have to do a login page at the moment. i have used the code like following: from django.contrib.auth import authenticate, login def...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: kang jia | last post by:
hi i have small problems occurred in my login function, which i use Django to build, in my template which is login.html, the code is like the following: <html> <head>...
3
by: Simone Brunozzi | last post by:
Greetings! I'm looking for conferences or events about Python, Django, Dabatases, Mysql, PHP, Ruby in Europe (or nearby locations like north africa and middle east) in 2008. Do you have any...
4
by: K | last post by:
Hello everyone, I understand that urllib and urllib2 serve as really simple page request libraries. I was wondering if there is a library out there that can get the HTTP requests for a given...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.