I’ve spent some time with tutorials, now it’s time to move onto generating some of my own code.
I want to build a flashcard application with loads of amazing features, but since I’m pretty new to python and django I’d better start with the basics.
Building on the previous tutorial I want:
- a test page which will display a sentence.
- a series of buttons which rate how well I know each piece of text.
- an algorithm which shows me the best known phrases last.
This doesn’t fit exactly what I want the final product to be but I think it’s better to be writing working code than just reading about doing something more complicated. Practise makes perfect
It’s easy to get an empty shell of a website up and running with django
Now let’s try and add some meat to those digital bones.
…
I’ve added some super simple models and edited urls.py so now I can browse to the index of the site and see a message telling me I’m at the index of the site
Programming is so easy.
As long as you don’t want your programs to actually do anything.
I’m going to bed and marking this as beryllium
Will continue tomorrow with a views for a user and counting scores via POST.
And some new content for that affiliate site I started a few days back.


{ 2 comments… read them below or add one }
This is the most frustrating thing about trying something new.
Something goes wrong and doesn’t work but doesn’t cause an error either.
I’ve got the site listing all the sentences, I can click on each listing to see them individually, it displays a form which allows you to rate them on their difficulty
But when I click to submit the form, nothing happens and I can’t see where I’m going wrong.
The html looks fine to me and even if there were errors in the backend, once the html on the page was right it should at least try to submit.
I’ll keep tinkering and see if I can break it in a useful way.
Yay!
I had an input field in the form which was type “button” when it should have been “submit”
Now I have different errors to deal with