5. How the default page is coming with respect to flow diagram in django

actually the flow of django will be like these.........................ie., 




so in the broswer


I'm typing 
http://127.0.0.1:8000/


and in the url.py
what is there let check
url.py
====

from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'btms.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
)


so here no url is given that is why u r getting default django page










 in the url there is admin
 url(r'^admin/', include(admin.site.urls)),

because of this when we type admin u will get login like this



coming to view.py ,model.py,database is not there after seeing the tree structure of project that is

 btms$ tree
.
|-- btms
|   |-- __init__.py
|   |-- __init__.pyc
|   |-- settings.py
|   |-- settings.pyc
|   |-- urls.py
|   |-- urls.pyc
|   |-- wsgi.py
|   `-- wsgi.pyc
`-- manage.py

1 directory, 9 files


so the flow will go like these



ie.,



=>browser=>url.py=>django(default page)



No comments:

Post a Comment