thank you... i solved it using the django.wsgi script created by the
buildout!
its a lot easier deploy django with wsgi and not to mention how much
better it is with a buildout in a clean isolated folder!! love it!
Graham Dumpleton wrote:
>
> On Sep 22, 11:41 pm, andreas schmid wrote:
>
>> h
On Sep 22, 11:41 pm, andreas schmid wrote:
> hi,
>
> im expierencing a strange problem on my server with mod_pyton.
>
> while testing my project on the server launching it with runserver
> everything looks fine.
>
> using apache and mod_python the templates at the root of the templates
> dir in
hi,
im expierencing a strange problem on my server with mod_pyton.
while testing my project on the server launching it with runserver
everything looks fine.
using apache and mod_python the templates at the root of the templates
dir in my project are loaded but all the others
(templates/myprojec
> Is the page truly blank? Ie., have you gone 'View Source' in the
> browser to see what is returned. Are you sure you haven't stuffed up
> something in global HTML template whereby missing a closing '>' for
> HTML.
Yup, view source shows it's blank, as in nothing is in the source at all.
> Sinc
On Aug 21, 12:34 pm, Bryan Fordham wrote:
> Also tried switching to wsgi, just to see if it would make a
> difference. It didn't.
>
> I'm seriously stumped
Is the page truly blank? Ie., have you gone 'View Source' in the
browser to see what is returned. Are you sure you haven't stuffed up
some
Also tried switching to wsgi, just to see if it would make a
difference. It didn't.
I'm seriously stumped
On Thu, Aug 20, 2009 at 3:56 PM, Bryan Fordham wrote:
>>
>> Don't forget the comma after the absolute path. For example,
>>
>> '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates
>
> Don't forget the comma after the absolute path. For example,
>
> '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates',
> < comma
Tried that, no change.
Changed the template path to an invalid path, same thing. Very weird
--
Thanks
--B
--~--~-~--~~~--
Don't forget the comma after the absolute path. For example,
'/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates',
< comma
_Mario
On Aug 20, 4:41 pm, Bryan Fordham wrote:
> > The default template is not loading correctly. Check and verify your
> > settings.py and make sure it
> The default template is not loading correctly. Check and verify your
> settings.py and make sure it is pointing to the absolute path e.g.,
> TEMPLATE_DIRS ="/home/users/templates",
You're right. Changed the index view to just return an HttpResponse,
skipping the template, and it worked.
So, go
> The default template is not loading correctly. Check and verify your
> settings.py and make sure it is pointing to the absolute path e.g.,
> TEMPLATE_DIRS ="/home/users/templates",
It seems right
>From settings.py:
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates"
The default template is not loading correctly. Check and verify your
settings.py and make sure it is pointing to the absolute path e.g.,
TEMPLATE_DIRS ="/home/users/templates",
_Mario
On Aug 20, 2:14 pm, Bryan Fordham wrote:
> It's athttp://bfordham.org/
>
> The project runs from the root. It
It's at http://bfordham.org/
The project runs from the root. It was set that way on the development
server, too, with no problem
On Thu, Aug 20, 2009 at 11:11 AM, Mario wrote:
>
> Bryan,
>
> Can you post your project url? Also try changing from
> to
>
> _Mario
>
> On Aug 20, 12:33 pm, Bryan Fo
Bryan,
Can you post your project url? Also try changing from
to
_Mario
On Aug 20, 12:33 pm, Bryan Fordham wrote:
> I'm sure this is something simple, but I'm a bit stumped. It's been a
> while since i've don't this, and obviously I'm missing something
>
> I have my django app installed on se
I'm sure this is something simple, but I'm a bit stumped. It's been a
while since i've don't this, and obviously I'm missing something
I have my django app installed on server. When I go to any URL that
matches something in the urls.py file, I get a blank page. As in the
server is returning a 200
Hi, everybody.
In my appication ("nude") I have 4 models (really I have some more),
something like this:
class State(models.Model):
name:models.CharField(CharField(max_length=30)
class Admin:
pass
class WorkCenter(models.Model):
State=models.ForeignKey(State)
phone=
Can you open a python interpreter and import your application?
I place a sim link (ln -s) within the python site-packages directory
to my project directory and the django source directory.
J
On Nov 5, 4:37 pm, stranger <[EMAIL PROTECTED]> wrote:
> Hello I am using Fedora 7. I am using Django for
Thanks a lot graham You have really helped me a lo. Thank
you once againCan you please add me in Yahoo messenger id:
aparichitudu_stranger
Thank you
On Nov 5, 3:33 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> Turn off SELinux extensions on your box or do whatever research is
Turn off SELinux extensions on your box or do whatever research is
required to work out how to configure SELinux to allow the user that
Apache runs as to access your files.
I can't help you with SELinux.
Graham
On Nov 6, 10:28 am, stranger <[EMAIL PROTECTED]> wrote:
> Ya I have run the command
Hey I have set the SELINUX from enforcing to permissive and the
localhost/mysite is working. I am getting the Django default page.
On Nov 5, 3:28 pm, stranger <[EMAIL PROTECTED]> wrote:
> Ya I have run the command and restarted Apache... I have found the
> cause for the problem can you advise m
Ya I have run the command and restarted Apache... I have found the
cause for the problem can you advise me after looking at this
screenshot.
http://img210.imageshack.us/img210/559/screenshot1bs5.png
On Nov 5, 3:24 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> Run:
>
> chmod 0755 /home/priy
Run:
chmod 0755 /home/priya
Restart Apache for good measure and try again.
As I originally said, all the directories down to the mysite directory
have to be readable and searchable to others. This means you personal
home directory as well.
Graham
On Nov 6, 10:20 am, stranger <[EMAIL PROTECT
Sorry for deleting I have run the command in /home
When I run ls -lasgd in /home/priya
8 drwx-- 32 priya 4096 2007-11-05 14:54 .
When I run ls -las in /home/priya
[EMAIL PROTECTED] ~]$ ls -las
total 416
8 drwx-- 32 priya priya 4096 2007-11-05 14:54 .
8 drwxr-xr-x 3 root root
Please do not keep deleting the previous message content. It makes it
really hard having to go back and forth between messages.
On Nov 6, 10:11 am, stranger <[EMAIL PROTECTED]> wrote:
> I get this:
>
> 8 drwxr-xr-x 3 root 4096 2007-11-04 02:20 .
If you get this when running that command in your
I get this:
8 drwxr-xr-x 3 root 4096 2007-11-04 02:20 .
--~--~-~--~~~---~--~~
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 t
On Nov 6, 9:57 am, stranger <[EMAIL PROTECTED]> wrote:
> Thank alot Graham. To which user, I must grant access?
>
> I know the command chmod.. and I traversed to mysite directory and
> chmod -R 755 *
>
> still no change.
Hmmm, I saw that example in the document I referred to and thought it
was a
Thank alot Graham. To which user, I must grant access?
I know the command chmod.. and I traversed to mysite directory and
chmod -R 755 *
still no change.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
On Nov 6, 9:37 am, stranger <[EMAIL PROTECTED]> wrote:
> Yes my settings.py file is in the place you specified.
>
> I have restarted the apache: /etc/init.d/httpd restart
>
> I think u r right. Apache dont have right to read that module. Please
> specify me how to give access to apche to my mysit
Yes my settings.py file is in the place you specified.
I have restarted the apache: /etc/init.d/httpd restart
I think u r right. Apache dont have right to read that module. Please
specify me how to give access to apche to my mysite directory.
--~--~-~--~~~---~--~--
On Nov 6, 9:30 am, stranger <[EMAIL PROTECTED]> wrote:
> Hello Graham,
>
>Just followed the same instructions as u said.
>
>
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> Pyt
Hello Graham,
Just followed the same instructions as u said.
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
PythonPath "['/home/priya'] + sys.path"
No Change
On Nov 6, 9:13 am, stranger <[EMAIL PROTECTED]> wrote:
> Thank you Graham for the fast reply Could you please elaborate a
> little since i am new to django.
>
>
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE mysite.settin
Thank you Graham for the fast reply Could you please elaborate a
little since i am new to django.
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
...and replace mysite.settings with the Pyth
On Nov 6, 8:37 am, stranger <[EMAIL PROTECTED]> wrote:
> Hello I am using Fedora 7. I am using Django for the first time. I
> want the django to run on port 80. so that :
>
> http://localhost/mysite/
>
> should retreive the Django dafault page. I have installed mod_python
> and imported it into ht
Hello I am using Fedora 7. I am using Django for the first time. I
want the django to run on port 80. so that :
http://localhost/mysite/
should retreive the Django dafault page. I have installed mod_python
and imported it into http.conf.
In http.conf I have also:
SetHandler python-pro
/var/www/django/'] + sys.path"
> > > PythonHandler django.core.handlers.modpython
> > > SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> > > PythonDebug On
> > >
> > > If you used mysite, mysite should always in your urls, the mod_pyt
lways in your urls, the mod_python
> > will not found the right view if you did not add mysite in the urls.
> >
> > Best wishes,
> > Nick
> >
> > - Original Message -
> > *From:* James McManus <[EMAIL PROTECTED]>
> > *To:* django-users@
our urls, the mod_python will
> not found the right view if you did not add mysite in the urls.
>
> Best wishes,
> Nick
>
> - Original Message -
> *From:* James McManus <[EMAIL PROTECTED]>
> *To:* django-users@googlegroups.com
> *Sent:* Monday, July 23, 2007 12:35
7 12:35 PM
Subject: mod_python problem?
I am having two problems using django on an Apache server, with mod_python.
The first problem I found a solution, but it may be causing other problems. In
mysite/urls.py I am not able to use the ^ in:
(r^'polls/', include(' mysite.polls.urls
On Jul 23, 2:35 pm, "James McManus" <[EMAIL PROTECTED]> wrote:
> I am having two problems using django on an Apache server, with mod_python.
> The first problem I found a solution, but it may be causing other problems.
> In mysite/urls.py I am not able to use the ^ in:
>
> (r^'polls/', include('my
I am having two problems using django on an Apache server, with mod_python.
The first problem I found a solution, but it may be causing other problems.
In mysite/urls.py I am not able to use the ^ in:
(r^'polls/', include('mysite.polls.urls')),
It causes a 404 error. I do not have this problem wh
> As i try to login into the admin, i alway get a message saying my
> browser does not accepr cookies!!
> But it isn't true!
>
> Any suggestion?
IE has a funny setting wrt media files & security settings - if you
use a separate server for media (e.g. media.company.com vs. www.company.com
as the d
Haku,
I fixed mine by giving executable permission to my "/home/username".
Like you I was frustrated by this error and tried all combinations in
httpd.conf, until I read Malcolm Tredinnick's reply to similar
problem here:
http://groups.google.com/group/django-users/browse_thread/thread/921e8e8f5
Ok, i've solved the problem, wich was in the PythonPath (no "/mysite"
was needed :D )
But now i'm into another truble:
As i try to login into the admin, i alway get a message saying my
browser does not accepr cookies!!
But it isn't true!
Any suggestion?
On 4 Mag, 13:13, Haku <[EMAIL PROTECTED]>
Hi Haku!
I have the same problem last week. What I did was to reate a file called
.pth and saved it on /usr/lib/python2.4/site-packages/ inside this
file, I wrote the root path to my project..
try it & let me know the results.
good luck!
Tkm
On 5/4/07, Haku <[EMAIL PROTECTED]> wrote:
>
>
> Ok,
Try changing:
PythonPath "['/root/mysite'] + sys.path"
to
PythonPath "['/root'] + sys.path"
I think you only need to tell the server where to find 'mysite' since
that is the root of your project. mod_python can then resolve
'mysite.settings' because it found mysite in 'root'.
Hope this mak
Ok, i'm here with another question :D
Everithing is fine on my development server (windows), but now i want
to put my project on my production server
My production Server is a VPS running everithing django needs to run,
so i've modified my httpd.conf file adding the following lines:
Se
46 matches
Mail list logo