DEV Community

221910303041
221910303041

Posted on

Django

DJANGO

Django is a Python-based web framework that allows you to quickly create efficient web applications. It is also called batteries included framework because Django provides built-in features for everything including Django Admin Interface, default database – SQLlite3, etc. When you’re building a website, you always need a similar set of components: a way to handle user authentication (signing up, signing in, signing out), a management panel for your website, forms, a way to upload files, etc. Django gives you ready-made components to use and that too for rapid development.

Why Django Framework ?

  • Excellent documentation and high scalability.

  • Used by Top MNCs and Companies, such as Instagram, Disqus, Spotify, Youtube, Bitbucket, Dropbox, etc. and the list is never-ending.

  • Easiest Framework to learn, rapid development and Batteries fully included.

  • The last but not least reason to learn Django is Python, Python has huge library and features such as Web Scrapping, Machine Learning, Image Processing, Scientific Computing, etc.
  • One can integrate it all this with web application and do lots and lots of advance stuff.
  • Educative Logo

    Difference between Django and Flask

    Flask Django
    Python web framework built for rapid development. Python web framework built for easy and simple projects.
    Flask is WSGI framework. Django is a Full Stack Web Framework.
    Flask provides support for API. Django doesn't have any support for API.
    Support Visual Debug. No support for Visual Debug.

    Educative Logo

    Basics in Django

    To start the Admin Interface, we need to make sure we have configured a URL for our admin interface. Open the myproject/url.py and you should have something like −

    from django.conf.urls import patterns, include, url
    
    from django.contrib import admin
    admin.autodiscover()
    
    urlpatterns = patterns('',
       # Examples:
       # url(r'^$', 'myproject.views.home', name = 'home'),
       # url(r'^blog/', include('blog.urls')),
    
       url(r'^admin/', include(admin.site.urls)),
    )
    
    Enter fullscreen mode Exit fullscreen mode

    This is how we will setup the virtual environment

    Online sites for Django Tutorials

    Tutorialspoint


    Udemy


    Free Code Camp

    These are some of the online learning platforms to learn Django

    Top comments (0)