Posts by lennys (68)

Update for the last week or so...

It's been several days since my last post. I've kept myself busy with my Django for Professionals book, which I'm about 2/3 of the way through. One criticism of the book I have so far is that the author doesn't use environment variables from the beginning, to keep sensitive information like passwords safe. I've been pushing my code to GitHub periodically, and I accidentally uploaded a few files that had the Django secret key and the database password in them. So I had to go back and change those after the fact, because of the lack of security in the earlier lessons in the book. Live and learn, I guess. He also doesn't use a .gitignore file. If he had used one, I wouldn't have made that mistake. Overall I'm happy with the book, I just wish the author would've used better security in his code. My truck is on the fritz. This is the other thing that's been keeping me busy these last 6 days, dealing with that. I took it to a Midas shop near my apartment because the check-engine light came on last weekend. I thought it just needed a tune-up, but after I got it in the shop they discovered that there were bigger problems. 3 of the 6 cylinders were misfiring because of a leak in the exhaust gas recirculation system, plus the spark plugs and plug wires needed to be replaced, plus a tune-up, plus some other stuff I can't recall at the moment. So far I've spent about $2500.00 on repairs, and that fixed the misfiring on the left side of the engine, but the number 6 cylinder on the right side is still misfiring even after installing a new fuel injector. So now it looks like we're going to have to replace the engine entirely. I'll find out on Monday what that will cost. The truck is 20 years old and has almost a quarter of a million miles on it, so I'm not surprised that it needed a lot of work done, I just wish I was in a better position to fix some of it myself. I don't have a garage so I can't really do any work on it by myself, even if I did know exactly what to do. So I'm stuck between a rock and a hard place, between paying thousands to get this truck fixed, or pay more thousands to buy another, newer truck. I checked online and saw a few trucks I liked, but they were either way too expensive or way too old. If I were to buy a truck, I'd want something that's less than 10 years old, and trucks in that age range still cost anywhere from $15000 to $30000. Meanwhile my poor Dakota isn't worth $2000 at this point. Getting it fixed will be cheaper than getting a replacement, so I'm stuck with that I guess. It's a good thing I've saved my pennies these last few years, because I'm going to need them now.

Sitemap trouble

So yesterday and again today I tried and failed at getting Django's dynamic sitemap generator to work in this blog. I followed a tutorial I found on learndjango.com and was able to get the tutorial's sitemap to work, but implementing it into my blog wasn't so simple. The tutorial was written by the same guy who wrote my Django for Beginners book, and it was easy enough for me to understand, but I seem to have trouble whenever I try implementing things on my own. Yesterday morning I managed to get the robots.txt working in this blog and in my main site after working through another tutorial on learndjango.com. Today I wasn't so lucky. I have a bad habit of picking things to do that are outside of my comfort zone and/or area of expertise, and then beating my head against a brick wall when they don't work right. I started working with Django a few years ago because of another Python book I bought, which had a very basic tutorial in the last chapter, so it seemed logical to continue with that kind of thing. But now, I can't help but wonder if I'm just wasting time with this shit. I'm going to forget about the sitemaps for now, and focus on my next book, Django for Professionals. Maybe there will be something in this book that will help me understand things. I really wish I had someone with similar expertise who I could consult with, but for now the best option I have is to post a question on StackOverflow.com, and hope that there's someone out there who can get me pointed in the right direction.

Django for Beginners and Heroku

I finished up the Django for Beginners book yesterday. The book was pretty well put-together. It had six projects to work through, and I found it to be a pretty useful guide for the simpler parts of Django. I'm going to start working through the next book, Django for Professionals now. I expect I'll be using Heroku again for this book's projects, but I'd like to find a way to host these things on my own server. I may give that a try in the near future. Some of these projects are live now on Heroku. I signed up for Heroku's $5 monthly package since they did away with their free tier last year. It's not too hard getting a project up and running on Heroku, but you do need to have at least a basic understanding of Git and the command-line. I would have preferred hosting these projects on my own server, but unfortunately the book didn't cover that. I'm not posting any links to these Heroku projects yet, mainly because I'm a little concerned about security. The apps are pretty basic and some of them skipped over the security aspects, for simplicity's sake, so I'm going to think about what to do with them to make them more secure.

First Previous 16 17 18 19 20 Next Last

My Other Sites

Built with Python and Django

Sites I Like

A Random Collection

Tools I've Used

Mainly Software Stuff