How-To: Add VirtualEnv and Django (WSGI framework) to XAMPP

Problems with the Linux version of XAMPP, questions, comments, and anything related.

How-To: Add VirtualEnv and Django (WSGI framework) to XAMPP

Postby greno » 07. December 2010 00:14

Start by following the How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP:
http://community.apachefriends.org/f/viewtopic.php?f=17&t=42981

Stop at the point where you have VirtualEnv installed and working.

Be sure you are working in your new virtual ENV environment:
Code: Select all
cd $HOME
source ENV/bin/activate


To install Django (WSGI-framework):
Code: Select all
pip install django


Now let's create our first Django application:
Code: Select all
mkdir projects
cd projects
django-admin.py startproject helloworld
cd helloworld


And let's run the built-in webserver:
Code: Select all
python manage.py runserver localhost:8000
Validating models...
0 errors found

Django version 1.2.3, using settings 'helloworld.settings'
Development server is running at http://localhost:8000/
Quit the server with CONTROL-C.


browser to: http://localhost:8000/

Image



Enjoy

-Gerry

And as you can see you can do very similar process for any of the WSGI frameworks. Just follow along the same process as I did for Pylons and Django.



.
greno
 
Posts: 54
Joined: 04. October 2006 19:25

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 17 guests