2017-08-09 9:01 GMT+02:00 Akshay Jagirdar :
> Hi Guys,
>
> Please help me with deployment of Django project on Apache server.
>
> My System environment...
>
> OS : Fedora 20
> Python : 2.7
> Django : 1.11
> Apache: 2.4
>
> What I know is i have modify httpd.conf file in
> /etc/httpd/conf/htt
Hi Guys,
Please help me with deployment of Django project on Apache server.
My System environment...
OS : Fedora 20
Python : 2.7
Django : 1.11
Apache: 2.4
What I know is i have modify httpd.conf file in /etc/httpd/conf/httpd.conf,
please help me with this.
Thanks,
Akshay Jagirdar
--
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 n
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.
is there any reason you are using mod_python instead of, say, wsgi?
modpython is deprecated and there are "better" alternatives.
id start with that. looking in apache logs to find out why you have
the 500 error might help.
(a hunch tells me it might be a python path error)
ash
On 28 Jan., 07:45,
Hi,
I'm trying to get my first Django app up and running on amazon ec2
fedora 8 instance on apache with mod_python. I've got mod_python MySQL-
python python-devel Django mysql-server installed.
I've got the homepage to show up, but its a very simple view that just
returns text. Anything more comp
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 handl
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
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
'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 ch
ing 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?
>
ing 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
On Nov 25, 2009, at 12:39 PM, Nadae Ivar BADIO wrote:
> i'm new in django and i trying to run django on my production server
> who have debian and apache someone can please help me?
It's Centos, not Debian, but this might help:
http://thebuild.com/blog/2009/10/16/wordpress-to-djan
Hi,
i'm new in django and i trying to run django on my production server who have
debian and apache someone can please help me?
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...@googleg
Yes, changing directory permissions helped. Thanks.
2009/10/29 Graham Dumpleton
>
>
>
> On Oct 29, 10:21 am, Christophe Pettus wrote:
> > On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
> >
> > > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> > > usr/lib/python2.6/site-p
Yes, I must have overlooked that. Changing permissions helped.
I really appreciate your help. Thanks.
2009/10/29 Christophe Pettus
>
>
> On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
> > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> > usr/lib/python2.6/site-packages/dj
On Oct 29, 10:21 am, Christophe Pettus wrote:
> On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
>
> > [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> > usr/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py",
> > line 193, in execute
> > [Wed Oct 28 23:58:42
On Oct 28, 2009, at 4:01 PM, Piotr Górski wrote:
> [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] File "/
> usr/lib/python2.6/site-packages/django/db/backends/sqlite3/base.py",
> line 193, in execute
> [Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] return
> Databa
On attempt to visit http://localhost/meth/admin/ I get the following in the
Apache error log:
[Wed Oct 28 23:58:42 2009] [error] [client 85.222.111.32] mod_wsgi
(pid=2655): Exception occurred processing WSGI script
'/var/www/meth/apache/django.wsgi'.
[Wed Oct 28 23:58:42 2009] [error] [client 85.2
On Oct 28, 2009, at 3:44 PM, Piotr Górski wrote:
> When I try to go to admin site, I get 500 internal
> server error (admin site works perfectly well on development server).
Is there anything interesting in the Apache error log?
--
-- Christophe Pettus
x...@thebuild.com
--~--~-~--~
I have a small Django website which I am trying to run on an Apache
2.2 HTTP-Server. The application is running fine using "python
manage.py runserver". It is also running fine on Apache, except for
the admin site. When I try to go to admin site, I get 500 internal
server error (admin site works p
Graham,
I'll take a look at mod_wsgi.
But first i have to figure out proper urls and settings for css and
javascript.
Once again thanks a lot.
Thomas
On 12 Aug, 11:09, Graham Dumpleton wrote:
> On Aug 12, 3:43 pm, consiglieri wrote:
>
>
>
>
>
> > Thanks Graham!
>
> > The absolute path was
On Aug 12, 3:43 pm, consiglieri wrote:
> Thanks Graham!
>
> The absolute path was the issue. Can't believe I couldnt find that
> anywhere.
>
> As for the Alias, well i was just testing to make sure that wasnt an
> issue.And its in the httpd.conf , for perl-cgi you need that so since
> i was hav
Thanks Graham!
The absolute path was the issue. Can't believe I couldnt find that
anywhere.
As for the Alias, well i was just testing to make sure that wasnt an
issue.And its in the httpd.conf , for perl-cgi you need that so since
i was having issues i decided to try and see if it was causing my
For SQLite database, the directory the database is in must also be
writable to user that Apache runs as. The location of the database in
settings file must also be an absolute path, can't use a relative
path.
BTW, what is:
Alias test.django.com "/Users/someone/djangoproject/appname"
for in co
Thanks for the tip, however it does not make a difference. I moved the
app to another catalogue and made sure that the database file was
chmod to 755 and also that all directories have the same permissions.
The error remains.
There is something happening that i dont understand. I'm beginning to
t
On Tuesday 11 August 2009 09:43:38 am consiglieri wrote:
> Hi
>
> I'm new with django and have made a small test app which works as it
> should with the development server.
>
> However when i try and deploy it with apache and mod_python I cant get
> it to work. I have tested that mod_python works.
Hi
I'm new with django and have made a small test app which works as it
should with the development server.
However when i try and deploy it with apache and mod_python I cant get
it to work. I have tested that mod_python works. I can do the
recommended mod_python test. When i try to run the djan
What's the best way to do it ? I don't understand the official
tutorial
--~--~-~--~~~---~--~~
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 unsub
Thanks Graham !!
It works perfectly, you own :)
Bro
--~--~-~--~~~---~--~~
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 g
Either way, their dango.root setting is wrong as they are setting it
to physical file system path. Remove that whole django.root setting as
you do not need it when mounting at root of site.
The sooner people stop using mod_python the better. ;-)
Graham
On Mar 18, 12:41 pm, Karen Tracey wrote:
On Tue, Mar 17, 2009 at 1:54 PM, Bro wrote:
>
> [snip]
> File "/var/lib/python-support/python2.5/django/core/handlers/
> base.py", line 44, in load_middleware
>raise exceptions.ImproperlyConfigured, 'Middleware module "%s"
> does not define a "%s" class' % (mw_module, mw_classname)
>
> Imp
Hi
I've installed Django 1.02 on my dedibox. I'm trying to make .py file
readable and executable.
Apache, Python, Django are installed.
We have many website :
/var/www/mysite1
/var/www/mysite2
/var/www/mysite3
we have :
/var/django/mysite1
/var/django/mysite2
We configure in /etc/apache2/site-a
The result is :
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonOption django.root /home/rex/django/mturk
PythonDebug On
PythonPath "['/home/rex/django/'] + sys.path"
On Mar 14, 7:52 pm, Rex wrote:
> On Mar 4, 12:47 pm, John Maines wrote:
>
>
>
> > Hello:
>
> > I've installed Django 1.0 on Ubuntu and am trying to get it to run on
> >Apache.Apacheis installed, working fine, with mod-python also in
> > place. I'm new at everything Linux.
>
> > But when I try
On Sat, 2009-03-14 at 19:52 -0700, Rex wrote:
[...]
>
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> PythonOption django.root /home/rex/django/mturk
*sigh* Will people please stop *guess
On Mar 4, 12:47 pm, John Maines wrote:
> Hello:
>
> I've installed Django 1.0 on Ubuntu and am trying to get it to run on
> Apache. Apache is installed, working fine, with mod-python also in
> place. I'm new at everything Linux.
>
> But when I try to run my app (a test blog), Apache gives an
> Im
just put this line in (/etc/apache2/sites-enabled/000-default)
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonInterpreter mysite
Py
One thing I noticed in my windows and sun solaris is that, there is no
trailing slash in python paths. When I added trailing slash, apache
showed error. So you might as well try removing trailing slash in
python paths.
--~--~-~--~~~---~--~~
You received this message
l Message-
> From: django-users@googlegroups.com
> [mailto:django-us...@googlegroups.com]on Behalf Of xankya
> Sent: Wednesday, March 04, 2009 4:28 PM
> To: Django users
> Subject: Re: Can't run django on Apache
>
>
>
> I guess u need to set python path to mysit
bject: Re: Can't run django on Apache
I guess u need to set python path to mysite plus django folders
In httpd.conf:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonDebug On
PythonPath "['pa
I guess u need to set python path to mysite plus django folders
In httpd.conf:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonDebug On
PythonPath "['path to mysite', 'path to django'] + sys.path"
--~--~--
Hello:
I've installed Django 1.0 on Ubuntu and am trying to get it to run on
Apache. Apache is installed, working fine, with mod-python also in
place. I'm new at everything Linux.
But when I try to run my app (a test blog), Apache gives an
ImportError message (below) I have come across NUMEROUS
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 informatio
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)
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 chan
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,
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 fo
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
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 Grazioti
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 serve
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
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
localh
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@g
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 we
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:
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
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 ac
This is my file system structure
WebApplication
-> 0.9
->lib (log4py)
->src (the Django Code)
This is the command i used to run the Django Application from console.
$ PYTHONPATH=lib/:src/ DJANGO_SETTINGS_MODULE=settings src/manage.py
runserver
PYTHONPATN=lib/:src/
The above command is
YES!!!
It worked!!
Now onto another problem.
Database settings, my original settings is postgresql_psycopg2
Running from command line, the web application can access the database
with no problem.
Running off apache, i have a interface error complaining the
connection is closed.
Then i change
On Tue, Jul 22, 2008 at 5:47 AM, Pepsi330ml <[EMAIL PROTECTED]> wrote:
>
> like this?
>
> NameVirtualHost 127.1.1.1
>
>...
>PythonDebug On
>
>PythonPath "[/home/Documents/WebApplication/
> 0.1/',#the
> main directory for the
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
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 follo
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 ./
> manag
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 trun
; > > to load and that is how django starts up. The third part is a
> > templates
> > > > > directory, which is where all the django templates go. The last part
> > is
> > > > the
> > > > > SQL we won't get into that here
t; > > be defined by you inside of settings.py. Apache (generally www-data)
> > > should
> > > > be given permission to read and execute these files.
> >
> > > > You should make sure django is in your python path. This is simple
> open
> > &
simple open
> > up a
> > > python shell and type 'import django'. make sure your project is in a
> > python
> > > path. This is done with the PythonPath in the config file. Other than
> > that
> > > read up on how apache configuration works and
rtualHost that I have included from my main
> apache.conf
> > file:http://dpaste.com/43421/
> >
> > I hope that helps you all:
> >
> > Michael
> >
> > On Sun, Apr 6, 2008 at 8:03 AM, <[EMAIL PROTECTED]> wrote:
> >
> > > Exact same issue
un, Apr 6, 2008 at 8:03 AM, <[EMAIL PROTECTED]> wrote:
>
> > Exact same issue here. Tried everything listed. Any other ideas or
> > possibly a sample config for httpd.conf on ubuntu.
>
> > Thanks in advance for your help
>
> > -Original Message-
> > From:
:
>
> Exact same issue here. Tried everything listed. Any other ideas or
> possibly a sample config for httpd.conf on ubuntu.
>
> Thanks in advance for your help
>
>
>
>
>
> -Original Message-
> From: Will Boyce <[EMAIL PROTECTED]>
> Sent: Sunday
figure Mod_Python fo Django on Apache server on Ubuntu
Assuming your django project (mysite) is in /home/webmaster/
public_html/django/ then you'll want a trailing "/" in your
PythonPath.
Hope this helps.
On Apr 5, 9:53 pm, HangingClowns <[EMAIL PROTECTED]> wrote:
> I s
On Apr 6, 5:23 pm, Will Boyce <[EMAIL PROTECTED]> wrote:
> Assuming your django project (mysite) is in /home/webmaster/
> public_html/django/ then you'll want a trailing "/" in your
> PythonPath.
No you don't. Trailing slash shouldn't make any difference.
What gives you that idea?
Graham
> H
Assuming your django project (mysite) is in /home/webmaster/
public_html/django/ then you'll want a trailing "/" in your
PythonPath.
Hope this helps.
On Apr 5, 9:53 pm, HangingClowns <[EMAIL PROTECTED]> wrote:
> I should have the latest versions available for Apache and mod_python
> cause I just
What's the syntax for that? Is that like that chmod?
On Apr 5, 5:08 pm, Michael <[EMAIL PROTECTED]> wrote:
> Simply django can't find your settings.py file. This could be a few things
> but based on where the file is located my bet is that the apache process
> (most likely www-data on ubuntu) doe
Simply django can't find your settings.py file. This could be a few things
but based on where the file is located my bet is that the apache process
(most likely www-data on ubuntu) doesn't have permissions to access your
settings.py file. Give www-data permissions to access the file and you
should
I should have the latest versions available for Apache and mod_python
cause I just put those onto my server about 2 weeks ago. I'm having
trouble understanding how to edit the Apache config file for Django. I
currently use the code snippet below for my settings in Apache. And
this is what the erro
On Aug 19, 11:04 pm, Chris Hoeppner <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> > If my site is under /var/www/html/python, with the settings file as /
> > var/www/html/python/foo/settings.py should I write,
> > SetEnv DJANGO_SETTINGS_MODULE foo.settings
> > (o
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> If my site is under /var/www/html/python, with the settings file as /
> var/www/html/python/foo/settings.py should I write,
> SetEnv DJANGO_SETTINGS_MODULE foo.settings
> (or) SetEnv DJANGO_SETTINGS_MODULE python.foo.settings
Python imports stuff ba
On 8/19/07, shabda <[EMAIL PROTECTED]> wrote:
> I am *very* confused here, I have only installed mod_python, and
> nothing specific to django. SO how would the line
> PythonHandler django.core.handlers.modpython work?
If you have Django installed on the server and on the Python path, it will wor
I have apache installed on linux with mod_php, mysql. I am trying to
get django working here, and am following the intsallation steps at
http://www.djangobook.com/en/beta/chapter21/ .
Step 1. Install mod_python
did yum install mod_python. Checked that mod_python is installed.
Step 2.
Add this to y
> The results of the above telnet
> *should* (on a compliant proxy) leak a little info about the
> proxy server in the HTTP headers.
Got it! Thanks -- I looked at the HTTP header for the CSS file, and
'Vary' was set to 'cookie'. Cleared cookies in my browser (not a
default when clearing cache
> I'm running Django 0.95 on Apache 2.0, using mod_python 3.3.1,
> and I use SSH to connect to my server. After a few days of
> shuffling and cursing and fiddling, I've got everything
> running nicely: apps work, dbs work, templates work, css
> works. But, I've found that when I make CSS changes
Hey all --
I've run into an unexpected situation, but feel it may be due more to
my inexperience than any innate weirdness. Perhaps someone can
explain?
I'm running Django 0.95 on Apache 2.0, using mod_python 3.3.1, and I
use SSH to connect to my server. After a few days of shuffling and
cursi
> If you are not going to modify your application directories/files
> through apache, a read permission for apache would be sufficient.
Is this correct? I'm under the impression apache needs write access to
the directories so it can create the pyc files. Otherwise you're going
to have really
On Jun 20, 8:29 pm, Pythoni <[EMAIL PROTECTED]> wrote:
> I use Django with Apache and it runs great.
> I have root access to the server.
> But still I am not sure what are the best raccess rights for :
> settings.py
> for files in
> models and views directories and for directories themselves.
> W
Pythoni schrieb:
> I use Django with Apache and it runs great.
> I have root access to the server.
> But still I am not sure what are the best raccess rights for :
> settings.py
> for files in
> models and views directories and for directories themselves.
> What owner shall I use? root or httpd o
I use Django with Apache and it runs great.
I have root access to the server.
But still I am not sure what are the best raccess rights for :
settings.py
for files in
models and views directories and for directories themselves.
What owner shall I use? root or httpd or different?
Thank you for help
88 matches
Mail list logo