Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Is it possible to host a website built with Django on one's personal machine? If so, how?
I built a small Django site, my first, based on a tutorial, and I want to make it live, so that I can see how it looks on other computers/devices, and allow friends/family to check it out. I have no way of purchasing a server.
A way to do what you're asking for is by using ngrok on your machine (using homebrew on a mac, brew install ngrok)
You would need to sign up at https://ngrok.com/signup to get an authtoken to password protect your site.
Install the authtoken: ngrok authtoken your_authtoken_here
To run your django app in your terminal, you would run (note that you could specify a different port; Django runs on 8000 by default):
python manage.py runserver
And then in another terminal window you would run:
ngrok http -auth='username:password' 8000
You'll see a screen with a line that looks like this:
Forwarding http://sfd98sdf.ngrok.io -> localhost:8000
You can then visit http://sfd98sdf.ngrok.io to view your site.
You would have to keep your machine running these processes for this to work.
Note that as commenters have said, this isn't the best or most secure way, but it's a quick way to do exactly what you want to do.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a question about https and qt network.
I would like to know if I use https url, can I use the same code like http url or I must do some changes. Does someone can say which change I must do?
ps: I would like to auth to my https website and do get/post
HTTPS will work with Qt so long as OpenSSL is available.
On Mac and Linux, this is typically an automatic. On Windows, you will likely need to build and ship the OpenSSL 1.0.x binaries, libeay32.dll and ssleay32.dll, with your application. If Qt can dynamically load these binaries at startup, HTTPS support will be available. Or rebuild Qt from source to statically link with the OpenSSL libraries.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm new to django, and have a small finished project I'd like to publish online. Is it possible to host my site as a github project page, or do I have to use a service like OpenShift?
You can deploy Django on a physical server or VPS (see the deployment docs). You don't have to use a a platform as a service like OpenShift or Heroku.
It is not possible to host a Django site on Github pages. Github pages is for static sites, whereas Django requires Python to generate pages dynamically.
If you do not want to use OpenShift, but instead would prefer a more python-centric environment, I just discovered PythonAnywhere today. They appear to allow you to host Django websites and you can even use it for the Django tutorial.
Honestly, that may depend on whether you can make a static site using django, because GitHub will work for you if you have a static site.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I heard that it is not recommended to use
python manage.py runserver
in a productive environment. How come ?
The built in Django server is designed for development purposes only. In an actual production environment you'll want to use a robust and powerful alternative, ranging from Apache to nginx using WSGI or mod_python etc.
From the documentation
DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through security audits or performance tests. (And that’s how it’s gonna stay. We’re in the business of making Web frameworks, not Web servers, so improving this server to be able to handle a production environment is outside the scope of Django.)
A popular setup is keeping nginx in front of Gunicorn, which is a WSGI server.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I created a multilingual website with ( English and french). Both the version are working fine in my Dev environment. but after creating the packages and installed on Staging , my website only points to french version.
any help...
You need to install the language on your staging environment. Sitecore will install items with undefined languages just fine, but they won't work properly until the language is installed and registered.
Can be done from Sitecore Control Panel, Globalization options as I recall.
Make sure the relevant sections of your web.config (and config include) files are the same in both environments (e.g. check <sites> section).
Ensure you have published both languages in your staging environment?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have put an updated version of the previous django project on to the server running httpd, wsgi. When I tried to open the site, the server just hang up here, after more than 5 minutes gives me 500 error. I have checked apache error log, nothing suspicious shows up. When I restored the previous version, it works fine.
In the updated version, I only add one application which using rpy2 to do some statistics.
By the way, everything is fine using the development server.
Any suggestions?
If it is the only Python site on that Apache and presuming you are using mod_wsgi, try adding:
WSGIApplicationGroup %{GLOBAL}
The third party module you are using likely has a C extension component which isn't implemented so as to be used in Python sub interpreters.
That directive forces uses of the main Python interpreter.
See documentation:
http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_State_API