Pics, part 2

So I was able to get the Summernote text editor working in the Django admin section, so I can use basic HTML formatting and pictures in my posts. The problem is that Django still isn't rendering the HTML tags properly. Django automatically "escapes" the tags, so in the published post they show up as plain text, instead of producing the paragraph and image tags. I have to research this one, so I may not come up with a solution any time soon. I'm still trying to figure out how to incorporate Summernote into the publicly-facing post form. Like I mentioned the other day, the issue is that this blog was built without a forms.py file in the blog app, whereas the tutorials I've seen so far all make use of a forms.py file. So I'm left trying to figure out how to make this work without a forms.py file. I'm going to continue working on this. I'm not sure what I'll add after I get Summernote working. I've been thinking about adding something that would enable me to resize the images I use, and I saw a blog post online that covered that, so maybe I can find a way to make it work. After that, I think I'll put in some work on my other websites. The main one has an issue with adding links to the main page, and the LS Enterprises site is just a very basic placeholder. There's still the question of getting Django's email functionality working too, I think I can figure it out and get it to work with my mail server, but that's on the back burner for now. I'm glad I'm making progress, even though it's slow. Today is a Saturday and I'm at work with nothing to do, so I will hopefully make some progress today on something useful. Update: I posted a question on StackOverflow about this. Internet, do your thing!

Pics

Incorporating pictures into this blog is hard. I've been going over the code for about 4 hours now, and I was able to get the WYSIWYG working in the admin area, but not on the make-a-blog-post page. I'm still working on it, but I think this is going to take a day or 3 to figure out. The problem is that this blog was initially built without a forms.py file in the blog app, where the tutorials I've looked at all use a forms.py file. So I'm left trying to figure out how to make this work using the other .py files I have. I created a new forms.py in the blog app and added some code to it, and I **think** it's working, but since this is outside of my area of expertise it's slow going. Luckily it's been relatively quiet here at work, or otherwise I wouldn't be able to do this stuff. The WYSIWYG looks pretty slick, it's got image uploads built-in so if I can get it working that'll save me the trouble of manually writing code to support the pictures. It's also got text formatting so you can use HTML tags in your writing. Back to the grindstone...

From .site to .blog...

So I made a change that upset the apple cart, so to say. Initially I had registered this site with the domain name 'lennys.site', set it up, and all was well. But after giving it some thought, I decided that 'lennys.blog' was a more accurate domain name, so I registered that one and changed the site to it, with some difficulty involved of course. I had to create a new Django project, setup a couple of apps in that project, and copy over all the code from the .site to the .blog. Then I had to update the Apache .conf file, and remove entirely the Apache SSL .conf file to get it working initially. then I was able to get CertBot to install a new SSL certificate, this time for lennys.blog, and away we went! I don't know what changes I'm going to make to this blog going forward. I'm reading about how to upload images, so I can add some pictures to the blog posts, but that reading is slow going. A couple of days ago I worked through a short tutorial on uploading images, and I was able to get that working, so now I just need to figure out how to incorporate it into the blog. I have plenty of ideas, but the expertise isn't there yet. I'm working on it.

First Previous 19 20 21 22 23 Next Last

My Other Sites

Built with Python and Django

Sites I Like

A Random Collection

Tools I've Used

Mainly Software Stuff