SlideShare a Scribd company logo
Custom web application development with Django for
startups and Django-CRM intro
September 30, 2018
From
This session
â—Ź Introduction to Django
â—Ź Django advantages for custom webapp
development for startups.
â—Ź Easy steps to get started.
â—Ź Introduction to Django admin.
â—Ź ORM
â—Ź Simple application development in 15
mins.
â—Ź Best practices.
â—Ź Introduction to Django-CRM.
What is Django?
â—Ź A Python Framework: designed to support the development of
dynamic websites
Sites Built With Django
Why Django?
â—Ź Less development time
â—‹ ORM
â—‹ Built In Admin Interface
â—‹ Internationalization.
â—‹ Django takes care of user authentication, content administration,
sitemaps, RSS feeds, and many more tasks
â—‹ Testing Libraries.
â—Ź Secure:
â—‹ (CSRF) protection, SQL injection protection, Clickjacking protection and
etc.
â—Ź Support:
â—‹ Community of 10796 people, 161 countries, 3180 packages and
projects.
Architecture.
Browser(Request/Response)
URLS
Views
Templates
Models
Database
Easy Steps to get started
$ sudo apt-get install python-setuptools python-dev build-
essential tree
$ sudo apt-get install python-pip python-virtualenv
$ virtualenv <env-name>
$ source <env-name>/bin/activate
$ pip install django
Start New Project!
$ django-admin.py startproject <your-project-name>
$ cd <project-name>
$ python manage.py runserver
$ python manage.py startapp <app-name>
$ python manage.py migrate
Your First view
=> views.py
from django.http import HttpResponse
def greetings(request):
return HttpResponse("GooD Morning")
=> urls.py
from django.conf.urls import url
from .views import *
urlpatterns = [
url(r'^$', greetings, name='greetings'),
]
Models.py
orm_intro/models.py
from django.db import models
from datetime import datetime
class Post(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
createddate = models.DateTimeField(default=datetime.now())
$ python manage.py makemigrations blog
$ python manage.py migrate blog
ORM: Creating data
# Creating new rows with Orm
>>> python manage.py shell
>>> from blog.models import Post
>>> p = Post()
>>> p.title = "learn some math"
>>> p.description = "1+2 = 3"
>>> p.save()
or
>>> Post.objects.create(title="Learn some science", description="E = mc2")
<Post: Post object>
ORM: Reading data
# Reading data from database with ORM
>>> Post.objects.all()
>>> Post.objects.all().count()
>>> for p in Post.objects.all():
... print(p.id)
... print(p.title)
... print(p.description)
ORM: Editing Data
>>> p = Post.objects.get(title="learn some math")
>>> p.title = "Math is Interesting"
>>> p.description = "a2+2ab+b2"
>>> p.save()
>>> p = Post.objects.get(title="Learn some science")
>>> p.delete()
>>> Post.objects.count()
Best Practices
â—Ź Follow the Style Guide for Python Code (PEP 8) as closely as reasonable.
â—Ź Follow the Django coding style.
â—‹ Put imports in these groups: future, standard library, third-party libraries,
other Django components, local Django component.
â—‹ Remove unwanted database queries
Intro to Django-CRM
â—Ź Django CRM is opensourse CRM developed on django framework. It has all
the basic features of CRM to start with.
â—Ź Demo:
â—‹ URL: https://django-crm.micropyramid.com
â—‹ Email: admin@micropyramid.com
â—‹ Password: admin
â—Ź Github Repo: https://github.com/MicroPyramid/Django-CRM
Thank you

More Related Content

Similar to Custom web application development with Django for startups and Django-CRM intro (20)

PDF
GDG Addis - An Introduction to Django and App Engine
Yared Ayalew
 
PPTX
Django Framework Interview Question and Answer partOne.pptx
Md. Naimur Rahman
 
PDF
Django Documentation
Ying wei (Joe) Chou
 
PDF
Mini Curso de Django
Felipe Queiroz
 
PPTX
Basic Python Django
Kaleem Ullah Mangrio
 
PDF
Django Introduction & Tutorial
之宇 趙
 
PDF
Django for Professionals Production websites with Python Django 4 0 William S...
piipadinney
 
PDF
Django
Narcisse Siewe
 
PDF
Easy Step-by-Step Guide to Develop REST APIs with Django REST Framework
Inexture Solutions
 
PDF
Django
Nam Dang
 
PPTX
Web development with django - Basics Presentation
Shrinath Shenoy
 
PDF
Django Workflow and Architecture
Andolasoft Inc
 
PPTX
The Django Web Application Framework 2
fishwarter
 
PPTX
The Django Web Application Framework 2
fishwarter
 
PPTX
Python and Django Training in Bangalore by myTectra
myTectra Learning Solutions Private Ltd
 
PPTX
The Django Web Application Framework 2
fishwarter
 
PPTX
The Django Web Application Framework 2
fishwarter
 
PPTX
Django web framework
BrijeshGondaliya6
 
PDF
Introduction to Django
Joaquim Rocha
 
PDF
Django - basics
University of Technology
 
GDG Addis - An Introduction to Django and App Engine
Yared Ayalew
 
Django Framework Interview Question and Answer partOne.pptx
Md. Naimur Rahman
 
Django Documentation
Ying wei (Joe) Chou
 
Mini Curso de Django
Felipe Queiroz
 
Basic Python Django
Kaleem Ullah Mangrio
 
Django Introduction & Tutorial
之宇 趙
 
Django for Professionals Production websites with Python Django 4 0 William S...
piipadinney
 
Django
Narcisse Siewe
 
Easy Step-by-Step Guide to Develop REST APIs with Django REST Framework
Inexture Solutions
 
Django
Nam Dang
 
Web development with django - Basics Presentation
Shrinath Shenoy
 
Django Workflow and Architecture
Andolasoft Inc
 
The Django Web Application Framework 2
fishwarter
 
The Django Web Application Framework 2
fishwarter
 
Python and Django Training in Bangalore by myTectra
myTectra Learning Solutions Private Ltd
 
The Django Web Application Framework 2
fishwarter
 
The Django Web Application Framework 2
fishwarter
 
Django web framework
BrijeshGondaliya6
 
Introduction to Django
Joaquim Rocha
 
Django - basics
University of Technology
 

More from MicroPyramid . (7)

PPTX
Social login integration
MicroPyramid .
 
PPTX
Packaging and distributing python code to Pypi
MicroPyramid .
 
PPTX
Introduction to react_js
MicroPyramid .
 
PDF
Git & github
MicroPyramid .
 
PPTX
Django elastic beanstalk
MicroPyramid .
 
PPTX
Unit Testing with Python
MicroPyramid .
 
PPTX
Introduction to Vi
MicroPyramid .
 
Social login integration
MicroPyramid .
 
Packaging and distributing python code to Pypi
MicroPyramid .
 
Introduction to react_js
MicroPyramid .
 
Git & github
MicroPyramid .
 
Django elastic beanstalk
MicroPyramid .
 
Unit Testing with Python
MicroPyramid .
 
Introduction to Vi
MicroPyramid .
 
Ad

Recently uploaded (20)

PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Digital Circuits, important subject in CS
contactparinay1
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Ad

Custom web application development with Django for startups and Django-CRM intro

  • 1. Custom web application development with Django for startups and Django-CRM intro September 30, 2018 From
  • 2. This session â—Ź Introduction to Django â—Ź Django advantages for custom webapp development for startups. â—Ź Easy steps to get started. â—Ź Introduction to Django admin. â—Ź ORM â—Ź Simple application development in 15 mins. â—Ź Best practices. â—Ź Introduction to Django-CRM.
  • 3. What is Django? â—Ź A Python Framework: designed to support the development of dynamic websites
  • 5. Why Django? â—Ź Less development time â—‹ ORM â—‹ Built In Admin Interface â—‹ Internationalization. â—‹ Django takes care of user authentication, content administration, sitemaps, RSS feeds, and many more tasks â—‹ Testing Libraries. â—Ź Secure: â—‹ (CSRF) protection, SQL injection protection, Clickjacking protection and etc. â—Ź Support: â—‹ Community of 10796 people, 161 countries, 3180 packages and projects.
  • 7. Easy Steps to get started $ sudo apt-get install python-setuptools python-dev build- essential tree $ sudo apt-get install python-pip python-virtualenv $ virtualenv <env-name> $ source <env-name>/bin/activate $ pip install django
  • 8. Start New Project! $ django-admin.py startproject <your-project-name> $ cd <project-name> $ python manage.py runserver $ python manage.py startapp <app-name> $ python manage.py migrate
  • 9. Your First view => views.py from django.http import HttpResponse def greetings(request): return HttpResponse("GooD Morning") => urls.py from django.conf.urls import url from .views import * urlpatterns = [ url(r'^$', greetings, name='greetings'), ]
  • 10. Models.py orm_intro/models.py from django.db import models from datetime import datetime class Post(models.Model): title = models.CharField(max_length=200) description = models.TextField() createddate = models.DateTimeField(default=datetime.now()) $ python manage.py makemigrations blog $ python manage.py migrate blog
  • 11. ORM: Creating data # Creating new rows with Orm >>> python manage.py shell >>> from blog.models import Post >>> p = Post() >>> p.title = "learn some math" >>> p.description = "1+2 = 3" >>> p.save() or >>> Post.objects.create(title="Learn some science", description="E = mc2") <Post: Post object>
  • 12. ORM: Reading data # Reading data from database with ORM >>> Post.objects.all() >>> Post.objects.all().count() >>> for p in Post.objects.all(): ... print(p.id) ... print(p.title) ... print(p.description)
  • 13. ORM: Editing Data >>> p = Post.objects.get(title="learn some math") >>> p.title = "Math is Interesting" >>> p.description = "a2+2ab+b2" >>> p.save() >>> p = Post.objects.get(title="Learn some science") >>> p.delete() >>> Post.objects.count()
  • 14. Best Practices â—Ź Follow the Style Guide for Python Code (PEP 8) as closely as reasonable. â—Ź Follow the Django coding style. â—‹ Put imports in these groups: future, standard library, third-party libraries, other Django components, local Django component. â—‹ Remove unwanted database queries
  • 15. Intro to Django-CRM â—Ź Django CRM is opensourse CRM developed on django framework. It has all the basic features of CRM to start with. â—Ź Demo: â—‹ URL: https://django-crm.micropyramid.com â—‹ Email: [email protected] â—‹ Password: admin â—Ź Github Repo: https://github.com/MicroPyramid/Django-CRM