DATABASE is simple directory having keys as default and sub-keys as ENGINE and NAME, here we are using inbuilt sqlite3 database, we can choose any database we want. INSTALLED_APPS is also set which contains all the apps we use or going to use in our Django Project.
urls.py is another file that is cool in grrat way to thing about it, it just contains some sort of regular expressions to match URL strings. For example I want to execute a funtion using for specifies URL, My simplest
code will be

url(r'/home/myapp','myapp.views.home',name='home') # see nothing is cool like this

I just have to write function and return it’s output on specified URL, from the above code we can understand that myapp.view.home is function name home written in myapp directroy which contain views.py file. (SEE MVC approach here)

Now how we call html templates in Djano Alongside our Application results
should be rendered with resulted page:


def fun_name(request):
return render_to_response("template_name.html",{'variable':'vallue_got_html'})

so now we can call our resulted value in html view, yay! 😀


Models:

Now important thing is we have to make application real time, you know models and things which really work in amazing way. Rather than creating database and running queries we only have to look after the Python code classes.
A simple model in Django Looks like this:


from djano.db import models
Class Line(models.Model):
text =  models.CharField(max_length = 255)# that's it nuke

Now to create a new row in Database we just have to create new instance
of the class, that’s it 🙂

now most of the times or always your model should be in models.py file

from models import Line

line = Line(text=”this is first row of Line table :D”) # see no worrk of primary key and stuff
line.save() # save is inbuilt method to save all the values in Database
line.objects.all() # will return all the rows present in Line Database
line.objects.all() can be called whereever we need it.

To call it in view just use {{line.text}}

Admin view: basically takes care of everything you need to know about
everything in real manner, for example you want to do updation and
deletion of your model in your Database you just need to register “Line”
Database into your admin.py

admin.site.register(Line), then you can see that in admin section as well.

When we talk about forms we should not leave Model-forms behind as well.

Model-forms are just forms those create created automatically from the Database
fields. 🙂 # see the automation 🙂 😀

There are many other things those are important as well as not forgettable which are widely used/required for most of the projects. like managers and complicates queries, caching,logging,pagination,middleware,signals,messages,sessions,google-sitemaps and rss,testing,managemant commands,geodjango-this one talks about Django and GIS database integration with SQL lite.

And the is also a list of my favorite applications in Django that one should taste out as well.
1. Django-debug toolbar
2. Djano-extras # some management commands and shell_plus to autoreload all models as well
3. crispy-forms or floppy-forms # html5 forms and client side validation
4. haystack # to deply search engine for your data
5. tasty-pie # to create restful API for your website
6. celery # mostly to do asyncio kind of work
7. easy-thumbnails # let’s you resize images automatically
8. Django-version # let’s you create different verison of your Django Data(model’s data)
9. Django-registration # to register users
10. Djano menues # to create menues as well.