Django Tutorial

Sending Email’s In Django -Free Django Tutorials

Django is one of the framework that comes with a ready and easy-to-use light engine for sending and receiving email’s.Although in python,to send or receive email you just need to import smtplib ,in django for email functionality user just have to import django.core.mail. Quick Example: from django.core.mail import send_mail send_mail( ‘Subject here’, ‘Here is the …

Sending Email’s In Django -Free Django Tutorials Read More »

URL configurations in the django view layer

In today’s high-quality web application a clean,elegant URL scheme is very important.With django we can design URLs as we want,with no framework limitations. We have to create a module called a URLconf (URL configuration) to design URLs for an app.This module URLconf  will contain pure python code and is a mapping between URL path expressions to views.This mapping …

URL configurations in the django view layer Read More »

More On Forms In Django and API In Forms

I hope you have read our earlier post on creating basic forms in django.In this post we will go in detail. More On Fields In Forms  Consider a below ContactForm class which we can be used to implement “contact me” functionality on a any personal website. from django import forms class ContactForm(forms.Form): subject = forms.CharField(max_length=100) …

More On Forms In Django and API In Forms Read More »

API in forms-Free Django Tutorials

I hope you have checked our last post on forms in which we have covered on form.is_valid() to validate data. So continuing that in which we have entered some wrong data as following: data = {‘subject’: ”, ‘message’: ‘Hi there’, ‘sender’: ‘invalid email address’, ‘cc_myself’: True} f = ContactForm(data) f.is_valid() False So is_valid() is giving …

API in forms-Free Django Tutorials Read More »