Re: Where are you deploying Django App? How much does it cost for a hobby project

2021-10-04 Thread Paul Tiplady
You can deploy to Heroku, there's a free tier and it's very low maintenance.

https://devcenter.heroku.com/articles/deploying-python

I've had a free Django app running there that I set up almost 10 years ago 
without any work required to keep it up since then.

Heroku is somewhat expensive if you actually get enough traffic that you 
need to start paying them, but it's ideal for the MVP / proof-of-concept 
phase of a project. If you're price-conscious and want to scale up a bit 
more, you can rent a dedicated VM for $5/month (for example, Digital Ocean 
droplets https://www.digitalocean.com/pricing/) and that will get you a lot 
more capacity per $. That said, you may find that the convenience of Heroku 
is worth paying for.

On Sunday, October 3, 2021 at 9:27:25 AM UTC-7 avi.me...@gmail.com wrote:

> Hello! I am building a prototype Django app and would like to deploy it so 
> that people can use it.
> What would be the most cost-effective and cheapest deployment solution to 
> host a django backend? How much would it cost?
> Any ideas, help is most welcomed and appretiated
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7fdd43b6-5bca-4cc1-90df-7e277d19b5d7n%40googlegroups.com.


Re: Where are you deploying Django App? How much does it cost for a hobby project

2021-10-04 Thread MR INDIA
*Since it is a hobby project *i would recommend *heroku free hosting*

On Sunday, 3 October 2021 at 21:57:25 UTC+5:30 avi.me...@gmail.com wrote:

> Hello! I am building a prototype Django app and would like to deploy it so 
> that people can use it.
> What would be the most cost-effective and cheapest deployment solution to 
> host a django backend? How much would it cost?
> Any ideas, help is most welcomed and appretiated
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0a2ad21f-b549-41ca-94f2-7e13936e03aen%40googlegroups.com.


Where are you deploying Django App? How much does it cost for a hobby project

2021-10-03 Thread Avi Mehenwal
Hello! I am building a prototype Django app and would like to deploy it so 
that people can use it.
What would be the most cost-effective and cheapest deployment solution to 
host a django backend? How much would it cost?
Any ideas, help is most welcomed and appretiated

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4b731458-38a3-4eeb-980d-ac4477bbc7f7n%40googlegroups.com.


Re: Deploying django in plesk

2021-08-25 Thread S.t_ &_E
Hello,
Please make sure you have run collectstatic command before deploying. You 
can 
follow 
https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/#static-root-and-static-url.

On Thursday, August 26, 2021 at 12:38:52 AM UTC+5:30 frankg...@gmail.com 
wrote:

> Hi everybody.
> I've already deployed my app in Plesk, but the process is incomplete, .
> The static files not working, I mean the app can not read them.
> I know I need put them in the right position, but I can not achieve.
> Any help is welcome
> thanks a lot in advance
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1c8fe40d-0fb2-4dac-b553-2073e6312cefn%40googlegroups.com.


RE: Deploying django in plesk

2021-08-25 Thread Mike Dewhirst
Try manage.py collectstatic --settings=path-to-settingsLook up collectstatic in 
the docsMike--(Unsigned mail from my phone)
 Original message From: frank galan  
Date: 26/8/21  05:09  (GMT+10:00) To: Django users 
 Subject: Deploying django in plesk Hi 
everybody.I've already deployed my app in Plesk, but the process is incomplete, 
.The static files not working, I mean the app can not read them.I know I need 
put them in the right position, but I can not achieve.Any help is welcomethanks 
a lot in advance



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/181a730e-2157-42f6-b540-d1b1dc19c640n%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6126c3f0.1c69fb81.42e06.c8a4SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: Deploying django in plesk

2021-08-25 Thread Gabriel Araya Garcia
Hi, Frank:
Perhaps that can run if you put the statics folder in the exterior level.
Por example:
misite/misite/myapp
In local, I have my statics folder in myapp level, but in hosting I must to
put it in:
misite
(fisrts misite)
try it, and tell me how has solve that problem.

Greetings

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El mié, 25 ago 2021 a las 15:09, frank galan ()
escribió:

> Hi everybody.
> I've already deployed my app in Plesk, but the process is incomplete, .
> The static files not working, I mean the app can not read them.
> I know I need put them in the right position, but I can not achieve.
> Any help is welcome
> thanks a lot in advance
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/181a730e-2157-42f6-b540-d1b1dc19c640n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDAAaPdtFfu-wnAb%2BTfOeXswYOsNARkkVACbhpVju--VMg%40mail.gmail.com.


Deploying django in plesk

2021-08-25 Thread frank galan
Hi everybody.
I've already deployed my app in Plesk, but the process is incomplete, .
The static files not working, I mean the app can not read them.
I know I need put them in the right position, but I can not achieve.
Any help is welcome
thanks a lot in advance

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/181a730e-2157-42f6-b540-d1b1dc19c640n%40googlegroups.com.


Re: Newbee help on deploying Django App to Apache2

2021-05-30 Thread Moose Smith
Thanks Guy  Very helpful thanks for the information. I'm working the issue 
right now.

On Sunday, May 30, 2021 at 10:30:18 AM UTC-4 Antonis Christofides wrote:

> Apache and nginx are called "web servers". Windows and FreeBSD are called 
> "operating systems". What is the term for Gunicorn, uWSGI and mod_wsgi? I 
> believe there's no good term, which is one reason for the confusion.
>
> Gunicorn, uWSGI and mod_wsgi are specialized web servers that run Python 
> WSGI-compliant applications. For lack of a better name, I'll call them 
> Python application servers, but don't forget that they are nothing more 
> (and nothing less) than specialized web servers that run Python 
> WSGI-compliant applications.
>
> What the Python application server does is
>
> from djpro.wsgi import application
>
> and then, in each HTTP request, it calls application() in a standard way 
> that is specified by the WSGI specification. The fact that the interface of 
> this function is standardized is what permits you to choose between many 
> different Python application servers such as Gunicorn, uWSGI, or mod_wsgi, 
> and why each of these can interact with many Python application frameworks 
> like Django or Flask.
>
> The Python application server does not *communicate* with the Django 
> project, it *imports* the Django project. From the point of view of the 
> operating system, it is the same process. You don't have a separate server 
> which "runs" or "communicates with" Django, which would mean that the 
> Python application server and Django could run in separate virtualenvs. You 
> have a single Python program and there is only one virtualenv. What we do 
> for Gunicorn, for example, is install it in the same virtualenv where we 
> have Django (pip install gunicorn), and then run it from there.
>
> I am not familiar with mod_wsgi, but the thing is, by the time it's ready 
> to import the Django project, Python is already running, and you can't 
> select or change a virtualenv any more. So selecting a virtualenv (which I 
> assume is possible) must be in the mod_wsgi configuration. I hope these 
> principles help you understand mod_wsgi's documentation.
>
> I find Gunicorn an easier and better way to deploy, regardless the web 
> server. More information:
>
>- How to setup Apache with Gunicorn 
>
>  
>- Detailed instructions on setting up Gunicorn 
>
>
> Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile)
>
>
>
> On 30/05/2021 09.29, Moose Smith wrote:
>
> App written in ubuntu virtual environment python 3.8.5. Works well on 
> Visual Studio Code development server. Am trying to make it run on Apache2 
> development server.  I have been able to install WSGI module on Apache 
> Server and ran a test Hello World in Python and it worked. However, the 
> django app when ported over does not work.  
> The error log confirms that the mod_wsgi has been created using by Python 
> 3.8  
> [mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41 
> (Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
> The error I am getting indicates that the Apache / WSGI is reading the 
> files in the virtual environment I copied over.  
>
> mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File 
> "/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 
> from django.core.wsgi import get_wsgi_application
> ModuleNotFoundError: No module named 'django'
>
> My research indicates that this error occurs when the mod--wsgi in being 
> interpreted by a different version than what was used to create my virtual 
> environment. It also might be permissions/ownership issues with the file 
> and directories copied over to the server, or improperly configured module. 
>
> My question is this: Does the mod_WSGI module have to be the same as the 
> one that created my virtual environment?  My understanding is that WSGI has 
> two components, the server side, and the application side. It would not 
> make sense that the Server side MUST match the application side because it 
> would not be possible to service various apps with different versions of 
> Python/Django. I assumed the server side was python version independent and 
> that the requirement for Python similarity was only on the application side 
> in that the Python used to create the virtual environment and my app must 
> match the version used to create the WSGI interface on the application side 
> (this side not the server). That said, I have discovered there is a Python 
> 2.7 version of the mod_WSGI for the server side which differs from the 3.7 
> version. 
>
> Can someone clear up the Python version requirement and if it does require 
> a match between the server and the app side, how will I be able to run 
> future versions of Python/Django apps 

Re: Newbee help on deploying Django App to Apache2

2021-05-30 Thread Antonis Christofides
Apache and nginx are called "web servers". Windows and FreeBSD are called 
"operating systems". What is the term for Gunicorn, uWSGI and mod_wsgi? I 
believe there's no good term, which is one reason for the confusion.


Gunicorn, uWSGI and mod_wsgi are specialized web servers that run Python 
WSGI-compliant applications. For lack of a better name, I'll call them Python 
application servers, but don't forget that they are nothing more (and nothing 
less) than specialized web servers that run Python WSGI-compliant applications.


What the Python application server does is

    from djpro.wsgi import application

and then, in each HTTP request, it calls application() in a standard way that is 
specified by the WSGI specification. The fact that the interface of this 
function is standardized is what permits you to choose between many different 
Python application servers such as Gunicorn, uWSGI, or mod_wsgi, and why each of 
these can interact with many Python application frameworks like Django or Flask.


The Python application server does not *communicate* with the Django project, it 
*imports* the Django project. From the point of view of the operating system, it 
is the same process. You don't have a separate server which "runs" or 
"communicates with" Django, which would mean that the Python application server 
and Django could run in separate virtualenvs. You have a single Python program 
and there is only one virtualenv. What we do for Gunicorn, for example, is 
install it in the same virtualenv where we have Django (pip install gunicorn), 
and then run it from there.


I am not familiar with mod_wsgi, but the thing is, by the time it's ready to 
import the Django project, Python is already running, and you can't select or 
change a virtualenv any more. So selecting a virtualenv (which I assume is 
possible) must be in the mod_wsgi configuration. I hope these principles help 
you understand mod_wsgi's documentation.


I find Gunicorn an easier and better way to deploy, regardless the web server. 
More information:


 * How to setup Apache with Gunicorn
   
 * Detailed instructions on setting up Gunicorn
   

Antonis Christofides
+30-6979924665 (mobile)



On 30/05/2021 09.29, Moose Smith wrote:
App written in ubuntu virtual environment python 3.8.5. Works well on Visual 
Studio Code development server. Am trying to make it run on Apache2 
development server.  I have been able to install WSGI module on Apache Server 
and ran a test Hello World in Python and it worked. However, the django app 
when ported over does not work.

The error log confirms that the mod_wsgi has been created using by Python 3.8
[mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41 
(Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
The error I am getting indicates that the Apache / WSGI is reading the files 
in the virtual environment I copied over.


mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File 
"/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 

from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'

My research indicates that this error occurs when the mod--wsgi in being 
interpreted by a different version than what was used to create my virtual 
environment. It also might be permissions/ownership issues with the file and 
directories copied over to the server, or improperly configured module.


My question is this: Does the mod_WSGI module have to be the same as the one 
that created my virtual environment?  My understanding is that WSGI has two 
components, the server side, and the application side. It would not make sense 
that the Server side MUST match the application side because it would not be 
possible to service various apps with different versions of Python/Django. I 
assumed the server side was python version independent and that the 
requirement for Python similarity was only on the application side in that the 
Python used to create the virtual environment and my app must match the 
version used to create the WSGI interface on the application side (this side 
not the server). That said, I have discovered there is a Python 2.7 version of 
the mod_WSGI for the server side which differs from the 3.7 version.


Can someone clear up the Python version requirement and if it does require a 
match between the server and the app side, how will I be able to run future 
versions of Python/Django apps without having to go back and "recomplie"?


Also if someone has any clues on solving my error that would be very much 
appreciated.


Thanks
Moose
--
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: Newbee help on deploying Django App to Apache2

2021-05-30 Thread Chetan Ganji
I think, you are using the default python version installed on the machine,
not the one of the virtualenv.
You will have to configure the mod_wsgi to use the python of the virtuelanv.

This might help you.
https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html#


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Sun, May 30, 2021 at 4:46 PM Moose Smith <47kanga...@gmail.com> wrote:

> App written in ubuntu virtual environment python 3.8.5. Works well on
> Visual Studio Code development server. Am trying to make it run on Apache2
> development server.  I have been able to install WSGI module on Apache
> Server and ran a test Hello World in Python and it worked. However, the
> django app when ported over does not work.
> The error log confirms that the mod_wsgi has been created using by Python
> 3.8
> [mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41
> (Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
> The error I am getting indicates that the Apache / WSGI is reading the
> files in the virtual environment I copied over.
>
> mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File
> "/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 
> from django.core.wsgi import get_wsgi_application
> ModuleNotFoundError: No module named 'django'
>
> My research indicates that this error occurs when the mod--wsgi in being
> interpreted by a different version than what was used to create my virtual
> environment. It also might be permissions/ownership issues with the file
> and directories copied over to the server, or improperly configured module.
>
> My question is this: Does the mod_WSGI module have to be the same as the
> one that created my virtual environment?  My understanding is that WSGI has
> two components, the server side, and the application side. It would not
> make sense that the Server side MUST match the application side because it
> would not be possible to service various apps with different versions of
> Python/Django. I assumed the server side was python version independent and
> that the requirement for Python similarity was only on the application side
> in that the Python used to create the virtual environment and my app must
> match the version used to create the WSGI interface on the application side
> (this side not the server). That said, I have discovered there is a Python
> 2.7 version of the mod_WSGI for the server side which differs from the 3.7
> version.
>
> Can someone clear up the Python version requirement and if it does require
> a match between the server and the app side, how will I be able to run
> future versions of Python/Django apps without having to go back and
> "recomplie"?
>
> Also if someone has any clues on solving my error that would be very much
> appreciated.
>
> Thanks
> Moose
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d3041741-1604-473f-8810-263bb3b16c59n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMKMUjuOXoG5O0-aGFpMD3wfkNHkOMqBf8PNsKhFeeJvwrpYAQ%40mail.gmail.com.


Newbee help on deploying Django App to Apache2

2021-05-30 Thread Moose Smith
App written in ubuntu virtual environment python 3.8.5. Works well on 
Visual Studio Code development server. Am trying to make it run on Apache2 
development server.  I have been able to install WSGI module on Apache 
Server and ran a test Hello World in Python and it worked. However, the 
django app when ported over does not work. 
The error log confirms that the mod_wsgi has been created using by Python 
3.8  
[mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41 
(Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
The error I am getting indicates that the Apache / WSGI is reading the 
files in the virtual environment I copied over.  

mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File 
"/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'

My research indicates that this error occurs when the mod--wsgi in being 
interpreted by a different version than what was used to create my virtual 
environment. It also might be permissions/ownership issues with the file 
and directories copied over to the server, or improperly configured module. 

My question is this: Does the mod_WSGI module have to be the same as the 
one that created my virtual environment?  My understanding is that WSGI has 
two components, the server side, and the application side. It would not 
make sense that the Server side MUST match the application side because it 
would not be possible to service various apps with different versions of 
Python/Django. I assumed the server side was python version independent and 
that the requirement for Python similarity was only on the application side 
in that the Python used to create the virtual environment and my app must 
match the version used to create the WSGI interface on the application side 
(this side not the server). That said, I have discovered there is a Python 
2.7 version of the mod_WSGI for the server side which differs from the 3.7 
version. 

Can someone clear up the Python version requirement and if it does require 
a match between the server and the app side, how will I be able to run 
future versions of Python/Django apps without having to go back and 
"recomplie"?

Also if someone has any clues on solving my error that would be very much 
appreciated.

Thanks
Moose

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d3041741-1604-473f-8810-263bb3b16c59n%40googlegroups.com.


DEPLOYING DJANGO ON ASGI

2021-05-29 Thread ngal...@gmail.com
Hello 
Am familiar with deploying django on WSGI especially using apache on 
windows ecosystem
Am trying to find any source which explain on deploying django on ASGI 
especially using uvicorn on windows ecosystem.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b68bc9f0-e3b2-4120-afcc-198aef178561n%40googlegroups.com.


Re: Deploying Django Project on Kubernetes

2021-05-07 Thread Mohit Gupta
Online training on python and django for beginners. Interested people
contact on me

On Fri, 7 May, 2021, 8:56 AM parmeshwar deharkar, <
parmeshwardehar...@gmail.com> wrote:

> yes we guide you and i will solve your problem. tell me your requirement
> now
>
> On Thu, May 6, 2021 at 7:11 PM 'Muhammad Asim Khaskheli' via Django users <
> django-users@googlegroups.com> wrote:
>
>> Hello everyone!
>> I want to make my django project with mysql backend live on kubernetes,
>> however, I dont have any prior knowledge about this. Can anyone guide me in
>> this?
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/eec61677-5822-439d-a8ba-b3537aa8845an%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFyF%2BQhDJKp-O-vGxGS0%2BBkWj0izOuMnsp-t-ywRoCZcGb3uXA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGLwj2fjBEeaGm%3DfHm%2BYGWjOGzZnNq8Eq5kfa3HsJSfd8ZvVHQ%40mail.gmail.com.


Re: Deploying Django Project on Kubernetes

2021-05-06 Thread parmeshwar deharkar
yes we guide you and i will solve your problem. tell me your requirement
now

On Thu, May 6, 2021 at 7:11 PM 'Muhammad Asim Khaskheli' via Django users <
django-users@googlegroups.com> wrote:

> Hello everyone!
> I want to make my django project with mysql backend live on kubernetes,
> however, I dont have any prior knowledge about this. Can anyone guide me in
> this?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eec61677-5822-439d-a8ba-b3537aa8845an%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFyF%2BQhDJKp-O-vGxGS0%2BBkWj0izOuMnsp-t-ywRoCZcGb3uXA%40mail.gmail.com.


Deploying Django Project on Kubernetes

2021-05-06 Thread 'Muhammad Asim Khaskheli' via Django users
Hello everyone!
I want to make my django project with mysql backend live on kubernetes, 
however, I dont have any prior knowledge about this. Can anyone guide me in 
this?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eec61677-5822-439d-a8ba-b3537aa8845an%40googlegroups.com.


Re: Assistance for deploying django app to heroku

2021-04-26 Thread Ejike Enyinnaya
Good day Jim,

My process from beginning includes:

1. I reset the database: rm -f db.sqlite3
2. python manage.py migrate
3. In django admin platform: I added all the books information from the
fixtures.json and tied it to the user which is admin
4. Implemented a new fixtures.json
5. ran python manage.py makemigrations
6. ran python manage.py migrate
7. git add .
8. git commit -m "[updated information here]"
9. git push origin master
10. git push heroku master
11. heroku run python manage.py migrate
12. heroku run python manage.py loaddata books/fixtures.json (This is
where i get the error)


BR,
Ejike Chiboka
0804537; 08166516400


On Sat, Apr 24, 2021 at 9:38 PM Jim Illback  wrote:

> I didn’t see a “createsuperuser" command. Was that done or is it part of
> your fixtures.json load?
>
> Jim
>
> On Apr 24, 2021, at 8:04 AM, Ejike Enyinnaya 
> wrote:
>
> Good day Kasper,
>
> Thanks for your response.
>
> The git commands I put in the email was just to give a summary of what I
> had done and not the full details, that way my email is not too long and
> cumbersome to read.
>
> I can assure you on my CLI, I ran the proper git commands putting in the
> right information and not leaving it empty.
>
> BR,
> Ejike Chiboka
> 0804537; 08166516400
>
>
> On Fri, Apr 23, 2021 at 7:53 PM Kasper Laudrup 
> wrote:
>
>> On 23/04/2021 20.41, Ejike Enyinnaya wrote:
>> > I did a git add ., git commit -m and git push heroku master
>>
>> Not sure if it's related, but it's possible: This is not how you should
>> use revision control (git).
>>
>> You should keep your source files under revision control, not just
>> blindly add everything and committing it with an empty commit message.
>> Then you might as well not use any kind of revision control at all.
>>
>> It might be slightly off topic and not related to your problem, but on
>> the other hand, there's a huge chance that you have added a bunch of
>> stuff like your database file and you have zero way of tracking what you
>> have actually changed.
>>
>> Not sure if this has every worked for you, but if you have a similar
>> problem and it used to work and then suddenly didn't, using revision
>> control like git can be an enormous help.
>>
>> Do yourself a huge favor and learn how to use revision control.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/4ebee094-cc84-ce01-ddfd-11ca231960d6%40stacktrace.dk
>> .
>>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADe59C-Sau_rAhxLJQKBmMcHDMxq_Uc12aTVo%2BRL4YoSdOf7aw%40mail.gmail.com
> 
> .
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/F91210CE-9D66-4C64-A1A0-1C6EA001DD67%40hotmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADe59C9qFczEWktkZ%3DwRnc%3Djpkx4QA9ignYmqx2hy%2B86Omj_4w%40mail.gmail.com.


Re: Assistance for deploying django app to heroku

2021-04-24 Thread Jim Illback
I didn’t see a “createsuperuser" command. Was that done or is it part of your 
fixtures.json load?

Jim

On Apr 24, 2021, at 8:04 AM, Ejike Enyinnaya 
mailto:ejike.chib...@gmail.com>> wrote:

Good day Kasper,

Thanks for your response.

The git commands I put in the email was just to give a summary of what I had 
done and not the full details, that way my email is not too long and cumbersome 
to read.

I can assure you on my CLI, I ran the proper git commands putting in the right 
information and not leaving it empty.

BR,
Ejike Chiboka
0804537; 08166516400


On Fri, Apr 23, 2021 at 7:53 PM Kasper Laudrup 
mailto:laud...@stacktrace.dk>> wrote:
On 23/04/2021 20.41, Ejike Enyinnaya wrote:
> I did a git add ., git commit -m and git push heroku master

Not sure if it's related, but it's possible: This is not how you should
use revision control (git).

You should keep your source files under revision control, not just
blindly add everything and committing it with an empty commit message.
Then you might as well not use any kind of revision control at all.

It might be slightly off topic and not related to your problem, but on
the other hand, there's a huge chance that you have added a bunch of
stuff like your database file and you have zero way of tracking what you
have actually changed.

Not sure if this has every worked for you, but if you have a similar
problem and it used to work and then suddenly didn't, using revision
control like git can be an enormous help.

Do yourself a huge favor and learn how to use revision control.

Kind regards,

Kasper Laudrup

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ebee094-cc84-ce01-ddfd-11ca231960d6%40stacktrace.dk.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADe59C-Sau_rAhxLJQKBmMcHDMxq_Uc12aTVo%2BRL4YoSdOf7aw%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/F91210CE-9D66-4C64-A1A0-1C6EA001DD67%40hotmail.com.


Re: Assistance for deploying django app to heroku

2021-04-24 Thread Ejike Enyinnaya
Good day Kasper,

Thanks for your response.

The git commands I put in the email was just to give a summary of what I
had done and not the full details, that way my email is not too long and
cumbersome to read.

I can assure you on my CLI, I ran the proper git commands putting in the
right information and not leaving it empty.

BR,
Ejike Chiboka
0804537; 08166516400


On Fri, Apr 23, 2021 at 7:53 PM Kasper Laudrup 
wrote:

> On 23/04/2021 20.41, Ejike Enyinnaya wrote:
> > I did a git add ., git commit -m and git push heroku master
>
> Not sure if it's related, but it's possible: This is not how you should
> use revision control (git).
>
> You should keep your source files under revision control, not just
> blindly add everything and committing it with an empty commit message.
> Then you might as well not use any kind of revision control at all.
>
> It might be slightly off topic and not related to your problem, but on
> the other hand, there's a huge chance that you have added a bunch of
> stuff like your database file and you have zero way of tracking what you
> have actually changed.
>
> Not sure if this has every worked for you, but if you have a similar
> problem and it used to work and then suddenly didn't, using revision
> control like git can be an enormous help.
>
> Do yourself a huge favor and learn how to use revision control.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4ebee094-cc84-ce01-ddfd-11ca231960d6%40stacktrace.dk
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADe59C-Sau_rAhxLJQKBmMcHDMxq_Uc12aTVo%2BRL4YoSdOf7aw%40mail.gmail.com.


Re: Assistance for deploying django app to heroku

2021-04-24 Thread Ejike Enyinnaya
Good day Kasper,

Hi Kasper,

Thanks for your response. The "git" commands I put in the email was not
just to give any one an idea of what commands I had run but on my CLI, I
ran the proper git commands with the proper messages and not leaving it
empty.
BR,
Ejike Chiboka
0804537; 08166516400


On Fri, Apr 23, 2021 at 7:53 PM Kasper Laudrup 
wrote:

> On 23/04/2021 20.41, Ejike Enyinnaya wrote:
> > I did a git add ., git commit -m and git push heroku master
>
> Not sure if it's related, but it's possible: This is not how you should
> use revision control (git).
>
> You should keep your source files under revision control, not just
> blindly add everything and committing it with an empty commit message.
> Then you might as well not use any kind of revision control at all.
>
> It might be slightly off topic and not related to your problem, but on
> the other hand, there's a huge chance that you have added a bunch of
> stuff like your database file and you have zero way of tracking what you
> have actually changed.
>
> Not sure if this has every worked for you, but if you have a similar
> problem and it used to work and then suddenly didn't, using revision
> control like git can be an enormous help.
>
> Do yourself a huge favor and learn how to use revision control.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4ebee094-cc84-ce01-ddfd-11ca231960d6%40stacktrace.dk
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADe59C9EojiHJ6fCj%2BJgMgfjThmUSrLBiwgEd4RQgoX7%2BTmAKQ%40mail.gmail.com.


Re: Assistance for deploying django app to heroku

2021-04-23 Thread Irfan Khan
check this one
try to run the console
$ python manage.py sqlsequencereset your_app_name
it will give you the psql queries. run those queries on PSQL console and
then try to  run loaddata.

check below link

https://stackoverflow.com/questions/64251547/django-resync-autoincrementing-pk-with-restored-database


With Regards,
*Irfan khan*





On Sat, 24 Apr 2021 at 00:23, Kasper Laudrup  wrote:

> On 23/04/2021 20.41, Ejike Enyinnaya wrote:
> > I did a git add ., git commit -m and git push heroku master
>
> Not sure if it's related, but it's possible: This is not how you should
> use revision control (git).
>
> You should keep your source files under revision control, not just
> blindly add everything and committing it with an empty commit message.
> Then you might as well not use any kind of revision control at all.
>
> It might be slightly off topic and not related to your problem, but on
> the other hand, there's a huge chance that you have added a bunch of
> stuff like your database file and you have zero way of tracking what you
> have actually changed.
>
> Not sure if this has every worked for you, but if you have a similar
> problem and it used to work and then suddenly didn't, using revision
> control like git can be an enormous help.
>
> Do yourself a huge favor and learn how to use revision control.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4ebee094-cc84-ce01-ddfd-11ca231960d6%40stacktrace.dk
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALKGVip4zW6NTjTRGrg4d8OYEwjoAC7Q4FzqF6FDmAGTvNXNfQ%40mail.gmail.com.


Re: Assistance for deploying django app to heroku

2021-04-23 Thread Kasper Laudrup
On 23/04/2021 20.41, Ejike Enyinnaya wrote:
> I did a git add ., git commit -m and git push heroku master

Not sure if it's related, but it's possible: This is not how you should
use revision control (git).

You should keep your source files under revision control, not just
blindly add everything and committing it with an empty commit message.
Then you might as well not use any kind of revision control at all.

It might be slightly off topic and not related to your problem, but on
the other hand, there's a huge chance that you have added a bunch of
stuff like your database file and you have zero way of tracking what you
have actually changed.

Not sure if this has every worked for you, but if you have a similar
problem and it used to work and then suddenly didn't, using revision
control like git can be an enormous help.

Do yourself a huge favor and learn how to use revision control.

Kind regards,

Kasper Laudrup

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ebee094-cc84-ce01-ddfd-11ca231960d6%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Assistance for deploying django app to heroku

2021-04-23 Thread Sujayeendra G
Please explain all your steps clearly.

How are you creating fixture.json, Are you taking all data dump or only
book model dump ??


On Sat, 24 Apr 2021 at 00:12, Ejike Enyinnaya 
wrote:

> Hi Guys,
>
> This is the error I am getting:
>
> (first_django_app) ➜  first_django_app git:(master)  heroku run python
> manage.py loaddata books/fixtures.json
> Running python manage.py loaddata books/fixtures.json on ⬢ gotbooksapp...
> up, run.6617 (Free)
> Traceback (most recent call last):
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
> line 82, in _execute
> return self.cursor.execute(sql)
> psycopg2.errors.ForeignKeyViolation: insert or update on table
> "books_book" violates foreign key constraint
> "books_book_user_id_4b809191_fk_auth_user_id"
> DETAIL:  Key (user_id)=(1) is not present in table "auth_user".
>
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File "manage.py", line 21, in 
> main()
>   File "manage.py", line 17, in main
> execute_from_command_line(sys.argv)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py",
> line 419, in execute_from_command_line
> utility.execute()
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py",
> line 413, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/base.py",
> line 354, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/base.py",
> line 398, in execute
> output = self.handle(*args, **options)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/commands/loaddata.py",
> line 78, in handle
> self.loaddata(fixture_labels)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/core/management/commands/loaddata.py",
> line 131, in loaddata
> connection.check_constraints(table_names=table_names)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/postgresql/base.py",
> line 285, in check_constraints
> cursor.execute('SET CONSTRAINTS ALL IMMEDIATE')
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
> line 98, in execute
> return super().execute(sql, params)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
> line 66, in execute
> return self._execute_with_wrappers(sql, params, many=False,
> executor=self._execute)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
> line 75, in _execute_with_wrappers
> return executor(sql, params, many, context)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
> line 84, in _execute
> return self.cursor.execute(sql, params)
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/utils.py", line
> 90, in __exit__
> raise dj_exc_value.with_traceback(traceback) from exc_value
>   File
> "/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
> line 82, in _execute
> return self.cursor.execute(sql)
> django.db.utils.IntegrityError: Problem installing fixtures: insert or
> update on table "books_book" violates foreign key constraint
> "books_book_user_id_4b809191_fk_auth_user_id"
> DETAIL:  Key (user_id)=(1) is not present in table "auth_user".
>
> I have done the following: rm -f db.sqlite3
> run python manage.py makemigrations
> run python manage.py migrate
> I had to add all the information again as the database had been cleaned out
> I then implement fixtures.json locally
> I did a git add ., git commit -m and git push heroku master
> I did run heroku run python manage.py migrate
> I finally run python manage.py loaddata books/fixtures.json
> I still have the same errors again
>
> BR,
>
> Ejike Chiboka
> 0804537; 08166516400
>
>
> On Fri, Apr 23, 2021 at 7:28 PM Sujayeendra G 
> wrote:
>
>>
>> Hi,
>>
>> You can see IntegrityError: fixtures you are updating trying to find user
>> with user_id=1 which are not available in your db. Try to create one user
>> and migrate again. Or if the App is still in the development stage. Delete
>> DB and migrate again. It may work.
>>
>> Thank you
>>
>> Regards
>> Sujay
>>
>>
>> On Fri, 23 Apr 2021 at 17:25, ejike@gmail.com <
>> ejike.chib...@gmail.com> wrote:
>>
>>> Good day All,
>>>
>>> I am trying to deploy my django app to heroku but i keep getting this
>>> error in the screenshot attached.
>>>
>>> Please can anyone assist in me in finding a solution to this and where
>>> the issue could be coming from.
>>>
>>> Looking forward to your replies.
>>>
>>> Thanks and BR,
>>>
>>> Ejike
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" 

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Ejike Enyinnaya
Hi Guys,

This is the error I am getting:

(first_django_app) ➜  first_django_app git:(master)  heroku run python
manage.py loaddata books/fixtures.json
Running python manage.py loaddata books/fixtures.json on ⬢ gotbooksapp...
up, run.6617 (Free)
Traceback (most recent call last):
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
line 82, in _execute
return self.cursor.execute(sql)
psycopg2.errors.ForeignKeyViolation: insert or update on table "books_book"
violates foreign key constraint
"books_book_user_id_4b809191_fk_auth_user_id"
DETAIL:  Key (user_id)=(1) is not present in table "auth_user".


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 21, in 
main()
  File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py",
line 419, in execute_from_command_line
utility.execute()
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/core/management/__init__.py",
line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/core/management/base.py",
line 354, in run_from_argv
self.execute(*args, **cmd_options)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/core/management/base.py",
line 398, in execute
output = self.handle(*args, **options)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/core/management/commands/loaddata.py",
line 78, in handle
self.loaddata(fixture_labels)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/core/management/commands/loaddata.py",
line 131, in loaddata
connection.check_constraints(table_names=table_names)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/postgresql/base.py",
line 285, in check_constraints
cursor.execute('SET CONSTRAINTS ALL IMMEDIATE')
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
line 98, in execute
return super().execute(sql, params)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
line 66, in execute
return self._execute_with_wrappers(sql, params, many=False,
executor=self._execute)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
line 84, in _execute
return self.cursor.execute(sql, params)
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/utils.py", line
90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File
"/app/.heroku/python/lib/python3.7/site-packages/django/db/backends/utils.py",
line 82, in _execute
return self.cursor.execute(sql)
django.db.utils.IntegrityError: Problem installing fixtures: insert or
update on table "books_book" violates foreign key constraint
"books_book_user_id_4b809191_fk_auth_user_id"
DETAIL:  Key (user_id)=(1) is not present in table "auth_user".

I have done the following: rm -f db.sqlite3
run python manage.py makemigrations
run python manage.py migrate
I had to add all the information again as the database had been cleaned out
I then implement fixtures.json locally
I did a git add ., git commit -m and git push heroku master
I did run heroku run python manage.py migrate
I finally run python manage.py loaddata books/fixtures.json
I still have the same errors again

BR,

Ejike Chiboka
0804537; 08166516400


On Fri, Apr 23, 2021 at 7:28 PM Sujayeendra G 
wrote:

>
> Hi,
>
> You can see IntegrityError: fixtures you are updating trying to find user
> with user_id=1 which are not available in your db. Try to create one user
> and migrate again. Or if the App is still in the development stage. Delete
> DB and migrate again. It may work.
>
> Thank you
>
> Regards
> Sujay
>
>
> On Fri, 23 Apr 2021 at 17:25, ejike@gmail.com 
> wrote:
>
>> Good day All,
>>
>> I am trying to deploy my django app to heroku but i keep getting this
>> error in the screenshot attached.
>>
>> Please can anyone assist in me in finding a solution to this and where
>> the issue could be coming from.
>>
>> Looking forward to your replies.
>>
>> Thanks and BR,
>>
>> Ejike
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/7c7fd9ab-20a6-43f3-9793-06ea0f4220c6n%40googlegroups.com
>> 
>> .
>>
> --
> 

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Sujayeendra G
Hi,

You can see IntegrityError: fixtures you are updating trying to find user
with user_id=1 which are not available in your db. Try to create one user
and migrate again. Or if the App is still in the development stage. Delete
DB and migrate again. It may work.

Thank you

Regards
Sujay


On Fri, 23 Apr 2021 at 17:25, ejike@gmail.com 
wrote:

> Good day All,
>
> I am trying to deploy my django app to heroku but i keep getting this
> error in the screenshot attached.
>
> Please can anyone assist in me in finding a solution to this and where the
> issue could be coming from.
>
> Looking forward to your replies.
>
> Thanks and BR,
>
> Ejike
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7c7fd9ab-20a6-43f3-9793-06ea0f4220c6n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJ15Ob0pe9%3DpT56vqkbYNE_6sp5qYgts7aYtnCTVqfdaSOQ%2B6g%40mail.gmail.com.


Re: Assistance for deploying django app to heroku

2021-04-23 Thread Mohammad Anarul
kindly shere your code

On Fri, Apr 23, 2021 at 5:56 PM ejike@gmail.com 
wrote:

> Good day All,
>
> I am trying to deploy my django app to heroku but i keep getting this
> error in the screenshot attached.
>
> Please can anyone assist in me in finding a solution to this and where the
> issue could be coming from.
>
> Looking forward to your replies.
>
> Thanks and BR,
>
> Ejike
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7c7fd9ab-20a6-43f3-9793-06ea0f4220c6n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE59x8dUHT263JBeJhyqR7ZtHA9FRpvfT98H73Vquo9qhP3QWw%40mail.gmail.com.


Re: deploying django project with mod_wsgi and apache

2020-05-17 Thread みやうち`
I found out part of my code has problem, althogh I don't know why it didn't 
output an error.

Anyway, thank you for reply.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/106caf50-87ae-4961-acf8-cae0ba85b728%40googlegroups.com.


Re: deploying django project with mod_wsgi and apache

2020-05-16 Thread みやうち`
AWS EC2 with Linux.
Since deployment of "polls" app works fine, I think there is no problem 
with server...
But django and apache give no error about my app.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7f0547ea-1cc6-4ad1-a4e1-fb1ef3aa972c%40googlegroups.com.


Re: deploying django project with mod_wsgi and apache

2020-05-16 Thread Kurosh Sol
what is your server
as you are Japanese might be use server or sakura?


On Sun, May 17, 2020 at 10:07 AM みやうち`  wrote:

> I got completely stuck deploying django to production.
>
> I deployed my project using apache and mod_wsgi, and then it hangs I
> access it with browser.
> Neither django nor apache gives me any errors at all, so I can't guess the
> cause of problem.
> Since it can be accessed by starting with "runserver",
> I think there's nothing wrong with the project.
> Also, I can access it successfully when I deployed a simple test app with
> apache and mod_wsgi,
> I think there is no problem with the configuration of apache, mod_wsgi and
> my server.
>
> It would be very helpful if you give me any idea of the cause or way of
> investigate it.
>
> My environment
> django : 2.1.15
> mod_wsgi : 4.7.1
> apache : 2.4.6
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8d332ddf-ae69-4716-8107-daf69eff1497%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8d332ddf-ae69-4716-8107-daf69eff1497%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJq35RmbMx4DTT%2BvFWuP_UquN4N-3Kw0LawhfgRzXXQ2aURd%2Bg%40mail.gmail.com.


deploying django project with mod_wsgi and apache

2020-05-16 Thread みやうち`
I got completely stuck deploying django to production.

I deployed my project using apache and mod_wsgi, and then it hangs I access 
it with browser.
Neither django nor apache gives me any errors at all, so I can't guess the 
cause of problem.
Since it can be accessed by starting with "runserver",
I think there's nothing wrong with the project.
Also, I can access it successfully when I deployed a simple test app with 
apache and mod_wsgi,
I think there is no problem with the configuration of apache, mod_wsgi and 
my server. 

It would be very helpful if you give me any idea of the cause or way of 
investigate it.

My environment
django : 2.1.15
mod_wsgi : 4.7.1
apache : 2.4.6

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8d332ddf-ae69-4716-8107-daf69eff1497%40googlegroups.com.


Re: Deploying Django Project on heroku

2020-05-16 Thread Sunday Iyanu Ajayi
Hi Akshat,

It worked
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Sat, May 16, 2020 at 2:39 PM Akshat Zala  wrote:

> Did the  downgrading  django==2.2 LTS worked?
>
> On Friday, 15 May 2020 00:40:42 UTC+5:30, Sunday Iyanu Ajayi wrote:
>>
>> Thank you. I will do that
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunne...@gmail.com*
>>
>>
>>
>> On Thu, May 14, 2020 at 3:58 AM Akshat Zala  wrote:
>>
>>> If possible, please downgrade the django version to django2.2 LTS and
>>> try again...
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/536aaeb3-f6a7-4dcf-b856-927a79b3a08f%40googlegroups.com
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/748afd17-f2be-4380-9c3d-8e0d11d35c91%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKYSAw0_uvE%3DxN2eoBoUYJQ5_qErVWejeDYU8mESCFu9zQjZYQ%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-05-16 Thread Akshat Zala
Did the  downgrading  django==2.2 LTS worked?

On Friday, 15 May 2020 00:40:42 UTC+5:30, Sunday Iyanu Ajayi wrote:
>
> Thank you. I will do that
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunne...@gmail.com *
>
>
>
> On Thu, May 14, 2020 at 3:58 AM Akshat Zala  > wrote:
>
>> If possible, please downgrade the django version to django2.2 LTS and try 
>> again...
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/536aaeb3-f6a7-4dcf-b856-927a79b3a08f%40googlegroups.com
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/748afd17-f2be-4380-9c3d-8e0d11d35c91%40googlegroups.com.


Re: Deploying Django Project on heroku

2020-05-14 Thread Sunday Iyanu Ajayi
Thank you. I will do that
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, May 14, 2020 at 3:58 AM Akshat Zala  wrote:

> If possible, please downgrade the django version to django2.2 LTS and try
> again...
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/536aaeb3-f6a7-4dcf-b856-927a79b3a08f%40googlegroups.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKYSAw2iqXV_FFDM6Ja0RRFkr0jjyEyJ_60_vkjUm2jc-pt%2B7g%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-05-13 Thread Shyam Acharjya
dude the error is staring at you. have you read the logs? just update the
whitenoise library. django.utils.six is deprecated. if you want to use six
you have to import it independently.

On Thu, May 14, 2020 at 8:28 AM Akshat Zala  wrote:

> If possible, please downgrade the django version to django2.2 LTS and try
> again...
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/536aaeb3-f6a7-4dcf-b856-927a79b3a08f%40googlegroups.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPxLkSRLGQ5q91KLjfTH-Wdsj82XTXe2BiOJCj3S8TqdgEP9BA%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
If possible, please downgrade the django version to django2.2 LTS and try 
again...

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/536aaeb3-f6a7-4dcf-b856-927a79b3a08f%40googlegroups.com.


Re: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
If possible, please downgrade DJ version to 2.2 LTS and try again to execute 
the 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/892a5df3-2fc0-4a0c-98b5-9f8d1bb6990a%40googlegroups.com.


Re: Deploying Django Project on heroku

2020-05-13 Thread Sunday Iyanu Ajayi
Django 3.0.5
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Wed, May 13, 2020 at 4:17 PM Akshat Zala  wrote:

> Which version of django are you using?
>
> On Saturday, 9 May 2020 19:21:53 UTC+5:30, Sunday Iyanu Ajayi wrote:
>>
>> I have but I still get error
>>
>> [image: image.png]
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunne...@gmail.com*
>>
>>
>>
>> On Sat, May 9, 2020 at 1:50 PM ola neat  wrote:
>>
>>> Halo, i feel if u follow the step in this article
>>> https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4
>>> u should b good
>>>
>>> On Sat, May 9, 2020, 01:15 Sunday Iyanu Ajayi 
>>> wrote:
>>>
 Hi Motaz,
 Thank you so much.
 Is today cool?
 What time (in GMT+1) will be cool for you?

 *AJAYI Sunday *
 (+234) 806 771 5394
 *sunne...@gmail.com*



 On Sun, May 3, 2020 at 11:05 PM Motaz Hejaze  wrote:

> Let us have a zoom meeting to fix it
>
> On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi, 
> wrote:
>
>> I have but it keeps telling  that it is misconfigured
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunne...@gmail.com*
>>
>>
>>
>> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave 
>> wrote:
>>
>>> Do you installed whitenoise package
>>> If not then run this command
>>> Pip insatll whitenoise
>>>
>>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi <
>>> sunne...@gmail.com> wrote:
>>>
 I have spent over 2weeks on deploying a django project to heroku
 but I keep getting error messages such as :

 My WhiteNoise is not configured  and I have followed all the
 tutorials recommended  and yet same thing.

 Please who has a guide I can follow that is very updated.
 Thank you.
 *AJAYI Sunday *
 (+234) 806 771 5394
 *sunne...@gmail.com*

 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
 
 .

>>> --
>>>
>>> 
>>> sagar ninave
>>> about.me/sagarninave
>>> 
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com
>> 
>> .
>>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com
> 
> .
>
 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 

Re: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
If using django3.0.0, please  down grade the django.VERSION to django==2.2

On Wednesday, 13 May 2020 20:46:17 UTC+5:30, Akshat Zala wrote:
>
> Which version of django are you using?
>
> On Saturday, 9 May 2020 19:21:53 UTC+5:30, Sunday Iyanu Ajayi wrote:
>>
>> I have but I still get error
>>
>> [image: image.png]
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunne...@gmail.com*
>>
>>
>>
>> On Sat, May 9, 2020 at 1:50 PM ola neat  wrote:
>>
>>> Halo, i feel if u follow the step in this article 
>>> https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4
>>>  
>>> u should b good 
>>>
>>> On Sat, May 9, 2020, 01:15 Sunday Iyanu Ajayi  
>>> wrote:
>>>
 Hi Motaz, 
 Thank you so much.
 Is today cool?
 What time (in GMT+1) will be cool for you?

 *AJAYI Sunday *
 (+234) 806 771 5394
 *sunne...@gmail.com*



 On Sun, May 3, 2020 at 11:05 PM Motaz Hejaze  wrote:

> Let us have a zoom meeting to fix it
>
> On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi,  
> wrote:
>
>> I have but it keeps telling  that it is misconfigured 
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunne...@gmail.com*
>>
>>
>>
>> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave  
>> wrote:
>>
>>> Do you installed whitenoise package 
>>> If not then run this command 
>>> Pip insatll whitenoise
>>>
>>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi <
>>> sunne...@gmail.com> wrote:
>>>
 I have spent over 2weeks on deploying a django project to heroku 
 but I keep getting error messages such as :

 My WhiteNoise is not configured  and I have followed all the 
 tutorials recommended  and yet same thing.

 Please who has a guide I can follow that is very updated.
 Thank you.
 *AJAYI Sunday *
 (+234) 806 771 5394
 *sunne...@gmail.com*

 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
  
 
 .

>>> -- 
>>>
>>> 
>>>  
>>> sagar ninave
>>> about.me/sagarninave 
>>> 
>>>  
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com
>>  
>> 
>> .
>>
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com
>  
> 
> .
>
 -- 
 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: Deploying Django Project on heroku

2020-05-13 Thread Akshat Zala
Which version of django are you using?

On Saturday, 9 May 2020 19:21:53 UTC+5:30, Sunday Iyanu Ajayi wrote:
>
> I have but I still get error
>
> [image: image.png]
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunne...@gmail.com *
>
>
>
> On Sat, May 9, 2020 at 1:50 PM ola neat > 
> wrote:
>
>> Halo, i feel if u follow the step in this article 
>> https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4
>>  
>> u should b good 
>>
>> On Sat, May 9, 2020, 01:15 Sunday Iyanu Ajayi > > wrote:
>>
>>> Hi Motaz, 
>>> Thank you so much.
>>> Is today cool?
>>> What time (in GMT+1) will be cool for you?
>>>
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunne...@gmail.com *
>>>
>>>
>>>
>>> On Sun, May 3, 2020 at 11:05 PM Motaz Hejaze >> > wrote:
>>>
 Let us have a zoom meeting to fix it

 On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi, >>> > wrote:

> I have but it keeps telling  that it is misconfigured 
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunne...@gmail.com *
>
>
>
> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave  > wrote:
>
>> Do you installed whitenoise package 
>> If not then run this command 
>> Pip insatll whitenoise
>>
>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi <
>> sunne...@gmail.com > wrote:
>>
>>> I have spent over 2weeks on deploying a django project to heroku but 
>>> I keep getting error messages such as :
>>>
>>> My WhiteNoise is not configured  and I have followed all the 
>>> tutorials recommended  and yet same thing.
>>>
>>> Please who has a guide I can follow that is very updated.
>>> Thank you.
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunne...@gmail.com *
>>>
>>> -- 
>>> 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...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
>>>  
>>> 
>>> .
>>>
>> -- 
>>
>> 
>>  
>> sagar ninave
>> about.me/sagarninave 
>> 
>>  
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com
>>  
>> 
>> .
>>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com
>  
> 
> .
>
 -- 
 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...@googlegroups.com .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com
  
 
 .

>>> -- 
>>> 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...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PWEmow%3DbA3wAZ6MnTKkRdMAbq7SN%3D6L4gAcSS0gw1eA%40mail.gmail.com
>>>  
>>> 

Re: Deploying Django Project on heroku

2020-05-09 Thread ola neat
Halo, i feel if u follow the step in this article
https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4
u should b good

On Sat, May 9, 2020, 01:15 Sunday Iyanu Ajayi  wrote:

> Hi Motaz,
> Thank you so much.
> Is today cool?
> What time (in GMT+1) will be cool for you?
>
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Sun, May 3, 2020 at 11:05 PM Motaz Hejaze  wrote:
>
>> Let us have a zoom meeting to fix it
>>
>> On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi, 
>> wrote:
>>
>>> I have but it keeps telling  that it is misconfigured
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunnexaj...@gmail.com *
>>>
>>>
>>>
>>> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave 
>>> wrote:
>>>
 Do you installed whitenoise package
 If not then run this command
 Pip insatll whitenoise

 On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi <
 sunnexaj...@gmail.com> wrote:

> I have spent over 2weeks on deploying a django project to heroku but I
> keep getting error messages such as :
>
> My WhiteNoise is not configured  and I have followed all the tutorials
> recommended  and yet same thing.
>
> Please who has a guide I can follow that is very updated.
> Thank you.
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
> 
> .
>
 --

 
 sagar ninave
 about.me/sagarninave
 

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKYSAw2PWEmow%3DbA3wAZ6MnTKkRdMAbq7SN%3D6L4gAcSS0gw1eA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn72g5u_Hj-Pq0KHUr4kXEz8vtefXNOMQP1SMLoaEa7F%3DuQ%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-05-08 Thread Sunday Iyanu Ajayi
Hi Motaz,
Thank you so much.
Is today cool?
What time (in GMT+1) will be cool for you?

*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Sun, May 3, 2020 at 11:05 PM Motaz Hejaze  wrote:

> Let us have a zoom meeting to fix it
>
> On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi, 
> wrote:
>
>> I have but it keeps telling  that it is misconfigured
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunnexaj...@gmail.com *
>>
>>
>>
>> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave 
>> wrote:
>>
>>> Do you installed whitenoise package
>>> If not then run this command
>>> Pip insatll whitenoise
>>>
>>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi <
>>> sunnexaj...@gmail.com> wrote:
>>>
 I have spent over 2weeks on deploying a django project to heroku but I
 keep getting error messages such as :

 My WhiteNoise is not configured  and I have followed all the tutorials
 recommended  and yet same thing.

 Please who has a guide I can follow that is very updated.
 Thank you.
 *AJAYI Sunday *
 (+234) 806 771 5394
 *sunnexaj...@gmail.com *

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
 
 .

>>> --
>>>
>>> 
>>> sagar ninave
>>> about.me/sagarninave
>>> 
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKYSAw2PWEmow%3DbA3wAZ6MnTKkRdMAbq7SN%3D6L4gAcSS0gw1eA%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-05-03 Thread Motaz Hejaze
Let us have a zoom meeting to fix it

On Sun, 3 May 2020, 11:45 pm Sunday Iyanu Ajayi, 
wrote:

> I have but it keeps telling  that it is misconfigured
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Sat, Apr 25, 2020 at 3:17 PM sagar ninave 
> wrote:
>
>> Do you installed whitenoise package
>> If not then run this command
>> Pip insatll whitenoise
>>
>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi 
>> wrote:
>>
>>> I have spent over 2weeks on deploying a django project to heroku but I
>>> keep getting error messages such as :
>>>
>>> My WhiteNoise is not configured  and I have followed all the tutorials
>>> recommended  and yet same thing.
>>>
>>> Please who has a guide I can follow that is very updated.
>>> Thank you.
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunnexaj...@gmail.com *
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>>
>> 
>> sagar ninave
>> about.me/sagarninave
>> 
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-05-03 Thread Sunday Iyanu Ajayi
I have but it keeps telling  that it is misconfigured
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Sat, Apr 25, 2020 at 3:17 PM sagar ninave  wrote:

> Do you installed whitenoise package
> If not then run this command
> Pip insatll whitenoise
>
> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi 
> wrote:
>
>> I have spent over 2weeks on deploying a django project to heroku but I
>> keep getting error messages such as :
>>
>> My WhiteNoise is not configured  and I have followed all the tutorials
>> recommended  and yet same thing.
>>
>> Please who has a guide I can follow that is very updated.
>> Thank you.
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunnexaj...@gmail.com *
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
>> 
>> .
>>
> --
>
> 
> sagar ninave
> about.me/sagarninave
> 
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-04-25 Thread Jorge Gimeno
On Sat, Apr 25, 2020 at 7:13 AM Sunday Iyanu Ajayi 
wrote:

> I have spent over 2weeks on deploying a django project to heroku but I
> keep getting error messages such as :
>
> My WhiteNoise is not configured  and I have followed all the tutorials
> recommended  and yet same thing.
>
> Please who has a guide I can follow that is very updated.
> Thank you.
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
> 
> .
>

This is one that's current and I have used before:
https://github.com/jlgimeno/wagtail-heroku-deployment

-Jorge

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK8rZvAPLtYLCp12KYWKpgmGh-hkEh2Pvx1CCOgZ%3DS479A%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-04-25 Thread Motaz Hejaze
why the hell would anyone try to deploy for 2 weeks 

please follow this tutorial . i personally used it and worked for me twise
..

also read the comments section ..

https://www.codementor.io/@jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4

On Sat, Apr 25, 2020 at 4:17 PM sagar ninave  wrote:

>
> https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment
>
> Follow this documentation
>
> On Sat, Apr 25, 2020 at 7:16 AM sagar ninave 
> wrote:
>
>> Do you installed whitenoise package
>> If not then run this command
>> Pip insatll whitenoise
>>
>> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi 
>> wrote:
>>
>>> I have spent over 2weeks on deploying a django project to heroku but I
>>> keep getting error messages such as :
>>>
>>> My WhiteNoise is not configured  and I have followed all the tutorials
>>> recommended  and yet same thing.
>>>
>>> Please who has a guide I can follow that is very updated.
>>> Thank you.
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunnexaj...@gmail.com *
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>>
>> 
>> sagar ninave
>> about.me/sagarninave
>> 
>>
>
>
> --
>
> 
> sagar ninave
> about.me/sagarninave
> 
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA6pdZ-FCy07Hr07UE6hm82oFJBYf9bZCoimWdmd6wqBg8tJxg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-cCHBEsj%3DcnTFmobpPki6ugx4rH-r791B%2BK3CrBUofFUw%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-04-25 Thread sagar ninave
Do you installed whitenoise package
If not then run this command
Pip insatll whitenoise

On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi 
wrote:

> I have spent over 2weeks on deploying a django project to heroku but I
> keep getting error messages such as :
>
> My WhiteNoise is not configured  and I have followed all the tutorials
> recommended  and yet same thing.
>
> Please who has a guide I can follow that is very updated.
> Thank you.
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
> 
> .
>
-- 

sagar ninave
about.me/sagarninave


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com.


Re: Deploying Django Project on heroku

2020-04-25 Thread sagar ninave
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment

Follow this documentation

On Sat, Apr 25, 2020 at 7:16 AM sagar ninave  wrote:

> Do you installed whitenoise package
> If not then run this command
> Pip insatll whitenoise
>
> On Sat, 25 Apr 2020 at 7:43 PM, Sunday Iyanu Ajayi 
> wrote:
>
>> I have spent over 2weeks on deploying a django project to heroku but I
>> keep getting error messages such as :
>>
>> My WhiteNoise is not configured  and I have followed all the tutorials
>> recommended  and yet same thing.
>>
>> Please who has a guide I can follow that is very updated.
>> Thank you.
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunnexaj...@gmail.com *
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com
>> 
>> .
>>
> --
>
> 
> sagar ninave
> about.me/sagarninave
> 
>


-- 

sagar ninave
about.me/sagarninave


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA6pdZ-FCy07Hr07UE6hm82oFJBYf9bZCoimWdmd6wqBg8tJxg%40mail.gmail.com.


Deploying Django Project on heroku

2020-04-25 Thread Sunday Iyanu Ajayi
I have spent over 2weeks on deploying a django project to heroku but I keep
getting error messages such as :

My WhiteNoise is not configured  and I have followed all the tutorials
recommended  and yet same thing.

Please who has a guide I can follow that is very updated.
Thank you.
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com.


Re: issues deploying django project to cpanel

2020-03-06 Thread Devender Kumar
You can't deploy to cpanel go for cloud services of pythonanywhere

On Fri, 6 Mar, 2020, 12:23 pm Tosin Ayoola,  wrote:

> good morning guys,
> i'm trying to deploy my project on cpanel but i'm encountering this err
> msg, hoping anyone can help me out
> i have the screen shot of the msg below tnks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHLKn70KjXEbFJw%3Dy0A9RTmNitnymG5p4Y1Ja9NopYbWAPR2kw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALZ%3DbEK%2B__6Si5AkoOUAmH1oiCzVjfdM8cucQi9f9PA1G9vJ5g%40mail.gmail.com.


issues deploying django project to cpanel

2020-03-05 Thread Tosin Ayoola
good morning guys,
i'm trying to deploy my project on cpanel but i'm encountering this err
msg, hoping anyone can help me out
i have the screen shot of the msg below tnks

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn70KjXEbFJw%3Dy0A9RTmNitnymG5p4Y1Ja9NopYbWAPR2kw%40mail.gmail.com.


Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
tambien prueba lo que dice el compañero si no puede detectar que tipo de
app se trata  igual es eso talvez borraste algun archivo de configuracion

El jue., 14 nov. 2019 a las 13:22, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> yo heroku no utilizo ya que los despiegues los hago yo en docker o directo
> sobre el server pero lo unico que veo en tu log es que desde heroku no
> puede hacer ese push o commit al que lo tengas sincronizado con heroku,
> prueba a hacer tu el push y ver si pasa el  push o comit o merge al evento
> al que le hayas hecho el hook
>
> El jue., 14 nov. 2019 a las 13:19, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> vamos a ver no puede hacer push sobre la rama master puedes tu hacerlo
>> con git normal
>>
>> El jue., 14 nov. 2019 a las 12:59, Integr@te System (<
>> datacentral...@gmail.com>) escribió:
>>
>>> Hola por favor revisa
>>>
>>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>>>
>>> On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos <
>>> encinasj.an...@gmail.com> wrote:
>>>
 mas que nada el poblema que tengo es técnico , el detalle es que cuando
 escribo en la terminal git push heroku master me lanza el siguiente error y
 no entiendo cual es el error.

 (webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
 Counting objects: 221, done.
 Delta compression using up to 8 threads.
 Compressing objects: 100% (203/203), done.
 Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
 Total 221 (delta 60), reused 0 (delta 0)
 remote: Compressing source files... done.
 remote: Building source:
 remote:
 remote: -> App not compatible with buildpack:
 https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
 remote:More info:
 https://devcenter.heroku.com/articles/buildpacks#detection-failure
 remote:
 remote:  ! Push failed
 remote: Verifying deploy...
 remote:
 remote: ! Push rejected to entregastim.
 remote:
 To https://git.heroku.com/entregastim.git
  ! [remote rejected] master -> master (pre-receive hook declined)
 error: failed to push some refs to '
 https://git.heroku.com/entregastim.git'

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com
>>> 
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1sNnLMqYOwOR2GK4sdRnrzpE1V1h3hrsuf58hsT-6KWA%40mail.gmail.com.


Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
yo heroku no utilizo ya que los despiegues los hago yo en docker o directo
sobre el server pero lo unico que veo en tu log es que desde heroku no
puede hacer ese push o commit al que lo tengas sincronizado con heroku,
prueba a hacer tu el push y ver si pasa el  push o comit o merge al evento
al que le hayas hecho el hook

El jue., 14 nov. 2019 a las 13:19, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> vamos a ver no puede hacer push sobre la rama master puedes tu hacerlo con
> git normal
>
> El jue., 14 nov. 2019 a las 12:59, Integr@te System (<
> datacentral...@gmail.com>) escribió:
>
>> Hola por favor revisa
>>
>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>>
>> On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos <
>> encinasj.an...@gmail.com> wrote:
>>
>>> mas que nada el poblema que tengo es técnico , el detalle es que cuando
>>> escribo en la terminal git push heroku master me lanza el siguiente error y
>>> no entiendo cual es el error.
>>>
>>> (webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
>>> Counting objects: 221, done.
>>> Delta compression using up to 8 threads.
>>> Compressing objects: 100% (203/203), done.
>>> Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
>>> Total 221 (delta 60), reused 0 (delta 0)
>>> remote: Compressing source files... done.
>>> remote: Building source:
>>> remote:
>>> remote: -> App not compatible with buildpack:
>>> https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
>>> remote:More info:
>>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>>> remote:
>>> remote:  ! Push failed
>>> remote: Verifying deploy...
>>> remote:
>>> remote: ! Push rejected to entregastim.
>>> remote:
>>> To https://git.heroku.com/entregastim.git
>>>  ! [remote rejected] master -> master (pre-receive hook declined)
>>> error: failed to push some refs to '
>>> https://git.heroku.com/entregastim.git'
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1Zm2b3Hz3bK3VOsiWSSYEtMeGneAQLO_VfOKOLXuOBtA%40mail.gmail.com.


Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
vamos a ver no puede hacer push sobre la rama master puedes tu hacerlo con
git normal

El jue., 14 nov. 2019 a las 12:59, Integr@te System (<
datacentral...@gmail.com>) escribió:

> Hola por favor revisa
>
> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>
> On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos <
> encinasj.an...@gmail.com> wrote:
>
>> mas que nada el poblema que tengo es técnico , el detalle es que cuando
>> escribo en la terminal git push heroku master me lanza el siguiente error y
>> no entiendo cual es el error.
>>
>> (webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
>> Counting objects: 221, done.
>> Delta compression using up to 8 threads.
>> Compressing objects: 100% (203/203), done.
>> Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
>> Total 221 (delta 60), reused 0 (delta 0)
>> remote: Compressing source files... done.
>> remote: Building source:
>> remote:
>> remote: -> App not compatible with buildpack:
>> https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
>> remote:More info:
>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>> remote:
>> remote:  ! Push failed
>> remote: Verifying deploy...
>> remote:
>> remote: ! Push rejected to entregastim.
>> remote:
>> To https://git.heroku.com/entregastim.git
>>  ! [remote rejected] master -> master (pre-receive hook declined)
>> error: failed to push some refs to '
>> https://git.heroku.com/entregastim.git'
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0zc9-thrtmGJnyp9q%3DpB%3DrXe6mJPNMEL-vm4zRjBZZvQ%40mail.gmail.com.


Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread Integr@te System
Hola por favor revisa

https://devcenter.heroku.com/articles/buildpacks#detection-failure

On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos <
encinasj.an...@gmail.com> wrote:

> mas que nada el poblema que tengo es técnico , el detalle es que cuando
> escribo en la terminal git push heroku master me lanza el siguiente error y
> no entiendo cual es el error.
>
> (webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
> Counting objects: 221, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (203/203), done.
> Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
> Total 221 (delta 60), reused 0 (delta 0)
> remote: Compressing source files... done.
> remote: Building source:
> remote:
> remote: -> App not compatible with buildpack:
> https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
> remote:More info:
> https://devcenter.heroku.com/articles/buildpacks#detection-failure
> remote:
> remote:  ! Push failed
> remote: Verifying deploy...
> remote:
> remote: ! Push rejected to entregastim.
> remote:
> To https://git.heroku.com/entregastim.git
>  ! [remote rejected] master -> master (pre-receive hook declined)
> error: failed to push some refs to 'https://git.heroku.com/entregastim.git
> '
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com.


tengo un problema a la hora de hacer deploying django app to heroku

2019-11-13 Thread jose angel encinas ramos
mas que nada el poblema que tengo es técnico , el detalle es que cuando 
escribo en la terminal git push heroku master me lanza el siguiente error y 
no entiendo cual es el error.

(webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
Counting objects: 221, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (203/203), done.
Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
Total 221 (delta 60), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -> App not compatible with buildpack: 
https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:More info: 
https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote:  ! Push failed
remote: Verifying deploy...
remote: 
remote: ! Push rejected to entregastim.
remote: 
To https://git.heroku.com/entregastim.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/entregastim.git'

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com.


Deploying Django app with Channels on a Shared Linux Hosting

2019-07-15 Thread DANIEL URBANO DE LA RUA
Yo have to use daphne to deploy asgi application is all not uwsgi

-- 
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/dcfaff1f-6c3c-4b03-866c-633f45e83707%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploying Django app with Channels on a Shared Linux Hosting

2019-07-15 Thread Fatemeh Ahmadzadeh
Hi friend,
Are you slove this problem?
I have the same problem.
Thanks

-- 
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/d32d78f4-d4d6-4f1f-a67a-8abd7629fe8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Urgently need help with deploying django on plesk.

2019-04-01 Thread Saurabh Jaiswal
Got django running gracefully on plesk.
The issue was on the mod wsgi alias.


On Mon, Apr 1, 2019 at 8:43 AM Mike Dewhirst  wrote:

> On 1/04/2019 1:47 pm, Saurabh Jaiswal wrote:
> > Hey Mike,
> > I have access to the pesk server as root user.
> > I have been facing issue with the mod_wsgi setup process.
>
> Have you seen ... https://modwsgi.readthedocs.io/en/develop/
>
>
> >
> > On Mon, Apr 1, 2019 at 6:03 AM Mike Dewhirst  > <mailto:mi...@dewhirst.com.au>> wrote:
> >
> > On 1/04/2019 3:29 am, Saurabh Jaiswal wrote:
> > > Can someone please help me with deploying django on plesk onyx
> > 17.08.
> > > Been unsucessful trying to launch it.
> >
> > Plesk is written by and for sysadmins and php people to insulate them
> > from needing access to the machine. That means you won't gain easy
> > access unless you have a very friendly sysadmin willing to install
> > stuff
> > for you and happy to implement a system for ongoing software updates.
> > You need access to Apache config files and an ability to reload the
> > webserver. I would say it will be awkward at best and impossible at
> > worst. You might be able to use .htaccess files to tweak Apache to
> > suit
> > your needs
> >
> > I would be looking to find a VM and do it myself with root access or
> > find a Django-friendly hosting provider.
> >
> > My preference is the former.
> >
> > Good luck.
> >
> > Mike
> >
> > > --
> > > 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
> > <mailto:django-users%2bunsubscr...@googlegroups.com>
> > > <mailto:django-users+unsubscr...@googlegroups.com
> > <mailto:django-users%2bunsubscr...@googlegroups.com>>.
> > > To post to this group, send email to
> > django-users@googlegroups.com <mailto:django-users@googlegroups.com>
> > > <mailto:django-users@googlegroups.com
> > <mailto: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/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com
> >
> > >
> > <
> https://groups.google.com/d/msgid/django-users/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com?utm_medium=email_source=footer
> >.
> > > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > 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
> > <mailto:django-users%2bunsubscr...@googlegroups.com>.
> > To post to this group, send email to django-users@googlegroups.com
> > <mailto: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/0342039b-cbd0-1df9-ec73-0c51dbb0850f%40dewhirst.com.au
> .
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > 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
> > <mailto:django-users+unsubscr...@googlegroups.com>.
> > To post to this group, send email to django-users@googlegroups.com
> > <mailto: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/CAOsmX49LfhN2wJdmywUyi3bUUcwiZ%2BTB4AxqgrY9tz1F2C-%2Byg%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/django-users/CAOsmX49LfhN2wJdmywUyi3bUUcwiZ%2BTB4AxqgrY9tz1F2C-%2Byg%40mail.gmail.com?utm_medium=email_source=footer
> >.
> > For more options, visit https://groups.google.com/d/opto

Re: Urgently need help with deploying django on plesk.

2019-03-31 Thread Mike Dewhirst

On 1/04/2019 1:47 pm, Saurabh Jaiswal wrote:

Hey Mike,
I have access to the pesk server as root user.
I have been facing issue with the mod_wsgi setup process.


Have you seen ... https://modwsgi.readthedocs.io/en/develop/




On Mon, Apr 1, 2019 at 6:03 AM Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote:


On 1/04/2019 3:29 am, Saurabh Jaiswal wrote:
> Can someone please help me with deploying django on plesk onyx
17.08.
> Been unsucessful trying to launch it.

Plesk is written by and for sysadmins and php people to insulate them
from needing access to the machine. That means you won't gain easy
access unless you have a very friendly sysadmin willing to install
stuff
for you and happy to implement a system for ongoing software updates.
You need access to Apache config files and an ability to reload the
webserver. I would say it will be awkward at best and impossible at
worst. You might be able to use .htaccess files to tweak Apache to
suit
your needs

I would be looking to find a VM and do it myself with root access or
find a Django-friendly hosting provider.

My preference is the former.

Good luck.

Mike

> --
> 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
<mailto:django-users%2bunsubscr...@googlegroups.com>
> <mailto:django-users+unsubscr...@googlegroups.com
<mailto:django-users%2bunsubscr...@googlegroups.com>>.
> To post to this group, send email to
django-users@googlegroups.com <mailto:django-users@googlegroups.com>
> <mailto:django-users@googlegroups.com
<mailto: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/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com

>

<https://groups.google.com/d/msgid/django-users/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com?utm_medium=email_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
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
<mailto:django-users%2bunsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto: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/0342039b-cbd0-1df9-ec73-0c51dbb0850f%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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/CAOsmX49LfhN2wJdmywUyi3bUUcwiZ%2BTB4AxqgrY9tz1F2C-%2Byg%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CAOsmX49LfhN2wJdmywUyi3bUUcwiZ%2BTB4AxqgrY9tz1F2C-%2Byg%40mail.gmail.com?utm_medium=email_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
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/b19a0657-3e65-3a7b-b174-afd20e2d0804%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Urgently need help with deploying django on plesk.

2019-03-31 Thread Saurabh Jaiswal
Hey Mike,
I have access to the pesk server as root user.
I have been facing issue with the mod_wsgi setup process.

On Mon, Apr 1, 2019 at 6:03 AM Mike Dewhirst  wrote:

> On 1/04/2019 3:29 am, Saurabh Jaiswal wrote:
> > Can someone please help me with deploying django on plesk onyx 17.08.
> > Been unsucessful trying to launch it.
>
> Plesk is written by and for sysadmins and php people to insulate them
> from needing access to the machine. That means you won't gain easy
> access unless you have a very friendly sysadmin willing to install stuff
> for you and happy to implement a system for ongoing software updates.
> You need access to Apache config files and an ability to reload the
> webserver. I would say it will be awkward at best and impossible at
> worst. You might be able to use .htaccess files to tweak Apache to suit
> your needs
>
> I would be looking to find a VM and do it myself with root access or
> find a Django-friendly hosting provider.
>
> My preference is the former.
>
> Good luck.
>
> Mike
>
> > --
> > 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
> > <mailto:django-users+unsubscr...@googlegroups.com>.
> > To post to this group, send email to django-users@googlegroups.com
> > <mailto: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/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/django-users/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com?utm_medium=email_source=footer
> >.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/0342039b-cbd0-1df9-ec73-0c51dbb0850f%40dewhirst.com.au
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAOsmX49LfhN2wJdmywUyi3bUUcwiZ%2BTB4AxqgrY9tz1F2C-%2Byg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Urgently need help with deploying django on plesk.

2019-03-31 Thread Mike Dewhirst

On 1/04/2019 3:29 am, Saurabh Jaiswal wrote:

Can someone please help me with deploying django on plesk onyx 17.08.
Been unsucessful trying to launch it.


Plesk is written by and for sysadmins and php people to insulate them 
from needing access to the machine. That means you won't gain easy 
access unless you have a very friendly sysadmin willing to install stuff 
for you and happy to implement a system for ongoing software updates. 
You need access to Apache config files and an ability to reload the 
webserver. I would say it will be awkward at best and impossible at 
worst. You might be able to use .htaccess files to tweak Apache to suit 
your needs


I would be looking to find a VM and do it myself with root access or 
find a Django-friendly hosting provider.


My preference is the former.

Good luck.

Mike


--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com?utm_medium=email_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
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/0342039b-cbd0-1df9-ec73-0c51dbb0850f%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Urgently need help with deploying django on plesk.

2019-03-31 Thread Saurabh Jaiswal
Can someone please help me with deploying django on plesk onyx 17.08.
Been unsucessful trying to launch it.

-- 
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/CAOsmX4_PFaw%3DBFhufC%3DU%2Bc_iW%2BSN9MH2gfD%3DpQ1nS%3DHnBKN0bA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django multi servers, 1 DB server

2019-01-03 Thread Christian Ledermann
You will have to split migrations from code changes.
The migrated database will have to run with both old and new code.
You may have to split one migration into several to achieve this


On Thu, 3 Jan 2019 at 15:28, Peter van der Does 
wrote:

> We currently have one app server, so deployment with migrations is easy,
> but we're expanding to multiple app servers and one DB server.
>
> How do people handle migrations? I understand you run migrations on one
> server only. But how do you inform the other servers that migrations has
> finished and they can start doing the next steps.
>
> We're open to using any DevOps tool, Ansible, Puppet, Chef.
> We don't do any form of CI, nor are we planning to do so in the near
> future.
>
> If more details are needed let me know and I can provide them.
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.com
>  *
>
> --
> 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/8a49a438-eb2f-78ab-bc5a-ae9edb1a07af%40oneilinteractive.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

-- 
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/CABCjzWobSNRgmuvrQGDOp%3D79xGKhFv6X0rLzNrfLcznJ%3DGtvhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Deploying Django multi servers, 1 DB server

2019-01-03 Thread Peter van der Does
We currently have one app server, so deployment with migrations is easy,
but we're expanding to multiple app servers and one DB server.

How do people handle migrations? I understand you run migrations on one
server only. But how do you inform the other servers that migrations has
finished and they can start doing the next steps.

We're open to using any DevOps tool, Ansible, Puppet, Chef.
We don't do any form of CI, nor are we planning to do so in the near future.

If more details are needed let me know and I can provide them.

-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.com 
**

-- 
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/8a49a438-eb2f-78ab-bc5a-ae9edb1a07af%40oneilinteractive.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django app with Channels on Linux Hosting

2018-10-03 Thread Manjunath
Hi Andrew,
I checked with my host providers. They are telling that websockets are 
supported & I should check my code. :(

On Thursday, October 4, 2018 at 3:18:23 AM UTC+5:30, Andrew Godwin wrote:
>
> Hi there - it sounds like your host does not support websockets. You 
> should check with them for more.
>
> Andrew
>
> On Wed, 3 Oct 2018 at 23:43, Manjunath > 
> wrote:
>
>> Hi all,
>> I have developed a simple app using django channels.
>>  
>> I would like to deploy it on a linux hosting provider (Currently I have 
>> account with mochahost.com - Web Hosting:mocha package) & I have 
>> deployed the app there.
>> All features of the app are working except for web sockets which give the 
>> following error: *Error during WebSocket handshake: Unexpected response 
>> code: 404*
>>
>> The app in local development system works fine without a glitch but the 
>> ASGI layer is not working after deployment.
>>
>> My current host provider is running pyhon apps using  Passenger.
>>
>> Is there any extra settings I need to do to setup the Socket layer?
>> Kindly help me in this issue.
>>
>> Package versions used:
>> Python - 3.6.6
>> Django - 2.1.1
>> Channels - 2.1.3
>> Channels_redis - 2.3.0
>>
>>
>> Hope to get help for this issue..
>>
>> Thanks & Regards,
>> Manjunath
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@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/e39d3fb8-bad0-4852-a3df-aa52ebf45d6d%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/15f33bc8-012d-4f8b-8332-7e28b74f9811%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django app with Channels on Linux Hosting

2018-10-03 Thread Andrew Godwin
Hi there - it sounds like your host does not support websockets. You should
check with them for more.

Andrew

On Wed, 3 Oct 2018 at 23:43, Manjunath  wrote:

> Hi all,
> I have developed a simple app using django channels.
>
> I would like to deploy it on a linux hosting provider (Currently I have
> account with mochahost.com - Web Hosting:mocha package) & I have deployed
> the app there.
> All features of the app are working except for web sockets which give the
> following error: *Error during WebSocket handshake: Unexpected response
> code: 404*
>
> The app in local development system works fine without a glitch but the
> ASGI layer is not working after deployment.
>
> My current host provider is running pyhon apps using  Passenger.
>
> Is there any extra settings I need to do to setup the Socket layer?
> Kindly help me in this issue.
>
> Package versions used:
> Python - 3.6.6
> Django - 2.1.1
> Channels - 2.1.3
> Channels_redis - 2.3.0
>
>
> Hope to get help for this issue..
>
> Thanks & Regards,
> Manjunath
>
> --
> 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/e39d3fb8-bad0-4852-a3df-aa52ebf45d6d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFwN1uqPpNxOkY-E22vRQw%2B%3D2_iEQ0TJHqVuV-LOn-pMjRYmxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Deploying Django app with Channels on Linux Hosting

2018-10-03 Thread Manjunath
Hi all,
I have developed a simple app using django channels.
 
I would like to deploy it on a linux hosting provider (Currently I have 
account with mochahost.com - Web Hosting:mocha package) & I have deployed 
the app there.
All features of the app are working except for web sockets which give the 
following error: *Error during WebSocket handshake: Unexpected response 
code: 404*

The app in local development system works fine without a glitch but the 
ASGI layer is not working after deployment.

My current host provider is running pyhon apps using  Passenger.

Is there any extra settings I need to do to setup the Socket layer?
Kindly help me in this issue.

Package versions used:
Python - 3.6.6
Django - 2.1.1
Channels - 2.1.3
Channels_redis - 2.3.0


Hope to get help for this issue..

Thanks & Regards,
Manjunath

-- 
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/e39d3fb8-bad0-4852-a3df-aa52ebf45d6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploying Django app with Channels on a Shared Linux Hosting

2018-10-03 Thread Manjunath
Hi all,
I have developed a simple django application using channels & deployed it 
in a shared linux hosting service(mochahost.com - Webhosting: mocha 
package).
It serves django app with help of Passenger.

The wsgi is working without any issue but the ASGI layer seems to be non 
responsive.
When trying to connect, I am getting the following error message: *Error 
during WebSocket handshake: Unexpected response code: 404*

I don't know how to resolve this.
Is there any extra setup steps I need to follow or any other settings I 
need to do?
Any help would be very much appreciated.

Package versions used:
Python: 3.6.6
Django: 2.1.1
Channels: 2.1.3
Channels_redis: 2.3.0

Thanks & Regards,
Manjunath

-- 
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/cad88411-bcf0-4061-9a37-621f9f11d327%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trouble deploying Django/wagtail on Ubuntu 14.04

2018-04-03 Thread drone4four


Thank you for your reply, Tom.


Here it is running as intended: https://daniel496.agency/


Inside the TEMPLATES variable, the line for ‘DIRS’ now a list which now 
reads: [PROJECT_ROOT + '/bakerydemo/templates']

'DIRS': [PROJECT_ROOT + '/bakerydemo/templates'],



M project root directory is /home/tranq/bakerydemo and the addition symbol 
binds the subsequent string together to create a new string as it is read 
by the interpreter: '/home//bakerydemo/bakerydemo/templates'

I also had to toy around a bit with group and ownership permissions.  Here 
are the winning commands I used in the end:

$ chmod 775 /home/tranq/bakerydemo
> $ chown :www-data /home/tranq/bakerydemo
> $ chmod 775 /home/tranq/bakerydemo/bakerydemodb
> $ chown :www-data /home/tranq/bakerydemo/bakerydemodb
> $ chown -R :www-data /home/tranq/bakerydemo/bakerydemo/media

 

I had this demo running perfectly weeks ago. I meant to report back here 
like this sooner. Sorry.  Better late than never?

Thanks again.

On Tuesday, March 20, 2018 at 2:49:59 PM UTC-4, Tom Evans wrote:
>
> It is not looking for "home_page.html", it is looking for 
> "base/home_page.html". On the error page it lists the locations it is 
> searching for the template, and explicitly says the directories that 
> are being searched. 
>
> You say the file is at 
> /home//bakerydemo/bakerydemo/templates/base/home_page.html 
>
> It says it is looking in /var/www/bakerydemo/templates/ 
>
> This means that your TEMPLATES['DIRS'] setting is wrong. 
>
> Looking at the configuration section of the error report shows that 
> you have put a relative path into TEMPLATE['DIRS']. Use 
> settings.PROJECT_ROOT to make that in to an absolute path, as the 
> example settings.py tells you to do. 
>
> Cheers 
>
> Tom 
>
> PS - there is very little point anonymising your username when you 
> share the full error report. 
>
> On Tue, Mar 20, 2018 at 4:14 PM, drone4four  > wrote: 
> > Thank you, Andreas.  I added the python-path to my Apache ssl.conf and 
> the 
> > Internal Server Error is gone now. It appears WSGI is serving my Django 
> > project perfectly. 
> > 
> > I adjusted ALLOWED_HOSTS just fine. But now Django is saying something 
> about 
> > "TemplateDoesNotExist at /" in base/home_page.html.  You can see the 
> full 
> > Django traceback here: https://daniel496.agency/ 
> > 
> > $ locate home_page.html 
> > 
> /home//.virtualenvs/wagtailbakerydemo/lib/python3.4/site-packages/wagtail/project_template/home/templates/home/home_page.html
>  
>
> > /home//bakerydemo/bakerydemo/templates/base/home_page.html 
> > 
> > The home_page.html file is present but apparently it is not being 
> referred 
> > to properly in my configuration.  Can anyone shed some light on what the 
> > issue could be now? 
> > 
> > Thanks. 
> > 
> > On Tuesday, March 20, 2018 at 5:45:27 AM UTC-4, Cictani wrote: 
> >> 
> >> You have to set the python-path too: 
> >> 
> >> WSGIDaemonProcess bakerydemo 
> >> python-home=/home//.virtualenvs/wagtailbakerydemo/ 
> >> python-path=/home//bakerydemo/ 
> >> 
> >> In the logs you see "No module named 'bakerydemo'" because you did not 
> add 
> >> the project directory to the python-path. Hope this works. 
> >> 
> >> Best regards 
> >> 
> >> Andreas 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To post to this group, send email to django...@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/d90b8924-5458-4c0e-8f0f-2866af4dd156%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/bafd5a65-c764-4d0e-a99e-908167bbad0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error H10 while deploying Django project

2018-04-02 Thread Andréas Kühne
Hi,

You need to give us more information. You should be able to get logs from
the python part of the application, because all this is saying currently is
that there is an error in your code (or at least the way heroku expects the
code to be).
A 503 error (which you are getting) means that the python part is not
responding correctly.

Regards,

Andréas

2018-04-02 22:05 GMT+02:00 prince gosavi :

> heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/"
> host=miniprojectcc.herokuapp.com  dyno= connect= service= status=503
> bytes= protocol=http
> ^C(miniproject-wxhZ76U4)
>  heroku ps -a miniprojectcc
> Free dyno hours quota remaining this month: 549h 30m (99%)
>
> === web (Free): gunicorn -t 3000 miniproject.wsgi (1)
> web.1: crashed 2018/04/03 01:20:39 +0530 (~ 5m ago)
> Help please.
>
> --
> 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/d4c2f92d-e8ef-4ed3-9a38-8c43df5e6db6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAK4qSCf93NqALfHxiuzT%2BRAknPbB-xPM5JeBmz3g6yz5s5xVHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Error H10 while deploying Django project

2018-04-02 Thread prince gosavi
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" 
host=miniprojectcc.herokuapp.com  dyno= connect= service= status=503 bytes= 
protocol=http
^C(miniproject-wxhZ76U4)
 heroku ps -a miniprojectcc
Free dyno hours quota remaining this month: 549h 30m (99%)

=== web (Free): gunicorn -t 3000 miniproject.wsgi (1)
web.1: crashed 2018/04/03 01:20:39 +0530 (~ 5m ago)
Help please.

-- 
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/d4c2f92d-e8ef-4ed3-9a38-8c43df5e6db6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trouble deploying Django/wagtail on Ubuntu 14.04

2018-03-20 Thread 'Tom Evans' via Django users
It is not looking for "home_page.html", it is looking for
"base/home_page.html". On the error page it lists the locations it is
searching for the template, and explicitly says the directories that
are being searched.

You say the file is at
/home//bakerydemo/bakerydemo/templates/base/home_page.html

It says it is looking in /var/www/bakerydemo/templates/

This means that your TEMPLATES['DIRS'] setting is wrong.

Looking at the configuration section of the error report shows that
you have put a relative path into TEMPLATE['DIRS']. Use
settings.PROJECT_ROOT to make that in to an absolute path, as the
example settings.py tells you to do.

Cheers

Tom

PS - there is very little point anonymising your username when you
share the full error report.

On Tue, Mar 20, 2018 at 4:14 PM, drone4four  wrote:
> Thank you, Andreas.  I added the python-path to my Apache ssl.conf and the
> Internal Server Error is gone now. It appears WSGI is serving my Django
> project perfectly.
>
> I adjusted ALLOWED_HOSTS just fine. But now Django is saying something about
> "TemplateDoesNotExist at /" in base/home_page.html.  You can see the full
> Django traceback here: https://daniel496.agency/
>
> $ locate home_page.html
> /home//.virtualenvs/wagtailbakerydemo/lib/python3.4/site-packages/wagtail/project_template/home/templates/home/home_page.html
> /home//bakerydemo/bakerydemo/templates/base/home_page.html
>
> The home_page.html file is present but apparently it is not being referred
> to properly in my configuration.  Can anyone shed some light on what the
> issue could be now?
>
> Thanks.
>
> On Tuesday, March 20, 2018 at 5:45:27 AM UTC-4, Cictani wrote:
>>
>> You have to set the python-path too:
>>
>> WSGIDaemonProcess bakerydemo
>> python-home=/home//.virtualenvs/wagtailbakerydemo/
>> python-path=/home//bakerydemo/
>>
>> In the logs you see "No module named 'bakerydemo'" because you did not add
>> the project directory to the python-path. Hope this works.
>>
>> Best regards
>>
>> Andreas
>
> --
> 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/d90b8924-5458-4c0e-8f0f-2866af4dd156%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAFHbX1%2B%2BfRpK3EqfqqojAt9%2BUyWyx79QYo-nopq0zx38Bdi93Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trouble deploying Django/wagtail on Ubuntu 14.04

2018-03-20 Thread drone4four
Thank you, Andreas.  I added the python-path to my Apache ssl.conf and the 
Internal Server Error is gone now. It appears WSGI is serving my Django 
project perfectly. 

I adjusted ALLOWED_HOSTS just fine. But now Django is saying something 
about "TemplateDoesNotExist at /" in base/home_page.html.  You can see the 
full Django traceback here: https://daniel496.agency/ 

$ locate home_page.html
/home//.virtualenvs/wagtailbakerydemo/lib/python3.4/site-packages/wagtail/project_template/home/templates/home/home_page.html
/home//bakerydemo/bakerydemo/templates/base/home_page.html

The home_page.html file is present but apparently it is not being referred 
to properly in my configuration.  Can anyone shed some light on what the 
issue could be now?

Thanks.

On Tuesday, March 20, 2018 at 5:45:27 AM UTC-4, Cictani wrote:
>
> You have to set the python-path too:
>
> WSGIDaemonProcess bakerydemo 
> python-home=/home//.virtualenvs/wagtailbakerydemo/ 
> python-path=/home//bakerydemo/
>
> In the logs you see "No module named 'bakerydemo'" because you did not add 
> the project directory to the python-path. Hope this works.
>
> Best regards
>
> Andreas
>
>

-- 
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/d90b8924-5458-4c0e-8f0f-2866af4dd156%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trouble deploying Django/wagtail on Ubuntu 14.04

2018-03-20 Thread Cictani
You have to set the python-path too:

WSGIDaemonProcess bakerydemo 
python-home=/home//.virtualenvs/wagtailbakerydemo/ 
python-path=/home//bakerydemo/

In the logs you see "No module named 'bakerydemo'" because you did not add the 
project directory to the python-path. Hope this works.

Best regards

Andreas

-- 
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/52cbd379-8e11-4c96-86b6-7910bd6ff8ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trouble deploying Django/wagtail on Ubuntu 14.04

2018-03-19 Thread drone4four
I successfully installed wagtail ’s bakery demo site 
 locally.  I 
ended up leveraging the README for this bakery demo site 
 on their GitHub page which calls to 
use a ‘virtualenvwrapper 
’ instead of a 
typical venv.  As instructed I played around with some configuration files. 
I got it working. Here is a .webm video 
 showcasing my site 
running locally.  

But when I attempt to deploy it on my DigitalOcean Droplet, Apache is 
throwing all sorts of errors.  The problem is with my configuration. I am 
not sure what I have to change to make it right. 

Here is my site showing an Apache Internal Server 
Error: https://daniel496.agency/ 

Here  are the most recent lines of traceback 
from my Apache log file. That log file is pointing me in a few directions. 
I ensure that my Apache sites-available file points to wsgi.py inside the 
bakerydemo project folder.  I tried both wsgi.py and production_wsgi.py.

Here are the contents of my ssl Apache sites-available ssl config:




ServerAdmin @gmail.com
ServerName daniel496.agency
ServerAlias www.daniel496.agency
#   DocumentRoot /var/www/html/daniel496.agency/public_html


#   ErrorLog ${APACHE_LOG_DIR}/error.log
ErrorLog ${APACHE_LOG_DIR}/daniel496/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined


# Original Django project commented out 19 March 2018 to make room 
for Django project below

Alias /static /home//TheGreatWork/static
/TheGreatWork/static>
Require all granted



/TheGreatWork/TheGreatWork>

Require all granted




WSGIDaemonProcess TheGreatWork python-home=/home/
/TheGreatWork/venv
WSGIProcessGroup TheGreatWork
WSGIScriptAlias / /home//TheGreatWork/TheGreatWork/wsgi.py







# 2nd Django project (wagtail demo)
Alias /static /home//bakerydemo/bakerydemo/static
/bakerydemo/bakerydemo/static>
Require all granted



/bakerydemo/bakerydemo>

Require all granted




WSGIDaemonProcess bakerydemo python-home=/home/
/.virtualenvs/wagtailbakerydemo/
WSGIProcessGroup bakerydemo
WSGIScriptAlias / /home//bakerydemo/bakerydemo/wsgi.py


Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/daniel496.agency/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/daniel496.agency/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/daniel496.agency/chain.pem






Take note the project called, TheGreatWork.  That is a previous project 
I've temporarily set aside.  I invoked a multi-line block comment in this 
Apache starting with  and ending with 


As part of setting up virtualenvwrapper, I’ve assigned my virtual 
environments to: /home//.virtualenvs, which appears to be an issue in 
the error log as well, so maybe this could be the problem with my setup?

I’ve ruled out the possibility that the issue has something to do with the 
Python version 2.7-based libapache2-mod-wsgi because I purged my system of 
that library. All that exists now is libapache2-mod-wsgi-py3.

I'm running Ubuntu 14.04 on my Droplet, running Python 3.4 and Django 2.0.

Is there any other information I could provide to help troubleshoot?

Thanks for your attention.

-- 
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/4a00eab7-7378-4ce3-808f-c3e6a810a4f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trouble deploying Django (project folder, wsgi.py and libapache2-mod-wsgi)

2018-03-08 Thread Jason
you need to use libapache2-mod-wsgi-py3, since the package you used is for 
python2 only

On Thursday, March 8, 2018 at 1:23:44 PM UTC-5, drone4four wrote:
>
> I’m having some issues deploying Django.
>
>
> Here is my site: https://daniel496.agency/ 
>
>
> I’m running a Digital Ocean Droplet with Ubuntu 14.04 and Python v3.4 with 
> Django 2.0.2 installed.
>
>
> In this post first I share what errors I am encountering, then what I 
> think is the issue is and then what I’ve tried to resolve the issue.  At 
> the end of this post are my configuration files like ssl.conf and wsgi.py.
>
>
> Before I begin, I think the issue might involve the naming of my project 
> folders. My project folder on my local machine is named: 
> `first_project_attempt`.  But on my remote server, the project folder is 
> named, `cel2fah`. I copied the contents locally to my remote host and now 
> trying to iron out the issues.
>
>
> Here I go.  If you access my site linked to above, right now it is showing:
>
>
> Internal Server Error
>> The server encountered an internal error or misconfiguration and was 
>> unable to complete your request.
>> Please contact the server administrator at @gmail.com to inform 
>> them of the time this error occurred, and the actions you performed just 
>> before this error.
>> More information about this error may be available in the server error 
>> log.
>> Apache/2.4.7 (Ubuntu) Server at daniel496.agency Port 443
>
>
> Here are the last ~50 lines of my apache error log file: 
> https://pastebin.com/UPsTmf28 
>
>
> I’m thinking that there could be a potential conflict between 
> libapache2-mod-wsgi and libapache2-mod-wsgi-py3.  I encountered a similar 
> issue a few weeks ago. There are apparently still traces of 
> libapache2-mod-wsgi (for Python 2.7) still flagged as active on my system 
> given that $ sudo dpkg -s libapache2-mod-wsgi prints:
>
>
> Package: libapache2-mod-wsgi
>> Status: deinstall ok config-files
>> Priority: optional
>> Section: httpd
>> Installed-Size: 242
>> Maintainer: Ubuntu Developers <ubuntu-dev...@lists.ubuntu.com 
>> >
>> Architecture: amd64
>> Source: mod-wsgi
>> Version: 3.4-4ubuntu2.1.14.04.2
>> Config-Version: 3.4-4ubuntu2.1.14.04.2
>> Provides: httpd-wsgi
>> Depends: libc6 (>= 2.14), libpython2.7 (>= 2.7), apache2-api-20120211, 
>> python (>= 2.7), python (<< 2.8)
>> Conffiles:
>> /etc/apache2/mods-available/wsgi.load 06d2b4d2c95b28720f324bd650b7cbd6 
>> obsolete
>> /etc/apache2/mods-available/wsgi.conf c4ca5be35d0820b5d5cc2892097b476b 
>> obsolete
>> Description: Python WSGI adapter module for Apache
>> The mod_wsgi adapter is an Apache module that provides a WSGI (Web Server
>> Gateway Interface, a standard interface between web server software and
>> web applications written in Python) compliant interface for hosting Python
>> based web applications within Apache. The adapter provides significantly
>> better performance than using existing WSGI adapters for mod_python or 
>> CGI.
>> .
>> This package provides module for Python 2.X.
>> Homepage: http://www.modwsgi.org/
>> Original-Maintainer: Debian Python Modules Team <
>> python-mo...@lists.alioth.debian.org >
>
>
> However when I go to remove it, it says it’s not installed:
>
>
> $ sudo apt remove libapache2-mod-wsgi
>> Reading package lists... Done
>> Building dependency tree   
>> Reading state information... Done
>> Package 'libapache2-mod-wsgi' is not installed, so not removed
>> 0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
>
>
> More to the point, when invoking this as root:
>
>
> apache2ctl -t -D DUMP_MODULES
>
>
> ...it lists what modules apache2 has loaded. And libapache2-mod-wsgi (for 
> Python version 2) is included.  So I Google ‘how to remove apache modules’ 
> which turns up this SO post: 
> https://stackoverflow.com/questions/9288865/how-can-i-uninstall-an-apache2-module
>
> So I set out to rename my libapache2-mod-wsgi.so (for Python version 2) 
> from my apache2 modules directory inside /usr/lib. I see a symlink 
> mod_wsgi.so which refers to mod_wsgi.so-3.4:
>
>
> @:/usr/lib/apache2/modules$ ls -la mod_wsgi*
>> lrwxrwxrwx 1 root root 15 Nov 18 2014 mod_wsgi.so -> mod_wsgi.so-3.4
>> -rw-r--r-- 1 root root 174448 Nov 18  2014 mod_wsgi.so-3.4
>> @:/usr/lib/apache2/modules$ 
>
>
> So is my Apache serving the libapache2-mod-wsgi module for python2 or just 
> for python3 or what?
>
>
> What else can you people determine could be the issue here?
>
&g

Trouble deploying Django (project folder, wsgi.py and libapache2-mod-wsgi)

2018-03-08 Thread drone4four


I’m having some issues deploying Django.


Here is my site: https://daniel496.agency/ 


I’m running a Digital Ocean Droplet with Ubuntu 14.04 and Python v3.4 with 
Django 2.0.2 installed.


In this post first I share what errors I am encountering, then what I think 
is the issue is and then what I’ve tried to resolve the issue.  At the end 
of this post are my configuration files like ssl.conf and wsgi.py.


Before I begin, I think the issue might involve the naming of my project 
folders. My project folder on my local machine is named: 
`first_project_attempt`.  But on my remote server, the project folder is 
named, `cel2fah`. I copied the contents locally to my remote host and now 
trying to iron out the issues.


Here I go.  If you access my site linked to above, right now it is showing:


Internal Server Error
> The server encountered an internal error or misconfiguration and was 
> unable to complete your request.
> Please contact the server administrator at @gmail.com to inform them 
> of the time this error occurred, and the actions you performed just before 
> this error.
> More information about this error may be available in the server error log.
> Apache/2.4.7 (Ubuntu) Server at daniel496.agency Port 443


Here are the last ~50 lines of my apache error log file: 
https://pastebin.com/UPsTmf28 


I’m thinking that there could be a potential conflict between 
libapache2-mod-wsgi and libapache2-mod-wsgi-py3.  I encountered a similar 
issue a few weeks ago. There are apparently still traces of 
libapache2-mod-wsgi (for Python 2.7) still flagged as active on my system 
given that $ sudo dpkg -s libapache2-mod-wsgi prints:


Package: libapache2-mod-wsgi
> Status: deinstall ok config-files
> Priority: optional
> Section: httpd
> Installed-Size: 242
> Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
> Architecture: amd64
> Source: mod-wsgi
> Version: 3.4-4ubuntu2.1.14.04.2
> Config-Version: 3.4-4ubuntu2.1.14.04.2
> Provides: httpd-wsgi
> Depends: libc6 (>= 2.14), libpython2.7 (>= 2.7), apache2-api-20120211, 
> python (>= 2.7), python (<< 2.8)
> Conffiles:
> /etc/apache2/mods-available/wsgi.load 06d2b4d2c95b28720f324bd650b7cbd6 
> obsolete
> /etc/apache2/mods-available/wsgi.conf c4ca5be35d0820b5d5cc2892097b476b 
> obsolete
> Description: Python WSGI adapter module for Apache
> The mod_wsgi adapter is an Apache module that provides a WSGI (Web Server
> Gateway Interface, a standard interface between web server software and
> web applications written in Python) compliant interface for hosting Python
> based web applications within Apache. The adapter provides significantly
> better performance than using existing WSGI adapters for mod_python or CGI.
> .
> This package provides module for Python 2.X.
> Homepage: http://www.modwsgi.org/
> Original-Maintainer: Debian Python Modules Team 
> <python-modules-t...@lists.alioth.debian.org>


However when I go to remove it, it says it’s not installed:


$ sudo apt remove libapache2-mod-wsgi
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Package 'libapache2-mod-wsgi' is not installed, so not removed
> 0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.


More to the point, when invoking this as root:


apache2ctl -t -D DUMP_MODULES


...it lists what modules apache2 has loaded. And libapache2-mod-wsgi (for 
Python version 2) is included.  So I Google ‘how to remove apache modules’ 
which turns up this SO post: 
https://stackoverflow.com/questions/9288865/how-can-i-uninstall-an-apache2-module

So I set out to rename my libapache2-mod-wsgi.so (for Python version 2) 
from my apache2 modules directory inside /usr/lib. I see a symlink 
mod_wsgi.so which refers to mod_wsgi.so-3.4:


@:/usr/lib/apache2/modules$ ls -la mod_wsgi*
> lrwxrwxrwx 1 root root 15 Nov 18 2014 mod_wsgi.so -> mod_wsgi.so-3.4
> -rw-r--r-- 1 root root 174448 Nov 18  2014 mod_wsgi.so-3.4
> @:/usr/lib/apache2/modules$ 


So is my Apache serving the libapache2-mod-wsgi module for python2 or just 
for python3 or what?


What else can you people determine could be the issue here?


Here is my wsgi.py:

> """
> WSGI config for first_project_attempt project.
> It exposes the WSGI callable as a module-level variable named 
> ``application``.
> For more information on this file, see
> https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
> """
> import os
> import sys
> from django.core.wsgi import get_wsgi_application
> sys.path.append('/home/tranq/cel2fah/cel2fah')
> # NEW:
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cel2fah.settings")
> # OLD:
> # os.environ.setdefault("DJANGO_SETTINGS_MODULE", 
> "first_project_attempt

Re: deploying django project

2017-09-02 Thread Andréas Kühne
You will have to specify your problem more if you want any more help. It's
hard to help you troubleshoot without any more information :-)

Regards,

Andréas

2017-09-02 14:17 GMT+02:00 k2527806 :

> I tried this but my problem was not resolved
>
> On Saturday, September 2, 2017 at 1:44:50 PM UTC+4:30, Andréas Kühne wrote:
>>
>> You could also check out the tutorial at digitalocean:
>>
>> https://www.digitalocean.com/community/tutorials/how-to-serv
>> e-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04
>>
>> Regards,
>>
>> Andréas
>>
>> 2017-09-02 10:51 GMT+02:00 Antonis Christofides <
>> ant...@djangodeployment.com>:
>>
>>> Hello,
>>>
>>> Deployment is such a big thing it can't easily be summarized in small
>>> step-by-step guides. This is why people are so often frustrated over such
>>> guides and can't get them to work. It's as if a person with zero Python
>>> knowledge says "give me a step-by-step guide on how to build a blog with
>>> Django". You can write a guide, but it's not going to help much.
>>>
>>> You could start (shameless plug) by taking my free Linux course at
>>> http://djangodeployment.com/.
>>>
>>> Regards,
>>>
>>> Antonis
>>>
>>> Antonis Christofideshttp://djangodeployment.com
>>>
>>>
>>> On 2017-09-01 18:29, k2527806 wrote:
>>>
>>> I want deploying my django project on ubuntu 16.04 with nginx and uwsgi
>>> i need some Tips step by step from zero
>>> --
>>> 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...@googlegroups.com.
>>> To post to this group, send email to django...@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/ms
>>> gid/django-users/307ae8ea-4655-40de-9a2c-f138f04af8d8%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To post to this group, send email to django...@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/ms
>>> gid/django-users/651f48f8-a30b-3f7a-bd4d-28bfcc810ef8%40djan
>>> godeployment.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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/1e55f004-9aff-4663-8dcf-5368d66f11d7%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAK4qSCeE-4%3DYH8GeYwQp4nLBzMs-DJ3HzpNa_nMPjq%2B-__R41g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django project

2017-09-02 Thread k2527806
I tried this but my problem was not resolved

On Saturday, September 2, 2017 at 1:44:50 PM UTC+4:30, Andréas Kühne wrote:
>
> You could also check out the tutorial at digitalocean:
>
>
> https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04
>
> Regards,
>
> Andréas
>
> 2017-09-02 10:51 GMT+02:00 Antonis Christofides <
> ant...@djangodeployment.com >:
>
>> Hello,
>>
>> Deployment is such a big thing it can't easily be summarized in small 
>> step-by-step guides. This is why people are so often frustrated over such 
>> guides and can't get them to work. It's as if a person with zero Python 
>> knowledge says "give me a step-by-step guide on how to build a blog with 
>> Django". You can write a guide, but it's not going to help much.
>>
>> You could start (shameless plug) by taking my free Linux course at 
>> http://djangodeployment.com/.
>>
>> Regards,
>>
>> Antonis
>>
>> Antonis Christofideshttp://djangodeployment.com
>>
>>
>> On 2017-09-01 18:29, k2527806 wrote:
>>
>> I want deploying my django project on ubuntu 16.04 with nginx and uwsgi
>> i need some Tips step by step from zero 
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@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/307ae8ea-4655-40de-9a2c-f138f04af8d8%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@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/651f48f8-a30b-3f7a-bd4d-28bfcc810ef8%40djangodeployment.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/1e55f004-9aff-4663-8dcf-5368d66f11d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django project

2017-09-02 Thread Andréas Kühne
You could also check out the tutorial at digitalocean:

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04

Regards,

Andréas

2017-09-02 10:51 GMT+02:00 Antonis Christofides <
anto...@djangodeployment.com>:

> Hello,
>
> Deployment is such a big thing it can't easily be summarized in small
> step-by-step guides. This is why people are so often frustrated over such
> guides and can't get them to work. It's as if a person with zero Python
> knowledge says "give me a step-by-step guide on how to build a blog with
> Django". You can write a guide, but it's not going to help much.
>
> You could start (shameless plug) by taking my free Linux course at
> http://djangodeployment.com/.
>
> Regards,
>
> Antonis
>
> Antonis Christofideshttp://djangodeployment.com
>
>
> On 2017-09-01 18:29, k2527806 wrote:
>
> I want deploying my django project on ubuntu 16.04 with nginx and uwsgi
> i need some Tips step by step from zero
> --
> 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/307ae8ea-4655-40de-9a2c-f138f04af8d8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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/651f48f8-a30b-3f7a-bd4d-28bfcc810ef8%
> 40djangodeployment.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAK4qSCfZ5X1Qm1gjqX3nv_tzV8xE9SVY_0BX3bMqZ7Of2FrzTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django project

2017-09-02 Thread Antonis Christofides
Hello,

Deployment is such a big thing it can't easily be summarized in small
step-by-step guides. This is why people are so often frustrated over such guides
and can't get them to work. It's as if a person with zero Python knowledge says
"give me a step-by-step guide on how to build a blog with Django". You can write
a guide, but it's not going to help much.

You could start (shameless plug) by taking my free Linux course at
http://djangodeployment.com/.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com


On 2017-09-01 18:29, k2527806 wrote:
> I want deploying my django project on ubuntu 16.04 with nginx and uwsgi
> i need some Tips step by step from zero 
> -- 
> 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/307ae8ea-4655-40de-9a2c-f138f04af8d8%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/651f48f8-a30b-3f7a-bd4d-28bfcc810ef8%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


deploying django project

2017-09-01 Thread k2527806
I want deploying my django project on ubuntu 16.04 with nginx and uwsgi
i need some Tips step by step from zero 

-- 
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/307ae8ea-4655-40de-9a2c-f138f04af8d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django Tutorials or Guides - mod_wsgi, Apache, Linux

2017-08-25 Thread Mike Gering
After a lot of trouble, I got my django apps running on an apache server in 
CentOS/cPanel. I documented the apache config file in the readme for the 
project . And the website is 
https://quotes.klezy.xyzhttps://quote.klezy.xyz


>

-- 
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/9626ed35-f351-48d6-b014-3d0ae93cdc77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django Tutorials or Guides - mod_wsgi, Apache, Linux

2017-08-23 Thread Antonis Christofides
Hi,

Shameless plug: http://djangodeployment.com/ is the best :-)

However it doesn't treat mod_wsgi. I have explained
 that
when deploying on Unix/Linux, there is no reason to prefer it over Gunicorn (and
Apache+Gunicorn is a perfectly valid solution
).

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com


On 2017-08-22 22:11, pieceofkayk2...@gmail.com wrote:
> Does anyone have any good tutorials or guides on how to deploy a Django
> project using mod_wsgi, Apache, and Linux?  The documentation isn't really
> cutting it for my beginner self.
> Thanks in advance!
>
>
> -- 
> 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/5f80d0bf-bbb9-491c-9066-ff36a6479a50%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/ca9f3952-23d7-4741-8802-7d052b81a927%40djangodeployment.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django Tutorials or Guides - mod_wsgi, Apache, Linux

2017-08-22 Thread gerardo.palazuelos
hi,
You might want to check this link:
https://www.fullstackpython.com/deployment.html

I hopes this can guide you.
Regards,
Gerardo.


On Tuesday, August 22, 2017 at 2:32:17 PM UTC-6, pieceof...@gmail.com wrote:
>
> I should add Python 2.7, Django 1.11
>
>>
>>

-- 
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/2be52444-68a9-4f92-96b4-1cb456cc5b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django Tutorials or Guides - mod_wsgi, Apache, Linux

2017-08-22 Thread pieceofkayk2718
I should add Python 2.7, Django 1.11

>
>

-- 
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/b3ed091d-5679-4710-a106-5a1065e38259%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploying Django Tutorials or Guides - mod_wsgi, Apache, Linux

2017-08-22 Thread pieceofkayk2718
Does anyone have any good tutorials or guides on how to deploy a Django 
project using mod_wsgi, Apache, and Linux?  The documentation isn't really 
cutting it for my beginner self.
Thanks in advance!


-- 
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/5f80d0bf-bbb9-491c-9066-ff36a6479a50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying django with Apache2 and mod-wsgi in ubuntu14.04

2017-08-03 Thread Antonis Christofides
Hi,

It's not easy to know with certainty what has happened, but from the symptoms
you describe it seems to me that most probably between Saturday and Monday
something may have happened (such as a change of the system's IP address) that
means that Apache isn't resolving it to the appropriate "virtual host" (i.e.
domain).

In order to avoid such problems, I no longer test deployment on my machine (or
in VMs that run on my machine), because I then have to struggle with NAT,
firewalls etc. Instead, I test on VMs on Digital Ocean, which have real IP
addresses, and can be had for something like $0.01 per hour.

Regards,

Antonis

Antonis Christofides
http://djangodeployment.com


On 2017-08-03 08:29, surajit mishra wrote:
> I have developed a project (named pubnet) in django and is trying deploy it on
> production server(currently my ubuntu 14.04 machine for user testing). The
> project did work on built-in django server during development but on
> deploying, it fails to work. All it displays is the apache index.html page on
> localhost and not the django welcome page.
>
> Here are the steps that I have performed:
> *INSTALLATIONS:*
>
>   * installed apache2
>   * installed
> ​lib​
> apache2-mod-wsgi
>   * installed mysql-server
>   * created a database named pubnet
>   * created a django project named pubnet inside /var/www/html/
>
>
> *FILES CREATED/ALTERED:*
>
>   * /vi /etc/apache2/sites-available/pubnet.conf/
>
>  
>
> ServerName pubnet
> ServerAlias pubnet.com 
> ServerAdmin root
>
> DocumentRoot /var/www/html/pubnet
>
> Alias /media/ /var/www/html/pubnet/media/
> Alias /static/ /var/www/html/pubnet/static/
>
> 
> require all granted
> 
>
> WSGIDaemonProcess pubnet.com  processes=2 threads=15
> display-name=%{GROUP}
> WSGIProcessGroup pubnet.com 
>
> WSGIScriptAlias / /var/www/html/pubnet/pubnet/pubnet.wsgi
>
> 
>require all granted
> 
>
> ErrorLog /var/www/logs/error.log
> CustomLog /var/www/logs/custom.log combined
>
> 
>
>   * /vi /var/www/html/pubnet/pubnet/pubnet.wsgi/
>
> import os
> import sys
> sys.path = ['/var/www/html/pubnet'] + sys.path
> os.environ['DJANGO_SETTINGS_MODULE'] = 'pubnet.settings'
>
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
>   * /vi /var/www/html/pubnet/pubnet/wsgi.py:/
>
> import os
> import sys
> import django.core.handlers.wsgi
>
> # Calculate the path based on the location of the WSGI script.
> apache_configuration= os.path.dirname(__file__)
> project = os.path.dirname(apache_configuration)
> workspace = os.path.dirname(project)
> sys.path.append(workspace)
> sys.path.append(project)
>
> # Add the path to 3rd party django application and to django itself.
> sys.path.append('/var/www/html/pubnet')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'pubnet.apache.override'
>
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pubnet.settings")
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
>   * /vi /etc/hosts:/
>
> /127.0.0.1   localhost/
> /192.168.13.80   pubnet.com /
>
>   * /sudo a2ensite pubnet/
>   * /sudo service apache2 reload/
>   * /sudo service apache2 restart/
>
>   * /settings.py:/
>
> ALLOWED_HOSTS = ['localhost', '127.0.0.1', '127.0.1.1', '192.168.13.80',
> 'pubnet.com ']
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'pubnet',
> 'USER': 'root',
> 'PASSWORD': 'PASSWORD',
> 'HOST': '127.0.0.1',   # Or an IP Address that your DB is hosted on
> 'PORT': '3306',
> }
> }
>
> *​NOTE: *While working on it last Saturday, it started working and I was also
> able to display the django admin page on the browser. However, very strangely
> on Monday it failed to work. Since then I have tried almost all links and the
> suggestions in google, installed, uninstalled everything but failed to make it
> work.
>
> Any help would be highly appreciated.
>
> Thanks.
> -- 
> 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/5d36aaf5-01de-402e-9a1a-02fd6c61bdbf%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this 

Re: Deploying django with Apache2 and mod-wsgi in ubuntu14.04

2017-08-03 Thread Thiago Luiz Parolin
I am using django and apache in a debian 8 and 9 server and everything is
working fine.

Firstly, don't use /var/www/html for python files.

In my server, we have a ordinary user that host python files in his home
dir.

I will try enumerate some steps used in one of my projects:
 - with your ordinary user, create your virtualenv
 - put your project in a folder  (sub folder in home of that user)
 - install and secure mysql
 - configure your settings (db settings, settings.py, create database if
needed)
 - test your db connection and make migrations, load fixtures and others.
 - install apache2 (in debian libapache2-mod-wsgi-py3 was required)
 - configure apache (for me just a single file
/etc/apache2/sites-available/your-site-name.conf was sufficient)
 - adjust directory permissions if needed (/var/www or others)
 - restart apache and all is working..

You can read this link to see more info:
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/modwsgi/
Hope it helps you.


2017-08-03 2:29 GMT-03:00 surajit mishra :

> I have developed a project (named pubnet) in django and is trying deploy
> it on production server(currently my ubuntu 14.04 machine for user
> testing). The project did work on built-in django server during development
> but on deploying, it fails to work. All it displays is the apache
> index.html page on localhost and not the django welcome page.
>
> Here are the steps that I have performed:
> *INSTALLATIONS:*
>
>- installed apache2
>- installed
>​lib​
>apache2-mod-wsgi
>- installed mysql-server
>- created a database named pubnet
>- created a django project named pubnet inside /var/www/html/
>
>
> *FILES CREATED/ALTERED:*
>
>- *vi /etc/apache2/sites-available/pubnet.conf*
>
>  
>
> ServerName pubnet
> ServerAlias pubnet.com
> ServerAdmin root
>
> DocumentRoot /var/www/html/pubnet
>
> Alias /media/ /var/www/html/pubnet/media/
> Alias /static/ /var/www/html/pubnet/static/
>
> 
> require all granted
> 
>
> WSGIDaemonProcess pubnet.com processes=2 threads=15 display-name=%{GROUP}
> WSGIProcessGroup pubnet.com
>
> WSGIScriptAlias / /var/www/html/pubnet/pubnet/pubnet.wsgi
>
> 
>require all granted
> 
>
> ErrorLog /var/www/logs/error.log
> CustomLog /var/www/logs/custom.log combined
>
> 
>
>- *vi /var/www/html/pubnet/pubnet/pubnet.wsgi*
>
> import os
> import sys
> sys.path = ['/var/www/html/pubnet'] + sys.path
> os.environ['DJANGO_SETTINGS_MODULE'] = 'pubnet.settings'
>
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
>- *vi /var/www/html/pubnet/pubnet/wsgi.py:*
>
> import os
> import sys
> import django.core.handlers.wsgi
>
> # Calculate the path based on the location of the WSGI script.
> apache_configuration= os.path.dirname(__file__)
> project = os.path.dirname(apache_configuration)
> workspace = os.path.dirname(project)
> sys.path.append(workspace)
> sys.path.append(project)
>
> # Add the path to 3rd party django application and to django itself.
> sys.path.append('/var/www/html/pubnet')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'pubnet.apache.override'
>
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pubnet.settings")
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
>- *vi /etc/hosts:*
>
> *127.0.0.1   localhost*
> *192.168.13.80   pubnet.com *
>
>- *sudo a2ensite pubnet*
>- *sudo service apache2 reload*
>- *sudo service apache2 restart*
>
>
>- *settings.py:*
>
> ALLOWED_HOSTS = ['localhost', '127.0.0.1', '127.0.1.1', '192.168.13.80', '
> pubnet.com']
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'pubnet',
> 'USER': 'root',
> 'PASSWORD': 'PASSWORD',
> 'HOST': '127.0.0.1',   # Or an IP Address that your DB is hosted on
> 'PORT': '3306',
> }
> }
>
> *​NOTE: *While working on it last Saturday, it started working and I was
> also able to display the django admin page on the browser. However, very
> strangely on Monday it failed to work. Since then I have tried almost all
> links and the suggestions in google, installed, uninstalled everything but
> failed to make it work.
>
> Any help would be highly appreciated.
>
> Thanks.
>
> --
> 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/5d36aaf5-01de-402e-9a1a-02fd6c61bdbf%40googlegroups.com
> 
> .
> For more 

Deploying django with Apache2 and mod-wsgi in ubuntu14.04

2017-08-03 Thread surajit mishra
I have developed a project (named pubnet) in django and is trying deploy it 
on production server(currently my ubuntu 14.04 machine for user testing). 
The project did work on built-in django server during development but on 
deploying, it fails to work. All it displays is the apache index.html page 
on localhost and not the django welcome page. 

Here are the steps that I have performed:
*INSTALLATIONS:*

   - installed apache2
   - installed 
   ​lib​
   apache2-mod-wsgi
   - installed mysql-server
   - created a database named pubnet
   - created a django project named pubnet inside /var/www/html/


*FILES CREATED/ALTERED:*

   - *vi /etc/apache2/sites-available/pubnet.conf*

 

ServerName pubnet
ServerAlias pubnet.com
ServerAdmin root

DocumentRoot /var/www/html/pubnet

Alias /media/ /var/www/html/pubnet/media/
Alias /static/ /var/www/html/pubnet/static/


require all granted


WSGIDaemonProcess pubnet.com processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup pubnet.com

WSGIScriptAlias / /var/www/html/pubnet/pubnet/pubnet.wsgi


   require all granted


ErrorLog /var/www/logs/error.log
CustomLog /var/www/logs/custom.log combined



   - *vi /var/www/html/pubnet/pubnet/pubnet.wsgi*

import os
import sys
sys.path = ['/var/www/html/pubnet'] + sys.path
os.environ['DJANGO_SETTINGS_MODULE'] = 'pubnet.settings'

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

   - *vi /var/www/html/pubnet/pubnet/wsgi.py:*
   
import os
import sys
import django.core.handlers.wsgi

# Calculate the path based on the location of the WSGI script.
apache_configuration= os.path.dirname(__file__)
project = os.path.dirname(apache_configuration)
workspace = os.path.dirname(project)
sys.path.append(workspace)
sys.path.append(project)

# Add the path to 3rd party django application and to django itself.
sys.path.append('/var/www/html/pubnet')
os.environ['DJANGO_SETTINGS_MODULE'] = 'pubnet.apache.override'

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pubnet.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

   - *vi /etc/hosts:*

*127.0.0.1   localhost*
*192.168.13.80   pubnet.com *

   - *sudo a2ensite pubnet*
   - *sudo service apache2 reload*
   - *sudo service apache2 restart*
   

   - *settings.py:*

ALLOWED_HOSTS = ['localhost', '127.0.0.1', '127.0.1.1', '192.168.13.80', '
pubnet.com']

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'pubnet',
'USER': 'root',
'PASSWORD': 'PASSWORD',
'HOST': '127.0.0.1',   # Or an IP Address that your DB is hosted on
'PORT': '3306',
}
}

*​NOTE: *While working on it last Saturday, it started working and I was 
also able to display the django admin page on the browser. However, very 
strangely on Monday it failed to work. Since then I have tried almost all 
links and the suggestions in google, installed, uninstalled everything but 
failed to make it work. 

Any help would be highly appreciated.

Thanks.

-- 
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/5d36aaf5-01de-402e-9a1a-02fd6c61bdbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Structure for deploying django channels in producting in AWS

2016-11-27 Thread Andrew Godwin
Hi Vaisagh,

You do not need nginx/apache in front of daphne to make it work (though it
is usually a good idea to have it to serve static images, like you would
with gunicorn).

Have you tried connecting to the container directly locally from the host
machine or from inside the container itself? Have you tried swapping in
another container with something else on port 8000 to see if that works?
This sounds like a networking issue that's not really specific to Daphne.

Andrew

On Sun, Nov 27, 2016 at 4:06 AM, Vaisagh Viswanathan 
wrote:

> Hi,
>
> I'm trying to setup up my django project to use django channels in a
> dockerized setup. The whole setup seems to work fine on a local server and
> when I use runserver instead of daphne.  When I run the setup using daphne,
> the web page gives no response
>
> The  page isn’t working
>
> * didn’t send any data.
>
> ERR_EMPTY_RESPONSE
>
>
> I am not sure at what point this is really failing. I tried running daphne
> with verbosity 2 and it seems the connections are not reaching it.
>
> The setup is like this:
>
> I am running the whole set up on AWS. I have a Redis cluster that I am
> connecting to and using as a channel layer. I assume this is working fine,
> since the runserver seems to be working.
>
> Following this I changed the setup to have two docker containers. The
> first one runs this script and has port 8000 of container mapped to port 80
> of host machine:
>
> cd myproject
> python manage.py collectstatic --no-input
> python manage.py migrate
> python manage.py createsu
> daphne myproject.asgi:channel_layer -b 0.0.0.0 -p 8000 --verbosity 2
>
> The second container simply has this:
>
> cd myproject
> python manage.py runworker
>
>
> The logs from both containers indicate that they are both waiting for some
> requests to reach them. But nothing seems to be reaching them.
>
> I have no idea what I'm supposed to be fixing here. DO i need to put
> nginx/apache in front of it for daphne to work??
>
> Regards,
> Vaisagh
>
> *This message contains confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. E-mail transmission cannot be
> guaranteed to be secure or error-free as information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> The sender therefore does not accept liability for any errors or omissions
> in the contents of this message, which arise as a result of e-mail
> transmission. If verification is required please request a hard-copy
> version. Ideatory Pte. Ltd., #02-18, 71 Ayer Rajah Crescent, Singapore -
> 139951, www.ideatory.co .*
>
> --
> 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/b18d4163-1ccf-45d5-9dac-04b44c77245c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFwN1uoHztPTJ0KG6-HD0fcANhO6iko3fDdEEEyBiGw8Tm%2BzFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Structure for deploying django channels in producting in AWS

2016-11-27 Thread Vaisagh Viswanathan
Hi,

I'm trying to setup up my django project to use django channels in a 
dockerized setup. The whole setup seems to work fine on a local server and 
when I use runserver instead of daphne.  When I run the setup using daphne, 
the web page gives no response 

The  page isn’t working

* didn’t send any data.

ERR_EMPTY_RESPONSE


I am not sure at what point this is really failing. I tried running daphne 
with verbosity 2 and it seems the connections are not reaching it. 

The setup is like this:

I am running the whole set up on AWS. I have a Redis cluster that I am 
connecting to and using as a channel layer. I assume this is working fine, 
since the runserver seems to be working.

Following this I changed the setup to have two docker containers. The first 
one runs this script and has port 8000 of container mapped to port 80 of 
host machine:

cd myproject
python manage.py collectstatic --no-input
python manage.py migrate
python manage.py createsu
daphne myproject.asgi:channel_layer -b 0.0.0.0 -p 8000 --verbosity 2

The second container simply has this:

cd myproject  
python manage.py runworker


The logs from both containers indicate that they are both waiting for some 
requests to reach them. But nothing seems to be reaching them.

I have no idea what I'm supposed to be fixing here. DO i need to put 
nginx/apache in front of it for daphne to work??

Regards,
Vaisagh

-- 
*This message contains confidential information and is intended only for 
the individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. 
The sender therefore does not accept liability for any errors or omissions 
in the contents of this message, which arise as a result of e-mail 
transmission. If verification is required please request a hard-copy 
version. Ideatory Pte. Ltd., #02-18, 71 Ayer Rajah Crescent, Singapore - 
139951, www.ideatory.co .*

-- 
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/b18d4163-1ccf-45d5-9dac-04b44c77245c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django via wsgi

2016-06-28 Thread Coulson Kgathi
how did you do that? please assist

On Saturday, 19 March 2016 00:22:18 UTC+2, parall...@gmail.com wrote:
>
> Thank you all for your replies. It turned out to be something simple. 
> Since Django was installed in a virtualenv I needed to include the path to 
> the Django libs in the wsgi paths. Done and site up.
>
> Again thanks!
>
>
>
> On Tuesday, March 15, 2016 at 5:00:10 AM UTC-7, parall...@gmail.com wrote:
>>
>> Quite new, and trying to deploy first Django site. I keep getting 503 
>> errors. Here are the particulars, any hints as to what I'm doing wrong 
>> would be much appreciated! All directories and files are group owned and 
>> writable by www-data. Ubuntu server, and Apache2.4 server where I have root 
>> access. The tutorial where I got the howto is located here:
>>
>> https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
>>
>> Thank you!
>>
>> *File structure/location:*
>>
>> /home/user/kb_venv/project_name/
>> __init__.py
>> settings.py
>> urls.py
>> wsgi.py
>> manage.py
>> app_name
>>
>> /home/user/kb_venv/project_name/project_name/
>> apache/
>> __init__.py
>> override.py
>> wsgi.py
>>
>>
>> *override.py file contents:*
>> from project_name.settings import
>> DEBUG = True
>> #ALLOWED_HOSTS = ['104.131.154.99'] (no domain name, I'm using IP to 
>> access the site)
>>
>> *wsgi.py file contents:*
>> #wsgi.py
>> import os, sys
>> # Calculate the path based on the location of the WSGI script.
>> apache_configuration= os.path.dirname(__file__)
>> project = os.path.dirname(apache_configuration)
>> workspace = os.path.dirname(project)
>> sys.path.append(workspace)
>> sys.path.append(project)
>>
>> # Add the path to 3rd party django application and to django itself.
>> sys.path.append('/home/smlake/kb_venv')
>> os.environ['DJANGO_SETTINGS_MODULE'] = 'project_name.apache.override'
>> from django.core.wsgi import get_wsgi_application
>> application = get_wsgi_application()
>>
>> *Apache2.4 000-default file:*
>> 
>>
>> WSGIScriptAlias / /home/smlake/kb_venv/project_name/apache/wsgi.py
>> 
>>   Require all granted
>> 
>> ServerAdmin parall...@gmail.com 
>> DocumentRoot /home/smlake/kb_venv/project_name/project_name
>>
>> ErrorLog ${APACHE_LOG_DIR}/error.log
>> CustomLog ${APACHE_LOG_DIR}/access.log combined
>>
>> 
>>
>>
>> *Apache error log entry:*
>> [Mon Mar 14 23:58:48.413099 2016] [authz_core:error] [pid 8034:tid 
>> 140480713053952] [client 54.188.195.80:57782] AH01630: client denied by 
>> server configuration: /home/user/kb_venv/project_name/
>>
>>
>>
>>
>>

-- 
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/62362ac3-2fad-416a-ba71-d895141fc4cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Questions about Deploying django for production using apache and mod_wsgi.

2016-06-26 Thread Peter of the Norse
On May 26, 2016, at 12:12 PM, Bruce Whealton 
 wrote:
> 
> Hello all,
> I have a few questions of which I am not finding answers.
> 1) If I export my development db (Postgresql) and then import it into 
> production database,
> won't I be pulling in a very weak password that I used for development?  I 
> guess I can
> just change that.

Don’t do that.

> 2) Should I export all the content and structure from my development server 
> to my
> production server?  Or should I just create the database connection and then 
> run migrations and
> then create the data content on the production server?  Obviously, my 
> development server has
> minimal content.

Run the migrations and add the data.  There should be completely different data 
on the Production server as the dev server.

> 3) Should I just upload the other packages that I installed with pip on my 
> development server or
> should I instead run pip install on the production server to get all the 
> packages needed on the
> production server?  

Pip, pip, forever pip

> 4) Is it a best practice ( continuing from #3) to create a requirement file 
> and use that to install
> with pip all the packages, as opposed to uploading the packages from 
> development to production?  
> Note: I am developing on Ubuntu but deploying to Centos.  

Yes.  That way you can make changes to your install and just do `pip install -U 
-r requirements.txt` when there’s a bug fix to one of your things.

> 5) I suppose, even if I had a Centos development environment, I would still 
> want to install the required
> packages on the production server instead of just uploading everything.

Pip doesn’t use your distro.  It downloads from https://pypi.python.org/pypi

> Regarding #5, I am liking Python better than what I have used for some time, 
> PHP based application
> development.  However, for the longest time, things were much simpler with 
> php in that most php code is
> just text and so there isn't the notion of "installing" a package.  One could 
> expect things to work fine
> if one just uploaded the site from development to production (perhaps certain 
> new OO features are changing
> this situation for php sites, e.g. the use of autoloaders but that's another 
> topic).

First of all, that’s not quite true.  For many PHP features you have to install 
a package from your Linux distro.  Or figure out how to compile PHP yourself.  
Of course, many people just install all of the things, so that even if you 
don’t use a feature, it’s still a part of your monolithic PHP install.  This 
has been the case for over a decade.

> 6) Is there anything else, in addition to the top level assets (with js/css) 
> that I would want apache to serve directly
> versus going through mod_wsgi?  It seems like I read something to this effect 
> relating to parts of the admin, 
> that need to be served directly by apache.  I could be wrong.  

Anything that doesn’t change.  That includes images too.  The admin has it’s 
own CSS, JS, etc. that should be served by Apache.

> Thanks in advance for any help,
> Bruce  
> 
> P.S. If anyone wants to develop a course on udemy.com on a python framework, 
> please don't develop with
> sqlite3 since we won't use that in production and please discuss deployment 
> on a server besides 
> something like pythonanywhere.com.  The issues of setting things up on one's 
> own vps server are not 
> trivial at all.  (smile).
> 
> -- 
> 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/50b71c19-10a1-4610-8050-191bde7facda%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

Peter of the Norse
rahmc...@radio1190.org



-- 
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/2F54BB37-D020-4B91-9622-5F1A9566E615%40Radio1190.org.
For more options, visit 

Re: Questions about Deploying django for production using apache and mod_wsgi.

2016-05-26 Thread Gergely Polonkai
On May 26, 2016 20:12, "Bruce Whealton" 
wrote:
>
> Hello all,
> I have a few questions of which I am not finding answers.
> 1) If I export my development db (Postgresql) and then import it into
production database,
> won't I be pulling in a very weak password that I used for development?
I guess I can
> just change that.

Yes you can, and yes, you will. I usually start prod with an empn]ty DB, I
consider that safer.

> 2) Should I export all the content and structure from my development
server to my
> production server?  Or should I just create the database connection and
then run migrations and
> then create the data content on the production server?  Obviously, my
development server has
> minimal content.

See my previous answer. If your dev data is production-ready, I don’t see
the downside though.

>
> 3) Should I just upload the other packages that I installed with pip on
my development server or
> should I instead run pip install on the production server to get all the
packages needed on the
> production server?

If you use virtualenv, you should use pip install. I suggest creating a
requirements.txt file (you can create one with pip freeze) and update it
regularly.

>
> 4) Is it a best practice ( continuing from #3) to create a requirement
file and use that to install
> with pip all the packages, as opposed to uploading the packages from
development to production?
> Note: I am developing on Ubuntu but deploying to Centos.

See previous answer.

>
> 5) I suppose, even if I had a Centos development environment, I would
still want to install the required
> packages on the production server instead of just uploading everything.
>
> Regarding #5, I am liking Python better than what I have used for some
time, PHP based application
> development.  However, for the longest time, things were much simpler
with php in that most php code is
> just text and so there isn't the notion of "installing" a package.  One
could expect things to work fine
> if one just uploaded the site from development to production (perhaps
certain new OO features are changing
> this situation for php sites, e.g. the use of autoloaders but that's
another topic).

PHP has its package system, too, it is called composer. It also has binary
modules (although they require much more effort on the server side)

>
> 6) Is there anything else, in addition to the top level assets (with
js/css) that I would want apache to serve directly
> versus going through mod_wsgi?  It seems like I read something to this
effect relating to parts of the admin,
> that need to be served directly by apache.  I could be wrong.

Take a look at the collectstatic management command. Also, if you use
django-compress, e.g. for less,sass, css/js minimizing), you need to run
that.

>
> Thanks in advance for any help,
> Bruce

Also, you may want to check this page[1] for other possible caveats and
best practises.

[1] https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/

>
> P.S. If anyone wants to develop a course on udemy.com on a python
framework, please don't develop with
> sqlite3 since we won't use that in production and please discuss
deployment on a server besides
> something like pythonanywhere.com.  The issues of setting things up on
one's own vps server are not
> trivial at all.  (smile).
>
> --
> 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/50b71c19-10a1-4610-8050-191bde7facda%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CACczBULd2mqRCuY72euyZR0xiUCT2wWNKWBYF78qLsWP7KbFww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Questions about Deploying django for production using apache and mod_wsgi.

2016-05-26 Thread Bruce Whealton
Hello all,
I have a few questions of which I am not finding answers.
1) If I export my development db (Postgresql) and then import it into 
production database,
won't I be pulling in a very weak password that I used for development?  I 
guess I can
just change that.
2) Should I export all the content and structure from my development server 
to my
production server?  Or should I just create the database connection and 
then run migrations and
then create the data content on the production server?  Obviously, my 
development server has
minimal content.

3) Should I just upload the other packages that I installed with pip on my 
development server or
should I instead run pip install on the production server to get all the 
packages needed on the
production server?  

4) Is it a best practice ( continuing from #3) to create a requirement file 
and use that to install
with pip all the packages, as opposed to uploading the packages from 
development to production?  
Note: I am developing on Ubuntu but deploying to Centos.  

5) I suppose, even if I had a Centos development environment, I would still 
want to install the required
packages on the production server instead of just uploading everything.

Regarding #5, I am liking Python better than what I have used for some 
time, PHP based application
development.  However, for the longest time, things were much simpler with 
php in that most php code is
just text and so there isn't the notion of "installing" a package.  One 
could expect things to work fine
if one just uploaded the site from development to production (perhaps 
certain new OO features are changing
this situation for php sites, e.g. the use of autoloaders but that's 
another topic).

6) Is there anything else, in addition to the top level assets (with 
js/css) that I would want apache to serve directly
versus going through mod_wsgi?  It seems like I read something to this 
effect relating to parts of the admin, 
that need to be served directly by apache.  I could be wrong.  

Thanks in advance for any help,
Bruce  

P.S. If anyone wants to develop a course on udemy.com on a python 
framework, please don't develop with
sqlite3 since we won't use that in production and please discuss deployment 
on a server besides 
something like pythonanywhere.com.  The issues of setting things up on 
one's own vps server are not 
trivial at all.  (smile).

-- 
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/50b71c19-10a1-4610-8050-191bde7facda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django via wsgi

2016-03-18 Thread parallaxplace
Thank you all for your replies. It turned out to be something simple. Since 
Django was installed in a virtualenv I needed to include the path to the 
Django libs in the wsgi paths. Done and site up.

Again thanks!



On Tuesday, March 15, 2016 at 5:00:10 AM UTC-7, parall...@gmail.com wrote:
>
> Quite new, and trying to deploy first Django site. I keep getting 503 
> errors. Here are the particulars, any hints as to what I'm doing wrong 
> would be much appreciated! All directories and files are group owned and 
> writable by www-data. Ubuntu server, and Apache2.4 server where I have root 
> access. The tutorial where I got the howto is located here:
>
> https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
>
> Thank you!
>
> *File structure/location:*
>
> /home/user/kb_venv/project_name/
> __init__.py
> settings.py
> urls.py
> wsgi.py
> manage.py
> app_name
>
> /home/user/kb_venv/project_name/project_name/
> apache/
> __init__.py
> override.py
> wsgi.py
>
>
> *override.py file contents:*
> from project_name.settings import
> DEBUG = True
> #ALLOWED_HOSTS = ['104.131.154.99'] (no domain name, I'm using IP to 
> access the site)
>
> *wsgi.py file contents:*
> #wsgi.py
> import os, sys
> # Calculate the path based on the location of the WSGI script.
> apache_configuration= os.path.dirname(__file__)
> project = os.path.dirname(apache_configuration)
> workspace = os.path.dirname(project)
> sys.path.append(workspace)
> sys.path.append(project)
>
> # Add the path to 3rd party django application and to django itself.
> sys.path.append('/home/smlake/kb_venv')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'project_name.apache.override'
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
> *Apache2.4 000-default file:*
> 
>
> WSGIScriptAlias / /home/smlake/kb_venv/project_name/apache/wsgi.py
> 
>   Require all granted
> 
> ServerAdmin parallaxpl...@gmail.com
> DocumentRoot /home/smlake/kb_venv/project_name/project_name
>
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
>
> 
>
>
> *Apache error log entry:*
> [Mon Mar 14 23:58:48.413099 2016] [authz_core:error] [pid 8034:tid 
> 140480713053952] [client 54.188.195.80:57782] AH01630: client denied by 
> server configuration: /home/user/kb_venv/project_name/
>
>
>
>
>

-- 
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/e62e0685-ce4e-44a2-8693-6e3cefeba776%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django via wsgi

2016-03-15 Thread Ryan Nowakowski
On Mon, Mar 14, 2016 at 09:01:46PM -0700, parallaxpl...@gmail.com wrote:
> Quite new, and trying to deploy first Django site. I keep getting 503 
> errors. Here are the particulars, any hints as to what I'm doing wrong 
> would be much appreciated! All directories and files are group owned and 
> writable by www-data. Ubuntu server, and Apache2.4 server where I have root 
> access. The tutorial where I got the howto is located here:
> https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
> 
> Thank you!
> 
> *File structure/location:*
> 
> /home/user/kb_venv/project_name/
> __init__.py
> settings.py
> urls.py
> wsgi.py
> manage.py
> app_name
> 
> /home/user/kb_venv/project_name/project_name/
> apache/
> __init__.py
> override.py
> wsgi.py
> 
> 
> *override.py file contents:*
> from project_name.settings import
> DEBUG = True
> #ALLOWED_HOSTS = ['104.131.154.99'] (no domain name, I'm using IP to access 
> the site)
> 
> *wsgi.py file contents:*
> #wsgi.py
> import os, sys
> # Calculate the path based on the location of the WSGI script.
> apache_configuration= os.path.dirname(__file__)
> project = os.path.dirname(apache_configuration)
> workspace = os.path.dirname(project)
> sys.path.append(workspace)
> sys.path.append(project)
> 
> # Add the path to 3rd party django application and to django itself.
> sys.path.append('/home/smlake/kb_venv')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'project_name.apache.override'
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
> 
> *Apache2.4 000-default file:*
> 
> 
> WSGIScriptAlias / /home/smlake/kb_venv/project_name/apache/wsgi.py
> 
>   Require all granted
> 
> ServerAdmin parallaxpl...@gmail.com
> DocumentRoot /home/smlake/kb_venv/project_name/project_name
> 
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> 
> 
> 
> 
> *Apache error log entry:*
> [Mon Mar 14 23:58:48.413099 2016] [authz_core:error] [pid 8034:tid 
> 140480713053952] [client 54.188.195.80:57782] AH01630: client denied by 
> server configuration: /home/user/kb_venv/project_name/

Perhaps you need to allow access to that directory?  Maybe something
like this:


  Require all granted


-- 
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/20160315223946.GZ16655%40fattuba.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploying Django via wsgi

2016-03-15 Thread Avraham Serour
unless you are strictly required to use apache I strongly suggest using
nginx and uwsgi to deploy your django application


On Tue, Mar 15, 2016 at 6:01 AM,  wrote:

> Quite new, and trying to deploy first Django site. I keep getting 503
> errors. Here are the particulars, any hints as to what I'm doing wrong
> would be much appreciated! All directories and files are group owned and
> writable by www-data. Ubuntu server, and Apache2.4 server where I have root
> access. The tutorial where I got the howto is located here:
>
> https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
>
> Thank you!
>
> *File structure/location:*
>
> /home/user/kb_venv/project_name/
> __init__.py
> settings.py
> urls.py
> wsgi.py
> manage.py
> app_name
>
> /home/user/kb_venv/project_name/project_name/
> apache/
> __init__.py
> override.py
> wsgi.py
>
>
> *override.py file contents:*
> from project_name.settings import
> DEBUG = True
> #ALLOWED_HOSTS = ['104.131.154.99'] (no domain name, I'm using IP to
> access the site)
>
> *wsgi.py file contents:*
> #wsgi.py
> import os, sys
> # Calculate the path based on the location of the WSGI script.
> apache_configuration= os.path.dirname(__file__)
> project = os.path.dirname(apache_configuration)
> workspace = os.path.dirname(project)
> sys.path.append(workspace)
> sys.path.append(project)
>
> # Add the path to 3rd party django application and to django itself.
> sys.path.append('/home/smlake/kb_venv')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'project_name.apache.override'
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
> *Apache2.4 000-default file:*
> 
>
> WSGIScriptAlias / /home/smlake/kb_venv/project_name/apache/wsgi.py
> 
>   Require all granted
> 
> ServerAdmin parallaxpl...@gmail.com
> DocumentRoot /home/smlake/kb_venv/project_name/project_name
>
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
>
> 
>
>
> *Apache error log entry:*
> [Mon Mar 14 23:58:48.413099 2016] [authz_core:error] [pid 8034:tid
> 140480713053952] [client 54.188.195.80:57782] AH01630: client denied by
> server configuration: /home/user/kb_venv/project_name/
>
>
>
>
> --
> 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/6f6de168-acd2-4d81-8f5e-9e56643878ca%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFWa6tK5GRGGKeWkB7Ei51_jrvXGEV%2Bs4omzrLsdJGNfPNUWdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Deploying Django via wsgi

2016-03-15 Thread parallaxplace
Quite new, and trying to deploy first Django site. I keep getting 503 
errors. Here are the particulars, any hints as to what I'm doing wrong 
would be much appreciated! All directories and files are group owned and 
writable by www-data. Ubuntu server, and Apache2.4 server where I have root 
access. The tutorial where I got the howto is located here:
https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04

Thank you!

*File structure/location:*

/home/user/kb_venv/project_name/
__init__.py
settings.py
urls.py
wsgi.py
manage.py
app_name

/home/user/kb_venv/project_name/project_name/
apache/
__init__.py
override.py
wsgi.py


*override.py file contents:*
from project_name.settings import
DEBUG = True
#ALLOWED_HOSTS = ['104.131.154.99'] (no domain name, I'm using IP to access 
the site)

*wsgi.py file contents:*
#wsgi.py
import os, sys
# Calculate the path based on the location of the WSGI script.
apache_configuration= os.path.dirname(__file__)
project = os.path.dirname(apache_configuration)
workspace = os.path.dirname(project)
sys.path.append(workspace)
sys.path.append(project)

# Add the path to 3rd party django application and to django itself.
sys.path.append('/home/smlake/kb_venv')
os.environ['DJANGO_SETTINGS_MODULE'] = 'project_name.apache.override'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

*Apache2.4 000-default file:*


WSGIScriptAlias / /home/smlake/kb_venv/project_name/apache/wsgi.py

  Require all granted

ServerAdmin parallaxpl...@gmail.com
DocumentRoot /home/smlake/kb_venv/project_name/project_name

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined




*Apache error log entry:*
[Mon Mar 14 23:58:48.413099 2016] [authz_core:error] [pid 8034:tid 
140480713053952] [client 54.188.195.80:57782] AH01630: client denied by 
server configuration: /home/user/kb_venv/project_name/




-- 
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/6f6de168-acd2-4d81-8f5e-9e56643878ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploying Django Application to AWS Beanstalk

2015-10-21 Thread Sudhanshu Shekhar
Hi,

I am a Django newbie trying to deploy my own site to the AWS beanstalk 
(free tier) but am facing a lot of issues doing so. The current AWS 
documentation seems incomplete (they don't mention setting up databases 
etc). Can someone please tell me how to deploy a Django application to AWS.

I asked a question on stack overflow but haven't received any answers there 
either 
: 
http://stackoverflow.com/questions/33131324/database-trouble-deploying-django-app-to-amazon-beanstalk

Thank you!

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2b0c14fa-20ba-406b-b795-b4d2e68fc43e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   >