Re: problem deploying two apps
Hi frocco May be this post can ve useful for you, althought instead of uwsgi use gunicorn http://michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/ On Tuesday, March 1, 2016 at 11:56:57 AM UTC-5, frocco wrote: > > Hi, > > I followed this > https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ > > First app works fine, if I deploy the second app, the settings conflict > and images are not rendered. > > [code] > Alias /static /var/www/django/track/static > > > Require all granted > > > > > Require all granted > > > > > > Require all granted > > > WSGIDaemonProcess track > python-path=/var/www/django/track:/usr/lib/python2.7/site-packages > WSGIProcessGroup track > WSGIScriptAlias /track /var/www/django/track/track/wsgi.py > process-group=track > [/code] > > [code] > Alias /static /var/www/django/coffee/static > > > Require all granted > > > > > Require all granted > > > > > > Require all granted > > > WSGIDaemonProcess coffee > python-path=/var/www/django/coffee:/usr/lib/python2.7/site-packages > WSGIProcessGroup coffee > WSGIScriptAlias /coffee /var/www/django/coffee/coffee/wsgi.py > process-group=coffee > > > [/code] > -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bcb39068-2d4c-490f-bdcc-5eceb1e0ac5b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: problem deploying two apps
I changed the second project to use STATIC_URL = *'/static1/' and the apache conf to **ALIAS /static1/* *and the images now show* On Wednesday, March 2, 2016 at 9:02:40 AM UTC-5, frocco wrote: > > From your link, it looks like I am using the WSGIDaemonProcess and > WSGIScriptAlias > The app runs fine, but images do not render unless I remove one project. > As soon as I add the second project, images do not render in static. > Each project has there own static directory under project name > > On Wednesday, March 2, 2016 at 8:59:05 AM UTC-5, frocco wrote: >> >> That is correct, sorry for my wording. This is two separate projects that >> need to run on the same server. >> >> On Tuesday, March 1, 2016 at 6:17:33 PM UTC-5, James Schneider wrote: >>> >>> On Tue, Mar 1, 2016 at 8:56 AM, frocco wrote: >>> Hi, I followed this https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ First app works fine, if I deploy the second app, the settings conflict and images are not rendered. >>> I'm assuming that you have two separate projects that need to run >>> concurrently, not two separate apps within a single Django project (as the >>> Django nomenclature would define). Your Apache config would need to be >>> modified per the answer in this SO: >>> http://stackoverflow.com/questions/6590587/multiple-mod-wsgi-apps-on-one-virtual-host-directing-to-wrong-app >>> >>> -James >>> >>> -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3c3105e8-ccaa-468a-907c-6a066aab7655%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: problem deploying two apps
>From your link, it looks like I am using the WSGIDaemonProcess and WSGIScriptAlias The app runs fine, but images do not render unless I remove one project. As soon as I add the second project, images do not render in static. Each project has there own static directory under project name On Wednesday, March 2, 2016 at 8:59:05 AM UTC-5, frocco wrote: > > That is correct, sorry for my wording. This is two separate projects that > need to run on the same server. > > On Tuesday, March 1, 2016 at 6:17:33 PM UTC-5, James Schneider wrote: >> >> On Tue, Mar 1, 2016 at 8:56 AM, frocco wrote: >> >>> Hi, >>> >>> I followed this >>> https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ >>> >>> First app works fine, if I deploy the second app, the settings conflict >>> and images are not rendered. >>> >>> >> I'm assuming that you have two separate projects that need to run >> concurrently, not two separate apps within a single Django project (as the >> Django nomenclature would define). Your Apache config would need to be >> modified per the answer in this SO: >> http://stackoverflow.com/questions/6590587/multiple-mod-wsgi-apps-on-one-virtual-host-directing-to-wrong-app >> >> -James >> >> -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fa704544-9bbb-48ce-b917-8b6b88a0800c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: problem deploying two apps
That is correct, sorry for my wording. This is two separate projects that need to run on the same server. On Tuesday, March 1, 2016 at 6:17:33 PM UTC-5, James Schneider wrote: > > On Tue, Mar 1, 2016 at 8:56 AM, frocco > > wrote: > >> Hi, >> >> I followed this >> https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ >> >> First app works fine, if I deploy the second app, the settings conflict >> and images are not rendered. >> >> > I'm assuming that you have two separate projects that need to run > concurrently, not two separate apps within a single Django project (as the > Django nomenclature would define). Your Apache config would need to be > modified per the answer in this SO: > http://stackoverflow.com/questions/6590587/multiple-mod-wsgi-apps-on-one-virtual-host-directing-to-wrong-app > > -James > > -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4221c351-47ee-43a1-a337-3f7625c4f6d3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: problem deploying two apps
On Tue, Mar 1, 2016 at 8:56 AM, frocco wrote: > Hi, > > I followed this > https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ > > First app works fine, if I deploy the second app, the settings conflict > and images are not rendered. > > I'm assuming that you have two separate projects that need to run concurrently, not two separate apps within a single Django project (as the Django nomenclature would define). Your Apache config would need to be modified per the answer in this SO: http://stackoverflow.com/questions/6590587/multiple-mod-wsgi-apps-on-one-virtual-host-directing-to-wrong-app -James -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXZq1JA%2BVakzfDogHmPjcq9xpRDnJry16k_5HweWs-VHQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: problem deploying two apps
On Tuesday, 1 March 2016 16:56:57 UTC, frocco wrote: > > Hi, > > I followed this > https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ > > First app works fine, if I deploy the second app, the settings conflict > and images are not rendered. > > [code] > Alias /static /var/www/django/track/static > > > Require all granted > > > > > Require all granted > > > > > > Require all granted > > > WSGIDaemonProcess track > python-path=/var/www/django/track:/usr/lib/python2.7/site-packages > WSGIProcessGroup track > WSGIScriptAlias /track /var/www/django/track/track/wsgi.py > process-group=track > [/code] > > [code] > Alias /static /var/www/django/coffee/static > > > Require all granted > > > > > Require all granted > > > > > > Require all granted > > > WSGIDaemonProcess coffee > python-path=/var/www/django/coffee:/usr/lib/python2.7/site-packages > WSGIProcessGroup coffee > WSGIScriptAlias /coffee /var/www/django/coffee/coffee/wsgi.py > process-group=coffee > > > [/code] > I'm not sure why you are deploying these two apps separately on the same server. Usually the two apps would go together under one project, with one settings file, and you would deploy that project. collectstatic would take care of putting all the static files from both apps in the right place. -- DR. -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e3bbb18a-bdd3-4229-934a-807f663b0fda%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
problem deploying two apps
Hi, I followed this https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/ First app works fine, if I deploy the second app, the settings conflict and images are not rendered. [code] Alias /static /var/www/django/track/static Require all granted Require all granted Require all granted WSGIDaemonProcess track python-path=/var/www/django/track:/usr/lib/python2.7/site-packages WSGIProcessGroup track WSGIScriptAlias /track /var/www/django/track/track/wsgi.py process-group=track [/code] [code] Alias /static /var/www/django/coffee/static Require all granted Require all granted Require all granted WSGIDaemonProcess coffee python-path=/var/www/django/coffee:/usr/lib/python2.7/site-packages WSGIProcessGroup coffee WSGIScriptAlias /coffee /var/www/django/coffee/coffee/wsgi.py process-group=coffee [/code] -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/18651331-b7d0-413c-9847-a5a71ca5c3f9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.