0

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.

3
Contributors
14
Replies
16
Views
7 Years
Discussion Span
Last Post by Stefano Mtangoo
0

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.

0

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

0

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.

0

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?

0

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

Edited by Kruptein: n/a

0

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.

Edited by funfullson: n/a

0

'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.

0

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.