On 03/10/2013, at 5:30 PM, Chip Munk <[email protected]> wrote:

> Thank you guys, I have solved it by following both the link and Graham's 
> instruction!
> 
> I have another issue now however, my css file is not used.
> 
> so, as I have seen i need to add: 
> ------------
> Alias /static/ 
> "D:/Research/09-BuildingARecommender/xampp/htdocs/ktksurvey/vignete/static"

Try removing the trailing slash on the path for the mount point:

Alias /static 
"D:/Research/09-BuildingARecommender/xampp/htdocs/ktksurvey/vignete/static"

That is, have either both arguments with trailing slash, or neither with 
trailing slash.

Having it on one and not the other can stuff up path construction when 
calculating what file matches the URL.

Graham

> <Directory 
> "D:/Research/09-BuildingARecommender/xampp/htdocs/ktksurvey/vignete/static">
>       Order deny,allow
>       Allow from all
> </Directory>
> 
> ------------
> 
> however it doesn't seem to do the trick.
> Am I missing something?
> 
> (again on the runserver css was used normally)
> 
> Thanks in advance!
> 
> On Wednesday, October 2, 2013 10:19:47 PM UTC+2, Graham Dumpleton wrote:
> As per instructions at:
> 
> https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/
> 
> The first argument to WSGIScriptAlias is a path and not a URL.
> 
> You should therefore be using:
> 
> WSGIScriptAlias /ktksurvey/ktkanketa 
> "D:/Research/09-BuildingARecommender/xampp/htdocs/ktksurvey/ktkanketa/wsgi.py"
> 
> Graham
> 
> On 03/10/2013, at 2:55 AM, Chip Munk <[email protected]> wrote:
> 
>> Hello everyone!
>> 
>> I was googling for the last 3 hours and cannot find the answer to my problem.
>> 
>> I have a django project that works great on the development server 
>> (runserver).
>> Now I want to deploy it on the local server. I am working on Windows 7.
>> 
>> I downloaded and included mod_wsgi. I followed django book, but instructions 
>> are a bit weird 
>> since some pages use apache.wsgi file, and some wsgi.py file. I have a 
>> version of django that
>> created wsgi.py file.
>> 
>> httpd.conf looks like this:
>> --------------------------------------------------
>> WSGIScriptAlias http://192.168.81.59/ktksurvey/ktkanketa 
>> "D:/Research/09-BuildingARecommender/xampp/htdocs/ktksurvey/ktkanketa/wsgi.py"
>> WSGIPythonPath "D:/Research/09-BuildingARecommender/xampp/htdocs/ktksurvey/"
>>  <Directory 
>> "D:/Research/09-BuildingARecommender/xampp/htdocs/ktksurvey/ktkanketa/">
>>  <Files wsgi.py>
>>      Order deny,allow
>>      Require all granted
>> </Files>
>> </Directory> 
>> -------------------------------------------
>> 
>> wsgi.py:
>> --------------------------------------------
>> import os
>> os.environ["DJANGO_SETTINGS_MODULE"] = "ktkanketa.settings"
>> from django.core.wsgi import get_wsgi_application
>> application = get_wsgi_application()
>> --------------------------------------------
>> 
>> when i run apache and enter url: "http://192.168.81.59/ktksurvey/ktkanketa"; 
>> I simply open that folder in the browser... and
>> the app doesnt start. ?!?!
>> 
>> I repeat, with runserver it works withot a problem.
>> 
>> Please, I am desperate, help me!
>> Let me know what other info you need!
>> 
>> Thanks in advance!
>> 
>> Best
>> 
>> Chip
>> 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/modwsgi.
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to