On Mon, 2012-05-14 at 00:51 -0700, doniyor wrote:
> i configured my httpd.conf file, i told him where is my django.wsgi
> file. 
> the directory is this: /usr/local/django/mysite/myproject.   What i
> dont 
> understand is: during configuration, do i have to 'startproject'? or
> will i 
> just copy my djangoproject in this 'django' folder? 

neither. The correct way to do it is to use a version control system
like git or mercurial and pull from the repository. 
> 
> and.. my question is: how does apache finds my project actually? from
> which 
> file? from wsgi script file? there are too many steps and docs are
> not 
> clean to follow. what i did is this: 
> 1) installed mod_wsgi 
> 2) installed django
> 3) i created a folder 'django' under usr/local as shown in docs. 
> 4) in this django folder i did 'django-admin.py startproject mysite'
> 5) in this 'mysite' i created a folder 'apache', and in this apache
> folder 
> i created my django.wsgi script file. 
> 6) then i copied my actual django project which i developed locally
> into 
> mysite folder. 

as mentioned above, it is better to pull from a repository, but no 4. is
not necessary. 

> 
> 
> can you please tell me where to put my djangosite and what is
> document 
> root.

do not put it in docroot. Create a virtual host in apache and point the
virtual host to the location of the media files of the django project
using the Alias directive. Apache finds your project using the
WSGIScriptAlias directive.
-- 
regards
Kenneth Gonsalves

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to