using dropbox as a server for my django app

喜夏-厌秋 提交于 2020-01-23 05:48:27

问题


I dont know if at all i make any sense, but this popped up in my mind. Can we use the 2gb free hosting of dropbox to put our django app over there and do some hacks to run our app?


回答1:


The point you need to understand is: can you run django without djagno installed? Can django be installed on a usb-drive? Dropbox is but a cloud storage service NOT cloud hosting service. To store you do not require RAM and processors while for hosting you do.

Hence the answer is NO. If you are okay with configuring apache etc. you can go for VPS. If not try some managed servers. If you dont want to spend much and are looking at free hosting solutions for django a few of them are:

kodingen.com

shellmix.com

http://0x2a-dc.com/index.php?name=shop&cat=6

http://www.heliohost.org/home/

http://bitnami.org/cloud

https://www.alwaysdata.com/

more data: http://freedjangohosting.com/

http://djangohosting.com/

https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts




回答2:


No, it's not possible.

If you want to use dropbox as the hosting, you can put static pages, meaning just the html files with CSS and javascript because those files can be retrieved by doing a simple GET request.

Hosting a python code is not possible as it requires server side calculations & dropbox is just for saving files.

See the official wiki for the available hosts. https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts




回答3:


Yes its possible! PythonAnywhere.com offers that!

What pythonanywhere does is pretty simple. They integrate your dropbox account with their one. When you want to create a Django app, all you got to do is, direct the platform to store the app in your dropbox folder!

Now, you can open your Django app in your PC and edit it (wait for some time to sync)..restart the app, it works! I practically tried.

Tip: There are many cloud platforms which offer great services for free. Openshift, Heroku, Google App Engine are to name a few!




回答4:


No, you can't use DropBox to serve a Django Website, as doing so requires Python code to be run, when DropBox is only for saving & serving files.

You can, however, find free hosting for your Django needs, among which:

Heroku, originally meant for Ruby hosting, but now allows you to do Python hosting. I didn't find it particularly easy to use with Django though.

ep.io, Python-specific hosting, but invite-only for the moment - it's possible to get an invite by sending an email, explaining your project & your needs though. Offers you free SSL on *.ep.io, which is pretty nice, and they've got great service.

Dotcloud, not platform specific, but my personal favorite. It's pretty easy to get started, and the CLI allows you to do a lot (but the downside is that you need it a lot too). If you're not afraid of CLI, it's great.




回答5:


Being said its not possible from dropbox to do that you can use very simple cloud hosting as told ahead, I might be late for answer but you can get free cloud hosting from Linux Fedora company called RedHat. Their cloud product is available for free which supports django hosting. I tried it my own Openshift Free Cloud Hosting




回答6:


In addition to what Thomas posted, some other options for free django hosting:

  1. Amazon Compute Instance (free for one year, free sign up).
  2. Google App Engine (free limits,django howto).
  3. OpenShift (django howto).


来源:https://stackoverflow.com/questions/8968158/using-dropbox-as-a-server-for-my-django-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!