27 October, 2015

Django app completed . By creating Poll app , I just get idea about django framework. I faced little problems. When you want to acccess admin of your app, must write /admin (127.0.0.1:8090/admin) in browser. After the admin, now template work I did. But I was little confused about where to create templates?, What settings need to  do in settings.py file.?  After that I just create / template directory under /polls/template/polls and  create index.html, detail.html and results.html files under it. Sometimes I found errors, But just focus on  Exception value: unindent does not match any outer indentation level (view.py , line 23), to remove error ( error when you run your app on browser). I check my app at each step . If you did not configure your app, Then when you run app on browser then it will show you error : Page Not Found(404). To solve this temporary type  /appfoldername on browser (127.0.0.1:8090/polls). But you must have to configure it to run it on browser directly.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s