Re: Django deploy Apache

2022-05-18 Thread Kasper Laudrup
On 13/05/2022 13.56, Nicolas Passarini wrote: Hello, i ve deployed a django app in apache. the problem is that i works for 5 minutes and then it stops responding. That sucks. Sounds like you have some issues you need to look into. Good luck. Kind regards, Kasper Laudrup -- You received

Re: Django wsgi apache Deploy project

2019-05-30 Thread N'BE SORO
thank you everyone I managed the deployment Le mar. 7 mai 2019 à 18:48, Subhodeep Das a écrit : > Try: > > WSGIScriptAlias /test/tc-test /var/www/stage/hello/tc-test/django.wsgi > > You shouldn't have trailing slash on first argument. > > On Tue, May 7, 2019 at 7:27 PM N'BE SORO wrote: > >>

Re: Django wsgi apache Deploy project

2019-05-07 Thread Subhodeep Das
Try: WSGIScriptAlias /test/tc-test /var/www/stage/hello/tc-test/django.wsgi You shouldn't have trailing slash on first argument. On Tue, May 7, 2019 at 7:27 PM N'BE SORO wrote: > > Hi I'm a beginner in python and I realized a project in Django. I have > problems in hosting my project. here is

Re: Django wsgi apache Deploy project

2019-05-07 Thread Kevin Jay
Remove the spaces in the paths: WSGIPythonPath / var / www / html / ecommerce / should be WSGIPythonPath /var/www/html/ecommerce/ Do the same for the other paths On Tue, May 7, 2019 at 8:57 AM N'BE SORO wrote: > > Hi I'm a beginner in python and I realized a project in Django. I have >

Re: django windows apache tell if apache is working

2018-07-03 Thread Bob Bobsled
Hi, I think I see the problem now. WAMP is a special case for aliases, and it's root directory default setup in c:wamp\www for ex.. I need to do some more work on, say for ex. using Django Tut 01, setting up mysite as an alias in wamp, and then putting the polls app in it. I believe apache

Re: django windows apache tell if apache is working

2018-07-02 Thread Bob Bobsled
Hi, I'm still stuck on getting Apache to verify as working with wsgi. Wondering what I might be doing incorrectly. I'm reading lots of tuts, but it's a jungle out there. I changed the folder hierarchy for the project and app so venv, django_project, and django_app are all on the same level as

Re: django windows apache tell if apache is working

2018-06-30 Thread Jason
I meant the tutorial at https://docs.djangoproject.com/en/2.0/intro/tutorial01/ That said, there's a few different ways you can actually deploy, but digitalocean has some good resources for starting out.

Re: django windows apache tell if apache is working

2018-06-30 Thread Bob Bobsled
Hi, Thanks. Yes, I went thru the Mozilla library tutorial on a fedora dev machine to the point where I realized I needed to do more with the last mile, so to speak working on setup of the production server part on Windows and wamp. Seems most tuts end at manage.py runserver, or start into

Re: django windows apache tell if apache is working

2018-06-30 Thread Jason
appreciate the detailed report :-) so, have you set up the django tutorial project? that application method in wsgi doesn't make any sense. you should have urls and views set up in your project -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Django with apache and php

2017-11-30 Thread Jason
you'll need to set up a virtual conf file. https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/modwsgi/ has good directions. You can have it run on the same port, just set the URL path differently to point to django. Eg, using the Alias directive

Re: Django deployement Apache

2017-10-19 Thread sarfaraz ahmed
Thanks you all you friends.. this is been fixed. On Thursday, 31 August 2017 14:47:05 UTC+5:30, Antonis Christofides wrote: > > Did you run collectstatic? After you do so, the files will be copied to > /var/www/static_root or whatever your STATIC_ROOT points to. > > Some other notes: > >-

Re: Django deployement Apache

2017-08-30 Thread sarfaraz ahmed
Thanks Antonis, I reached your website googling undoubtedly this is well explained. I have been able to deploy but here is my problem STATIC_URL = '/static/' MEDIA_URL = '/media/' STATICFILES_DIRS = [os.path.join(BASE_DIR, "static"),os.path.join(BASE_DIR,"static","admin")] STATIC_ROOT =

Re: Django deployement Apache

2017-08-30 Thread Antonis Christofides
Hello Sarfaraz, You could try "How Django static files work in production " to get some understanding of the correct way to do it. Regards, Antonis Antonis Christofides http://djangodeployment.com On

Re: Django deployement Apache

2017-08-29 Thread Daniel Roseman
On Tuesday, 29 August 2017 05:48:57 UTC+1, Vernon Swanepoel wrote: > > You can just copy the static files out of Django and into the static files > in your project itself. No. You should absolutely not do that. That is what the `collectstatic` command is for. -- DR. -- You received this

Re: Django deployement Apache

2017-08-28 Thread Vernon Swanepoel
You can just copy the static files out of Django and into the static files in your project itself. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Django deployement Apache

2017-08-27 Thread sarfaraz ahmed
Thanks for your help. Yes it was permission issue. However I am not able to find anything under my site-packages. when I point the same to dist-packages it works. WSGIPythonHome /usr/local/lib/python2.7/dist-packages WSGIPythonPath /var/www/firsttest ServerName firsttest.com

Re: Django deployement Apache

2017-08-26 Thread Vernon Swanepoel
Hello Sarfaraz, A couple things you could look at: 1. Are you including both your site-packages (eg python3.6/lib/site-packages) and your django project root (where you actually built the project) in your WSGIPythonPath? String them together with a clone

Re: Django deployement Apache

2017-08-26 Thread sarfaraz ahmed
Hey Team, Please someone help. I am still getting error * ImportError: No module named django.core.wsgi*mentioned below is my latest vhost file in ubuntu. WSGIScriptAlias / /var/www/firstweb/firstweb/wsgi.py ServerName firstweb.com ServerAlias www.firstweb.com

Re: Django deployement Apache

2017-08-26 Thread sarfaraz ahmed
i have made following changes in my vhost conf file and now services run. Also, I don't see any error. But instead of default django page I get default apache page. Here is my new conf file. - ServerName firstweb.com

Re: django on apache server

2016-08-18 Thread Asad Jibran Ahmed
Not being able to load CSS points to an Apache config issue. Did you setup apache so your static root configured to serve files from your static folder? Your apache config might be helpful here. Also, what you have pasted here seems like a warning, so while you should fix it, this is probably

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

2014-04-20 Thread Ramón Carrillo
Hi Adam, >From your settings.py I guess the expanded url is something like /PROYECTOS/file.xyz, right? But, in your Apache alias your are serving the url /proyectos/ [0], and urls are case sensitive unless you're using mod_speling [1]. I think "Alias /PROYECTOS/ /PROYECTOS/" should do the

Re: Django and apache

2013-05-12 Thread Venkatraman S
Set STATIC_ROOT in your settings.py and run 'collectstatic'. You need not mention in your /static/admin /usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin in your apache conf then. On Mon, May 13, 2013 at 7:16 AM, Stanley Agba wrote: > Thanks Guys, > The

Re: Django and apache

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

Re: Django and apache

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

Re: Django and apache

2013-05-12 Thread Branko Majic
On Sun, 12 May 2013 03:17:04 -0700 (PDT) Stanley Agba wrote: > Hello guys, > please I'm kind of a noob at django and I'm trying to deploy a django > site on Apache with mod_wsgi, I am not using a virtualenv as the > server has python installed. > I added the following to

Re: Django con Apache

2012-05-14 Thread Segundo Acosta Delgado
Ok, lo pruebo rápido!!! El lunes, 14 de mayo de 2012 08:13:55 UTC-5, kmox83 escribió: > > Hi, > > you can find a nice tutorial here > http://projects.unbit.it/uwsgi/wiki/Example > > Eugenio > > On Mon, May 14, 2012 at 3:09 PM, Segundo Acosta Delgado > wrote: > >> Holas

Re: Django con Apache

2012-05-14 Thread Eugenio Minardi
Hi, you can find a nice tutorial here http://projects.unbit.it/uwsgi/wiki/Example Eugenio On Mon, May 14, 2012 at 3:09 PM, Segundo Acosta Delgado wrote: > Holas developers!! , tengo un centOs 6.2 y quiero hacer correr Django con > apache, django corre sin problemas pero al

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

2011-07-11 Thread Cal Leeming [Simplicity Media Ltd]
Come on guys, at least make some effort to use Google :/ http://stackoverflow.com/questions/4557920/why-is-mod-wsgi-not-able-to-write-data-ioerror-failed-to-write-data http://stackoverflow.com/questions/4517397/print-statements-on-server-give-ioerror-failed-to-write-data

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

2011-07-11 Thread Serial H.
Hello, Did you find the solution ? I have exactly the same configuration but I am using Ubuntu 10.04. Serial H. On Jun 16, 11:56 pm, chycyra wrote: > sorry for error typing: the server is Ubuntu 10.04 and i'm no using > HTTPS request > > On Jun 17, 9:14 am, Heru Eko Susanto

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

2011-06-16 Thread chycyra
sorry for error typing: the server is Ubuntu 10.04 and i'm no using HTTPS request On Jun 17, 9:14 am, Heru Eko Susanto wrote: > hello all, > > i'm using Apache + mod_wsgi on ubuntu 9.10 . today i have error on my > server: > > [Tue Jun 14 06:27:49 2011] [notice] Apache/2.2.14

Re: Django on Apache

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

Re: Django on Apache

2010-09-25 Thread Tim Sawyer
On 25/09/10 19:36, Derek wrote: on several occasions I've made changes to a view, and got a "cannot load page/no response" (from the browser, not a Django error). Once I quit the server (Control-C), start it up again and refresh the page, it works fine. I get that sometimes too - I think it's

Re: Django on Apache

2010-09-25 Thread Derek
Thanks for the quick response, guys. I guess what confuses me is the need to EVER restart the server to pick up changes (excluding db syncs). It's been stated in many places (including Tim's response) that the test server will automatically pickup code changes, but on several occasions I've made

Re: Django on Apache

2010-09-25 Thread Tim Sawyer
On 25/09/10 16:07, Derek wrote: I am about a week into learning Django, having developed with PHP and the CodeIgniter framework for the past 3 years. That said, I'm used to making a change to a file, refreshing my browser and seeing the results. Django's "syncdb" aside, it's been pretty weird

Re: Django on Apache

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

Re: Django with Apache and mod_python

2010-06-06 Thread Justin Myers
It says you're missing a 500.html template. Without it, you can't see any error pages. See http://docs.djangoproject.com/en/dev/topics/http/views/#the-500-server-error-view Once you've made that template, you should be able to see what other errors are happening. -Justin On Jun 6, 12:16 am,

Re: Django with Apache and mod_python

2010-06-05 Thread Jagdeep Singh Malhi
ok sir , thanks very much indeed i try my best.. On Jun 6, 8:52 am, Kenneth Gonsalves wrote: > On Sunday 06 June 2010 09:12:30 Jagdeep Singh Malhi wrote: > > > Sir  , i am  not able to remove this error.. > > which of template or file name is wrong.. > > how

Re: Django with Apache and mod_python

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

Re: Django with Apache and mod_python

2010-06-05 Thread Jagdeep Singh Malhi
Sir , i am not able to remove this error.. which of template or file name is wrong.. On Jun 5, 5:09 pm, Kenneth Gonsalves wrote: > On Saturday 05 June 2010 17:25:16 Jagdeep Singh Malhi wrote: > > >   File "/usr/local/lib/python2.6/dist-packages/django/template/ >

Re: Django with Apache and mod_python

2010-06-05 Thread Raffaele Salmaso
Jagdeep Singh Malhi wrote: > MOD_PYTHON ERROR > please help... use mod_wsgi, mod_python is old and not more mantained http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-deployment-modwsgi -- ()_() | That said, I didn't actually _test_ my patch. | + (o.o) | That's

Re: Django with Apache and mod_python

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

Re: Django with Apache and mod_python

2010-06-05 Thread Jagdeep Singh Malhi
Thanks very much But Now the new are is come MOD_PYTHON ERROR ProcessId: 3219 Interpreter:'127.0.1.1' ServerName: '127.0.1.1' DocumentRoot: '/var/www' URI:'/' Location: '/' Directory: None Filename: '/var/www/' PathInfo: '' Phase:

Re: Django with Apache and mod_python

2010-06-05 Thread Kenneth Gonsalves
On Saturday 05 June 2010 16:30:46 Jagdeep Singh Malhi wrote: > PythonPath "['/home/username/mysite'] + sys.path" > PythonPath "['/home/username/'] + sys.path" -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed to the Google

Re: Django on Apache (mod_python) administration cookie problem

2008-11-04 Thread Dave Dash
I had cleared the cookies, I also tried in another browser as well - same result. On Nov 3, 10:50 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 4, 5:08 pm, Dave  Dash <[EMAIL PROTECTED]> wrote: > > > I am witnessing this issue using manage.py runserver. > > > The only useful

Re: Django on Apache (mod_python) administration cookie problem

2008-11-03 Thread Graham Dumpleton
On Nov 4, 5:08 pm, Dave Dash <[EMAIL PROTECTED]> wrote: > I am witnessing this issue using manage.py runserver. > > The only useful information I can give is this was working when I was > running .97 (or whatever was the trunk a few months back), I recently > upgraded to the latest trunk

Re: Django on Apache (mod_python) administration cookie problem

2008-11-03 Thread Dave Dash
I am witnessing this issue using manage.py runserver. The only useful information I can give is this was working when I was running .97 (or whatever was the trunk a few months back), I recently upgraded to the latest trunk (~1.1) and now continually get this message. I suspect something has

Re: Django on Apache (mod_python) administration cookie problem

2008-10-24 Thread Graham Dumpleton
On Oct 25, 11:59 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Graham, > Option 3: I use other utilities like wordpress and phpMyAdmin, so I cannot > afford to disable php completely > Option 2: I use Linux Mint (Ubuntu variant) for developement and Debian Etch > for production. So for option

Re: Django on Apache (mod_python) administration cookie problem

2008-10-24 Thread M.Ganesh
Graham, Option 3: I use other utilities like wordpress and phpMyAdmin, so I cannot afford to disable php completely Option 2: I use Linux Mint (Ubuntu variant) for developement and Debian Etch for production. So for option 2, I will require two sets of instructions, which means more trouble

Re: Django on Apache (mod_python) administration cookie problem

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

Re: Django on Apache (mod_python) administration cookie problem

2008-10-21 Thread M.Ganesh
Hi Daniel, I am also facing the same problem. I really can't understand the technicalities of the solution offered in this thread. Since you seemed to have solved the problem, can you please give a little more details on how to do it Thanks in advance Regards Ganesh Daniel bodom_lx

Re: django on apache looses all styling

2008-10-16 Thread Dj Gilcrease
In your settings.py file there is a MEDIA_URL setting and an ADMIN_MEDIA_PREFIX setting In my case I have MEDIA_URL = 'http://media.digitalxero.net/' + SITE_NAME + '/' ADMIN_MEDIA_PREFIX = 'http://media.digitalxero.net/admin/' That way all of my static files are server off my CDN (Separate

Re: django on apache looses all styling

2008-10-16 Thread William Purcell
I see that django documentation says to copy the admin media files so that they live within your Apache document root. I have put the media files from the django/contrib in the Apache document root. How does django/apache see them? On Thu, Oct 16, 2008 at 2:42 PM, William Purcell <[EMAIL

Re: Django on Apache (mod_python) administration cookie problem

2008-10-10 Thread Daniel bodom_lx Graziotin
Thank you very much for your replies, Alvaro and Graham! Removing php5-mhash solved the problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Graham Dumpleton
On Oct 1, 10:56 am, Álvaro Justen <[EMAIL PROTECTED]> wrote: > Daniel bodom_lx Graziotin wrote: > > Hi everybody! I'm a new Django developer and for learning the > > framework I decided to create (another) pastebin clone that I > > published onhttp://incollo.com > > The application works very

Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Álvaro Justen
Ah, some details: -> Admin interface runs OK with python manage.py runserver - as of it is an Apache error, Django's web server isn't affected by this bug. -> I'm using Debian etch as server: I've installed Apache, PHP and mod_php with Debian packages, but Django installed manually. -> Versions:

Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Álvaro Justen
Daniel bodom_lx Graziotin wrote: > Hi everybody! I'm a new Django developer and for learning the > framework I decided to create (another) pastebin clone that I > published on http://incollo.com > The application works very well and I'm very proud of it because I > started learning Django six

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

2008-08-26 Thread mario
Graham, Thank you for your help. II'll pay attention to cookies to. Using the PythonInterpreted directive, as Malcom suggested, solved my problem. On Aug 26, 9:44 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Aug 26, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > > On

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

2008-08-26 Thread mario
Malcom, Thank you very much. It solved my problem! On Aug 26, 9:07 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-25 at 23:45 -0700, mario wrote: > > [...] > > > > > And here's how I defined the apps in Apache2 (running with lastest > > Django SVN). > > > > >    

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

2008-08-26 Thread Graham Dumpleton
On Aug 26, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-25 at 23:45 -0700, mario wrote: > > [...] > > > > > And here's how I defined the apps in Apache2 (running with lastest > > Django SVN). > > > > >     SetHandler python-program > >     PythonPath

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

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

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

2008-06-22 Thread foxbunny
On Jun 22, 5:59 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > I'm assuming you have papastudio.blog listed in INSTALLED_APPS? > > Does apache have read access to the whole tree under  /papastudio, including > blog?  It seems apache can read /papastudio, otherwise you'd get an > 'ImportError: No

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

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

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

2008-06-21 Thread Karen Tracey
On Sat, Jun 21, 2008 at 9:02 PM, foxbunny <[EMAIL PROTECTED]> wrote: > > Hi, list, > > I'm trying to deploy a very simple Django app, and it's driving me > crazy. I've followed the docs and set up Apache with mod_python. Then > I uploaded the app, did syncdb, and everything works when I ./ >

Re: Django WITHOUT apache on windows.

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

Re: Django+Postgre+Apache+Windows

2006-02-12 Thread Tim
Disclaimer--I just barely figured this out myself. It could be the mod_python set up. Is this the case? In the description of how to set up the conf file for apache to work with mod_python, I think there's an error. They say you should have this: AddHandler python-program .py

Re: Django+Postgre+Apache+Windows

2006-02-11 Thread Tom Tobin
Okay, smack me for reading the subject line one second after hitting Send. :-p On 2/12/06, Tom Tobin <[EMAIL PROTECTED]> wrote: > On 2/11/06, David S. <[EMAIL PROTECTED]> wrote: > > > > Sorry for the lack of details, but any guidance is appreciated. > > That's where I'd start — more details.