Hi dears.I want start making a web with python but I know nothing a bout web.and so don't know from where a have to start.
I need a point to start and a few knowledge about webs programing foundation.please introduce me a suitable source for beginning.

Thanks.

To begin with you have to know that python itself is not a web programming language. BUT with help of some frameworks or other things you are able to use python as a web pr. language
I use Django which is a well-supported web framework which uses only python.

Here then here then here

I supposed he already knew html and python itself, but ofcourse he/she should look at that first.. my bad

I use Django which is a well-supported web framework which uses only python.

Do you develop locally or from a server with already configured django? How do you get it work with WAMP/LAMPP?

I supposed he already knew html and python itself, but ofcourse he/she should look at that first.. my bad

No Problem

Well I have a localhost which runs django all for testing the site before it is updated to a new release on the web,

but I have a webhost with already django installed. I don't use lamp anymore.

Well I have a localhost which runs django all for testing the site before it is updated to a new release on the web,

but I have a webhost with already django installed. I don't use lamp anymore.

Hello that fascinating me!
How do you setup your server?

I'm on linux/ubuntu so I have installed:
mysql and apache 2
then you need the wsgi mod

this is my virtualhost configuration in apache (I used port 81 caus I also have a php server running on port 82; but you can configure it like you want to.)

<VirtualHost *:81>
    Alias /med /usr/local/www/django/ninv/med/
    Alias /admin-media /usr/local/www/django/ninv/admin/media/
    ServerName localhost
    ServerAdmin kruptein@kruptein.com

    DocumentRoot /usr/local/www/django/ninv/

    <Directory /usr/local/www/django/ninv/>
	Options Indexes FollowSymLinks MultiViews
	AllowOverride None
	Order allow,deny
	allow from all
    </Directory>

    WSGIScriptAlias / /usr/local/wsgi/scripts/django.wsgi

    <Directory /usr/local/wsgi/scripts>
    Order allow,deny
    Allow from all
    </Directory>

</VirtualHost>

you also need a wsgi conf file:

import os
import sys
sys.path.append('/usr/local/www/django/')
sys.path.append('/usr/local/www/django/ninv/')
os.environ['PYTHON_EGG_CACHE'] = '/usr/local/www/django/ninv/eggs'

os.environ['DJANGO_SETTINGS_MODULE'] = 'ninv.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

the wsgimod website on google code

Thanks a lot I will try that on Mandriva 2010

You're welcome :)

sorry.there is anew problem.I want install the Django on windows but fault in to inconvenience.I dont know how can i do it.

uncompress django and move to the django directory
then type this
python setup.py install

That is all ;)

'python' is not recognized as an internal or external command,
operable program or batch file.

it is my error when i do it.I added it in my my computer ->propertice ->advanced ->advanced environment ->path before but happend such error.

you should be able to do python in command prompt or terminal!
if not python is not installed well

check if you added correctly. All paths are separated by semi-colon
C:\Python26\;
If that is okay then check if you typed correctly and lastly if it still fails type full path while in Django directory

C:\Python26\python.exe setup.py install

If this fails too, re-install your python

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.