blog posts

databases (1) django (1) drupal (2) java (4) processing (7) wamp (1) yahoo pipes (1)

Monday, 10 January 2011

Configure sqlite3 django for Windows 7 part 2

now if you type in

http://127.0.0.1:8000/admin/

you will be takin for an admin screen
now when you create your database you where asked to login with super user you could choose yes or no
if you chose yes you would have been asked for a username a password and an email address
Enter your username and password


you probably noticed hang a second where are the polls that we create earlier well we need to modify the admin settings so we can manage are polls.

for this in the polls folder we need to create a file called admin.py

from polls.models import Poll
from django.contrib import admin

admin.site.register(Poll)
now retart the server with the following commands:
python manage.py runserver
your screen shoudl look like this 
Now lets look at some polls 


Now this is fine for one question but what happens if we have many questions it would be nice to collapse then and then move onto the next question 



No comments:

Post a Comment

Popular Posts