What is the most dirt-simple yet mindful approach to creating a blog web app on shared hosting using a language other than PHP (namely Python)?
-
I've decided to kickstart my pursuit to proficiency with a server-side language, and so, what better than to create a blog? The thing is, I don't want to use PHP. I think it sucks. I never liked it, and I think other languages (namely Python) can do a much better job in every area. However, even the most simple frameworks such as Flask require prior knowledge of more than a few obscure things such as file structure on the server-side and design patterns. Basically, its impossible to configure them for someone whose only used to minimal FTPing on a shared host. Also, shared hosting is restrictive with regards to a framework's dependencies. How can I create a barebones yet mindfully written blog with Python the same way I can get one running in some trivial PHP? I'm expecting people to mention (fast)CGI...... Some excellent tutorials would also do some justice here.
-
Answer:
I know you said Python, but have a look at https://www.meteor.com/ - they let you deploy to their own free cloud (even under your own A domain, free of charge), and if you wanted to scale up, https://www.heroku.com/ (which also has a free tier for small apps) or Amazon's AWS: http://aws.amazon.com/ would host your app at a good rate. Microsoft's cloud hosting services (http://www.windowsazure.com/en-us/) have also adopted node.js as well. If you're a fan of functional brevity a la Python, you'll love http://coffeescript.org/, a JavaScript short-hand readily compatible with Meteor. If you're tired of writing "long-hand" CSS stylesheets, I don't know of anyone serious out there, who still hasn't switched to preprocessors like http://sass-lang.com/ or http://lesscss.org/
Zhenya Savchenko at Quora Visit the source
Other answers
Django. I don't know if Django is considered the "most dirt-simple" but I would consider it pretty beginner-friendly. I would recommend Django over Flask in that while Flask is awesome in that it is super light-weight, this awesomeness is completely negated if you have no idea what's going on. development. With that being said, this is probably the most complete and easy-to-follow tutorial that I've seen in terms of building a django blog from scratch: http://www.creativebloq.com/netmag/get-started-django-7132932 I would link you to others but honestly all of the other blog tutorials I've encountered suck. Also if you do choose Django, I would recommend watching this video, or at the very least the first 5 minutes where the instructor shows you how to use virtualenv to manage your Django installation. I ignored all of the "USE VIRTUALENV!!!" warnings early on and I am still wallowing in regret. deployment. As for deployment, I've been able to successfully deploy django apps on shared hosting plans (hostgator) using FastCGI. After development, move your files onto your shared hosting (I did it through a git pull), and create two files, an .htaccess and an index.fcgi file - the latter with executable permissions, 0755). Place both of these files in the public_html folder, or the document root you desire. The contents of the .htaccess file should look something like this: and the index.fcgi should look something like this (again, permissions set to execute for user, group, and world): Source:http://support.hostgator.com/articles/django-with-fastcgi Again, If you don't have root permissions on your shared, just make sure you are using the same version of python in your dev environment as the one installed on your shared hosting plan (otherwise migration problems will end you). Hope this helps!
David Cheng
Related Q & A:
- How to create a Restful web service in .Net Using MySQL?Best solution by stackoverflow.com
- How can I make a dynamic web page in PHP?Best solution by Yahoo! Answers
- How to load a Java web app in the terminal?Best solution by stackoverflow.com
- How to start creating a php script, that will be installed on many servers?Best solution by Stack Overflow
- Where can I find good a tutorial for creating a simple flash movie using Adobe Flash CS4?Best solution by Graphic Design
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.