question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Settings from command line not working?

See original GitHub issue

Hi,

I am trying to use the -s flag according to this: https://doc.scrapy.org/en/latest/topics/settings.html#command-line-options

But when I try it like this, the setting does not take effect: scrapy crawl spider.quotes.toscrape.com -s ELASTICSEARCH_ENABLED=False

It works if I manually edit settings.py and set ELASTICSEARCH_ENABLED to False.

Why is this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
grammy-jiangcommented, Apr 24, 2018

Hi, @thernstig

Emmm, please do not use dot in the spider’s name.

Replace the dot with an underscore and try again.

0reactions
thernstigcommented, Oct 2, 2018

That might be the problem then, thanks again 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10: The Settings App Does Not Open or Flashes ...
Open a Command Prompt or Powershell with administrator rights, type start ms-settings: and press Enter. Click the Action Center icon on the ...
Read more >
[Fixed] Command Prompt (CMD) Not Working/Opening ...
Fix 1. Restart Your Windows 10 PC; Fix 2. Temporarily Disable Antivirus Software; Fix 3. Modify PATH Environment Variables Settings; Fix 4.
Read more >
Settings Not Working in Windows 10/11: How to Fix?
1. Type CMD in the Search bar > right-click on Command Prompt in the search results and select Run as Administrator option.
Read more >
How to open the Settings app from the Command Prompt ...
Learn how to open the Windows Settings app from the Run dialog, Terminal app, Command Prompt (cmd), and PowerShell. For Windows 10 and...
Read more >
Fixed: Command Prompt Not Working in Windows 11/10
Command Prompt is not working in Windows 11/10 · Quick Fix: Use CMD alternative software · Method 1. Update PATH System Environment Variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found