Syntax highlighting ..
is here!
n = 10
if n > 0:
print ("Hello World!")
EDIT: All fixed, as you can see, now just need to come up with a more color compatible style ..
Syntax highlighting ..Wasting your bandwidth
is here!
n = 10
if n > 0:
print ("Hello World!")
EDIT: All fixed, as you can see, now just need to come up with a more color compatible style ..
Syntax highlighting ..Made the site a little prettier, go me. Haven't updated the site in a while. Thinking of adding some integration with social media websites, might be interesting.
Small template updateMade live some much needed changes to RSS; templates and category specific feeds will come next.
RSSAs you can see, I have a weak little archive implementation up as of now. I was unfortunately led on a bit of a goose chase.
You see, my original inclination was to simply implement the archive programmatically (for lack of a better term) in the view for my root page. After a few lines of code I figured, Django has got to have a neat little automagic way to do this; just like with comments. After consulting a few different sources it seemed that generic views were the recommended solution. After creating generics for the year/month/day archives ...
ArchiveI've tweaked the templates a bit as I've explored the documentation. Namely, I'm now using markdown for formatting and I'm truncating all posts over 100 words. Sure, currently I only have two posts that long, but perhaps in the future I'll have the time and inclination to be more verbose. There's a few other bells and whistles hardly worth mentioning.
With summer in full swing I should be able to pick up the pace a bit.
A few tweaksI played around a little bit with Django's built in comments module today. In true Django fashion, it proved quite quick and easy. There is still a little more work that needs to be done, custom templates mainly, before I bring it live.
EDIT: Went ahead and posted the comment additions since I got moderation working satisfactorily enough. There are enough generic templates in place that the process works. Preview as well as the comment confirmation aren't exactly pretty though.
CommentsI believe I have the last few kinks worked out. Although I've already had experience with mod_wsgi, I always like to have documentation to refer back to. Considering the overall quality of Django documentation as a whole I've had little to complain about, but I find the relatively poor state of wsgi/django documentation a little odd.
The documentation at http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi as an example is unnecessarily complex, seems to contain a lot of redundant and inexplicable configuration, and doesn't even touch on certain optimizations that seem necessary even on a low traffic ...
mod_wsgi: follow-upWent ahead and went through the trouble of running tanis.us on the apache/wsgi application stack. If you happened to stop by during the switch, sorry for the downtime.
mod_wsgiAdded the about page, doesn't look particularly good or have anything interesting on it.. but it's there.
tanis.us update: AboutAlright RSS feeds have been added, basically. Need to find an appropriate place to put the link, http://tanis.us/blog/feeds/rss/, as well as strip the HTML from the post body. Irritatingly, Safari doesn't seem to properly show the feed, but I believe this to be a known problem between Safari and Django. Firefox and everything else I've checked seems to work perfectly fine.
tanis.us update: RSSAfter a short hiatus I finally had some more time to put in on the web site. Navigation by category has been added, so now you can view posts limited by category such as you would find on most other common blogs. RSS feeds and archiving should probably be next.
tanis.us update: categoriesThe site now recognizes html formatting, most likely I'll end up using Beautiful Soup, or something similar to do some html sanity checks.
tanis.us updateSo I finally sat down and decided to write my own web app. I've been needing to broaden my horizons in the web arena for a while, so rather then keep up the old wordpress page that I never updated I figured I'd put this up as a work in progress.
I've written it using Django and Python, and as of this date it's currently running on top of Django's built-in test server. I plan on switching over to Apache/WSGI as soon as the code seems stable, but right now the test server is ...
tanis.us