# Trying to do a disqus import, says category not found

**URL:** https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117
**Category:** Support
**Created:** [11월 15, 2017, 5:14오후 UTC](https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117 "2017-11-15T17:14:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 15, 2017, 5:14오후 UTC](https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117/1 "2017-11-15T17:14:04Z")

</div>

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:

> <https://github.com/discourse/discourse/blob/5012d46cbd3bcf79b7351f7d2d41003496a796c5/script/import_scripts/disqus.rb>

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [11월 15, 2017, 5:53오후 UTC](https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117/2 "2017-11-15T17:53:41Z")

</div>

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"`.

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 15, 2017, 6:07오후 UTC](https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117/3 "2017-11-15T18:07:19Z")

</div>

Thank you.

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [11월 15, 2017, 6:09오후 UTC](https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117/4 "2017-11-15T18:09:47Z")

</div>

Yes, a category in Discourse.

> <https://github.com/discourse/discourse/blob/5012d46cbd3bcf79b7351f7d2d41003496a796c5/script/import_scripts/disqus.rb#L14>

---

<div class="post-metadata">

### Author: ![Quintin\_Par](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/quintin_par/32/120500_2.png) [@Quintin\_Par](https://meta.discourse.org/u/Quintin_Par)
#### Post date: [11월 15, 2017, 6:54오후 UTC](https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117/5 "2017-11-15T18:54:27Z")

</div>

Thank you.

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

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:44오후 UTC](https://meta.discourse.org/t/trying-to-do-a-disqus-import-says-category-not-found/74117/6 "2024-06-08T12:44:05Z")

</div>

이 주제는 2396일 후 자동으로 닫혔습니다. 더 이상 새 답글을 작성할 수 없습니다.
