Is it unrecommended to run Django on IIS? - django

I'm going to run Django-based webpage on my not-using Windows labtop.
Some material that I found from web says that I have to use PyISAPIe to run Django on ISS but its last update day is 2009-06-17... You can see that here : https://sourceforge.net/projects/pyisapie/files/pyisapie/
Is it safe to use that such old module? Or can you let me know what I should do without PyISAPIe to run Django on Windows server?

Related

How to get my Django app in a real server?

I'm starting with web development, the last week I just write an HMTL, JavaScript and PHP scripts and get some very basic working properly in my web page, I used Cyberduck to get my files working in my web page. This week I want to use Django to develop faster, I have got my web page working locally but I have not been able to find a tutorial to get my Django app working in my server, I have a hosting service.
Develop a simple django app following django docs:
For Python 2.7.X and Django 1.11: https://docs.djangoproject.com/en/1.11/intro/tutorial01/
For Python 3.7.X and Django 2.1:
https://docs.djangoproject.com/en/2.1/intro/tutorial01/
Then try hosting the same in pythonanywhere site: https://help.pythonanywhere.com/pages/DeployExistingDjangoProject

is it possible to run a django app in a simple hosting?

Hello friends I have one question about django and hostings, is It possible to run a django app in a simple hosting with python support or you must to use a VPS?
I know that php framework like codeigniter,symfony... run in any hosting with php support but I know that django it´s a little special.
Thanks
There are Platform as a Service few hosting providers out there.
Python Anywhere
Heroku
OpenShift
But you cant get it from cPanel like in PHP. Each of them have a very good doccumentation on hosting in their platform. Check them out.

Integrating Google Calendar in a Django application running on app engine

I have been trying to integrate Google calendar into a Django application running on App Engine. I have managed to get the google-python-client-api working on my computer and even managed to get a Django app to run on my computer. However, I am unable to get the app compatible with the Django app that is deployed on the appengine. I tried importing all the dependencies - httplib, gdata, gflags but when I run that project it still gives me 500 error. Is there a way to make these 3 things play nice with each other or should I look to deploy Django natively somewhere else?
This is what finally solved my problem. :-
I went into oauth2client/client.py, and there's a conditional before the
CACHED_HTTP = httplib2.Http('.cache')
so I commented out the conditional so it uses the other case:
CACHED_HTTP = httplib2.Http()
automatically, and this one does not call makedirs.
Found on: - https://groups.google.com/forum/?fromgroups#!topic/google-appengine-python/tIwjdy28MzQ

Profiling django app hosted on apache2

I am having a django app which was hosted on apache2. The webapp basically makes a request to a server using thrift and renders the output on the webpage. I notice that webapp is really slow. I am not sure if it is machine problem or the API problem. I verified the API's and they are returning responses in few milliseconds. I am not sure, if django is the problem. Is there a way to profile the webapp. I am using python 2.5.2.
Please help.
Thank you
the simplest thing would be to enable logging, if you are using the latest django 1.3, it is nicely integrated with the python logging module, see:
http://docs.djangoproject.com/en/1.3/topics/logging/
here you can define a Formatter which saves the time each log message is written, see example in django docs:
http://docs.djangoproject.com/en/1.3/topics/logging/#an-example

Django Deployment

I am given a responsibility in my project to develop a Equipment tracking tool with following requirements
New Equipment can be added by admin to a particular user
Once equipment is assigned to a person he will a request to accept the request so he will be responsible
User can transfer his equipment to other users.
At the same time Admin should be sent a mail or message whenever there is a change in status.
It should be deployed locally on a PC( So it is not actually a web app) that is connected to network which can be accessed by everyone
I thought I can use Django for this( I am new to it ), but I do not know much about deployment on a local PC , How can I do this, or is there any better Idea for this?
It still sounds like you want a web app, you just won't be deploying it on a traditional web server. One thing to note, client versions of Windows (XP, Vista) will limit you to 10 incoming connections per computer.
You'll want to follow these instructions on how to install Django. If you haven't installed python yet, I'll recommend that you install version 2.5, since that will include sqlite, an embedded database that makes it very easy to get started developing with Django. Django includes its own development web server, which you will come across naturally as you go through the tutorial.
Start by installing and then jump right into the tutorial. Your deployment options will be much easier to understand once you're comfortable with developing in Django.
Try http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index
and if you should deploy using IIS then try http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer