Giter VIP home page Giter VIP logo

Comments (6)

alvra avatar alvra commented on July 2, 2024

The default template "spotnet/viewpost.html" should contain the image if it's available. Is it missing for all posts or posts that have an image using other spotnet clients?

from django-spotnet.

hagst avatar hagst commented on July 2, 2024

There are two ways of adding an image when adding a spot.

1- Input a link to the image. This is currently working in Django-spotnet.
Spot with image (http link):
message-ID: [email protected]
Date: 16 Nov 2012 16:01:37 GMT
Image: <Image>http://www.xx/xx/xx.jpg</Image>
Used by older spotclients and newer clients who didn't changed this specific option.

2- uploading the image to usenet. This is currently not working in Django-spotnet.
Spot without image (segment):
message-ID: [email protected]
Date: 29 Nov 2012 23:47:18 GMT
Image: <Image Width='600' Height='425'><Segment>[email protected]</Segment></Image>
Used by newer spotclients.

from django-spotnet.

alvra avatar alvra commented on July 2, 2024

I wasn't aware of that second method, it should definitely be included!

from django-spotnet.

alvra avatar alvra commented on July 2, 2024

This second method is now supported with the latest commit (bitbucket 89f8802ebb55cc0e1cab0931ffb5fc5701e08e56). It does require renaming the spotnet_post.image column to image_url and adding a image_segments column (see manage.py sqlall spotnet), and re-updating your database to get the correct image for already stored posts.

from django-spotnet.

alvra avatar alvra commented on July 2, 2024

Btw, you can now overwrite existing posts when updating using the --overwrite / -w flag.

from django-spotnet.

hagst avatar hagst commented on July 2, 2024

Thanks for adding and the information about changing the database.
Thought that manage.py syncdb would update the settings of the database.
I have used manage.py sqlall spotnet to list the database layout and manual changed the mysql database.

Spots with image retrieved from usenet are working.
The -w switch works.

from django-spotnet.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.