Re: Accessing Django through ssh tunneling and error to get status

2018-07-16 Thread Melvyn Sopacua
On maandag 16 juli 2018 08:56:06 CEST Dikus Extrange wrote: > Not Found: /http:/127.0.0.1:8000/status > Etc,etc... > > > I wonder why the protocol has only a slash (http:/ rather http://). Could it > be a wrong message? This looks like a wrongly configured status monitor of some sorts, like for

Re: Accessing Django through ssh tunneling and error to get status

2018-07-15 Thread Dikus Extrange
Hi Robert. Thank you for your piece of advice. I tried writting ALLOWED HOSTS = ['*',] And after running the server, it throws the same message: Not Found: /http:/127.0.0.1:8000/status Etc,etc... I wonder why the protocol has only a slash (http:/ rather http://). Could it be a wrong message?

Re: Accessing Django through ssh tunneling and error to get status

2018-07-13 Thread Robert Edward
Hey, uhm I faced a similar problem lately. Try this in the Settings.py file, Inside the brackets insert an asterisk ✳ It should look something like this Allowed host = [ *]; Then try again. On Thu, Jul 12, 2018, 7:34 PM Dikus Extrange wrote: > Hi Jason. Thank you for your reply. I tried with

Re: Accessing Django through ssh tunneling and error to get status

2018-07-12 Thread Dikus Extrange
Hi Jason. Thank you for your reply. I tried with your suggestion. Django complained about putting then name of my laptop and its domain in allowed hosts (I had to put 'localhost' and '127.0.0.1' before). So I put it in settings.py and the. Result is the same with the same message. El jueves,

Re: Accessing Django through ssh tunneling and error to get status

2018-07-12 Thread Jason
you should use *0.0.0.0* for the ip address rather than 127.0.0.1 On Thursday, July 12, 2018 at 7:22:33 AM UTC-4, Dikus Extrange wrote: > > Hi everyone. I'm accessing to a Django application through a ssh tunnel > with putty as client. I run the server with ./manage.py run server > 127.0.0.1:800

Accessing Django through ssh tunneling and error to get status

2018-07-12 Thread Dikus Extrange
Hi everyone. I'm accessing to a Django application through a ssh tunnel with putty as client. I run the server with ./manage.py run server 127.0.0.1:8000 and it starts right but launching an infinite and annoying message: Not found: /http:/127.0.0.1:8000/status [12/Jul/2018 10:02:59] "GET http

Re: Accessing django app from another app with ajax

2015-03-26 Thread aRkadeFR
No problem we agree that having a stacktrace would be a better way to debug it. Even on a 400 :) On 03/26/2015 03:48 PM, Filipe Ximenes wrote: My mistake. On Thu, Mar 26, 2015 at 11:42 AM, aRkadeFR > wrote: But from the first email, the debug settings is alre

Re: Accessing django app from another app with ajax

2015-03-26 Thread Filipe Ximenes
My mistake. On Thu, Mar 26, 2015 at 11:42 AM, aRkadeFR wrote: > But from the first email, the debug settings is already at True > and he is not getting a stacktrace... > > > On 03/26/2015 03:40 PM, Filipe Ximenes wrote: > > In case there's no one using your project and there's no sensitive dat

Re: Accessing django app from another app with ajax

2015-03-26 Thread aRkadeFR
But from the first email, the debug settings is already at True and he is not getting a stacktrace... On 03/26/2015 03:40 PM, Filipe Ximenes wrote: In case there's no one using your project and there's no sensitive data in it, you can briefly set DEBUB to True in the server to see stack traces.

Re: Accessing django app from another app with ajax

2015-03-26 Thread Filipe Ximenes
In case there's no one using your project and there's no sensitive data in it, you can briefly set DEBUB to True in the server to see stack traces. On Thu, Mar 26, 2015 at 11:26 AM, Larry Martell wrote: > On Thu, Mar 26, 2015 at 10:20 AM, aRkadeFR wrote: > > You should setup your project so you

Re: Accessing django app from another app with ajax

2015-03-26 Thread Larry Martell
On Thu, Mar 26, 2015 at 10:20 AM, aRkadeFR wrote: > You should setup your project so you're able to retrieve the > stacktrace on a 500 server error. When there is a stack trace I get it (e.g. when I was getting the 403 error). There was no stack trace when I was getting the 500. But the 500 is re

Re: Accessing django app from another app with ajax

2015-03-26 Thread aRkadeFR
You should setup your project so you're able to retrieve the stacktrace on a 500 server error. On 03/26/2015 12:25 PM, Larry Martell wrote: On Thu, Mar 26, 2015 at 7:22 AM, aRkadeFR wrote: Do you have the stacktrace? Without it it's gonna be hard to help you. My only guess is CORS (Cross-Orig

Re: Accessing django app from another app with ajax

2015-03-26 Thread Larry Martell
On Thu, Mar 26, 2015 at 7:22 AM, aRkadeFR wrote: > Do you have the stacktrace? Without it it's gonna be hard > to help you. > > My only guess is CORS (Cross-Origin Resource Sharing)? But > you should have the same error on local dev if you have similar > setup from your production. There was no s

Re: Accessing django app from another app with ajax

2015-03-26 Thread aRkadeFR
Do you have the stacktrace? Without it it's gonna be hard to help you. My only guess is CORS (Cross-Origin Resource Sharing)? But you should have the same error on local dev if you have similar setup from your production. On 03/26/2015 02:04 AM, Larry Martell wrote: I have a webservice written

Accessing django app from another app with ajax

2015-03-25 Thread Larry Martell
I have a webservice written in django and I want to call it from a non django app with ajax. Both apps run on the same host. When I call the webservice with curl it works fine, but when I call it with ajax from the other app I get a 500 internal server error. There are no errors in the web server l

Re: Accessing Django models using DJANGO_SETTINGS_MODULE

2015-03-12 Thread Tom Evans
On Sun, Mar 8, 2015 at 5:21 AM, Dheerendra Rathor wrote: > I've a django project and I've few models like ChatRoom and Chat etc > > I'm accessing the ChatRooms from commandline using ipython as follow > In [1]: import os > > In [2]: os.environ['DJANGO_SETTINGS_MODULE'] = 'chat_project.settings' >

Re: Accessing Django models using DJANGO_SETTINGS_MODULE

2015-03-10 Thread Collin Anderson
Hi, Hmm... maybe try ChatRoom.objects.all().all() ? :) If you run this, you can see if it's actually running sql or not: import logging; logging.basicConfig(level=logging.DEBUG) Are you sure you're using the same database? :) Collin On Sunday, March 8, 2015 at 8:41:30 AM UTC-4, Dheerendra Rath

Accessing Django models using DJANGO_SETTINGS_MODULE

2015-03-08 Thread Dheerendra Rathor
I've a django project and I've few models like ChatRoom and Chat etc I'm accessing the ChatRooms from commandline using ipython as follow In [1]: import os In [2]: os.environ['DJANGO_SETTINGS_MODULE'] = 'chat_project.settings' In [3]: from chat.models import Chat, ChatRoom In [4]: ChatRoom.obje

Re: Accessing Django test client in setUpClass

2015-01-29 Thread Fred Stluka
icole Harris wrote: I just posted this on Stack Overflow and then realised I might have more luck here. Basically, I'd like to know if I can access self.client inside setUpClass(cls) when setting up a Django test: http://stackoverflow.com/questions/28084683/accessing-django-test-client-in-setu

Re: Accessing Django test client in setUpClass

2015-01-22 Thread Russell Keith-Magee
more > luck here. > > Basically, I'd like to know if I can access self.client inside > setUpClass(cls) when setting up a Django test: > > http://stackoverflow.com/questions/28084683/accessing-django-test-client-in-setupclass > > If anybody has any insight on this, I&#x

Accessing Django test client in setUpClass

2015-01-22 Thread Nicole Harris
I just posted this on Stack Overflow and then realised I might have more luck here. Basically, I'd like to know if I can access self.client inside setUpClass(cls) when setting up a Django test: http://stackoverflow.com/questions/28084683/accessing-django-test-client-in-setupclass If an

Re: Accessing django development server using internet

2013-05-11 Thread phil...@bailey.st
On 07/05/13 17:38, Kakar wrote: > I have my project in my pc, and on python manage.py runserver, i can view it > on my browser. But how to view from other computer or on the internet and not > locally?... How to make my pc a server to view it from over the internet? Plz > help me guyz! > I Kak

Re: Accessing django development server using internet

2013-05-09 Thread Tim Chase
On 2013-05-09 09:21, Rafael E. Ferrero wrote: > you can do like Tim says if you want to share your project with > your local network if you want to share with the world then you are > talking about a "production" server. I personally would even be comfortable putting it online (non-local network)

Re: Accessing django development server using internet

2013-05-09 Thread Rafael E. Ferrero
you can do like Tim says if you want to share your project with your local network if you want to share with the world then you are talking about a "production" server. 2013/5/7 Kakar Arunachal Service > Sorry, i'm on win 7. > > > On Tue, May 7, 2013 at 9:30 PM, Shawn Milochik wrote: > >> pi

Re: Accessing django development server from internet!

2013-05-07 Thread Kurtis Mullins
You would need to make port 80 accessible from the internet. As mentioned, that's out of the scope of the Django User Group. To give you a little bit of help, I suggest searching for the terms "web server from home". That should get you started. On Tue, May 7, 2013 at 4:19 PM, Nikolas Stevenson-M

Re: Accessing django development server from internet!

2013-05-07 Thread Nikolas Stevenson-Molnar
Are you sure there's no router involved? Even if it's not /your/ router, you're likely connected to the internet through a router. But let's step back for a moment. The phrase "available over the internet" suggests a production environment, and again, you /should not/ use the Django web server for

Re: Accessing django development server using internet

2013-05-07 Thread Kakar Arunachal Service
Sorry, i'm on win 7. On Tue, May 7, 2013 at 9:30 PM, Shawn Milochik wrote: > pip install gunicorn, then run python manage.py run_gunicorn instead of > runserver. > > Ensure that the port you're running your app on is being handled properly > by your Web server app (nginx or Apache). This means

Re: Accessing django development server from internet!

2013-05-07 Thread Thomas Augestad Weholt
Den 7. mai 2013 kl. 21:25 skrev Kakar Arunachal Service : > Thank you for your reply! But coud you pls explain in detail how to make it > available over the internet. And i dont have a router, m running it on my > laptop. Pls advise. As said earlier, getting your server on the Internet is no

Re: Accessing django development server from internet!

2013-05-07 Thread Kakar Arunachal Service
Thank you for your reply! But coud you pls explain in detail how to make it available over the internet. And i dont have a router, m running it on my laptop. Pls advise. On Tue, May 7, 2013 at 11:10 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > Keep in mind that the Django dev

Re: Accessing django development server from internet!

2013-05-07 Thread Nikolas Stevenson-Molnar
Keep in mind that the Django development server is designed neither for security nor performance, so under no circumstances should you use it as a production server. With that said, assuming you're using this for//development purposes, change your manage.py runserver command to bind to the address

Re: Accessing django development server using internet

2013-05-07 Thread Shawn Milochik
pip install gunicorn, then run python manage.py run_gunicorn instead of runserver. Ensure that the port you're running your app on is being handled properly by your Web server app (nginx or Apache). This means that hits to your URL hit the Web server and are being directed internally at your liste

Re: Accessing django development server using internet

2013-05-07 Thread Tim Chase
On 2013-05-07 08:38, Kakar wrote: > I have my project in my pc, and on python manage.py runserver, i > can view it on my browser. But how to view from other computer or > on the internet and not locally?... How to make my pc a server to > view it from over the internet? While it's not generally ad

Accessing django development server from internet!

2013-05-07 Thread Kakar
I have my project in my pc, and on python manage.py runserver, i can view it on my browser. But how to view from other computer or on the internet and not locally?... How to make my pc a server to view it from over the internet? Plz help me guyz! -- You received this message because you are su

Accessing django development server using internet

2013-05-07 Thread Kakar
I have my project in my pc, and on python manage.py runserver, i can view it on my browser. But how to view from other computer or on the internet and not locally?... How to make my pc a server to view it from over the internet? Plz help me guyz! -- You received this message because you are su

Re: Accessing Django project models from CGI

2013-04-10 Thread Mark Jones
Can't imagine why you would want to do this via CGI, it can't perform very well. There is a TON of stuff that gets setup during initialization for wsgi/runserver, etc.. Syntax wise your import is way off since your models do not live in the Django folder, you can't import them like this.

Accessing Django project models from CGI

2013-04-07 Thread Pradeep Kumar
Hi, I am creating a widget for one of our projects for the first time. The script file used calls a python file in cgi-bin/widget.py Is there a way I can access models of a particular project in widget.py using import ? say : from django.*projectname.appname.models* import * I tried relocating

Re: accessing django

2012-10-09 Thread Jonathan Baker
As a former PHP dev who avoided the command line at all cost, the frustrations during the transition period to Python/Django/CLI were well worth it. It can seem daunting, but command line syntax quickly becomes second nature, and I can't imagine going back to the days when I developed using a mouse

Re: accessing django

2012-10-09 Thread Lewis Satini
Thank you so much all of you and the fast response On Tue, Oct 9, 2012 at 11:52 AM, Tom Evans wrote: > On Tue, Oct 9, 2012 at 4:48 PM, Lewis Satini > wrote: > > Thank guys for helping this out. > > One more question what is the basic step of installing the package? are > they > > all the same?

Re: accessing django

2012-10-09 Thread Tom Evans
On Tue, Oct 9, 2012 at 4:48 PM, Lewis Satini wrote: > Thank guys for helping this out. > One more question what is the basic step of installing the package? are they > all the same? Why don't you install a couple and see? They are normally similar, but not necessarily so. Tom -- You received

Re: accessing django

2012-10-09 Thread Kurtis Mullins
It depends on the computer, but I'd recommend using a Virtual Environment and the program called 'pip'. Google can be your friend there :) Or if you run into any specific problems, don't hesitate to ask! On Tue, Oct 9, 2012 at 11:48 AM, Lewis Satini wrote: > Thank guys for helping this out. > One

Re: accessing django

2012-10-09 Thread Tom Evans
On Tue, Oct 9, 2012 at 4:39 PM, Lewis Satini wrote: > Hello, > I am sorry for misplace script and package. I am new to Django. > so everytime when I need to install Django packages. I need to do it through > command shell? is there any other way without going through command shell? > > Thanks > A

Re: accessing django

2012-10-09 Thread Lewis Satini
Thank guys for helping this out. One more question what is the basic step of installing the package? are they all the same? On Tue, Oct 9, 2012 at 11:45 AM, Kurtis Mullins wrote: > Not really. You could probably use a host that might have some fancy > control panel for doing something like that;

Re: accessing django

2012-10-09 Thread Tom Evans
On Tue, Oct 9, 2012 at 4:29 PM, Lewis Satini wrote: > For example, there's a script I want to install and everytime, I need to > access to the command shell to install it, but in the case of php I can just > unzip and upload to the server and access through browser. > Can I do with that way? how i

Re: accessing django

2012-10-09 Thread Lewis Satini
For example, there's a script I want to install and everytime, I need to access to the command shell to install it, but in the case of php I can just unzip and upload to the server and access through browser. Can I do with that way? how is the process? On Tue, Oct 9, 2012 at 11:27 AM, Jonathan B

Re: accessing django

2012-10-09 Thread Jonathan Baker
When you say "access django", exactly what do you mean? On Tue, Oct 9, 2012 at 9:25 AM, Lewis wrote: > Hello, > Is it the right way to access django without going through the command > shell, but instead using ftp -> making new file and edit just like using > php? > > > > Thanks > > -- > You re

accessing django

2012-10-09 Thread Lewis
Hello, Is it the right way to access django without going through the command shell, but instead using ftp -> making new file and edit just like using php? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on th

Re: Problems with jquery and accessing django template system

2011-11-02 Thread Kevin Miller
Thanks Tom, but I have already tried that and it didn't work. On Wed, Nov 2, 2011 at 12:25 PM, Tom Evans wrote: > n Wed, Nov 2, 2011 at 5:13 PM, Kevin Miller wrote: >> I have a url that I need to attach to link that is in a jquery >> section. It seem like the django template system is not gett

Re: Problems with jquery and accessing django template system

2011-11-02 Thread Tom Evans
n Wed, Nov 2, 2011 at 5:13 PM, Kevin Miller wrote: > I have a url that I need to attach to link that is in a jquery > section. It seem like the django template system is not getting the > variable. For example: > > $.each(event,function(index,value){ >                        var url = "{% url fies

Problems with jquery and accessing django template system

2011-11-02 Thread Kevin Miller
I have a url that I need to attach to link that is in a jquery section. It seem like the django template system is not getting the variable. For example: $.each(event,function(index,value){ var url = "{% url fiesta.views.detail "+ event[index].pk +" %}"

Re: cannot import name settings - accessing Django environment from external script

2009-12-01 Thread Stodge
This is mhy laptop so I'm not bothered about where the code is stored. If it goes live it'll be correctly located/secured etc. Thanks On Dec 1, 5:03 pm, Skylar Saveland wrote: > I thought that it was best practice to not put python code in /var/www > and to own the code with an unprivileged user

Re: cannot import name settings - accessing Django environment from external script

2009-12-01 Thread Skylar Saveland
I thought that it was best practice to not put python code in /var/www and to own the code with an unprivileged user. Doesn't seem like it is necessarily germane to the present topic but perhaps something to think about. Am I wrong? Are there exceptions? I think I have seen some high profile web

Re: cannot import name settings - accessing Django environment from external script

2009-12-01 Thread Stodge
This: sys.path.append("/var/www/sites/indigo/") os.environ['DJANGO_SETTINGS_MODULE'] = 'indigo.settings' from django.core.management import setup_environ import settings project_directory = setup_environ(settings)

Re: cannot import name settings - accessing Django environment from external script

2009-12-01 Thread Stodge
Argh! Taking this a step further - I'm now trying to access my Django environment from within a Trac (http://trac.edgewall.org) plugin, but I'm getting a similar issue. This works: sys.path.append("/var/www/sites/indigo/") os.environ['DJANGO_SETTINGS_MODULE'] = 'in

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Tim Valenta
Hah.. wow. I'm glad you figured that out. I haven't used pth files in any serious manner before, so I totally wasn't thinking about that. Best of luck to you! On Nov 25, 1:08 pm, Stodge wrote: > What do you know - it's my .pth file. My Mercurial hook is in /home/ > mike/hooks and I have a path

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
What do you know - it's my .pth file. My Mercurial hook is in /home/ mike/hooks and I have a path file /usr/lib64/python2.5/site-packages/ hooks.pth defined, which contains: /home/mike/hooks If I comment this line out, I can do ./manage.py shell. If I uncomment this line, manage.py doesn't work

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
I can successfully start python and import the settings file. My settings file only imports os. On Nov 25, 3:01 pm, Tim Valenta wrote: > Well, does it have errors?  If you navigate to the directory where > it's kept, can you enter the python shell and do "import settings"? > Given all of the trou

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Tim Valenta
Well, does it have errors? If you navigate to the directory where it's kept, can you enter the python shell and do "import settings"? Given all of the trouble you're having, can you verify that it imports successfully? The settings module itself should have no immediate dependencies, unless you'v

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
It fails even if I delete the hg and .hg directories now. It worked a few times before, but no longer. Odd. > /usr/lib/python2.5/site-packages/django/core/management/base.py(194)run_from_argv() -> handle_default_options(options) (Pdb) print options {'pythonpath': None, 'verbosity': '1', 'traceback

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Bill Freeman
Interesting. I take it that hg and hg/hooks both have __init__.py files? Otherwise I'm not sure how django sees them. Unless hg is also an app, listed in installed apps and has a models.py file. That is, I don't believe that the name 'hg' has any special meaning to django. You might try sticki

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
And now it doesn't work again.. what is going on??? On Nov 25, 2:18 pm, Stodge wrote: > I think I have it. I'm developing a Mercurial hook in /var/www/sites/ > project/hg/hooks. If I delete this directory it works. If I recreate > the directory and the hook, it fails. Guess Django is gett

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
I think I have it. I'm developing a Mercurial hook in /var/www/sites/ project/hg/hooks. If I delete this directory it works. If I recreate the directory and the hook, it fails. Guess Django is getting confused by its existence. On Nov 25, 12:56 pm, Bill Freeman wrote: > Does /var/www/sites/projec

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
Permissions are correct, __init__.py exists. Something is screwing the filesystem up. I blew away the old environment and re-created it and it worked. After a short while it broke again. I'm using Mercurial to manage source control for the environment; maybe that is interfering. On Nov 25, 12:56 p

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Bill Freeman
Does /var/www/sites/project/__init__.py exist? Are the files and directories readable, and the directories searchable (excutable) by the user as which the webserver runs? On Wed, Nov 25, 2009 at 12:21 PM, Stodge wrote: > If I break the code out and write a simple python script that only > contai

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
Uh-oh: when did this break? ./manage.py shell Error: Could not import settings 'indigo.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings On Nov 25, 12:21 pm, Stodge wrote: > If I break the code out and write a simple python script that only > contains: > >

Re: cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
If I break the code out and write a simple python script that only contains: import sys, os sys.path.append("/var/www/sites") from project import settings from django.core.management import setup_environ setup_environ(settings) Even this doesn't work yet as far as I can tell, it should. Any ideas

cannot import name settings - accessing Django environment from external script

2009-11-25 Thread Stodge
I'm completely confused. I have a Django environment installed in /var/ www/sites/project, which is accessed using mod_python/Apache. I want to access the Django environment from a script - actually a Mercurial hook. So I added this to my hook: sys.path.append("/var/www/sites") os.

Re: Accessing django app that is start with FCGI

2009-03-13 Thread Carlos A. Carnero Delgado
> I think I kinda understand the way it works now. I can see that I > require a mysite.fcgi. How does that file look like? It is not written > in the docs You could try http://cleverdevil.org/computing/24/python-fastcgi-wsgi-and-lighttpd although I've had more luck with http://iamtgc.com/2007/07

Re: Accessing django app that is start with FCGI

2009-03-13 Thread Joshua Partogi
On Mar 14, 1:18 am, "Leonel Nunez" wrote: > > Dear all, > > > I'm still new with django. I have just started django with FCGI as such: > > python manage.py runfcgi method=prefork host=127.0.0.1 port=8801 > > > But when I access my application from the browser :http://localhost:8801 > > Nothing

Re: Accessing django app that is start with FCGI

2009-03-13 Thread Leonel Nunez
> Dear all, > > I'm still new with django. I have just started django with FCGI as such: > python manage.py runfcgi method=prefork host=127.0.0.1 port=8801 > > But when I access my application from the browser : http://localhost:8801 > Nothing happens, the browser just hangs without showing anythi

Accessing django app that is start with FCGI

2009-03-13 Thread Joshua Partogi
Dear all, I'm still new with django. I have just started django with FCGI as such: python manage.py runfcgi method=prefork host=127.0.0.1 port=8801 But when I access my application from the browser : http://localhost:8801 Nothing happens, the browser just hangs without showing anything. I've re

Re: problem with accessing django from apache2 & mod_python

2008-08-31 Thread cavebird
Hi Aaron, I am using mysite.books.views. I dont have mysite.books.urls. I will worry about mysite.books.models when I can display simple pages without any models. thanks, Hemant On Aug 29, 11:54 pm, Aaron <[EMAIL PROTECTED]> wrote: > Hi, strange enough, I was having a similar problem as you ju

Re: problem with accessing django from apache2 & mod_python

2008-08-29 Thread lingrlongr
This sounds like the same problem I'm having I have a post going here too! http://groups.google.com/group/django-users/browse_thread/thread/c30b4395f5153cf3/dad6e7a1ebef3175#dad6e7a1ebef3175 On Aug 29, 2:54 pm, Aaron <[EMAIL PROTECTED]> wrote: > Hi, strange enough, I was having a simil

Re: problem with accessing django from apache2 & mod_python

2008-08-29 Thread Aaron
Hi, strange enough, I was having a similar problem as you just awhile ago (w/ mod_wsgi). The cause as I discovered was that if you have an app inside your project, you'll have to include the project name before any import statements. So, for your case, chances are, there may be references to boo

Re: problem with accessing django from apache2 & mod_python

2008-08-29 Thread Aaron
If you can't get this to work out with mod_python, perhaps consider using mod_wsgi. http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi Checkout this post for comparisons between the two: http://groups.google.com/group/django-users/browse_thread/thread/456581f4bc8506b8/5db7dd7bceb87f48

Re: problem with accessing django from apache2 & mod_python

2008-08-29 Thread cavebird
No :( I already tried that. same results. cavebird On Aug 29, 4:47 pm, Aaron <[EMAIL PROTECTED]> wrote: > Hi cavebird, > > Not sure if this has anything to do with the symbolic link, but I > remember having some path issues on mod_python awhile back. Try > copying mysite inside htdocs and see

Re: problem with accessing django from apache2 & mod_python

2008-08-29 Thread Aaron
Hi cavebird, Not sure if this has anything to do with the symbolic link, but I remember having some path issues on mod_python awhile back. Try copying mysite inside htdocs and see if that has any effects. Aaron On Aug 29, 4:32 am, cavebird <[EMAIL PROTECTED]> wrote: > Hi, > I have been learnin

problem with accessing django from apache2 & mod_python

2008-08-29 Thread cavebird
Hi, I have been learning Django and came across this problem I am trying to access django apps from apache2 but it just wont work : ( Here is what i did: added in /usr/local/apache2/conf/extra/httpd-info.conf: SetHandler python-program PythonHandler django.core.handlers.modpython Pyth