Найти - Пользователи
Полная версия: Hello World Django
Начало » Django » Hello World Django
1
bimply
pip install django успешно установлен.
Как теперь создать Hello World проект на django?
Как подключить python к apache, у меня
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
такого файла нет
PanovSergey
сначала читаем это
затем делаем вот это
непонятные моменты спрашиваем на форуме. апач пока не нужен
bimply
django-admin.py startproject mysite
Куда pip кладет django-admin.py после установки django?
bimply
Так понял что нужно сначала установить mod_python.so в апач.

http://archive.apache.org/dist/httpd/modpython/

Скачал отсюда дистрибутив, какая то ошибка вылазит

[root@APACHE mod_python-2.7.10]# ./configure
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for ar... ar
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... yes
checking for main in -lm... yes
checking for working const... yes
checking your blood pressure... a bit high, but we can proceed
checking whether apxs is available
checking for --with-apxs... no
checking for apxs in /usr/local/apache/sbin... no
checking for apxs in your PATH... checking for apxs... no
configure: warning: **** apxs was not found, DSO compilation will not be available.
configure: warning: **** You can use --with-apxs to specify where your apxs is.
checking for --with-apache... no
configure: warning: **** No apache sources specified, static compilation will not be available.
configure: warning: **** You can use --with-apache to specify where your Apache sources are.
configure: error: Neither static nor DSO option available, there is no point in continuing.
[root@APACHE mod_python-2.7.10]# 
PanovSergey
вас не смущает что вам никто не отвечает? Хотя здесь много кто понимает в этом… последнее китайское предупреждение
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB