you won't have problems until you try
On Mon, Apr 4, 2016 at 8:12 PM, asimkon wrote:
>
> I would like to configure Django with Apache web server on Windows using
> XAMPP or Wamp. I looked over the Web until i came across the following
> video https://www.youtube.com/watch?v=VOkXG0jL_8U. Do you
THank for the config , i do able to run the apache22 with mod_wsgi + python
2.7 in windows server.
On Sun, Dec 2, 2012 at 3:03 PM, Loai Ghoraba wrote:
> Thanks a million for the tip :)
>
>
> On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon wrote:
>
>>
>>
>> On Saturday, December 1, 2012 3:47:39 A
Thanks a million for the tip :)
On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon wrote:
>
>
> On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote:
>>
>> no I mean the root of my project guys :) thanks a lot :D which lives in
>> path/to/my/project :)
>>
>
> Oh thank god for that!
>
> I
On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote:
>
> no I mean the root of my project guys :) thanks a lot :D which lives in
> path/to/my/project :)
>
Oh thank god for that!
I'd actually done something similiar once... I'd removed a bunch of
permissions using chmod -R / r
no I mean the root of my project guys :) thanks a lot :D which lives in
path/to/my/project :)
On Sat, Dec 1, 2012 at 11:42 AM, Timothy Makobu wrote:
> Root directory??? As in / ? Nooo nonono
>
>
> On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon wrote:
>
>>
>>
>> On Friday, November 30, 2012 8
Root directory??? As in / ? Nooo nonono
On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon wrote:
>
>
> On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote:
>>
>> On 1/12/2012 3:48pm, Loai Ghoraba wrote:
>> > I have ran chmod o+rx on the root directory, isn't this enough (isn't
>>
On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote:
>
> On 1/12/2012 3:48pm, Loai Ghoraba wrote:
> > I have ran chmod o+rx on the root directory, isn't this enough (isn't
> > chmod applied to all folders down recursively ?) ?
>
> No. You need chmod -R o+rx
>
Oh hell no, don't
okay it works now, I was just missing a trailing slash at
Alias /static/ /home/loai/workspace/Faculty/Faculty/static/
On Sat, Dec 1, 2012 at 8:17 AM, Loai Ghoraba wrote:
> a strange thing is that when I remove the directive so it
> becomes:
>
>
> Order deny,allow
> Allow from all
>
>
> inste
a strange thing is that when I remove the directive so it
becomes:
Order deny,allow
Allow from all
instead of
Order deny,allow
Allow from all
then trying to access any static or media file raises (not found) instead
of permission denied !
On Sat, Dec 1, 2012 at 7:42 AM, Loai Ghoraba w
thanks, but still I can't find what's wrong with the permission thing. The
html pages are loaded without static content, no css or js or whatever,
neither the media is accessible.
On Sat, Dec 1, 2012 at 7:15 AM, Mike Dewhirst wrote:
> On 1/12/2012 3:57pm, Loai Ghoraba wrote:
>
>> thanks, but I
On 1/12/2012 3:57pm, Loai Ghoraba wrote:
thanks, but I have tried this now and it also doesn't work :X though the
author slides presentation mentioned chmod o+rx on the root dir only.
On Sat, Dec 1, 2012 at 6:53 AM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote:
chmod -R o+rx
Here is
On 1/12/2012 3:48pm, Loai Ghoraba wrote:
I have ran chmod o+rx on the root directory, isn't this enough (isn't
chmod applied to all folders down recursively ?) ?
No. You need chmod -R o+rx
and I have checked the directories from the root down to static, all
have the permission of drwxr-xr-x
I have ran chmod o+rx on the root directory, isn't this enough (isn't chmod
applied to all folders down recursively ?) ?
and I have checked the directories from the root down to static, all have
the permission of drwxr-xr-x
On Sat, Dec 1, 2012 at 2:21 AM, Chris Cogdon wrote:
> Make sure all the
Make sure all the directories, from static leading all the way up to the
root, are chmod a+x
On Friday, November 30, 2012 4:00:55 PM UTC-8, Loai Ghoraba wrote:
>
> Hi
>
> I have installed apache and mod_wsgi and my basic site *skeleton is
> running* on local host, but with NO static files loade
Using gunicorn in virtual environment.
On 18 July 2012 04:03, Kurtis Mullins wrote:
> Hello Carlos,
>
> I apologize but I am unable to understand your problem. It looks like you
> are trying to use Apache to forward requests on to Django using
> "mod_python".
>
> According to Django's web site,
Hello Carlos,
I apologize but I am unable to understand your problem. It looks like you
are trying to use Apache to forward requests on to Django using
"mod_python".
According to Django's web site, "mod_python" is deprecated and therefore
shouldn't be used. (Source:
https://docs.djangoproject.com
Thanks to everyone for your time.
Michael, I have found a similar GIL-related issue on ServerFault:
http://groups.google.com/group/django-users/browse_thread/thread/4c42b458fd5bfba9
Are there ways to code around this limitation? What versions were you
running when you encountered these issues?
T
I have a decent amount of experience with running apache, mod_wsgi and
django on windows (w/ MS SQL). Apache's process module on windows
(mpm_winnt) may result in you having to configure around some serious
GIL related performance issues. You might not hit the problems if the
site is low traffic. Y
I recently compiled nginx with an additional module on windows and so far,
so good. I'm probably skipping Apache altogether for this small website.
As far as PostgreSQL goes, from what I've seen, it works flawlessly on
Windows. Never heard of anyone complaining about that.
Cheers,
AT
On Tue, Ju
PS, I used mod_wsgi and make sure you have the latest pywin32
On Jul 26, 2:03 pm, CrabbyPete wrote:
> I've run django on Windows Server with apache and it was easy to
> deploy. Forget IIS. I've deployed Nginx and uWSGI on linux and that
> was even easier.
> I've never done Nginx on windows, but
I've run django on Windows Server with apache and it was easy to
deploy. Forget IIS. I've deployed Nginx and uWSGI on linux and that
was even easier.
I've never done Nginx on windows, but I don't think it would be a big
deal.
On Jul 26, 1:25 pm, Dimitry Zolotaryov wrote:
> So if I run into perfo
So if I run into performance issues, I can always pipe from Apache to
something like gunicorn and keep Apache serving static media?
Dimitry
On 26 juil, 13:03, Javier Guerra Giraldez wrote:
> On Tue, Jul 26, 2011 at 11:33 AM, Dimitry Zolotaryov wrote:
> > Knowing this, any advice on the original
On Tue, Jul 26, 2011 at 11:33 AM, Dimitry Zolotaryov wrote:
> Knowing this, any advice on the original question would be greatly
> appreciated.
I haven't done any deployment on windows; but i do know some helpful facts:
- microsoft invests a lot of money in making sure that high-profile
OSS proj
Javier,
You're correct in assuming that these are the tools I'm most
comfortable with.
Knowing this, any advice on the original question would be greatly
appreciated.
Thanks.
Dimitry
On Jul 26, 11:03 am, Javier Guerra Giraldez
wrote:
> On Tue, Jul 26, 2011 at 9:23 AM, Andre Terra wrote:
> >
On Tue, Jul 26, 2011 at 9:23 AM, Andre Terra wrote:
> You can take a look at using something like nginx for serving small static
> files, which can otherwise keep Apache busy and therefore delay its response
> for more important tasks.
>
> At the risk of flaming, I should note that I have never he
Hello, Dimitry
You can take a look at using something like nginx for serving small static
files, which can otherwise keep Apache busy and therefore delay its response
for more important tasks.
At the risk of flaming, I should note that I have never heard of anything
that MySQL does better than Po
Fixed it.
It turned out to be a problem with how the django project templates
were written. Both of the projects that I was experimenting with were
using hardcorded href values, instead of using a url template tag.
hardcoded example:
Per-geometry styles
url template tag example:
Per-geometry
sty
I added the WSGI logging middleware to write to the Apache log as
described in:
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response
and yes it appears that my SCRIPT_NAME environment variable is being
automatically set (see excerpts below). So I guess it is Djan
On Jan 6, 3:22 pm, Rob wrote:
> Have you managed to figure this out - I'm having a similar (I believe
> the same) issue.
It was the typo pointed out by Daniel Roseman. You may need to turn
on a more detailed debugging level in your httpd.conf to see it in the
log.
Good luck,
Patrick
--
You re
On Wed, Jan 6, 2010 at 2:39 PM, Tyler Erickson wrote:
> I am trying to use Apache and mod_wsgi to serve multiple django
> sites. The django sites are served up fine when at the root URL, but
> when served from a sub-URL the portion of the the URL consumed by
> Apache disappears from any links cre
Have you managed to figure this out - I'm having a similar (I believe
the same) issue.
On Jan 5, 6:27 am, Patrick May wrote:
> Can you make it fail in the development server, with DEBUG turned on?
>
> If so, you can get more helpful error display and/or do pdb.set_trace() and
> poke around.
>
> I
Can you make it fail in the development server, with DEBUG turned on?
If so, you can get more helpful error display and/or do pdb.set_trace() and
poke around.
I'll give that a try, thanks!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
Assuming the code you've posted is a real cut and paste, you have
"HTTPResponse" for POST but "HttpResponse" for GET. Python is case-
sensitive, so only "HttpResponse" will work.
Thanks, that was it. Are errors like that written to a log file anywhere?
Thanks again,
Patrick
--
You received
Can you make it fail in the development server, with DEBUG turned on?
If so, you can get more helpful error display and/or do pdb.set_trace() and
poke around.
On Mon, Jan 4, 2010 at 4:25 PM, Patrick May wrote:
> Hi,
>
> I have Django running under Apache with mod_wsgi. I've got a simple URL
>
On Jan 4, 9:25 pm, Patrick May wrote:
> Hi,
>
> I have Django running under Apache with mod_wsgi. I've got a simple URL
> handler that looks like this:
>
> def handler(request):
> response = None
>
> if request.method == 'POST' or request.method == 'PUT':
> response = HTTPRespons
On Jun 15, 11:11 am, Miles wrote:
> Connections aren't thread safe - you have to ensure every thread gets
> its own connection. You can create a new connection every request or
> use a thread-local to cache connections.
The latter is what Django does, although it's very easy to miss when
perusin
> Connections aren't thread safe - you have to ensure every thread gets
> its own connection. You can create a new connection every request or
> use a thread-local to cache connections.
>
Ok, thanks for the explanation/confirmation
James
--~--~-~--~~~---~--~~
You
On Jun 15, 6:18 pm, James Gregory wrote:
> I am creating a web app with Django. I use a local MySQL database to
> store users etc, but also connect to a remote Oracle database to pull
> in some information to display.
>
> Due to Django's lack of multiple database support I have written my
> own v
Several people answered to your question here:
http://groups.google.com/group/django-users/browse_thread/thread/2f98dfb324b86747/884e9a5477deb6ca?q=#884e9a5477deb6ca
Alan
On May 8, 7:54 am, online wrote:
> forgot to mention the error message:
>
>
forgot to mention the error message:
---
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined
On Apr 18, 7:30 pm, gurcharan wrote:
> Hi
>
> I've used Django i18n module to implement internationalization in my
> site. I'm facing a strange issue - 118n is working on Django webserver
> but not on Apache and also no error message is getting logged.
>
> Can anyone have any clue why it's happ
On Fri, Feb 20, 2009 at 12:59 PM, Jlcarroll wrote:
>
> I posted this a couple of days ago and didn't get a response. Thought
> that I might try again.
>
> I am creating a private genealogy web page of pictures/obituaries/data
> files/census records etc... all just a set of files within a director
bump?
On Feb 20, 10:59 am, Jlcarroll wrote:
> I posted this a couple of days ago and didn't get a response. Thought
> that I might try again.
>
> I am creating a private genealogy web page of pictures/obituaries/data
> files/census records etc... all just a set of files within a directory
> stru
I'm glad to hear that everything is solved.
> One more question: in what sense did you mean that MEDIA_ROOT
> "is for file uploads"? I have not begun working on file uploads
> yet, but I will need that, and I see there is documentation on it
> which talks about several configurable options. Di
Polat,
Thank you, thank you!! That solved all the problems I had.
I was really at a loss to know where to look -- perhaps I hadn't
found the right docs, but this was the first time I had seen the
things you suggested.
One more question: in what sense did you mean that MEDIA_ROOT
"is for file u
Also the /admin/ url gives
> an internal error, which in apache's errlog shows a traceback
> that ends in "OperationalError: no such table: django_session".
This is most probably due to the fact that you did not set your
DB_NAME variable with the full path of your .db file. And sqlite3 is
creatin
Thanks a lot guys, that was it, should have looked at the official
documentation more closely.
On Jan 8, 9:27 pm, elithrar wrote:
> Just in case you miss it - and this is the method I'd suggest, as it
> makes updating easy:
>
> > Create a symbolic link to the admin media files from within your d
Just in case you miss it - and this is the method I'd suggest, as it
makes updating easy:
> Create a symbolic link to the admin media files from within your document
> root. This way, all of your Django-related files -- code and templates --
> stay in
> one place, and you'll still be able to sv
On Thu, Jan 8, 2009 at 11:45 PM, djangofett wrote:
>
> Hi, I am trying to get Django running on an Ubuntu server with Apache.
> Everything seems to be installed fine (mod_python, plus MySQL with
> MySQLdb python bindings), and I am running the main tutorial on the
> Django site. I am doing the se
On Sep 24, 3:27 pm, Harish <[EMAIL PROTECTED]> wrote:
> hi folks,
>
> i am trying to configure a project which is developed using
> django.
> Now I am trying to host it in web server (using Apache2), which is
> running in Fedora 9.
>
> I tried with the instruction given in the following
Glad you've got the SSL up and running, anyway.
I wouldn't say I'm an expert, I just stab around until I get things to
work. I do so little server configuration any more I tend to forget much
of what I learned between bouts, and I'm afraid I'm away from home this
week so I don't have the notes I
It turns out that it was because i have multiple domains hosted at
this current location. The ssl.conf file for Apache was configured
for one of the other domains. One I configured that file for the
domain I wanted it for, and moved the VirtualHost stuff from
httpd.conf to ssl.conf, it worked.
Note that you can only have one SSL server on an IP address: you can't
have multiple virtual hosts running SSL because the connection has to be
established (using the server's identity) before the Host: header can be
read.
I run the SSL server on my private server as a Virtual Host. This involves
Hmmm I played around a bit more. I don't think this is a Django
problem. I reduced the virtual host entry to:
ServerName mysite.com
ServerAliaswww.mysite.com
DocumentRoot "/home/django/test"
That fails too. If I change that port to 80, it works. Must be
something my host
Thanks for the pointer Milan...much to my surprise, pointing my
browser at http://localhost/media/style.css showed the contents of my
CSS file.
In the last post, by "seeing the same behavior", I meant that there
was no 404 error, only a blank page...no output from the template and
no stylesheet a
The contents of my base.html page are:
http://www.w3.org/1999/xhtml";>
{% block title %}{% endblock %}
Foo
Bar
{% block content %}
{% endblock %}
{% block sidebar %}
{% endblock %}
As
if you use multiple django instances, you need to add to each
PythonInterpreter somestring
On Jul 8, 11:52 pm, "Milan Andric" <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 8, 2008 at 9:47 PM, foo <[EMAIL PROTECTED]> wrote:
>
> > First, I want to thank you for your reply Milan! I just recently
> > j
On Tue, Jul 8, 2008 at 9:47 PM, foo <[EMAIL PROTECTED]> wrote:
>
> First, I want to thank you for your reply Milan! I just recently
> joined the group and I'm impressed at how active the group is and how
> helpful all of the advice I've found here has been.
>
> I've made the changes that you sugg
The blank page seems suspicious, as usually you'd be getting an error
message if something was wrong with your configuration. What do you
see if you view the source of that page? Perhaps there's an error in
your HTML, like forgetting to close a tag. It's impossible to
tell without seeing at th
First, I want to thank you for your reply Milan! I just recently
joined the group and I'm impressed at how active the group is and how
helpful all of the advice I've found here has been.
I've made the changes that you suggested and unfortunately, I'm still
seeing the same behavior. What I did w
First, I want to say thank you for your reply Milan! I just recently
joined the group and I'm impressed at how active the group and how
helpful all of the advice I've found here has been.
I've made the changes that you suggested and unfortunately, I'm still
seeing the same behavior. What I did
On Tue, Jul 8, 2008 at 7:58 PM, foo <[EMAIL PROTECTED]> wrote:
>
> OK, I know this has been posted in the forums before, but for some
> reason, I'm still struggling to get my CSS stylesheet applied to my
> django templates. I'm hoping that if I post my configuration, someone
> can point out what
Karen:
Thank you a million Karen. I changed the curly quotes to ordinary
quotes and restarted Apache. It works fine.
I was elated when I accessed the http://cobra.mycompany.com/petview
and saw it working from another machine. This is my first toy with web
application.
Karen, thank you very much
On Tue, Jun 24, 2008 at 12:38 PM, Nagu <[EMAIL PROTECTED]> wrote:
>
> Karen:
>
> I followed the instructions at
> http://www.djangoproject.com/documentation/modpython/
> .
>
> Here are the settings I added to the httpd.conf file:
>
>
>SetHandler python-program
>PythonHandler django.core.h
since you are accessing a subdomain, there may be a vhost for your
machine with an apache install for the whole domain... Are you the
admin of the domain? if not you may want to have a chat with them.
On Jun 24, 12:38 pm, Nagu <[EMAIL PROTECTED]> wrote:
> Karen:
>
> I followed the instructions at
Karen:
I followed the instructions at
http://www.djangoproject.com/documentation/modpython/
.
Here are the settings I added to the httpd.conf file:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE petinfosite.settings
Python
After that you need to setup a view in django and point that to a page (or
function)
On Tue, Jun 24, 2008 at 5:37 AM, Karen Tracey <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 23, 2008 at 7:38 PM, Nagu <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> I am very new to programming in general. I start to te
On Mon, Jun 23, 2008 at 7:38 PM, Nagu <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am very new to programming in general. I start to teach myself some
> python and django stuff.
>
> I followed the instructions in the chapter 3 of the book Professional
> Python Frameworks by Moore, Budd, and Wright. Ju
Hi Marcin,
> You can use django.views.static.serve.
> In my application I have the following link in my urls.py
But this is not good for my production server.
Quote from http://www.djangoproject.com/documentation/static_files/
"Using this method is inefficient and insecure. Do not use this in
Hi,
You can use django.views.static.serve.
In my application I have the following link in my urls.py
(r'^css/(?P.*)$', 'django.views.static.serve', {'document_root':
'%s/templates/css' % APPLICATION_ROOT }),
(r'^javascript/(?P.*)$', 'django.views.static.serve',
{'document_root': '%s/templates/ja
> in short:
>
> 1. yes, it works without it. if you dig deep enough at
> code.djangoproject.com, i think you can find some kind of fcgi.py which
> is afaik a stripped-down flup, or something like that.
> 2. the servage.net's answer is stupid :)
[snip snip snip]
> i hope this (chaotic) explanatio
Carlos Yoder wrote:
> * Important *
>
> Does anyone know if Django will run on a config with Apache 1.x +
> FastCGI, but without flup? At servage.net they just told me that they
> don't support flup "because of high memory usage", so I don't know
> what to do.
>
> I'll be most obliged if anyone
* Important *
Does anyone know if Django will run on a config with Apache 1.x +
FastCGI, but without flup? At servage.net they just told me that they
don't support flup "because of high memory usage", so I don't know
what to do.
I'll be most obliged if anyone can clarify this quickly... thanks a
PythonistL wrote:
> Gabor,
> what trafic do you have at your website and what server configuration
> do you use? I am asking that because you use FastCGI and I had big
> problems with FastCGI when there was highload.So I decided to move to
> mod_python and no problem since
> Regards,
> L
hi,
th
Gabor,
what trafic do you have at your website and what server configuration
do you use? I am asking that because you use FastCGI and I had big
problems with FastCGI when there was highload.So I decided to move to
mod_python and no problem since
Regards,
L
--~--~-~--~~~-
> I am not a doc wizard, but IMHO it is *always* worth addressing doc
> issues re set up that are ambiguous and make one wonder how to get
> started. I think most open source projects vastly undersestimate how
> important ease of entry is to their growth. This encompasses both how
> easy it is to
>>Well... Mod_python is the easiest method of running django, FastCGI
>>setup is more advanced and usually requires basic knowledge about
>>forking vs. threading, writing init scripts etc. These are things that
>>makes it harder for beginners to understand Django itself so in my
>>opinion it's go
Carlos Yoder wrote:
>>> Can anybody confirm having a Django app running under Apache 1.x +
>>> FastCGI? Is this actually a silly question, since let's say Dreamhost
>>> gives only Apache 1.x support? :-)
>> i have a website served by apache 1.x + fastcgi. no problems.
>>
>> gabor
>
> Thank you ve
> > Can anybody confirm having a Django app running under Apache 1.x +
> > FastCGI? Is this actually a silly question, since let's say Dreamhost
> > gives only Apache 1.x support? :-)
>
> i have a website served by apache 1.x + fastcgi. no problems.
>
> gabor
Thank you very much, or should I say
Carlos Yoder wrote:
>>> Hello people!
>>> Since I only found *one* place stating that Django "requires Apache
>>> 2.x and mod_python 3.x", I felt I should check :-)
>>> Just to be absolutely sure... Django does NOT work under Apache 1.x,
>>> correct?
>
>> Not correct. This 2.0 thing is mentioned
> > I wonder if more people were/are confused by that sentence (found
> > here: http://www.djangoproject.com/documentation/install/)...?
>
> Well... Mod_python is the easiest method of running django, FastCGI
> setup is more advanced and usually requires basic knowledge about
> forking vs. threadi
Carlos Yoder wrote:
> I wonder if more people were/are confused by that sentence (found
> here: http://www.djangoproject.com/documentation/install/)...?
Well... Mod_python is the easiest method of running django, FastCGI
setup is more advanced and usually requires basic knowledge about
forking
>> Hello people!
>> Since I only found *one* place stating that Django "requires Apache
>> 2.x and mod_python 3.x", I felt I should check :-)
>> Just to be absolutely sure... Django does NOT work under Apache 1.x, correct?
> Not correct. This 2.0 thing is mentioned because Django works under
> mo
Carlos Yoder wrote:
> Hello people!
>
> Since I only found *one* place stating that Django "requires Apache
> 2.x and mod_python 3.x", I felt I should check :-)
>
> Just to be absolutely sure... Django does NOT work under Apache 1.x, correct?
Not correct. This 2.0 thing is mentioned because Dja
Hello Alexandre,
thanks for the help. Now I am trying to correct.
With regards
Liudmila
--~--~-~--~~~---~--~~
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@google
> 1. the pretty django layout disappears;
It's something about the medias path (templates, css) for the admin.
This should help:
http://www.djangoproject.com/documentation/static_files/
> 2. now it is not possible to save the date in a database
> (Mysql, version 4.0.24)
I can't hel
86 matches
Mail list logo