Browsed by
Tag: django

>Django – Named URLS Gotcha

>Django – Named URLS Gotcha

>A post in two parts. First of all – thanks to Magus on #django for pointing out one of my errors to me. I’ve been working through Practical Django Projects over the last couple of days and it talks about having named urls. Take a look at these three one liners: # from urls.links.py (r’^$’, ‘archive_index’,link_info_dict, ‘coltrane_link_archive_index’), # from urls.py (r’^weblog/links/’, include(‘coltrane.urls.links’)),# In my template I get the url using {% url coltrane_link_archive_index %} We give our view a name…

Read More Read More

>NewForms Admin – Flatpages

>NewForms Admin – Flatpages

>Practical Django Projects (Chapter three), talks about defining an admin interface which is all well and good unless you’re using the NewForms Admin branch (which is intended to become part of Release 1.0). So if you’re an early adopter or reading this after the big change, you’ll be needing to do the following. The reason I bothered writing this was I couldn’t work out how to override the fact that FlatPage had already registered a ModelAdmin (try to register yours…

Read More Read More

>Django OR statements / conditions

>Django OR statements / conditions

> I’m having major problems focusing on one thing at a time at the moment. I thought that being in Japan would help me but it appears not. I’ve made some changes to how I work recently and I’m going to have a go at documenting what I’m doing with code and sysadmin stuff here. Partly as a brain dump for when I can’t remember how I did stuff and partly to see if it makes it stick in my…

Read More Read More

Repaying your Federal Student Loans

Repaying your Federal Student Loans

You don’t have to begin repaying your federal student loans until after you leave college or drop below half-time enrollment in your final year of undergraduate study. Paying them off sooner allows you to save money, meet your loans’ repayment goals and avoid default. But not paying them off yet can be difficult because it can mean you miss the payments your monthly federal loan payment is calculated to cover. What if I don’t finish my federal loan obligations by…

Read More Read More