Trying to do a disqus import, says category not found


(Quintin Par) #1

Trying to do the disqus import

discourse@s-app:/var/www/discourse$ RAILS_ENV=production ruby script/import_scripts/disqus.rb --file=/tmp/disqus.xml --dry_run --post-as=system
Category Front page not found

I understand this comes from the section

class ImportScripts::Disqus < ImportScripts::Base
  #CHANGE THESE BEFORE RUNNING THE IMPORTER
  IMPORT_FILE = File.expand_path("/tmp/disqus.xml")
  IMPORT_CATEGORY = "Front page"

Question:

Which category is this referring to and how do I set it?

Importer for reference:


(Régis Hanol) #2

Looks like the disqus importer requires a category name. If you don’t want to import into a specific category just yet, you could change "Front page" by "Uncategorized".


(Quintin Par) #3

Thank you.

Out of curiosity, this refers to a category within discourse, right? And not a category that disqus comments were in.


(Régis Hanol) #4

Yes, a category in Discourse.


(Quintin Par) #5

Thank you.

Meta: So beautiful that I can see a highlighted line!