Friday, July 25, 2008

Milestone, and moving on

User sign up is done thanks to some good django documentation, and no thanks to some bad django documentation.

Since user registration is almost-universal to web applications, there are plenty of resources on how to do it. Most of the programming is copy-paste-edit from my Avatar creation forms and views.

The only problem was creating a user profile model. This model saves extra data about a user that isn't in Django's included User model. I haven't thought of anything to add, but I'm sure I will, so I worked on it anyway. The problem came when connecting the models together with a foreign key. The main docs don't indicate that this foreign needs to be called 'user' to work correctly (I named mine 'djangoUser'). The Django book correctly notes this. I created a ticket about this, so we'll see what happens.

And with that, at 5:33PM, on Friday, July 25, I officially close main development on the back-end models for my initial release (hereon codenamed 'Stone Age') and move up a level to start writing views.

No comments: