|
Pylons install on Kubuntu is just so dirt
simple.
Pylons is a web framework that uses Python. It also
has Ajax built in. I find Pylons the most interesting of all the
Python web frameworks and more powerful as it really is pretty
close to writing native Python code in than say: Spyce/PSP.
There are other Python frame works also that also look good, but I
choose Pylons because it doesn't try to reinvent the wheel and
just looked cleaner. Also check out Django and
TurboGears
these look really good also.
I am really just getting started using
Pylons myself so I will post more on the subject as I get my site
developed. I will be hosting my Pylons site on Dreamhost via fastCGI and using MySQL as my
database. I will post info on that as well once I get to that
point.
First thing you need is mod_python and
Apache web server. Python should already be installed on Kubuntu.
Open a terminal and type:
sudo apt-get install
libapache2-mod-python python-setuptools
Now you are ready to install Pylons,
type:
sudo easy_install Pylons
Open your web browser and point to
localhost to make sure Apache is fired up running.
Getting started with Pylons.
Create a project and fire it up like so in
the terminal:
paster create --template=pylons
name_of_site
cd name_of_site
paster serve --reload
development.ini
In your home directory you will find your
project directory. Test it is running by opening the browser and
pointing to http://localhost:5000
If you see "Welcome to Pylons" you are
ready to start building your site.
Let's install MySQL, you could also use
PostgresSQL, Sleepycat, MySQLLite, etc, but I am using MySQL for
ease of setup on Dreamhost. Also installing some tools for easy
management; although, you can do everything in Pylons if you wish.
Open a terminal and type:
sudo apt-get install mysql-server
mysql-admin mysql-query-browser
Here are some really great getting started guides.
Getting started withAjax
This will get you started using MySQL and Pylons
(Python) by creating a simple Blog.
|