What is the proper documentation for using django channels on azure app services? - django

I am trying to deploy a web app on azure app service
All the http request work just fine as one would expect
there just one problem none of the websockets work
I am using in memory channels version 2.4.0
and django version 2.2.15
The problem is azure just can not show me proper logs that django shows when running on local server

What is the proper documentation for using django channels on azure app services?
Django Channel
Refer Deploy Django app with App Service and Deploying a Basic Django App using Azure App Services
The problem is azure just can not show me proper logs that django shows when running on local server
Clicking “Show Logs” will show you the different processes happening behind the scenes
Refer Debug Django Web Application in Azure Web Apps

Related

Can I deploy the Django Rest Framework project on Firebase?

We are developing an application using Vue.js and Django. The essence of the application: accept user requests from the form, send them for approval to the backend and send an answer to the frontend. On the localhost everything is already organized and working. Now our frontend is on firebase and I want to deploy my backend part somewhere. So, can I use firebase for deploying my part? Вecause I met different ambiguous answers to this question
You cant, I guess you are using Django Rest Framework with Vue.js. So you need deploy your back-end to some machine. You can choose any hosting which can propose you Linux machine. GoogleCloud, DigitalOcean, AWS, Heroku and a lot of others..
I like AWS (In your case as a new user you can run free EC2 for 12-month, if you do not need a lot of performance)

Not able to invoke web services using web app which was deployed in Azure

I have a deployed html file by creating web app in Azure and hosted using FTP tool. when I hit the run in intellij, able to submit the values using html file and able to hit the web services. but am not able to hit the web services when i trying to deploy and run the nodes in command prompt.
It looks like your web app does not have the proper url of your web server.
Feel free to see an example of how we had build a front end web app at: https://github.com/corda/samples-kotlin/tree/master/Advanced/auction-cordapp/client/src/main/resources
The front-end is simple angular web app.

Deploy Django API + React app on Heroku

I'm developing an web application with React in the front-end and Django API REST in the back-end (mostly because in the future we're gonna create a mobile app). My question is, what is the best way to deploy this web app on heroku? Using two distincts heroku's app (one for React and one for Django), or to use Docker to deploy both app's in one single heroku app? (I've read a little about Docker, but i'm not sure how I would deploy it on heroku)
Thanks and sorry for the English.
A good way is deploying to one app by bundling all your front-end with webpack for example. If you are doing server side rendering probably its better to go for two separate apps.
This tutorial talks about preparing your webpack configuration and this repo shows how to deploy webpack-django heroku app

Azure web app service Django server log

I have been working with Azure's web app service using Resource Manager to deploy a Django app. It has been working in fits and starts. I really like the auto-deployment from GitHub but I have been frustrated by the ability to work with the underlying machine. There is a "Console" tool through the Azure portal but it has limited functionality and when there is an internal server error on my app, I can't find the server output log.
Can someone share insight into how to view the server logs?
Azure web apps have a number of logs however, the applications logs provided out of the box only support Asp.Net applications. That being said there is an article about django on web apps and how to store and view its logs here.
What'll you'll have to do, as described in the link, is to setup the django application to store its logs on the azure file system. Another option is to setup the django application to email the devs but the better option is to store the logs on the file system properly.

Django Rest Framework and Angular App on same AWS Instance

I'm using Django Rest Framework for API service and Angular to use those APIs. How do I run Angular alongside Django Rest Framework on the EC2 instance using Amazon Elastic Beanstalk?
For example, Django Rest Framework serves up the API through http://test.com/api/v1/ and Angular makes HTTP requests to those API endpoints client-side.
What are the steps required to run Django Rest Framework API with an angular client side application on the same machine?
Any suggestions would be greatly appreciated!
It seems you are looking for a customized container that runs both a Python web app and an Angular app. The angular app accesses the django REST API on "localhost". I would recommend looking into creating a custom Docker container that lets you have this custom configuration.
You can read more on support of Docker containers on Elastic Beanstalk here.
While there may be simpler solutions out there I have been able to configure AngularJS + Django REST Framework to run on the same AWS instance. It's the accepted answer to this post https://stackoverflow.com/a/22852451/1759504
There I go into detail on exactly what I had to do to make it so my static AngularJS content runs from http://test.com/#/ while my APIs are at http://test.com/api/v1/