Re: Django deploy Apache

2022-05-18 Thread Kasper Laudrup

On 13/05/2022 13.56, Nicolas Passarini wrote:
Hello, i ve deployed a django app in apache. the problem is that i works 
for 5 minutes and then it stops responding.




That sucks. Sounds like you have some issues you need to look into.

Good luck.

Kind regards,
Kasper Laudrup



--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/84858a53-2256-4bee-889a-ff365127f86en%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/21b9a5fd-873e-503b-5f87-d67e60ce2faf%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Django wsgi apache Deploy project

2019-05-30 Thread N'BE SORO
 thank you everyone I managed the deployment

Le mar. 7 mai 2019 à 18:48, Subhodeep Das  a
écrit :

> Try:
>
> WSGIScriptAlias /test/tc-test /var/www/stage/hello/tc-test/django.wsgi
>
> You shouldn't have trailing slash on first argument.
>
> On Tue, May 7, 2019 at 7:27 PM N'BE SORO  wrote:
>
>>
>> Hi I'm a beginner in python and I realized a project in Django. I have
>> problems in hosting my project. here is my code in the 000-default.conf
>>  #ServerName #ServerAlias ServerAdmin webmaster @
>> localhost DocumentRoot / var / www / html / ecommerce WSGIScriptAlias ​​/
>> /var/www/html/ecommerce/ecommerce/wsgi.py WSGIPythonPath / var / www / html
>> / ecommerce / ErrorLog $ {APACHE_LOG_DIR} /error.log CustomLog $
>> {APACHE_LOG_DIR} /access.log combined  and I have this error
>> Invalid command 'WSGIScriptAlias / /var / www / html / ecommerce /
>> ecommerce / wsgi.py ', perhaps misspelled or d efined by a module not
>> included in the server configuration
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1912bcdc-cb2f-45a2-932c-d579eb944c0a%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJEaip7ZtWWZW--O9Z2nqvVypwLe8CMRVSPboc28yoNkaLMV%3Dg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOtSHp--MqaZPhUZiPUgBdBEMp%2B2F0Mm_uQHJ%2But1_qHh75d4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django wsgi apache Deploy project

2019-05-07 Thread Subhodeep Das
Try:

WSGIScriptAlias /test/tc-test /var/www/stage/hello/tc-test/django.wsgi

You shouldn't have trailing slash on first argument.

On Tue, May 7, 2019 at 7:27 PM N'BE SORO  wrote:

>
> Hi I'm a beginner in python and I realized a project in Django. I have
> problems in hosting my project. here is my code in the 000-default.conf
>  #ServerName #ServerAlias ServerAdmin webmaster @
> localhost DocumentRoot / var / www / html / ecommerce WSGIScriptAlias ​​/
> /var/www/html/ecommerce/ecommerce/wsgi.py WSGIPythonPath / var / www / html
> / ecommerce / ErrorLog $ {APACHE_LOG_DIR} /error.log CustomLog $
> {APACHE_LOG_DIR} /access.log combined  and I have this error
> Invalid command 'WSGIScriptAlias / /var / www / html / ecommerce /
> ecommerce / wsgi.py ', perhaps misspelled or d efined by a module not
> included in the server configuration
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1912bcdc-cb2f-45a2-932c-d579eb944c0a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJEaip7ZtWWZW--O9Z2nqvVypwLe8CMRVSPboc28yoNkaLMV%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django wsgi apache Deploy project

2019-05-07 Thread Kevin Jay
Remove the spaces in the paths:
WSGIPythonPath / var / www / html / ecommerce /
should be
WSGIPythonPath  /var/www/html/ecommerce/

Do the same for the other paths

On Tue, May 7, 2019 at 8:57 AM N'BE SORO  wrote:

>
> Hi I'm a beginner in python and I realized a project in Django. I have
> problems in hosting my project. here is my code in the 000-default.conf
>  #ServerName #ServerAlias ServerAdmin webmaster @
> localhost DocumentRoot / var / www / html / ecommerce WSGIScriptAlias ​​/
> /var/www/html/ecommerce/ecommerce/wsgi.py WSGIPythonPath / var / www / html
> / ecommerce / ErrorLog $ {APACHE_LOG_DIR} /error.log CustomLog $
> {APACHE_LOG_DIR} /access.log combined  and I have this error
> Invalid command 'WSGIScriptAlias / /var / www / html / ecommerce /
> ecommerce / wsgi.py ', perhaps misspelled or d efined by a module not
> included in the server configuration
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1912bcdc-cb2f-45a2-932c-d579eb944c0a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEtabwdEQtikBmkrpvpFLJ0oHY%3DfWJhSm5VLGBU7yxwYWq_b2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django windows apache tell if apache is working

2018-07-03 Thread Bob Bobsled
Hi,
I think I see the problem now.

WAMP is a special case for aliases, and it's root directory default setup
in c:wamp\www for ex..  I need to do some more work on, say for ex. using
Django Tut 01, setting up mysite as an alias in wamp, and then putting the
polls app in it.  I believe apache might start to work then with django if
the wamp alias is setup correctly.

I also found this vid tut:  really good, but for XAMPP, not WAMP...but it
shows how to get the mod_wsgi.so from a renamed and extracted .whl file.
And using the mod_wsgi.so with apache simplifies things a bit, so this is
good too.

XAMPP
This shows how to create a mod_wsgi.so from the .pyd extracted from the
.whl file
https://www.youtube.com/watch?v=VnR5O4IjmOs

Regards


On Sat, Jun 30, 2018 at 10:08 AM, Jason  wrote:

> I meant the tutorial at https://docs.djangoproject.
> com/en/2.0/intro/tutorial01/
>
> That said, there's a few different ways you can actually deploy, but
> digitalocean has some good resources for starting out.
>
> https://www.digitalocean.com/community/tutorials/how-to-
> serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
>
> This one shows how to use apache on ubuntu, and you should be able to
> extrapolate to use wamp.
>
> what I would do is just set up a simple view to return a http response
> saying "working", and map that to the root.  Something like
>
> app/views
>
> def index(request):
> return HttpResponse("Working!")
>
> app/urls
>
> from app.views import index
> urlpatterns = [
> path('', index),
> ]
>
> and hit localhost.  That'll be all you need.
>
> Hi,
>> Thanks.
>> Yes, I went thru the Mozilla library tutorial on a fedora dev machine to
>> the point where I realized I needed to do more with the last mile, so to
>> speak working on setup of the production server part on Windows and wamp.
>> Seems most tuts end at manage.py runserver, or start into deployment from
>> dev to production.  I can't seem to locate a good uptodate tut for wamp
>> that shows how to test everything is working properly in a simple manner
>> for the wsgi part.
>>
>> I'm just trying to verify the plumbing (httpd.conf, settings.py wsgi.py)
>> is working with apache, before spending too much more time building a site.
>>
>>
>> On Sat, Jun 30, 2018 at 2:54 AM, Jason  wrote:
>>
>>> appreciate the detailed report :-)
>>>
>>> so, have you set up the django tutorial project?  that application
>>> method in wsgi doesn't make any sense.  you should have urls and views set
>>> up in your project
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/django-users/-eJaLuJ85KE/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/6d241c04-55be-4524-959e-09630a7bc21f%40googlegroups.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/-eJaLuJ85KE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/6f5e5996-a85e-4eb6-b5e4-804f7379a2b4%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALWZDaNY4miqCqxy%3DLvH4417%3DP4XGOuHAOepCBT2tPpg0wqkrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django windows apache tell if apache is working

2018-07-02 Thread Bob Bobsled
Hi,
I'm still stuck on getting Apache to verify as working with wsgi.
Wondering what I might be doing incorrectly.
I'm reading lots of tuts, but it's a jungle out there.

I changed the folder hierarchy for the project and app so
venv, django_project, and  django_app are all on the same level as manage.py
thus:
c:/wamp/www-src/django_project
c:/wamp/www-src/django_app
c:/wamp/www-src/venev
c:/wamp/www-src/manage.py

In wamp create folder named www-src alongside the www folder.
cd into www-src.

created a virtual environment:
Inside www-src run > virtualenv venv

ACTIVATE and DEACTIVATE:

then activate by
> venv\Scripts\activate

if that works see (venv) as a prefix to the command line.  To deactivate
type:
>venv\Scripts\deactivate.bat.
...or can also just use
(venv) c:\wamp\www-src >deactivate
-

DJANGO PROJECT, APP, and VENV:
Then with the virtual environment active, install Django with the local
instance of pip by typing: >pip install django

then created a new django project >python django-admin.py startproject
django_project

and on the same level as manage.py type
>django-admin.py startapp django_app

Should have django_app folder, django_project folder, venv folder, and
manage.py all on the same level.

SETUP SQLITE DATABASE:

in the top level folder (the one with manage.py in it), type this in:
> python manage.py migrate


START RUNSERVER:
> python manage.py runserver

see success...so far.
-
Trying to get Apache production server working...

SETUP STATIC files location:

in settings.py

SETTINGS.PY:

in settings.py change STATIC_URL to:

STATIC_URL = os.path.join(BASE_DIR, "static/")

...also set
STATIC_ROOT = os.path.join(BASE_DIR, "static/")

then run
>(venv) c:\wamp\www-src>manage.py collectstatic

(should see new static dir under www-src)
---

MIGRATIONS:

then from c:\wamp\www-src run
(venv) c:\wamp\www-src >manage.py makemigrations
then
(venv) c:\wamp\www-src >manage.py migrate

SETTINGS.PY

in settings.py change STATIC_URL to:

STATIC_URL = os.path.join(BASE_DIR, "static/")

...also set
STATIC_ROOT = os.path.join(BASE_DIR, "static/")

then run
>(venv) c:\wamp\www-src>manage.py collectstatic

(should see new static dir under www-src)
--
...per Jason's suggestion for simple view and url...

in DJANGO_APP/VIEWS.PY

def index(request):
return HttpResponse("Working!")

--
in DJANGO_APP/URLS.PY

from django_app.views import index
urlpatterns = [
path('', index),
]

-
APACHE HTTPD.CONF

#---mod_wgi-express config for location in python ---
LoadFile
"c:/users/administrator/appdata/local/programs/python/python36-32/python36.dll"
LoadModule wsgi_module
"c:/users/administrator/appdata/local/programs/python/python36-32/lib/site-packages/mod_wsgi/server/mod_wsgi.cp36-win32.pyd"

WSGIPythonHome
"c:/users/administrator/appdata/local/programs/python/python36-32"
WSGIScriptAlias /django-project "C:/wamp/www-src/django_project/wsgi.py"
#WSGIPythonPath
"C:/wamp/www-src/django_project/:C:/wamp/www-src/venv/Lib/site-packages"
WSGIPythonPath "C:/wamp/www-src:C:/wamp/www-src/venv/Lib/site-packages"



Order deny,allow
Require all granted




APACHE HTTPD-VHOSTS.CONF


ServerName localhost
ServerAlias localhost
DocumentRoot c:/wamp/www

Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
Require all granted




Alias /static c:/wamp/www-src/static

Require all granted



---

restart APACHE

...but what is the correct URL to test here?

tried localhost:8000 all pointing to various folders but nothing connects
so far.



On Sat, Jun 30, 2018 at 10:08 AM, Jason  wrote:

> I meant the tutorial at https://docs.djangoproject.
> com/en/2.0/intro/tutorial01/
>
> That said, there's a few different ways you can actually deploy, but
> digitalocean has some good resources for starting out.
>
> https://www.digitalocean.com/community/tutorials/how-to-
> serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
>
> This one shows how to use apache on ubuntu, and you should be able to
> extrapolate to use wamp.
>
> what I would do is just set up a simple view to return a http response
> saying "working", and map that to the root.  Something like
>
> app/views
>
> def index(request):
> return HttpResponse("Working!")
>
> app/urls
>
> from app.views import index
> urlpatterns = [
> path('', index),
> ]
>
> and hit localhost.  That'll be all you need.
>
> Hi,
>> Thanks.
>> Yes, I went thru the Mozilla library tutorial on a fedora dev machine to
>> the point where I realized I needed to do more with the last mile, so to
>> speak working on setup of the production server part on Windows and wamp.
>> Seems most tuts end at manage.py runserver, or start into deployment from
>> dev to production.  I can't seem to locate a good uptodate tut 

Re: django windows apache tell if apache is working

2018-06-30 Thread Jason
I meant the tutorial at 
https://docs.djangoproject.com/en/2.0/intro/tutorial01/

That said, there's a few different ways you can actually deploy, but 
digitalocean has some good resources for starting out.

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04

This one shows how to use apache on ubuntu, and you should be able to 
extrapolate to use wamp.

what I would do is just set up a simple view to return a http response 
saying "working", and map that to the root.  Something like 

app/views

def index(request):
return HttpResponse("Working!")

app/urls

from app.views import index
urlpatterns = [
path('', index), 
]

and hit localhost.  That'll be all you need.

Hi,
> Thanks.
> Yes, I went thru the Mozilla library tutorial on a fedora dev machine to 
> the point where I realized I needed to do more with the last mile, so to 
> speak working on setup of the production server part on Windows and wamp.
> Seems most tuts end at manage.py runserver, or start into deployment from 
> dev to production.  I can't seem to locate a good uptodate tut for wamp 
> that shows how to test everything is working properly in a simple manner 
> for the wsgi part.
>
> I'm just trying to verify the plumbing (httpd.conf, settings.py wsgi.py) 
> is working with apache, before spending too much more time building a site. 
>  
>
> On Sat, Jun 30, 2018 at 2:54 AM, Jason > 
> wrote:
>
>> appreciate the detailed report :-)
>>
>> so, have you set up the django tutorial project?  that application method 
>> in wsgi doesn't make any sense.  you should have urls and views set up in 
>> your project
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/django-users/-eJaLuJ85KE/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/6d241c04-55be-4524-959e-09630a7bc21f%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6f5e5996-a85e-4eb6-b5e4-804f7379a2b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django windows apache tell if apache is working

2018-06-30 Thread Bob Bobsled
Hi,
Thanks.
Yes, I went thru the Mozilla library tutorial on a fedora dev machine to
the point where I realized I needed to do more with the last mile, so to
speak working on setup of the production server part on Windows and wamp.
Seems most tuts end at manage.py runserver, or start into deployment from
dev to production.  I can't seem to locate a good uptodate tut for wamp
that shows how to test everything is working properly in a simple manner
for the wsgi part.

I'm just trying to verify the plumbing (httpd.conf, settings.py wsgi.py) is
working with apache, before spending too much more time building a site.

On Sat, Jun 30, 2018 at 2:54 AM, Jason  wrote:

> appreciate the detailed report :-)
>
> so, have you set up the django tutorial project?  that application method
> in wsgi doesn't make any sense.  you should have urls and views set up in
> your project
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/-eJaLuJ85KE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/6d241c04-55be-4524-959e-09630a7bc21f%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALWZDaPoCygU8hSSYcsEpQnHGE%2B52EUxAyOko3kPRhR12t6HCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django windows apache tell if apache is working

2018-06-30 Thread Jason
appreciate the detailed report :-)

so, have you set up the django tutorial project?  that application method 
in wsgi doesn't make any sense.  you should have urls and views set up in 
your project

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6d241c04-55be-4524-959e-09630a7bc21f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django with apache and php

2017-11-30 Thread Jason
you'll need to set up a virtual conf file.  
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/modwsgi/ has 
good directions.

You can have it run on the same port, just set the URL path differently to 
point to django.  Eg, using the Alias directive 



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/81437d8c-ea33-4eb8-8ca8-83f0e21cf4f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django deployement Apache

2017-10-19 Thread sarfaraz ahmed
Thanks you all you friends.. this is been fixed.


On Thursday, 31 August 2017 14:47:05 UTC+5:30, Antonis Christofides wrote:
>
> Did you run collectstatic? After you do so, the files will be copied to 
> /var/www/static_root or whatever your STATIC_ROOT points to.
>
> Some other notes:
>
>- You normally don't need to touch STATICFILES_DIRS at all. 
>- The value os.path.join(os.path.dirname(BASE_DIR), 'static_root') is 
>a bad idea for production. On development it may be OK, but in production 
>you'd better specify the full path, such as '/var/www/static_root'. 
>- You don't need to specify both "Alias /static/admin" and "Alias 
>/static". Just the second one will do. "Alias /static 
> /var/www/static_root" 
>and that's it. 
>
> Regards,
>
> Antonis
>
> Antonis Christofideshttp://djangodeployment.com
>
> On 2017-08-30 21:58, sarfaraz ahmed wrote:
>
> Thanks Antonis,
>
> I reached your website googling undoubtedly this is well explained. I have 
> been able to deploy but here is my problem
>
> STATIC_URL = '/static/'
> MEDIA_URL = '/media/'
>
>
> STATICFILES_DIRS = [os.path.join(BASE_DIR, 
> "static"),os.path.join(BASE_DIR,"static","admin")]
> STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR),'static_root')
> MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR),'media_root')
>
> This is my settings in settingss.py 
>
> Here is my vhost.conf files
>
> WSGIPythonHome /usr/local/lib/python2.7/dist-packages
>
>
> WSGIPythonPath /var/www/firsttest
>
> 
> ServerName firsttest.com
> ServerAlias www.firsttest.com
> ServerAdmin webmaster@localhost
>
> WSGIScriptAlias / /var/www/firsttest/firsttest/wsgi.py
>
> ErrorLog   /var/log/apache2/firsttest/first_error.log
> CustomLog   /var/log/apache2/firsttest/first_access.log combined
> Alias */static/admin /var/www/firsttest/static/admin*
> 
> Require all granted
> 
>
> Alias /static  */var/www/firsttest/static*
> 
> Require all granted
> 
>
> 
> 
> Require all granted
> 
> 
> 
>
> Now with this conf file everything works fine. CSS, js all works fine. 
> However, you notice the conf file marked in red. its not actually pointing 
> to my static_root folder which in settings defined as 
> /var/www/static_root
>
> static root is one which gathers all my static files when I run collect 
> static
>
> if I understand correctly from documentation. Web server should point to 
> static root folder to access css files in production. 
>
> Regards,
> Sarfaraz Ahmed
>
>
>  
>
> On Wednesday, 30 August 2017 13:44:35 UTC+5:30, Antonis Christofides 
> wrote: 
>>
>> Hello Sarfaraz,
>>
>> You could try "How Django static files work in production 
>> "
>>  
>> to get some understanding of the correct way to do it.
>>
>> Regards,
>>
>> Antonis
>>
>> Antonis Christofideshttp://djangodeployment.com
>>
>> On 2017-08-28 06:17, sarfaraz ahmed wrote:
>>
>> Thanks for your help. Yes it was permission issue. However I am not able 
>> to find anything under my site-packages. when I point the same to 
>> dist-packages it works. 
>>
>> WSGIPythonHome /usr/local/lib/python2.7/dist-packages
>> WSGIPythonPath /var/www/firsttest
>>
>> 
>> ServerName firsttest.com
>> ServerAlias www.firsttest.com
>> ServerAdmin webmaster@localhost
>>
>> WSGIScriptAlias / /var/www/firsttest/firsttest/wsgi.py
>>
>> ErrorLog   /var/log/apache2/firsttest/first_error.log
>> CustomLog   /var/log/apache2/firsttest/first_access.log combined
>> Alias /static/admin/ 
>> /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/
>> Alias /static/ /var/www/firsttest/static
>> 
>> 
>> Require all granted
>> 
>> 
>> 
>>
>> -
>>
>>
>> This is my new conf file and it works. However I am still not able to see 
>> my static files in admin. Any help would be appreciated.
>>
>>
>> Regards
>> Sarfaraz
>>
>> On Sunday, 27 August 2017 10:57:12 UTC+5:30, Vernon Swanepoel wrote: 
>>>
>>> Hello Sarfaraz, 
>>>
>>> A couple things you could look at:
>>>
>>>1. Are you including both your site-packages (eg 
>>>python3.6/lib/site-packages) and your django project root (where you 
>>>actually built the project) in your WSGIPythonPath?  String them 
>>> together 
>>>with a clone 
>>>(/path/to/python3.6/lib/site-packages:/path/to/django/project/myproject) 
>>>2. Your wsgi is within your django app 
>>>(/path/to/django/project/myproject/myproject/wsgi...).  It sits in the 
>>> same 
>>>file as your settings.py.  Make sure it's pointing to the right place, 
>>>because in your examples above your directory for django and your 

Re: Django deployement Apache

2017-08-30 Thread sarfaraz ahmed
Thanks Antonis,

I reached your website googling undoubtedly this is well explained. I have 
been able to deploy but here is my problem

STATIC_URL = '/static/'
MEDIA_URL = '/media/'


STATICFILES_DIRS = [os.path.join(BASE_DIR, 
"static"),os.path.join(BASE_DIR,"static","admin")]
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR),'static_root')
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR),'media_root')

This is my settings in settingss.py 

Here is my vhost.conf files

WSGIPythonHome /usr/local/lib/python2.7/dist-packages


WSGIPythonPath /var/www/firsttest


ServerName firsttest.com
ServerAlias www.firsttest.com
ServerAdmin webmaster@localhost

WSGIScriptAlias / /var/www/firsttest/firsttest/wsgi.py

ErrorLog   /var/log/apache2/firsttest/first_error.log
CustomLog   /var/log/apache2/firsttest/first_access.log combined
Alias */static/admin /var/www/firsttest/static/admin*

Require all granted


Alias /static  */var/www/firsttest/static*

Require all granted




Require all granted




Now with this conf file everything works fine. CSS, js all works fine. 
However, you notice the conf file marked in red. its not actually pointing 
to my static_root folder which in settings defined as 
/var/www/static_root

static root is one which gathers all my static files when I run collect 
static

if I understand correctly from documentation. Web server should point to 
static root folder to access css files in production. 

Regards,
Sarfaraz Ahmed


 

On Wednesday, 30 August 2017 13:44:35 UTC+5:30, Antonis Christofides wrote:
>
> Hello Sarfaraz,
>
> You could try "How Django static files work in production 
> "
>  
> to get some understanding of the correct way to do it.
>
> Regards,
>
> Antonis
>
> Antonis Christofideshttp://djangodeployment.com
>
> On 2017-08-28 06:17, sarfaraz ahmed wrote:
>
> Thanks for your help. Yes it was permission issue. However I am not able 
> to find anything under my site-packages. when I point the same to 
> dist-packages it works. 
>
> WSGIPythonHome /usr/local/lib/python2.7/dist-packages
> WSGIPythonPath /var/www/firsttest
>
> 
> ServerName firsttest.com
> ServerAlias www.firsttest.com
> ServerAdmin webmaster@localhost
>
> WSGIScriptAlias / /var/www/firsttest/firsttest/wsgi.py
>
> ErrorLog   /var/log/apache2/firsttest/first_error.log
> CustomLog   /var/log/apache2/firsttest/first_access.log combined
> Alias /static/admin/ 
> /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/
> Alias /static/ /var/www/firsttest/static
> 
> 
> Require all granted
> 
> 
> 
>
> -
>
>
> This is my new conf file and it works. However I am still not able to see 
> my static files in admin. Any help would be appreciated.
>
>
> Regards
> Sarfaraz
>
> On Sunday, 27 August 2017 10:57:12 UTC+5:30, Vernon Swanepoel wrote: 
>>
>> Hello Sarfaraz, 
>>
>> A couple things you could look at:
>>
>>1. Are you including both your site-packages (eg 
>>python3.6/lib/site-packages) and your django project root (where you 
>>actually built the project) in your WSGIPythonPath?  String them together 
>>with a clone 
>>(/path/to/python3.6/lib/site-packages:/path/to/django/project/myproject) 
>>2. Your wsgi is within your django app 
>>(/path/to/django/project/myproject/myproject/wsgi...).  It sits in the 
>> same 
>>file as your settings.py.  Make sure it's pointing to the right place, 
>>because in your examples above your directory for django and your 
>> directory 
>>for the wsgi don't match. 
>>3. Have you set execute permissions all the way down the django app 
>>(using chmod +x /all/the/way/up/the/django/project/to/wsgi.py) 
>>
>> Deploying the first time is a frustrating process, and it's hard to get 
>> specific help because nobody knows exactly what you've got running, but if 
>> you stick with it, you'll get it working.
>>
>> Regards,
>> Vernon
>>
>> On Saturday, 26 August 2017 21:31:34 UTC+1, sarfaraz ahmed wrote: 
>>>
>>> Hey Team,
>>>
>>> Please someone help.
>>> I am still getting error
>>>
>>> * ImportError: No module named django.core.wsgi *mentioned below is my 
>>> latest vhost file in ubuntu. 
>>>
>>> 
>>> WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>>> ServerName firstweb.com
>>>
>>> ServerAlias www.firstweb.com
>>> 
>>> 
>>> Require all granted
>>> 
>>> 
>>> CustomLog /var/log/apache2/firstweb-access.log combined
>>> ErrorLog 

Re: Django deployement Apache

2017-08-30 Thread Antonis Christofides
Hello Sarfaraz,

You could try "How Django static files work in production
"
to get some understanding of the correct way to do it.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com

On 2017-08-28 06:17, sarfaraz ahmed wrote:
> Thanks for your help. Yes it was permission issue. However I am not able to
> find anything under my site-packages. when I point the same to dist-packages
> it works.
>
> WSGIPythonHome /usr/local/lib/python2.7/dist-packages
> WSGIPythonPath /var/www/firsttest
>
> 
>     ServerName firsttest.com
>     ServerAlias www.firsttest.com
>     ServerAdmin webmaster@localhost
>
>     WSGIScriptAlias / /var/www/firsttest/firsttest/wsgi.py
>
>     ErrorLog   /var/log/apache2/firsttest/first_error.log
>     CustomLog   /var/log/apache2/firsttest/first_access.log combined
>     Alias /static/admin/
> /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/
>     Alias /static/ /var/www/firsttest/static
>     
>     
>     Require all granted
>     
>     
> 
> -
>
>
> This is my new conf file and it works. However I am still not able to see my
> static files in admin. Any help would be appreciated.
>
>
> Regards
> Sarfaraz
>
> On Sunday, 27 August 2017 10:57:12 UTC+5:30, Vernon Swanepoel wrote:
>
> Hello Sarfaraz,
>
> A couple things you could look at:
>
>  1. Are you including both your site-packages (eg
> python3.6/lib/site-packages) and your django project root (where you
> actually built the project) in your WSGIPythonPath?  String them
> together with a clone
> 
> (/path/to/python3.6/lib/site-packages:/path/to/django/project/myproject)
>  2. Your wsgi is within your django app
> (/path/to/django/project/myproject/myproject/wsgi...).  It sits in the
> same file as your settings.py.  Make sure it's pointing to the right
> place, because in your examples above your directory for django and
> your directory for the wsgi don't match.
>  3. Have you set execute permissions all the way down the django app
> (using chmod +x /all/the/way/up/the/django/project/to/wsgi.py)
>
> Deploying the first time is a frustrating process, and it's hard to get
> specific help because nobody knows exactly what you've got running, but if
> you stick with it, you'll get it working.
>
> Regards,
> Vernon
>
> On Saturday, 26 August 2017 21:31:34 UTC+1, sarfaraz ahmed wrote:
>
> Hey Team,
>
> Please someone help.
> I am still getting error*ImportError: No module named django.core.wsgi
>
> *mentioned below is my latest vhost file in ubuntu.
>
> 
>     WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>     ServerName firstweb.com 
>
>     ServerAlias www.firstweb.com 
>     
>     
>     Require all granted
>     
>     
>     CustomLog /var/log/apache2/firstweb-access.log combined
>     ErrorLog /var/log/apache2/firstweb-error.log
> 
>
> Earlier I missed WSGIScriptAlias argument.
>
> Regards,
> Sarfaraz Ahmed
>
>
>
> On Saturday, 26 August 2017 20:02:47 UTC+5:30, sarfaraz ahmed wrote:
>
> Hello Friends,
>
> Please help me with this.
>
> I am new to linux and I am attempting to deploy my trial app on
> AWS ubuntu server.
>
> my vhost file looks like this
> 
>     WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>
>    WSGIPythonPath /var/www/firstweb
>     ServerName firstweb.com 
>
>     ServerAlias www.firstweb.com 
>     
>     
>     Require all granted
>     
>     
> 
>
> now when I add WSGIPythonPath.. my apache fails to restart.
>
> If I remove that that I get following error when I try to access
> this from my computer.
> ImportError: No module named django.core.wsgi
>
> Now, I searched on the web and found following link
> https://www.webforefront.com/django/setupapachewebserverwsgi.html
> 
> 
>  
> which has some solution which I am not able to understand so far.
>
> after wasting my time in attempting to deploy on windows server.
>   

Re: Django deployement Apache

2017-08-29 Thread Daniel Roseman
On Tuesday, 29 August 2017 05:48:57 UTC+1, Vernon Swanepoel wrote:
>
> You can just copy the static files out of Django and into the static files 
> in your project itself.


No. You should absolutely not do that. That is what the `collectstatic` 
command is for.
--
DR. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d1503e9c-388e-4a2c-92b7-b6e87ae9933a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django deployement Apache

2017-08-28 Thread Vernon Swanepoel
You can just copy the static files out of Django and into the static files in 
your project itself.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d8a9ded1-6956-4293-a355-dc25d16cdca0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django deployement Apache

2017-08-27 Thread sarfaraz ahmed
Thanks for your help. Yes it was permission issue. However I am not able to 
find anything under my site-packages. when I point the same to 
dist-packages it works. 

WSGIPythonHome /usr/local/lib/python2.7/dist-packages
WSGIPythonPath /var/www/firsttest


ServerName firsttest.com
ServerAlias www.firsttest.com
ServerAdmin webmaster@localhost

WSGIScriptAlias / /var/www/firsttest/firsttest/wsgi.py

ErrorLog   /var/log/apache2/firsttest/first_error.log
CustomLog   /var/log/apache2/firsttest/first_access.log combined
Alias /static/admin/ 
/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/
Alias /static/ /var/www/firsttest/static


Require all granted



-


This is my new conf file and it works. However I am still not able to see 
my static files in admin. Any help would be appreciated.


Regards
Sarfaraz

On Sunday, 27 August 2017 10:57:12 UTC+5:30, Vernon Swanepoel wrote:
>
> Hello Sarfaraz,
>
> A couple things you could look at:
>
>1. Are you including both your site-packages (eg 
>python3.6/lib/site-packages) and your django project root (where you 
>actually built the project) in your WSGIPythonPath?  String them together 
>with a clone 
>(/path/to/python3.6/lib/site-packages:/path/to/django/project/myproject)
>2. Your wsgi is within your django app 
>(/path/to/django/project/myproject/myproject/wsgi...).  It sits in the 
> same 
>file as your settings.py.  Make sure it's pointing to the right place, 
>because in your examples above your directory for django and your 
> directory 
>for the wsgi don't match.
>3. Have you set execute permissions all the way down the django app 
>(using chmod +x /all/the/way/up/the/django/project/to/wsgi.py)
>
> Deploying the first time is a frustrating process, and it's hard to get 
> specific help because nobody knows exactly what you've got running, but if 
> you stick with it, you'll get it working.
>
> Regards,
> Vernon
>
> On Saturday, 26 August 2017 21:31:34 UTC+1, sarfaraz ahmed wrote:
>>
>> Hey Team,
>>
>> Please someone help.
>> I am still getting error
>>
>> * ImportError: No module named django.core.wsgi*mentioned below is my 
>> latest vhost file in ubuntu. 
>>
>> 
>> WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>> ServerName firstweb.com
>>
>> ServerAlias www.firstweb.com
>> 
>> 
>> Require all granted
>> 
>> 
>> CustomLog /var/log/apache2/firstweb-access.log combined
>> ErrorLog /var/log/apache2/firstweb-error.log
>> 
>>
>> Earlier I missed WSGIScriptAlias argument.
>>
>> Regards,
>> Sarfaraz Ahmed
>>
>>
>>
>> On Saturday, 26 August 2017 20:02:47 UTC+5:30, sarfaraz ahmed wrote:
>>>
>>> Hello Friends,
>>>
>>> Please help me with this. 
>>>
>>> I am new to linux and I am attempting to deploy my trial app on AWS 
>>> ubuntu server.
>>>
>>> my vhost file looks like this 
>>> 
>>> WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>>>
>>> WSGIPythonPath /var/www/firstweb
>>> ServerName firstweb.com
>>>
>>> ServerAlias www.firstweb.com
>>> 
>>> 
>>> Require all granted
>>> 
>>> 
>>> 
>>>
>>> now when I add WSGIPythonPath.. my apache fails to restart. 
>>>
>>> If I remove that that I get following error when I try to access this 
>>> from my computer. 
>>> ImportError: No module named django.core.wsgi
>>>
>>> Now, I searched on the web and found following link
>>> https://www.webforefront.com/django/setupapachewebserverwsgi.html
>>>  
>>> which has some solution which I am not able to understand so far.
>>>
>>> after wasting my time in attempting to deploy on windows server. 
>>> everyone suggested me to deploy on linux.
>>>
>>> I M NOT USING virualenv. 
>>>
>>> Thanks in advance. 
>>>
>>> Regards,
>>> Sarfaraz Ahmed
>>>
>>>
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/17bd4194-0ad2-495d-9281-e23383c28fa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django deployement Apache

2017-08-26 Thread Vernon Swanepoel
Hello Sarfaraz,

A couple things you could look at:

   1. Are you including both your site-packages (eg 
   python3.6/lib/site-packages) and your django project root (where you 
   actually built the project) in your WSGIPythonPath?  String them together 
   with a clone 
   (/path/to/python3.6/lib/site-packages:/path/to/django/project/myproject)
   2. Your wsgi is within your django app 
   (/path/to/django/project/myproject/myproject/wsgi...).  It sits in the same 
   file as your settings.py.  Make sure it's pointing to the right place, 
   because in your examples above your directory for django and your directory 
   for the wsgi don't match.
   3. Have you set execute permissions all the way down the django app 
   (using chmod +x /all/the/way/up/the/django/project/to/wsgi.py)

Deploying the first time is a frustrating process, and it's hard to get 
specific help because nobody knows exactly what you've got running, but if 
you stick with it, you'll get it working.

Regards,
Vernon

On Saturday, 26 August 2017 21:31:34 UTC+1, sarfaraz ahmed wrote:
>
> Hey Team,
>
> Please someone help.
> I am still getting error
>
> * ImportError: No module named django.core.wsgi*mentioned below is my 
> latest vhost file in ubuntu. 
>
> 
> WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
> ServerName firstweb.com
>
> ServerAlias www.firstweb.com
> 
> 
> Require all granted
> 
> 
> CustomLog /var/log/apache2/firstweb-access.log combined
> ErrorLog /var/log/apache2/firstweb-error.log
> 
>
> Earlier I missed WSGIScriptAlias argument.
>
> Regards,
> Sarfaraz Ahmed
>
>
>
> On Saturday, 26 August 2017 20:02:47 UTC+5:30, sarfaraz ahmed wrote:
>>
>> Hello Friends,
>>
>> Please help me with this. 
>>
>> I am new to linux and I am attempting to deploy my trial app on AWS 
>> ubuntu server.
>>
>> my vhost file looks like this 
>> 
>> WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>>
>> WSGIPythonPath /var/www/firstweb
>> ServerName firstweb.com
>>
>> ServerAlias www.firstweb.com
>> 
>> 
>> Require all granted
>> 
>> 
>> 
>>
>> now when I add WSGIPythonPath.. my apache fails to restart. 
>>
>> If I remove that that I get following error when I try to access this 
>> from my computer. 
>> ImportError: No module named django.core.wsgi
>>
>> Now, I searched on the web and found following link
>> https://www.webforefront.com/django/setupapachewebserverwsgi.html
>>  
>> which has some solution which I am not able to understand so far.
>>
>> after wasting my time in attempting to deploy on windows server. everyone 
>> suggested me to deploy on linux.
>>
>> I M NOT USING virualenv. 
>>
>> Thanks in advance. 
>>
>> Regards,
>> Sarfaraz Ahmed
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/881927b4-dd3a-4ac5-a249-b13db46d6dd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django deployement Apache

2017-08-26 Thread sarfaraz ahmed
Hey Team,

Please someone help.
I am still getting error

* ImportError: No module named django.core.wsgi*mentioned below is my 
latest vhost file in ubuntu. 


WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
ServerName firstweb.com

ServerAlias www.firstweb.com


Require all granted


CustomLog /var/log/apache2/firstweb-access.log combined
ErrorLog /var/log/apache2/firstweb-error.log


Earlier I missed WSGIScriptAlias argument.

Regards,
Sarfaraz Ahmed



On Saturday, 26 August 2017 20:02:47 UTC+5:30, sarfaraz ahmed wrote:
>
> Hello Friends,
>
> Please help me with this. 
>
> I am new to linux and I am attempting to deploy my trial app on AWS ubuntu 
> server.
>
> my vhost file looks like this 
> 
> WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>
> WSGIPythonPath /var/www/firstweb
> ServerName firstweb.com
>
> ServerAlias www.firstweb.com
> 
> 
> Require all granted
> 
> 
> 
>
> now when I add WSGIPythonPath.. my apache fails to restart. 
>
> If I remove that that I get following error when I try to access this from 
> my computer. 
> ImportError: No module named django.core.wsgi
>
> Now, I searched on the web and found following link
> https://www.webforefront.com/django/setupapachewebserverwsgi.html
>  
> which has some solution which I am not able to understand so far.
>
> after wasting my time in attempting to deploy on windows server. everyone 
> suggested me to deploy on linux.
>
> I M NOT USING virualenv. 
>
> Thanks in advance. 
>
> Regards,
> Sarfaraz Ahmed
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/94766b53-7500-4b9a-9a82-fc99f5af3e8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django deployement Apache

2017-08-26 Thread sarfaraz ahmed

i have made following changes in my vhost conf file and now services run. 
Also, I don't see any error. But instead of default django page I get 
default apache page.

Here is my new conf file.
-

ServerName firstweb.com
ServerAlias www.firstweb.com


Require all granted





--

I checked for error. I don't see any error. 

Please help


On Saturday, 26 August 2017 20:02:47 UTC+5:30, sarfaraz ahmed wrote:
>
> Hello Friends,
>
> Please help me with this. 
>
> I am new to linux and I am attempting to deploy my trial app on AWS ubuntu 
> server.
>
> my vhost file looks like this 
> 
> WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py
>
> WSGIPythonPath /var/www/firstweb
> ServerName firstweb.com
>
> ServerAlias www.firstweb.com
> 
> 
> Require all granted
> 
> 
> 
>
> now when I add WSGIPythonPath.. my apache fails to restart. 
>
> If I remove that that I get following error when I try to access this from 
> my computer. 
> ImportError: No module named django.core.wsgi
>
> Now, I searched on the web and found following link
> https://www.webforefront.com/django/setupapachewebserverwsgi.html
>  
> which has some solution which I am not able to understand so far.
>
> after wasting my time in attempting to deploy on windows server. everyone 
> suggested me to deploy on linux.
>
> I M NOT USING virualenv. 
>
> Thanks in advance. 
>
> Regards,
> Sarfaraz Ahmed
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cecafa96-463b-4314-97ce-581ef0e89d82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django on apache server

2016-08-18 Thread Asad Jibran Ahmed
Not being able to load CSS points to an Apache config issue. Did you setup 
apache so your static root configured to serve files from your static 
folder? Your apache config might be helpful here.

Also, what you have pasted here seems like a warning, so while you should 
fix it, this is probably not the cause of your CSS loading error.

On Thursday, August 18, 2016 at 3:44:14 PM UTC+4, hirok biswas wrote:
>
> while i have configuring django app on apchhe basically it works almost 
> well but shows this error log and css not work
> what can i do now???
> i am using 
> #apache2
> #django 1.9.6
> `
> [Wed Aug 17 14:54:12.747345 2016] [wsgi:error] [pid 17910:tid 
> 139970848413440] 
> /home/hirok/apachetest/venv/lib/python2.7/site-packages/django/template/utils.py:37:
>  
> RemovedInDjango110Warning: You haven't defined a TEMPLATES setting. You 
> must do so before upgrading to Django 1.10. Otherwise Django will be unable 
> to load templates.
> [Wed Aug 17 14:54:12.747414 2016] [wsgi:error] [pid 17910:tid 
> 139970848413440]   "unable to load templates.", RemovedInDjango110Warning)
> [Wed Aug 17 14:54:12.747423 2016] [wsgi:error] [pid 17910:tid 
> 139970848413440] 
> `
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/13c18a07-aedb-4560-b10b-bc21ac54de0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django, mod_wsgi, apache and sharing media files (video) from a separate directory

2014-04-20 Thread Ramón Carrillo
Hi Adam,

>From your settings.py I guess the expanded url is something like
/PROYECTOS/file.xyz, right?

But, in your Apache alias your are serving the url /proyectos/ [0],
and urls are case sensitive unless you're using mod_speling [1].

I think "Alias /PROYECTOS/ /PROYECTOS/" should do the trick.

[0] http://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias
[1] http://httpd.apache.org/docs/2.4/mod/mod_speling.html

On Sun, Apr 20, 2014 at 9:19 AM, Adam Teale  wrote:
> Hi Guys,
>
>
> I am building a django app that runs out of my /Users/me/Dropbox directory.
>
>
> Localhost is pointed at my /Users/me/Sites directory.
>
>
> mod_wsgi installed.
>
> apache installed
>
> django installed and app working fine in development mode
>
>
> I am trying to embed media in a template
>
> This media comes from a directory outside of the django app - in the root of
> the machine - /PROYECTOS
>
>
> The permissions for the directories and preceding directories are readable
> by _www
>
>
> I think that I understand that
>
> - mod_wsgi will serve the dynamic files
>
> - apache will serve the static files like the css and template files, as
> well as the media files I am referencing in the /PROYECTOS directory
>
>
> I have the following in my settings.py:
>
> STATICFILES_DIRS = (os.path.join(BASE, "static"), )
>
> STATIC_URL = "/static/"
>
> MEDIA_URL = "/PROYECTOS/"
>
> WSGI_APPLICATION = 'mbrain.wsgi.application'
>
>
> In the /etc/apache2/extra/vhosts/localhost.conf I have:
>
>
> 
>
>
> DocumentRoot "/Users/me/Sites/localhost"
>
> ServerName localhost
>
>
> WSGIDaemonProcess localhost
> python-path=/Users/me/Dropbox/mBrain_Adam/mbrain/:/Users/me/Dropbox/mBrain_Adam/mbrain/venv/include/python2.7
>
> WSGIProcessGroup localhost
>
>
> Alias /proyectos/ /PROYECTOS/
>
>
> 
>
> Require all granted
>
> 
>
>
> WSGIScriptAlias / /Users/me/Dropbox/mBrain_Adam/mbrain/mbrain/wsgi.py
>
>
> 
>
> 
>
> Require all granted
>
> 
>
> 
>
>
> 
>
>
> So to embed a media file in a template I have this as the url:
>
> {{ MEDIA_URL }}{{ asset.assetPath }}
>
>
> When I load the page in a browser the console shows the fully expanded path
> for the media asset but with a 404 error - HTTP/1.1" 404 3045.
>
>
> I’d really appreciate any feedback on whether I am approaching this the
> right way or if I have completely missed the concept.
>
> Also any help on that 404 error would be appreciated.
>
>
> Cheers!
>
>
> Adam
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e6294564-01f1-449c-8cfb-e8dd474bda0b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABoKswiPe%2BJqz58zG5uiBHA%2Bha6UOuMcaXMDj9acw36LAwk1Eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django and apache

2013-05-12 Thread Venkatraman S
Set STATIC_ROOT in your settings.py and run 'collectstatic'.
You need not mention in your /static/admin
/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin in your
apache conf then.

On Mon, May 13, 2013 at 7:16 AM, Stanley Agba wrote:

> Thanks Guys,
> The server is up and running with mod_wsgi, tho the admin page is not
> loading with the static files.
> I have added this to my apache.conf file:
>  Alias /static/admin
> /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin
> Kind of stuck after this
>
>
>
> On Sunday, 12 May 2013 11:17:04 UTC+1, Stanley Agba wrote:
>>
>> Hello guys,
>> please I'm kind of a noob at django and I'm trying to deploy a django
>> site on Apache with mod_wsgi, I am not using a virtualenv as the server has
>> python installed.
>> I added the following to my /etc/apache2/apache2.conf
>>
>> 
>>ServerName example
>>ServerAlias example
>>ServerAdmin exam...@example.com
>>
>>DocumentRoot /var/www/example/static
>>WSGIScriptAlias / /var/www/example/example/wsgi.**py
>>WSGIPythonPath  /var/www/example
>>
>>
>>   Order allow,deny
>>   Allow from all
>>
>>
>>
>>Alias /head.jpg  /var/www/example/static/head.**jpg
>>Alias /media/ /var/www/example/uploads
>>Alias /static /var/www/example/static
>>
>>
>>Order deny,allow
>>Allow from all
>>
>>
>>   
>>   Order deny,allow
>>   Allow from all
>>   
>>
>>   ErrorLog /var/www/python_ng/logs/error.**log
>>   CustomLog /var/www/python_ng/logs/**access.log combined
>> 
>>
>> I got a 'WSGIPythonPath cannot be in virtual host section' error.
>> I have searched for previous topics but i have not been able to get a
>> solution, I would greatly appreciate any help.
>> Thanks
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Django and apache

2013-05-12 Thread Stanley Agba
Thanks Guys,
The server is up and running with mod_wsgi, tho the admin page is not 
loading with the static files.
I have added this to my apache.conf file:
 Alias /static/admin 
/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin
Kind of stuck after this



On Sunday, 12 May 2013 11:17:04 UTC+1, Stanley Agba wrote:
>
> Hello guys, 
> please I'm kind of a noob at django and I'm trying to deploy a django site 
> on Apache with mod_wsgi, I am not using a virtualenv as the server has 
> python installed.
> I added the following to my /etc/apache2/apache2.conf 
>
> 
>ServerName example
>ServerAlias example
>ServerAdmin exam...@example.com
>
>DocumentRoot /var/www/example/static
>WSGIScriptAlias / /var/www/example/example/wsgi.py
>WSGIPythonPath  /var/www/example
>
>
>   Order allow,deny
>   Allow from all
>
>
>
>Alias /head.jpg  /var/www/example/static/head.jpg
>Alias /media/ /var/www/example/uploads
>Alias /static /var/www/example/static
>
>
>Order deny,allow
>Allow from all
>
>
>   
>   Order deny,allow
>   Allow from all
>   
>
>   ErrorLog /var/www/python_ng/logs/error.log
>   CustomLog /var/www/python_ng/logs/access.log combined
> 
>
> I got a 'WSGIPythonPath cannot be in virtual host section' error.
> I have searched for previous topics but i have not been able to get a 
> solution, I would greatly appreciate any help.
> Thanks
>

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




Re: Django and apache

2013-05-12 Thread Venkatraman S
What i am going to suggest is totally orthogonal to your requirement as i
am not helping you with apace+mod_wsgi. Though this generally works, but i
think you should consider nginx if you are thinking about new deployments
or learning this skill.

And the reasons why i suggest nginx? Well..
1. extremely simple config file
2. my experiments showed me darn low cpu and memory consumption patterns.
...and many more that you will find on a quick web-search for 'nginx vs
apache'; but these were the primary motivators for me.

Also, i see nginx+uwsgi sits pretty well and is pretty easy to manage. I
also hear good things about gunicorn and it looks simple too. But i like
some of the features of uwsgi(like spooler) which makes me tilt towards it.

-V



On Sun, May 12, 2013 at 3:47 PM, Stanley Agba wrote:

> Hello guys,
> please I'm kind of a noob at django and I'm trying to deploy a django site
> on Apache with mod_wsgi, I am not using a virtualenv as the server has
> python installed.
> I added the following to my /etc/apache2/apache2.conf
>
> 
>ServerName example
>ServerAlias example
>ServerAdmin exam...@example.com
>
>DocumentRoot /var/www/example/static
>WSGIScriptAlias / /var/www/example/example/wsgi.py
>WSGIPythonPath  /var/www/example
>
>
>   Order allow,deny
>   Allow from all
>
>
>
>Alias /head.jpg  /var/www/example/static/head.jpg
>Alias /media/ /var/www/example/uploads
>Alias /static /var/www/example/static
>
>
>Order deny,allow
>Allow from all
>
>
>   
>   Order deny,allow
>   Allow from all
>   
>
>   ErrorLog /var/www/python_ng/logs/error.log
>   CustomLog /var/www/python_ng/logs/access.log combined
> 
>
> I got a 'WSGIPythonPath cannot be in virtual host section' error.
> I have searched for previous topics but i have not been able to get a
> solution, I would greatly appreciate any help.
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Django and apache

2013-05-12 Thread Branko Majic
On Sun, 12 May 2013 03:17:04 -0700 (PDT)
Stanley Agba  wrote:

> Hello guys, 
> please I'm kind of a noob at django and I'm trying to deploy a django
> site on Apache with mod_wsgi, I am not using a virtualenv as the
> server has python installed.
> I added the following to my /etc/apache2/apache2.conf 
> 
> 
>ServerName example
>ServerAlias example
>ServerAdmin exam...@example.com
> 
>DocumentRoot /var/www/example/static
>WSGIScriptAlias / /var/www/example/example/wsgi.py
>WSGIPythonPath  /var/www/example
>
>
>   Order allow,deny
>   Allow from all
>
>
> 
>Alias /head.jpg  /var/www/example/static/head.jpg
>Alias /media/ /var/www/example/uploads
>Alias /static /var/www/example/static
> 
>
>Order deny,allow
>Allow from all
>
> 
>   
>   Order deny,allow
>   Allow from all
>   
> 
>   ErrorLog /var/www/python_ng/logs/error.log
>   CustomLog /var/www/python_ng/logs/access.log combined
> 
> 
> I got a 'WSGIPythonPath cannot be in virtual host section' error.
> I have searched for previous topics but i have not been able to get a 
> solution, I would greatly appreciate any help.
> Thanks

The WSGIPyhtonPath must be moved outside of the 
configuration directive. I.e. it must be in the "root" of Apache
configuration. For example, this would work:

%
WSGIPythonPath  /var/www/example

   ServerName example
   ServerAlias example
   ServerAdmin exam...@example.com

   DocumentRoot /var/www/example/static
   WSGIScriptAlias / /var/www/example/example/wsgi.py
   
   
  Order allow,deny
  Allow from all
   
   

   Alias /head.jpg  /var/www/example/static/head.jpg
   Alias /media/ /var/www/example/uploads
   Alias /static /var/www/example/static

   
   Order deny,allow
   Allow from all
   

  
  Order deny,allow
  Allow from all
  

  ErrorLog /var/www/python_ng/logs/error.log
  CustomLog /var/www/python_ng/logs/access.log combined

%

Keep in mind that setting the path in this way means it gets set like
that for _all_ mod_wsgi apps you might have. Most people therefore use
a bit different solution where they set-up the Python path within the
wsgi.py instead (if you want to host multiple independent
Django projects).

Best regards

-- 
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.


signature.asc
Description: PGP signature


Re: Django con Apache

2012-05-14 Thread Segundo Acosta Delgado
Ok, lo pruebo rápido!!!

El lunes, 14 de mayo de 2012 08:13:55 UTC-5, kmox83 escribió:
>
> Hi,
>
> you can find a nice tutorial here 
> http://projects.unbit.it/uwsgi/wiki/Example
>
> Eugenio
>
> On Mon, May 14, 2012 at 3:09 PM, Segundo Acosta Delgado 
> wrote:
>
>> Holas developers!! , tengo un centOs 6.2 y quiero hacer correr Django con 
>> apache, django corre sin problemas pero al intentar usarlo con fastcgi para 
>> apache no leventa la página, alguna solución ?? 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/oJtPPF4sHaMJ.
>> 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.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/9KNXnsb65QUJ.
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.



Re: Django con Apache

2012-05-14 Thread Eugenio Minardi
Hi,

you can find a nice tutorial here
http://projects.unbit.it/uwsgi/wiki/Example

Eugenio

On Mon, May 14, 2012 at 3:09 PM, Segundo Acosta Delgado wrote:

> Holas developers!! , tengo un centOs 6.2 y quiero hacer correr Django con
> apache, django corre sin problemas pero al intentar usarlo con fastcgi para
> apache no leventa la página, alguna solución ??
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/oJtPPF4sHaMJ.
> 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.
>

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



Re: Django 1.3, Apache/2.2.14, mod_wsgi/2.8 Python/2.6.5 mod_wsgi (pid=6676): Unable to get bucket brigade for request

2011-07-11 Thread Cal Leeming [Simplicity Media Ltd]

Come on guys, at least make some effort to use Google :/

http://stackoverflow.com/questions/4557920/why-is-mod-wsgi-not-able-to-write-data-ioerror-failed-to-write-data

http://stackoverflow.com/questions/4517397/print-statements-on-server-give-ioerror-failed-to-write-data

http://forum.webfaction.com/viewtopic.php?id=3619

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598143

http://www.google.co.uk/search?sourceid=chrome=UTF-8=%22IOError%3A+failed+to+write+data%22 



Perhaps review those links, see what you can figure out, and let us know 
how far you get..?


Cal

On 17/06/2011 03:14, Heru Eko Susanto wrote:

IOError: failed to write data


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



Re: Django 1.3, Apache/2.2.14, mod_wsgi/2.8 Python/2.6.5 mod_wsgi (pid=6676): Unable to get bucket brigade for request

2011-07-11 Thread Serial H.
Hello,

Did you find the solution ? I have exactly the same configuration but
I am using Ubuntu 10.04.

Serial H.

On Jun 16, 11:56 pm, chycyra  wrote:
> sorry for error typing: the server is Ubuntu 10.04 and i'm no using
> HTTPS request
>
> On Jun 17, 9:14 am, Heru Eko Susanto  wrote:
>
>
>
>
>
>
>
> > hello all,
>
> > i'm using Apache + mod_wsgi on ubuntu 9.10 . today i have error on my
> > server:
>
> > [Tue Jun 14 06:27:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8
> > Python/2.6.5 configured -- resuming normal operations
> > [Fri Jun 17 07:29:57 2011] [error] [client 192.168.1.4] (70007)The timeout
> > specified has expired: mod_wsgi (pid=6676): Unable to get bucket brigade for
> > request., referer:http://192.168.1.6/admin/master/tarip/add/
> > [Fri Jun 17 07:29:59 2011] [error] [client 192.168.1.4] mod_wsgi (pid=6675):
> > Exception occurred processing WSGI script
> > '/var/www/nakula/wsgi/billing.wsgi'.
> > [Fri Jun 17 07:29:59 2011] [error] [client 192.168.1.4] IOError: failed to
> > write data
>
> > here apache conf for the server:
>
> > 
> >     ServerName wsgi.djangoserver
> >     DocumentRoot /var/www/nakula
>
> >     
> >         Order allow,deny
> >         Allow from all
> >     
> >     WSGIDaemonProcess nakula.djangoserver processes=2 threads=15
> > display-name=%{GRUP}
> >     WSGIProcessGroup nakula.djangoserver
>
> >     WSGIScriptAlias / /var/www/nakula/wsgi/billing.wsgi
> > 
>
> > and billing.wsgi:
>
> > import os
> > import sys
> > path = '/var/www/nakula'
> > if path not in sys.path:
> >     sys.path.insert(0,path)
> > os.environ['DJANGO_SETTINGS_MODULE']='settings'
> > import django.core.handlers.wsgi
> > application = django.core.handlers.wsgi.WSGIHandler()
>
> > did I missed some configuration ? or any suggestion for this problem ?
>
> > Thank you,
>
> > heru

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



Re: Django 1.3, Apache/2.2.14, mod_wsgi/2.8 Python/2.6.5 mod_wsgi (pid=6676): Unable to get bucket brigade for request

2011-06-16 Thread chycyra
sorry for error typing: the server is Ubuntu 10.04 and i'm no using
HTTPS request

On Jun 17, 9:14 am, Heru Eko Susanto  wrote:
> hello all,
>
> i'm using Apache + mod_wsgi on ubuntu 9.10 . today i have error on my
> server:
>
> [Tue Jun 14 06:27:49 2011] [notice] Apache/2.2.14 (Ubuntu) mod_wsgi/2.8
> Python/2.6.5 configured -- resuming normal operations
> [Fri Jun 17 07:29:57 2011] [error] [client 192.168.1.4] (70007)The timeout
> specified has expired: mod_wsgi (pid=6676): Unable to get bucket brigade for
> request., referer:http://192.168.1.6/admin/master/tarip/add/
> [Fri Jun 17 07:29:59 2011] [error] [client 192.168.1.4] mod_wsgi (pid=6675):
> Exception occurred processing WSGI script
> '/var/www/nakula/wsgi/billing.wsgi'.
> [Fri Jun 17 07:29:59 2011] [error] [client 192.168.1.4] IOError: failed to
> write data
>
> here apache conf for the server:
>
> 
>     ServerName wsgi.djangoserver
>     DocumentRoot /var/www/nakula
>
>     
>         Order allow,deny
>         Allow from all
>     
>     WSGIDaemonProcess nakula.djangoserver processes=2 threads=15
> display-name=%{GRUP}
>     WSGIProcessGroup nakula.djangoserver
>
>     WSGIScriptAlias / /var/www/nakula/wsgi/billing.wsgi
> 
>
> and billing.wsgi:
>
> import os
> import sys
> path = '/var/www/nakula'
> if path not in sys.path:
>     sys.path.insert(0,path)
> os.environ['DJANGO_SETTINGS_MODULE']='settings'
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
> did I missed some configuration ? or any suggestion for this problem ?
>
> Thank you,
>
> heru

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



Re: Django on Apache

2010-09-26 Thread Vincent den Boer
On Saturday 25 of September 2010 20:36:52 Derek wrote:
> Can someone briefly explain the difference between PHP apps -- which
> run your code "as is" without need for refreshing the server -- and
> Django?

The difference is that Django starts once, loads all modules it needs and then 
starts handling requests with the code it has in memory, PHP on the other hand, 
each time it handles a request loads each script and then throws away the 
loaded 
script after it has run (altough it can cache scripts somewhere I believe).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django on Apache

2010-09-25 Thread Tim Sawyer

On 25/09/10 19:36, Derek wrote:

on several occasions I've made changes to a view, and got a "cannot load
page/no response" (from the browser, not a Django error).  Once I quit
the server (Control-C), start it up again and refresh the page, it
works fine.


I get that sometimes too - I think it's just reloading the server as it 
has noticed a code change.  Refresh again in the browser and it's 
usually working again.


I find that if you're developing a template tag it's sometimes required 
to restart the server to pick up the new code.


What I tend to do is try not to restart, and if something isn't working 
I'll restart the test server as my first test.  If it still doesn't work 
then it's more than likely my fault rather than the server's...


Tim.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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.



Re: Django on Apache

2010-09-25 Thread Derek
Thanks for the quick response, guys.  I guess what confuses me is the
need to EVER restart the server to pick up changes (excluding db
syncs).  It's been stated in many places (including Tim's response)
that the test server will automatically pickup code changes, but on
several occasions I've made changes to a view, and got a "cannot load
page/no response" (from the browser, not a Django error).  Once I quit
the server (Control-C), start it up again and refresh the page, it
works fine.

Can someone briefly explain the difference between PHP apps -- which
run your code "as is" without need for refreshing the server -- and
Django?

Again, much appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django on Apache

2010-09-25 Thread Tim Sawyer

On 25/09/10 16:07, Derek wrote:

I am about a week into learning Django, having developed with PHP and
the CodeIgniter framework for the past 3 years.  That said, I'm used
to making a change to a file, refreshing my browser and seeing the
results.

Django's "syncdb" aside, it's been pretty weird having to restart the
Django webserver manually on certain occasions.  Is this also the case
when running Django on Apache?  If not, can I set up Django to run
with MAMP locally?


If you're developing, you can use the built in test server and that will 
pick up changes without refreshing.


If you're deploying on apache using mod_wsgi, you can set that up to 
automatically pick up your changes when the code updates.


Details at:
http://drumcoder.co.uk/blog/2009/nov/21/apache-mod_wsgi-config/

Hope that helps,

Tim.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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.



Re: Django on Apache

2010-09-25 Thread Steven Elliott Jr
MAMP can be a bit of a pain I think sometimes to modify, though I haven't used 
it much in the past few years. You can use the Mac's built-in apache server 
though with mod_python. Check out 
http://www.google.com/search?q=mod_python+mac+os+x=UTF-8=UTF-8=en=safari

Sent from my iPhone

On Sep 25, 2010, at 11:07 AM, Derek  wrote:

> I am about a week into learning Django, having developed with PHP and
> the CodeIgniter framework for the past 3 years.  That said, I'm used
> to making a change to a file, refreshing my browser and seeing the
> results.
> 
> Django's "syncdb" aside, it's been pretty weird having to restart the
> Django webserver manually on certain occasions.  Is this also the case
> when running Django on Apache?  If not, can I set up Django to run
> with MAMP locally?
> 
> Thanks!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@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.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-06 Thread Justin Myers
It says you're missing a 500.html template.

Without it, you can't see any error pages. See
http://docs.djangoproject.com/en/dev/topics/http/views/#the-500-server-error-view

Once you've made that template, you should be able to see what other
errors are happening.
-Justin

On Jun 6, 12:16 am, Jagdeep Singh Malhi 
wrote:
> ok sir , thanks very much indeed
>
> i try my best..
>
> On Jun 6, 8:52 am, Kenneth Gonsalves  wrote:
>
> > On Sunday 06 June 2010 09:12:30 Jagdeep Singh Malhi wrote:
>
> > > Sir  , i am  not able to remove this error..
> > > which of template or file name is wrong..
>
> > how would I know? I know nothing about your directory structure, your models
> > and views.
> > --
> > Regards
> > Kenneth Gonsalves
> > Senior Associate
> > NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-05 Thread Jagdeep Singh Malhi
ok sir , thanks very much indeed

i try my best..

On Jun 6, 8:52 am, Kenneth Gonsalves  wrote:
> On Sunday 06 June 2010 09:12:30 Jagdeep Singh Malhi wrote:
>
> > Sir  , i am  not able to remove this error..
> > which of template or file name is wrong..
>
> how would I know? I know nothing about your directory structure, your models
> and views.
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-05 Thread Kenneth Gonsalves
On Sunday 06 June 2010 09:12:30 Jagdeep Singh Malhi wrote:
> Sir  , i am  not able to remove this error..
> which of template or file name is wrong..
> 

how would I know? I know nothing about your directory structure, your models 
and views.
-- 
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-05 Thread Jagdeep Singh Malhi
Sir  , i am  not able to remove this error..
which of template or file name is wrong..

On Jun 5, 5:09 pm, Kenneth Gonsalves  wrote:
> On Saturday 05 June 2010 17:25:16 Jagdeep Singh Malhi wrote:
>
> >   File "/usr/local/lib/python2.6/dist-packages/django/template/
> > loader.py", line 138, in find_template
> >     raise TemplateDoesNotExist(name)
>
> > TemplateDoesNotExist: 500.html
>
> you are calling a template with either the wrong path or wrong filename
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-05 Thread Raffaele Salmaso
Jagdeep Singh Malhi wrote:
> MOD_PYTHON ERROR

> please  help...
use mod_wsgi, mod_python is old and not more mantained
http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-deployment-modwsgi

-- 
()_() | That said, I didn't actually _test_ my patch.  | +
(o.o) | That's what users are for! | +---+
'm m' |   (Linus Torvalds) |  O  |
(___) |  raffaele dot salmaso at gmail dot com |

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-05 Thread Kenneth Gonsalves
On Saturday 05 June 2010 17:25:16 Jagdeep Singh Malhi wrote:
>   File "/usr/local/lib/python2.6/dist-packages/django/template/
> loader.py", line 138, in find_template
> raise TemplateDoesNotExist(name)
> 
> TemplateDoesNotExist: 500.html
> 

you are calling a template with either the wrong path or wrong filename
-- 
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-05 Thread Jagdeep Singh Malhi
Thanks very much

But Now  the new are is come 

MOD_PYTHON ERROR

ProcessId:  3219
Interpreter:'127.0.1.1'

ServerName: '127.0.1.1'
DocumentRoot:   '/var/www'

URI:'/'
Location:   '/'
Directory:  None
Filename:   '/var/www/'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1229, in _process_target
result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1128, in _execute_target
result = object(arg)

  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
modpython.py", line 228, in handler
return ModPythonHandler()(req)

  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
modpython.py", line 201, in __call__
response = self.get_response(request)

  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py", line 130, in get_response
return self.handle_uncaught_exception(request, resolver,
sys.exc_info())

  File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py", line 181, in handle_uncaught_exception
return callback(request, **param_dict)

  File "/usr/local/lib/python2.6/dist-packages/django/views/
defaults.py", line 23, in server_error
t = loader.get_template(template_name) # You need to create a
500.html template.

  File "/usr/local/lib/python2.6/dist-packages/django/template/
loader.py", line 157, in get_template
template, origin = find_template(template_name)

  File "/usr/local/lib/python2.6/dist-packages/django/template/
loader.py", line 138, in find_template
raise TemplateDoesNotExist(name)

TemplateDoesNotExist: 500.html



On Jun 5, 4:06 pm, Kenneth Gonsalves  wrote:
> On Saturday 05 June 2010 16:30:46 Jagdeep Singh Malhi wrote:
>
> > PythonPath "['/home/username/mysite'] + sys.path"
>
> PythonPath "['/home/username/'] + sys.path"
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django with Apache and mod_python

2010-06-05 Thread Kenneth Gonsalves
On Saturday 05 June 2010 16:30:46 Jagdeep Singh Malhi wrote:
> PythonPath "['/home/username/mysite'] + sys.path"
> 

PythonPath "['/home/username/'] + sys.path"
-- 
Regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.



Re: Django on Apache (mod_python) administration cookie problem

2008-11-04 Thread Dave Dash

I had cleared the cookies, I also tried in another browser as well -
same result.

On Nov 3, 10:50 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Nov 4, 5:08 pm, Dave  Dash <[EMAIL PROTECTED]> wrote:
>
> > I am witnessing this issue using manage.py runserver.
>
> > The only useful information I can give is this was working when I was
> > running .97 (or whatever was the trunk a few months back), I recently
> > upgraded to the latest trunk (~1.1) and now continually get this
> > message.
>
> > I suspect something has changed in the last few months and I missed
> > whatever it was.  I'm going to attempt to setup a dummy project and
> > try this again.
>
> > If anybody has some clue, please let me know,
>
> Clear the cookie for the application from your browser cache.
>
> Graham
>
> > Cheers,
>
> > Dave Dash
>
> > On Sep 30, 5:05 pm, Álvaro Justen <[EMAIL PROTECTED]> wrote:
>
> > > Ah, some details:
> > > -> Admin interface runs OK with python manage.py runserver - as of it
> > > is an Apache error, Django's web server isn't affected by this bug.
> > > -> I'm using Debian etch as server: I've installed Apache, PHP and
> > > mod_php with Debian packages, but Django installed manually.
> > > -> Versions:
> > >   * Apache: Server version: Apache/2.2.3
> > >     Server built:   Mar 22 2008 09:29:10
> > >   * PHP: PHP 5.2.0-8+etch11 (cli) (built: May 10 2008 10:46:24)
> > >     Copyright (c) 1997-2006 The PHP Group
> > >     Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
> > >   * Django: 1.0-final-SVN-unknown
>
> > > --
> > >  Cheers,
> > >   Álvaro Justen
> > >   Debian GNU/Linux user
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-11-03 Thread Graham Dumpleton



On Nov 4, 5:08 pm, Dave  Dash <[EMAIL PROTECTED]> wrote:
> I am witnessing this issue using manage.py runserver.
>
> The only useful information I can give is this was working when I was
> running .97 (or whatever was the trunk a few months back), I recently
> upgraded to the latest trunk (~1.1) and now continually get this
> message.
>
> I suspect something has changed in the last few months and I missed
> whatever it was.  I'm going to attempt to setup a dummy project and
> try this again.
>
> If anybody has some clue, please let me know,

Clear the cookie for the application from your browser cache.

Graham

> Cheers,
>
> Dave Dash
>
> On Sep 30, 5:05 pm, Álvaro Justen <[EMAIL PROTECTED]> wrote:
>
> > Ah, some details:
> > -> Admin interface runs OK with python manage.py runserver - as of it
> > is an Apache error, Django's web server isn't affected by this bug.
> > -> I'm using Debian etch as server: I've installed Apache, PHP and
> > mod_php with Debian packages, but Django installed manually.
> > -> Versions:
> >   * Apache: Server version: Apache/2.2.3
> >     Server built:   Mar 22 2008 09:29:10
> >   * PHP: PHP 5.2.0-8+etch11 (cli) (built: May 10 2008 10:46:24)
> >     Copyright (c) 1997-2006 The PHP Group
> >     Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
> >   * Django: 1.0-final-SVN-unknown
>
> > --
> >  Cheers,
> >   Álvaro Justen
> >   Debian GNU/Linux user
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-11-03 Thread Dave Dash

I am witnessing this issue using manage.py runserver.

The only useful information I can give is this was working when I was
running .97 (or whatever was the trunk a few months back), I recently
upgraded to the latest trunk (~1.1) and now continually get this
message.

I suspect something has changed in the last few months and I missed
whatever it was.  I'm going to attempt to setup a dummy project and
try this again.

If anybody has some clue, please let me know,

Cheers,

Dave Dash

On Sep 30, 5:05 pm, Álvaro Justen <[EMAIL PROTECTED]> wrote:
> Ah, some details:
> -> Admin interface runs OK with python manage.py runserver - as of it
> is an Apache error, Django's web server isn't affected by this bug.
> -> I'm using Debian etch as server: I've installed Apache, PHP and
> mod_php with Debian packages, but Django installed manually.
> -> Versions:
>   * Apache: Server version: Apache/2.2.3
>     Server built:   Mar 22 2008 09:29:10
>   * PHP: PHP 5.2.0-8+etch11 (cli) (built: May 10 2008 10:46:24)
>     Copyright (c) 1997-2006 The PHP Group
>     Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
>   * Django: 1.0-final-SVN-unknown
>
> --
>  Cheers,
>   Álvaro Justen
>   Debian GNU/Linux user
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-10-24 Thread Graham Dumpleton



On Oct 25, 11:59 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote:
> Graham,
> Option 3: I use other utilities like wordpress and phpMyAdmin, so I cannot 
> afford to disable php completely
> Option 2: I use Linux Mint (Ubuntu variant) for developement and Debian Etch 
> for production. So for option 2, I will require two sets of instructions, 
> which means more trouble for you. So let me skip that.
> Option 1: If this work around works for me, I'll get going and think of 
> better permanent solutions later
> Kindly help me on option one (disabling PHP mhash)

That one I can't help you with as know nothing about PHP. I presume
there is a configuration file for PHP somewhere you need to edit and
comment out load line for PHP mhash module.

Graham

> Thanks in advance
> Regards Ganesh
> Graham Dumpleton wrote:Disabling the PHP mhash module is only a workaround 
> even if it does work. The proper fix if it is this issue is to refresh your 
> Python 2.4 installation to get fixed version from Debian repository, or even 
> perhaps upgrade to Python 2.5 and newer mod_python version which uses Python 
> 2.5. Alternatively, disable PHP from Apache completely if you do not need it. 
> Which of the three options don't you understand and are wanting more detail 
> for? GrahamThanks in advance Regards Ganesh Daniel bodom_lx Graziotin 
> wrote:Thank you very much for your replies, Alvaro and Graham! Removing 
> php5-mhash solved the problem
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-10-24 Thread M.Ganesh





Graham,
Option 3: I use other utilities like wordpress and phpMyAdmin, so I
cannot afford to disable php completely
Option 2: I use Linux Mint (Ubuntu variant) for developement and Debian
Etch for production. So for option 2, I will require two sets of
instructions, which means more trouble for you. So let me skip that.
Option 1: If this work around works for me, I'll get going and think of
better permanent solutions later
Kindly help me on option one (disabling PHP mhash)

Thanks in advance

Regards Ganesh

Graham Dumpleton wrote:

  Disabling the PHP mhash module is only a workaround even if it does
work.

The proper fix if it is this issue is to refresh your Python 2.4
installation to get fixed version from Debian repository, or even
perhaps upgrade to Python 2.5 and newer mod_python version which uses
Python 2.5.

Alternatively, disable PHP from Apache completely if you do not need
it.

Which of the three options don't you understand and are wanting more
detail for?

Graham

  
  
Thanks in advance

Regards Ganesh

Daniel bodom_lx Graziotin wrote:


  Thank you very much for your replies, Alvaro and Graham!
Removing php5-mhash solved the problem
  

  
  

  



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users?hl=en  -~--~~~~--~~--~--~---





Re: Django on Apache (mod_python) administration cookie problem

2008-10-21 Thread Graham Dumpleton



On Oct 22, 10:52 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote:
> Hi Daniel,
>
> I am also facing the same problem. I really can't understand the
> technicalities of the solution offered in this thread. Since you seemed
> to have solved the problem, can you please give a little more details on
> how to do it

Disabling the PHP mhash module is only a workaround even if it does
work.

The proper fix if it is this issue is to refresh your Python 2.4
installation to get fixed version from Debian repository, or even
perhaps upgrade to Python 2.5 and newer mod_python version which uses
Python 2.5.

Alternatively, disable PHP from Apache completely if you do not need
it.

Which of the three options don't you understand and are wanting more
detail for?

Graham

> Thanks in advance
>
> Regards Ganesh
>
> Daniel bodom_lx Graziotin wrote:
> > Thank you very much for your replies, Alvaro and Graham!
> > Removing php5-mhash solved the problem
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-10-21 Thread M.Ganesh

Hi Daniel,

I am also facing the same problem. I really can't understand the 
technicalities of the solution offered in this thread. Since you seemed 
to have solved the problem, can you please give a little more details on 
how to do it

Thanks in advance

Regards Ganesh

Daniel bodom_lx Graziotin wrote:
> Thank you very much for your replies, Alvaro and Graham!
> Removing php5-mhash solved the problem
> >
>
>   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django on apache looses all styling

2008-10-16 Thread Dj Gilcrease

In your settings.py file there is a MEDIA_URL setting and an
ADMIN_MEDIA_PREFIX setting

In my case I have
MEDIA_URL = 'http://media.digitalxero.net/' + SITE_NAME + '/'
ADMIN_MEDIA_PREFIX = 'http://media.digitalxero.net/admin/'

That way all of my static files are server off my CDN (Separate server
just for static files), but more common setups would be

MEDIA_URL = 'http://my.site.com/media/'
ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/'


Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com



On Thu, Oct 16, 2008 at 2:20 PM, William Purcell
<[EMAIL PROTECTED]> wrote:
> I see that django documentation says to copy the admin media files so that
> they live within your Apache document root. I have put the media files from
> the django/contrib in the Apache document root. How does django/apache see
> them?
>
> On Thu, Oct 16, 2008 at 2:42 PM, William Purcell <[EMAIL PROTECTED]>
> wrote:
>>
>> I am new to django, and web development in general for that matter, so
>> please bear with me. I have done the introductory tutorial at the django web
>> site. Everything works fine. I have now installed apache and I'm trying to
>> serve django with mod_python installed in apache. I can now browse to
>> localhost/myapp/admin but the admin page has lost all styling. Any comments
>> or suggestions are very much appreciated. Sorry for such an elementary
>> question, but I am stuck and can't find anything on google.
>> Thanks,
>> Bill
>>
>> Windows XP
>> Apache 2.0.63
>> mod_python 3.3.1
>> Python 2.5
>> django 1.1
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django on apache looses all styling

2008-10-16 Thread William Purcell
I see that django documentation says to copy the admin media files so that
they live within your Apache document root. I have put the media files from
the django/contrib in the Apache document root. How does django/apache see
them?

On Thu, Oct 16, 2008 at 2:42 PM, William Purcell
<[EMAIL PROTECTED]>wrote:

> I am new to django, and web development in general for that matter, so
> please bear with me. I have done the introductory tutorial at the django web
> site. Everything works fine. I have now installed apache and I'm trying to
> serve django with mod_python installed in apache. I can now browse to
> localhost/myapp/admin but the admin page has lost all styling. Any comments
> or suggestions are very much appreciated. Sorry for such an elementary
> question, but I am stuck and can't find anything on google.
> Thanks,
> Bill
>
> Windows XP
> Apache 2.0.63
> mod_python 3.3.1
> Python 2.5
> django 1.1
>
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-10-10 Thread Daniel bodom_lx Graziotin

Thank you very much for your replies, Alvaro and Graham!
Removing php5-mhash solved the problem
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Graham Dumpleton



On Oct 1, 10:56 am, Álvaro Justen <[EMAIL PROTECTED]> wrote:
> Daniel bodom_lx Graziotin wrote:
> > Hi everybody! I'm a new Django developer and for learning the
> > framework I decided to create (another) pastebin clone that I
> > published onhttp://incollo.com
> > The application works very well and I'm very proud of it because I
> > started learning Django six days ago :-)
> > Anyway..
> > I'm having problems in accessing the Django administration panel,
> > which works perfectly with the development built-in webserver.
> > This is what I receive when I try to login:
> > ---
> > Looks like your browser isn't configured to accept cookies. Please
> > enable cookies, reload this page, and try again.
> > ---
> > It makes me think that this is a Apache + mod_python related
> > problem..The Django application works..The media directory for admin
> > is correctly served (I created a media-admin directory and copied in
> > it the content django/contrib/admin/media
>
> > Any help? Thank you very much
>
> Hello,
> I was with the same error and romke in [EMAIL PROTECTED] helped
> me to solve this problem.
> The solution is to disable mhash in PHP (or other mod_* that uses
> this). To do this, comment the line that enable mhash extension in
> your php.ini - in my caseI edited /etc/php5/conf.d/mhash.ini (I use
> Debian).
>
> I found this information 
> in:http://blog.foozia.com/blog/2007/may/20/cookie-problem-django-admin/

If it is that problem, the proper fix is to update your Python
installation to one that Debian hasn't broken. See:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_MD5_Hash_Module_Conflict
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440272

Graham
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Álvaro Justen

Ah, some details:
-> Admin interface runs OK with python manage.py runserver - as of it
is an Apache error, Django's web server isn't affected by this bug.
-> I'm using Debian etch as server: I've installed Apache, PHP and
mod_php with Debian packages, but Django installed manually.
-> Versions:
  * Apache: Server version: Apache/2.2.3
Server built:   Mar 22 2008 09:29:10
  * PHP: PHP 5.2.0-8+etch11 (cli) (built: May 10 2008 10:46:24)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
  * Django: 1.0-final-SVN-unknown

--
 Cheers,
  Álvaro Justen
  Debian GNU/Linux user
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Álvaro Justen

Daniel bodom_lx Graziotin wrote:
> Hi everybody! I'm a new Django developer and for learning the
> framework I decided to create (another) pastebin clone that I
> published on http://incollo.com
> The application works very well and I'm very proud of it because I
> started learning Django six days ago :-)
> Anyway..
> I'm having problems in accessing the Django administration panel,
> which works perfectly with the development built-in webserver.
> This is what I receive when I try to login:
> ---
> Looks like your browser isn't configured to accept cookies. Please
> enable cookies, reload this page, and try again.
> ---
> It makes me think that this is a Apache + mod_python related
> problem..The Django application works..The media directory for admin
> is correctly served (I created a media-admin directory and copied in
> it the content django/contrib/admin/media
>
> Any help? Thank you very much

Hello,
I was with the same error and romke in [EMAIL PROTECTED] helped
me to solve this problem.
The solution is to disable mhash in PHP (or other mod_* that uses
this). To do this, comment the line that enable mhash extension in
your php.ini - in my caseI edited /etc/php5/conf.d/mhash.ini (I use
Debian).

I found this information in: 
http://blog.foozia.com/blog/2007/may/20/cookie-problem-django-admin/

--
 Cheers,
  Álvaro Justen
  Debian GNU/Linux user

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django with Apache messing up with my settings.py

2008-08-26 Thread mario

Graham,

Thank you for your help. II'll pay attention to cookies to.

Using the PythonInterpreted directive, as Malcom suggested, solved my
problem.

On Aug 26, 9:44 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Aug 26, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Mon, 2008-08-25 at 23:45 -0700, mario wrote:
>
> > [...]
>
> > > And here's how I defined the apps in Apache2 (running with lastest
> > > Django SVN).
>
> > > 
> > >     SetHandler python-program
> > >     PythonPath "['/var/www/myapps'] + sys.path"
> > >     PythonHandler django.core.handlers.modpython
> > >     SetEnv DJANGO_SETTINGS_MODULE app_1.settings
> > >     PythonDebug on
> > > 
>
> > > 
> > >     SetHandler python-program
> > >     PythonPath "['/var/www/myapps'] + sys.path"
> > >     PythonHandler django.core.handlers.modpython
> > >     SetEnv DJANGO_SETTINGS_MODULE app_2.settings
> > >     PythonDebug on
> > > 
>
> > You need to use the PythonInterpreter directive when you have more than
> > one site installed. 
> > Seehttp://docs.djangoproject.com/en/dev/howto/deployment/modpython/#mult...details.
>
> For the case where both are inside of the same virtual host then yes.
> This is because interpreter context for mod_python defaults to the
> virtual host.
>
> Also be aware that if hosting them in the same virtual host, you may
> need to ensure that SESSION_COOKIE_NAME is set differently for each
> application if using sessions. This may not be the case if version of
> Django being used has change described in:
>
>  http://code.djangoproject.com/ticket/4724
>
> In that case can set SESSION_COOKIE_PATH instead and leave session
> cookie name the same.
>
> Thinking about this, with SCRIPT_NAME changes made for better WSGI
> compatibility, maybe SESSION_COOKIE_PATH should have defaulted to
> value of SCRIPT_NAME, or at the least if it was set to None that it
> took the value of SCRIPT_NAME.
>
> Anyway, if you don't ensure each application uses separate cookie name
> or cookie path context and they have different user database, they can
> interfere with each other, for example if using admin screens in both.
>
> Graham
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django with Apache messing up with my settings.py

2008-08-26 Thread mario

Malcom,

Thank you very much. It solved my problem!

On Aug 26, 9:07 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-08-25 at 23:45 -0700, mario wrote:
>
> [...]
>
>
>
> > And here's how I defined the apps in Apache2 (running with lastest
> > Django SVN).
>
> > 
> >     SetHandler python-program
> >     PythonPath "['/var/www/myapps'] + sys.path"
> >     PythonHandler django.core.handlers.modpython
> >     SetEnv DJANGO_SETTINGS_MODULE app_1.settings
> >     PythonDebug on
> > 
>
> > 
> >     SetHandler python-program
> >     PythonPath "['/var/www/myapps'] + sys.path"
> >     PythonHandler django.core.handlers.modpython
> >     SetEnv DJANGO_SETTINGS_MODULE app_2.settings
> >     PythonDebug on
> > 
>
> You need to use the PythonInterpreter directive when you have more than
> one site installed. 
> Seehttp://docs.djangoproject.com/en/dev/howto/deployment/modpython/#mult...for
>  details.
>
> Regards,
> Malcolm
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django with Apache messing up with my settings.py

2008-08-26 Thread Graham Dumpleton



On Aug 26, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-08-25 at 23:45 -0700, mario wrote:
>
> [...]
>
>
>
> > And here's how I defined the apps in Apache2 (running with lastest
> > Django SVN).
>
> > 
> >     SetHandler python-program
> >     PythonPath "['/var/www/myapps'] + sys.path"
> >     PythonHandler django.core.handlers.modpython
> >     SetEnv DJANGO_SETTINGS_MODULE app_1.settings
> >     PythonDebug on
> > 
>
> > 
> >     SetHandler python-program
> >     PythonPath "['/var/www/myapps'] + sys.path"
> >     PythonHandler django.core.handlers.modpython
> >     SetEnv DJANGO_SETTINGS_MODULE app_2.settings
> >     PythonDebug on
> > 
>
> You need to use the PythonInterpreter directive when you have more than
> one site installed. 
> Seehttp://docs.djangoproject.com/en/dev/howto/deployment/modpython/#mult...for
>  details.

For the case where both are inside of the same virtual host then yes.
This is because interpreter context for mod_python defaults to the
virtual host.

Also be aware that if hosting them in the same virtual host, you may
need to ensure that SESSION_COOKIE_NAME is set differently for each
application if using sessions. This may not be the case if version of
Django being used has change described in:

  http://code.djangoproject.com/ticket/4724

In that case can set SESSION_COOKIE_PATH instead and leave session
cookie name the same.

Thinking about this, with SCRIPT_NAME changes made for better WSGI
compatibility, maybe SESSION_COOKIE_PATH should have defaulted to
value of SCRIPT_NAME, or at the least if it was set to None that it
took the value of SCRIPT_NAME.

Anyway, if you don't ensure each application uses separate cookie name
or cookie path context and they have different user database, they can
interfere with each other, for example if using admin screens in both.

Graham
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django with Apache messing up with my settings.py

2008-08-26 Thread Malcolm Tredinnick


On Mon, 2008-08-25 at 23:45 -0700, mario wrote:
[...]
> And here's how I defined the apps in Apache2 (running with lastest
> Django SVN).
> 
> 
> SetHandler python-program
> PythonPath "['/var/www/myapps'] + sys.path"
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE app_1.settings
> PythonDebug on
> 
> 
> 
> SetHandler python-program
> PythonPath "['/var/www/myapps'] + sys.path"
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE app_2.settings
> PythonDebug on
> 

You need to use the PythonInterpreter directive when you have more than
one site installed. See
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#multiple-django-installations-on-the-same-apache
 for details.

Regards,
Malcolm



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on apache and mod_python.... and problems

2008-06-22 Thread foxbunny

On Jun 22, 5:59 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> I'm assuming you have papastudio.blog listed in INSTALLED_APPS?
>
> Does apache have read access to the whole tree under  /papastudio, including
> blog?  It seems apache can read /papastudio, otherwise you'd get an
> 'ImportError: No module named papastudio'.  Instead it can't find blog
> underneath it, which might mean it doesn't have read access to the blog
> subdirectory.  Or else it's looking in the wrong place, in which case it'll
> help if you post where the code resides in the file system and the specifics
> of how you have configured Apache.
>
> Karen

Karen, thanks a bunch! It was the exec permission, not read, but your
e-mail gave me the hint. ;)

I don't know how it happened that it lost the exec perms, but I got it
'fixed' now.


Branko
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on apache and mod_python.... and problems

2008-06-21 Thread Will Larson
Hi,

> The summary of error messages is this:
>
>> AttributeError: 'module' object has no attribute 'blog'
>
> I've made sure that /papastudio/blog has __init.py__, and that it's
> listed in INSTALLED_APPS (which is logical since the site actually
> works if I ./manage.py runserver).

Did you follow the mod_python deploy instructions? There are a few  
things that may be happening.

1. The file needs to be '__init__.py', not '__init.py__', but I think  
that is probably just a typo in this email.
2. Make sure you have __init__.py in both `/papastudio/` and `/ 
papastudio/blog/`.
3. Is the base import (depending on what the entry in your  
INSTALLED_APPS looks like, if its `papastudio.blog` then it would be  
`papastudio`) in the Python path for your mod_python deploy? You will  
probably need to explicitly add it like in the instructions linked  
above. Your deploy will look something like this:

 
 SetHandler python-program
 PythonHandler django.core.handlers.modpython
 SetEnv DJANGO_SETTINGS_MODULE papastudio.settings
 PythonDebug Off
 PythonPath "['/path/to/papastudio'] + sys.path"
 

>
> I've left the site in debug mode, so that I can see what's going on,
> but the errors are the same if I set debug to False.
>

Thats because they are being caught by mod_python, and not by Django.  
To turn it off change `PythonDebug On` to `PythonDebug Off` in your  
mod_python config file.

Best of luck,
Will



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django on apache and mod_python.... and problems

2008-06-21 Thread Karen Tracey
On Sat, Jun 21, 2008 at 9:02 PM, foxbunny <[EMAIL PROTECTED]> wrote:

>
> Hi, list,
>
> I'm trying to deploy a very simple Django app, and it's driving me
> crazy. I've followed the docs and set up Apache with mod_python. Then
> I uploaded the app, did syncdb, and everything works when I ./
> manage.py runserver on the remote host, but httpd won't serve it. I'm
> using Django trunk rev 7722, and python 2.5.2 on Arch Linux,
> mod_python is 3.3.1, and Apache is 2.2.8.
>
> You can see the error messages if you go to:
>
> http://blog.papa-studio.com/
>
>
> The summary of error messages is this:
>
> > AttributeError: 'module' object has no attribute 'blog'
>
> I've made sure that /papastudio/blog has __init.py__, and that it's
> listed in INSTALLED_APPS (which is logical since the site actually
> works if I ./manage.py runserver).
>
> I've left the site in debug mode, so that I can see what's going on,
> but the errors are the same if I set debug to False.
>
>
> Any ideas?
>

I'm assuming you have papastudio.blog listed in INSTALLED_APPS?

Does apache have read access to the whole tree under  /papastudio, including
blog?  It seems apache can read /papastudio, otherwise you'd get an
'ImportError: No module named papastudio'.  Instead it can't find blog
underneath it, which might mean it doesn't have read access to the blog
subdirectory.  Or else it's looking in the wrong place, in which case it'll
help if you post where the code resides in the file system and the specifics
of how you have configured Apache.

Karen

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django WITHOUT apache on windows.

2008-03-04 Thread fulltooalok

Hi lbolognini, thanks for the link. I was able to configure Django on
W2k3 using DjangoCerise
(and WITHOUT using apache). Also I m using IIS to serve media.
Now since DjangoCerise configuartion uses separate port for separate
projects my urls look like,
http://192.168.0.17:8088/djprojone/
http://192.168.0.17:8099/djprojtwo/

Can anybody help me in sorting the URL issue. I want to look them
like,
http://www.domainone.com/djprojone/
http://www.domaintwo.com/djprojtwo/

OR anything which will hide different ports to be visible.

>
> What about using CherryPy? (never tried myself)
>
> http://www.xhtml.net/scripts/Django-CherryPy-server-DjangoCerise
>
> L.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django+Postgre+Apache+Windows

2006-02-12 Thread Tim

Disclaimer--I just barely figured this out myself.

It could be the mod_python set up. Is this the case?

In the description of how to set up the conf file for apache to work
with mod_python, I think there's an error.

They say you should have this:

   AddHandler python-program .py
   PythonHandler mptest
   PythonDebug on


But I've figured out to put this:

AddHandler mod_python .py
PythonHandler mptest
PythonDebug On


Basically, changing "python-program" to "mod_python"

If you're having troubles other than the Conf file, perhaps someone
else can weigh in on this.



Re: Django+Postgre+Apache+Windows

2006-02-11 Thread Tom Tobin
Okay, smack me for reading the subject line one second after hitting Send.  :-p

On 2/12/06, Tom Tobin <[EMAIL PROTECTED]> wrote:
> On 2/11/06, David S. <[EMAIL PROTECTED]> wrote:
> >
> > Sorry for the lack of details, but any guidance is appreciated.
>
> That's where I'd start — more details.  ;-)  Can you tell us, e.g.,
> what platforms the two machines are running?
>