Skip to content

Commit

Permalink
Merge pull request #200 from Shrutihindocha/main
Browse files Browse the repository at this point in the history
fixes for dev environment
  • Loading branch information
xzzy authored Dec 20, 2023
2 parents 3f3afe7 + bb018aa commit 3859ba6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vscode/launch.json → .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"program": "${workspaceFolder}/manage.py",
"args": [
"runserver",
"0.0.0.0:9002"
"0.0.0.0:9001"
],
"django": true

Expand Down
1 change: 1 addition & 0 deletions boranga/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def config(request):
'template_title': settings.TEMPLATE_TITLE,
'build_tag': settings.BUILD_TAG,
"KMI_SERVER_URL": KMI_SERVER_URL,
'app_build_url': settings.DEV_APP_BUILD_URL,
}
#print( config )
return config
Expand Down
5 changes: 5 additions & 0 deletions boranga/frontend/boranga/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ module.exports = defineConfig({
//index: true,
writeToDisk: true,
},
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers':
'Origin, X-Requested-With, Content-Type, Accept',
},
client: {
webSocketURL: 'ws://0.0.0.0:' + port + '/ws',
},
Expand Down
9 changes: 7 additions & 2 deletions boranga/templates/boranga/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@
}
</script>
<script type="text/javascript" src="{% static 'boranga_vue/js/chunk-vendors.js' %}?v={{build_tag}}"></script>
<script type="text/javascript" src="{% static 'boranga_vue/js/app.js' %}?v={{build_tag}}"></script>

{% if app_build_url %}

<script type="module" type="text/javascript" src="{{ app_build_url }}"></script>
{% else %}
<script type="text/javascript" src="{% static 'boranga_vue/js/app.js' %}?v={{build_tag}}"></script>
{% endif %}
<div id="app">Template not loaded</div>
{% endblock %}

{% block menu_items2_right %}
Expand Down

0 comments on commit 3859ba6

Please sign in to comment.