1

Where I can find this file?

I tried to use this tutorial and just copy paste most of all examples. But when I'm trying to launch this app, I have an error:

Failed to load resource: the server responded with a status of 404 (Not Found)

Server is trying to load settings.js file from http://domain.name/settings.js, but that file doesn't exist. What is this?

NONAMA
  • 503
  • 1
  • 9
  • 21
  • They changed that.. now it's not required .. but what's your version..? do you have this `{% load swampdragon_tags %}` ? – Raja Simon Jan 13 '16 at 10:04
  • Last version of swampdragon. Yes, I used swampdragon_tags. And if I delete {% swampdragon_settings %}, I have next error: Cannot read property 'endpoint' of undefined. It's a swampdragon.js on line endpoint = window.swampdragon_settings.endpoint. – NONAMA Jan 13 '16 at 10:09
  • Also, console.log(window.swampdragon_host); console.log(window.swampdragon_settings); result undefined – NONAMA Jan 13 '16 at 10:10

1 Answers1

2

add server.py

import os
from swampdragon.swampdragon_server import run_server
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')    
run_server()

and run python server.py

vadimchin
  • 1,477
  • 1
  • 15
  • 17