Re: Looking for experienced Django backend engineer

2022-02-24 Thread Sunday Iyanu Ajayi
Hi Tony,

You can share a mail of what the project is about. I may be interested.

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



On Thu, Feb 24, 2022 at 3:05 PM anderso...@gmail.com <
anderson.wan...@gmail.com> wrote:

> Dear all,
>
> I'm a SDE, trying to start a startup company.
> Since I learned Django before, so, I plan to use Django to build the
> backend.
>
> But still, we need an backend engineer for our server.
> Ping me if you are interestd.
>
> You can consider this as both freelancer, and stock if it is a good match.
>
> Please send me your Resume.
>
> Best wishes.
>
> Tony Wong
>
> --
> 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/f13e6f81-8490-4418-9d38-ad14ba17790fn%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/CAKYSAw1%2BhdmtYyn8U-eKk2kV74d52Tnsjk_DryNo2%3D4GunScOg%40mail.gmail.com.


Re: Enquiries

2021-09-27 Thread Sunday Iyanu Ajayi
If it you are using a linux PC, python comes with the OS ( mostly python3)
and all you need to do is to install django directly (PS: I will advice you
make you of a virtual environment while setting up django.

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



On Mon, Sep 27, 2021 at 8:09 PM Reality Stevens <
icandoallthings...@gmail.com> wrote:

> Hello.
>
> To install Django to my system, do I need python installed first? If yes,
> what version of Python preferably?
>
> Looking forward to get a response.
>
> --
> 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/3f292786-faf5-4c78-8253-e27a27cf0d3dn%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/CAKYSAw14XfrW9k1gzY0hMtSB_%3DdHqd%2BzBhSb2PZ-j4WG5BabbA%40mail.gmail.com.


NGNIX OPTIMIZATION ISSUE

2021-09-16 Thread Sunday Iyanu Ajayi
Hi team,

I am have serious issue with my NGINX connection.

My  Server is about 8vCPU / 16G RAM  but it spikes very often.
I feel my can still do some optimization on NGINX to manage the traffic.
Please I need an expert in Django deployment with Gunicorn on Nginx


Regards
*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/CAKYSAw14%2BmKJnKroUhmvLbe%3DyHZwH9C1XGQVuyF86vzPVu4W5w%40mail.gmail.com.


HELP WITH INSTALLING AND RUNNING PGAGENT AS A DAEMON

2021-07-01 Thread Sunday Iyanu Ajayi
Dear Team,

Please I need guidance in setting up Pgagent as a daemon on my ubuntu
*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/CAKYSAw2fJ7E1Ge80UTo%2BPkFGYaqdxxVnTjoJuhycoarNyBuswA%40mail.gmail.com.


Re: Diploy django on DigitalOcean

2021-06-24 Thread Sunday Iyanu Ajayi
Hi

You can use this link:
https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, Jun 24, 2021 at 8:27 AM Eugene TUYIZERE 
wrote:

> Hello Team,
>
> I need some tutorials and steps to deploy a django app on DigitalOcean.
> Note that I already have the domain what it remaining is only to host.
>
> Thank you
>
> --
> *Eugene*
>
> --
> 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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/CAKYSAw2N3%3DpuVX4LywuubbvGOR2Ld_NubBMxqJ4S5Z5tUdQ-OA%40mail.gmail.com.


Re: Best way to optimize API requests calls from over 10,000 users simultaneously

2021-06-21 Thread Sunday Iyanu Ajayi
I want to be able to manage API calls from over 1 users without getting
network timeout errors
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Mon, Jun 21, 2021 at 2:33 PM Chetan Ganji  wrote:

> What is the problem you are trying to solve?
> What do you want to optimize exactly? 🤔
>
> I hope this helps you -
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Mon, Jun 21, 2021 at 6:19 PM Sunday Iyanu Ajayi 
> wrote:
>
>> Dear Team,
>>
>> Please I need help on how to optimize API requests calls for over 10,000
>> users simultaneously without any issues and my system spec is 8vCPUs, 16GB
>> RAM.
>>
>> Regards
>>
>> *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/CAKYSAw2UTC6zvJoTWO%2BFQFqs9JQYaFbybC8ymp8kdt4cfwn3Nw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2UTC6zvJoTWO%2BFQFqs9JQYaFbybC8ymp8kdt4cfwn3Nw%40mail.gmail.com?utm_medium=email&utm_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/CAMKMUjuxKtKcF1Y%3Dw3o2XgcpKi2zdAhuGq6UmWzSe6ggDbPbFA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMKMUjuxKtKcF1Y%3Dw3o2XgcpKi2zdAhuGq6UmWzSe6ggDbPbFA%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw3R0%2Bm-6s_WAcX2T7fn%3D%3D9TBaaOAv3NkKoWo7%2Bzzip9ew%40mail.gmail.com.


Re: PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-21 Thread Sunday Iyanu Ajayi
You can use python package : beautifulsoup and selenium
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Sun, Jun 20, 2021 at 1:59 AM Vrushang Desai 
wrote:

> Hi Guys ,
> Anyone knows how to scrape Youtube Channels Emails?
>
> With Django/Python?
>
> If yes,
> Pls reply!
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/75971331-aa7a-41e3-879f-42bd80bf7984n%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/CAKYSAw3sbzxmHK%3D4GkEcSUW6DigzpfhxHzEDTkg-EJhza7oa4A%40mail.gmail.com.


Best way to optimize API requests calls from over 10,000 users simultaneously

2021-06-21 Thread Sunday Iyanu Ajayi
Dear Team,

Please I need help on how to optimize API requests calls for over 10,000
users simultaneously without any issues and my system spec is 8vCPUs, 16GB
RAM.

Regards

*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/CAKYSAw2UTC6zvJoTWO%2BFQFqs9JQYaFbybC8ymp8kdt4cfwn3Nw%40mail.gmail.com.


NGINX AND DJANGO DEPLOYMENT ISSUE

2021-04-18 Thread Sunday Iyanu Ajayi
Hi Team

Please I am having serious issue with my nginx server.

At midnight when the traffic on the server is at it peak, my server spikes
and I get 502 error and from the nginx error log, I get :

upstream prematurely closed connection while reading response header from
upstream

upstream timed out (110: Connection timed out) while reading response
header from upstream

My server resources is about 8 core , 16GB RAM

This is seriously giving me nightmares . I need help


*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/CAKYSAw3Cdm7Wmy%3DBt6HUN6enLXeUrCAjivQsT%3DeWnUviQFwHNA%40mail.gmail.com.


Re: Hi

2021-01-28 Thread Sunday Iyanu Ajayi
Hi  Florin,

What support do you need? You can reach out via my email.
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Tue, Jan 26, 2021 at 3:10 PM Florin Ngabire  wrote:

> My name is florin.i need a support. A small Python project in django
> framework
>
> --
> 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/CACynOu%2BySEKrNgRhwKXYm0%3DOwOau1AS554ywRrzJ3Ru8mgavwA%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/CAKYSAw2PEDYL6PmFpWOzHqdDyYGmmuLJeHibZACJ8mk0nbgpMw%40mail.gmail.com.


Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread Sunday Iyanu Ajayi
What are you trying to achieve?
If you intend to start the django server , used the above proposed step by
the previous guy:
 try *python manage.py runserver*  and not *django-admin runserver* while
your virtual environment is activated and also you are in the django root
directory
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Tue, Sep 29, 2020 at 11:53 PM coolguy 
wrote:

> It seems you haven't changed your python interpreter...based on the screen
> shot the python is being executed from main python directory instead of
> virtual environment.
>
> On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4
> farisch...@student.president.ac.id wrote:
>
>> [image: Screenshot 2020-09-28 12.36.13.png]
>>
> --
> 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/525ba3d8-5940-48c9-b656-c2be5b3fa559n%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/CAKYSAw2qZePsUMtqfG2E4VdriBQo2wRUsY-nAFnJcsYjcJiEbA%40mail.gmail.com.


Re: NGINX + GUNICORN

2020-09-11 Thread Sunday Iyanu Ajayi
>From what I see, you what to host your webapp on two domain name (addresses)

1. www.ascende.com.br; :80
2.  www.aidacomunicacao.com.br :80

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



On Thu, Sep 10, 2020 at 10:59 PM Giovanni Silva  wrote:

> Hello..
>
> *This webpage works fine:*
>
> NGINX - FILE
> server {
> listen 80;
> server_name www.ascende.com.br;
>
> location = /favicon.ico { access_log off; log_not_found off; }
> location /static/ {
> root /home/ascende/Site;
> }
>
> location / {
> include proxy_params;
> proxy_pass http://unix:/run/gunicorn.sock;
> }
> }
>
> GUNICORN SOCKET
> [Unit]
> Description=gunicorn socket
>
> [Socket]
> ListenStream=/run/gunicorn.sock
>
> [Install]
> WantedBy=sockets.target
>
> GUNICORN SERVICE
> [Unit]
> Description=gunicorn daemon
> Requires=gunicorn.socket
> After=network.target
>
> [Service]
> User=ascende
> Group=www-data
> WorkingDirectory=/home/ascende/Site
> ExecStart=/home/ascende/Site/venv/bin/gunicorn \
>   --access-logfile - \
>   --workers 3 \
>   --bind unix:/run/gunicorn.sock \
>   SiteAscende.wsgi:application
>
> [Install]
> WantedBy=multi-user.target
>
> *This doesn't work. *
>
> NGINX - FILE
> server {
> listen 81;
> server_name www.aidacomunicacao.com.br;
>
> location = /favicon.ico { access_log off; log_not_found off; }
> location /static/ {
> root /home/aida/Site;
> }
>
> location / {
> include proxy_params;
> proxy_pass http://unix:/run/siteaida.sock;
> }
> }
>
> GUNICORN SOCKET2
> [Unit]
> Description=siteaida socket
>
> [Socket]
> ListenStream=/run/siteaida.sock
>
> [Install]
> WantedBy=sockets.target
>
> GUNICORN SERVICE2
> [Unit]
> Description=siteaida daemon
> Requires=siteaida.socket
> After=network.target
>
> [Service]
> User=aida
> Group=www-data
> WorkingDirectory=/home/aida/Site
> ExecStart=/home/aida/Site/venv/bin/gunicorn \
>   --access-logfile - \
>   --workers 3 \
>   --bind unix:/run/siteaida.sock \
>   SitaAIDA.wsgi:application
>
> [Install]
> WantedBy=multi-user.target
>
>
> Em qui., 10 de set. de 2020 às 04:52, Kasper Laudrup <
> laud...@stacktrace.dk> escreveu:
>
>> Hi Giovanni,
>>
>> On 10/09/2020 07.59, Giovanni Silva wrote:
>> > Dears,
>> >
>> > can anyone help-me to configure a NGINX + GUNICORN to multiple projects?
>> >
>> > for the first project everything is work fine, for the second project,
>> I
>> > create a new .socket file and new service file..
>> >
>> > The nginx and gunicorn is running, but when I try to access my site,
>> > appears the default page of nginx..
>> >
>> > Any suggestions??
>> >
>>
>> You would probably have a better chance of getting some help if you
>> provide us with the relevant parts of your nginx configuration and a bit
>> more information about your setup (OS etc.).
>>
>> Anyway, have you tried following this guide:
>>
>>
>> http://michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/
>>
>> 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/dd25b9fd-60c3-8f2f-5f76-886ec8d2e649%40stacktrace.dk
>> .
>>
>
>
> --
> *Giovanni Silva*
> (31) 9 9532-1877
>
> --
> 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/CABO2r9dM82yukSLGPtJ7okynr-cTXF5%3DP8G85wqjxT8rDLeV_w%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/CAKYSAw3H%3DZ8K8zqqT%3DdjFAD9cqiY40gNQu7u09vYFTyqZ7W0Lw%40mail.gmail.com.


Re: NGINX + GUNICORN

2020-09-10 Thread Sunday Iyanu Ajayi
In your nginx project file in /etc/nginx/site-available/xx, did you include
the ip of the server you are working on?
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, Sep 10, 2020 at 7:00 AM Giovanni Silva  wrote:

> Dears,
>
> can anyone help-me to configure a NGINX + GUNICORN to multiple projects?
>
> for the first project everything is work fine, for the second project, I
> create a new .socket file and new service file..
>
> The nginx and gunicorn is running, but when I try to access my site,
> appears the default page of nginx..
>
> Any suggestions??
>
> Best regards,
>
> --
> *Giovanni Silva*
> (31) 9 9532-1877
>
> --
> 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/CABO2r9dNQd24yM%3DDD-fjy9dNjV5GigYxxwNNFjtAivs5xfsKRQ%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/CAKYSAw2zWO%3DOy8Ta%3DeswyY%3DeHhXRSZThFqKv4Ym_6DJaB4qDOA%40mail.gmail.com.


Re: IntegrityError: null value in column "user_id" violates not-null constraint

2020-07-31 Thread Sunday Iyanu Ajayi
You will need to login into the database admin page ( maybe pgadmin ) to
update the user_id . From your model, user_id  can't be null
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, Jul 30, 2020 at 11:58 AM Dinolin yp job 
wrote:

>
>
> It worked but the user_id in uploads_upload is empty. How can I can make
> that work?
> On Thursday, July 30, 2020 at 3:31:21 PM UTC+5:30 obast...@gmail.com
> wrote:
>
>> From the error, it states that you are trying to add an upload object to
>> the database without a user. And from your model.py, the User foreign key
>> does not have a null=True, and blank=True. So you can't save a null value
>> for that user field.
>>
>> On Thu, Jul 30, 2020 at 10:52 AM Dinolin yp job 
>> wrote:
>>
>>> I'm trying to save image in postgres database. I have upload model which
>>> has a foreign key reference to the extended custom user model. But it shows
>>> the following error
>>>
>>>
>>> uploads/model.py
>>> from django.db import models
>>> from django.contrib.auth import get_user_model
>>>
>>> User = get_user_model()
>>>
>>> class Upload(models.Model):
>>> upload_file = models.ImageField(upload_to='uploads/')
>>> upload_date = models.DateTimeField(auto_now_add =True)
>>> user = models.ForeignKey(User, on_delete=models.CASCADE)
>>>
>>>
>>> What am I missing? 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/bddd1f92-895c-4e23-8f08-976c0f178f17o%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/57100db3-81b7-49ca-86e6-096c121c94c8n%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/CAKYSAw0noinV2U%2BBCYCEc_dSbYxY7RFLwyrKKpxQWqy%2BfuW%2BNA%40mail.gmail.com.


SYMMETRIC DS

2020-07-26 Thread Sunday Iyanu Ajayi
Please who has used Symmetric DS?


I need help with registering a node
*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/CAKYSAw3XPSHh3iHdb8sysYfgcNGX7iR1hFtm9-kiA_1%3D2XD-nA%40mail.gmail.com.


Re: BEST DATABASE REPLICATION AND SYNCHRONIZATION TOOL

2020-07-23 Thread Sunday Iyanu Ajayi
I Noticed Barman is for postgres DBs. I am looking out for one between
MSSQL and Postgres ( From MSSQL to Postgres )
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, Jul 23, 2020 at 1:58 PM Sunday Iyanu Ajayi 
wrote:

> Thanks . I will check it out
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Thu, Jul 23, 2020 at 12:31 PM m1chael  wrote:
>
>> I believe that would be barman.
>>
>> On Thu, Jul 23, 2020 at 7:26 AM Sunday Iyanu Ajayi 
>> wrote:
>>
>>> Hi guys,
>>>
>>>
>>> Please I need recommendation on the best mssql to postgres database
>>> replication and synchronziation tool ( especially linux OS enabled)
>>>
>>>
>>> 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/CAKYSAw26HU8mXLcD0hVQgiWXjWBKhO8O9tJGczonGHqvDcBD-g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKYSAw26HU8mXLcD0hVQgiWXjWBKhO8O9tJGczonGHqvDcBD-g%40mail.gmail.com?utm_medium=email&utm_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/CAAuoY6N2M_pOMwZ05K3JY9_51OEAYYZUet%2BdmOSaUdJ3b6bb0A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAAuoY6N2M_pOMwZ05K3JY9_51OEAYYZUet%2BdmOSaUdJ3b6bb0A%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw2%3DkbZ7sH_Gat0BWR-7gp_eAFuJgFK_Jw6pUqBUikR0rQ%40mail.gmail.com.


Re: BEST DATABASE REPLICATION AND SYNCHRONIZATION TOOL

2020-07-23 Thread Sunday Iyanu Ajayi
Thanks . I will check it out
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, Jul 23, 2020 at 12:31 PM m1chael  wrote:

> I believe that would be barman.
>
> On Thu, Jul 23, 2020 at 7:26 AM Sunday Iyanu Ajayi 
> wrote:
>
>> Hi guys,
>>
>>
>> Please I need recommendation on the best mssql to postgres database
>> replication and synchronziation tool ( especially linux OS enabled)
>>
>>
>> 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/CAKYSAw26HU8mXLcD0hVQgiWXjWBKhO8O9tJGczonGHqvDcBD-g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw26HU8mXLcD0hVQgiWXjWBKhO8O9tJGczonGHqvDcBD-g%40mail.gmail.com?utm_medium=email&utm_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/CAAuoY6N2M_pOMwZ05K3JY9_51OEAYYZUet%2BdmOSaUdJ3b6bb0A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAAuoY6N2M_pOMwZ05K3JY9_51OEAYYZUet%2BdmOSaUdJ3b6bb0A%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw1O-ETgz4sVsM1sXNWEWQ0unOw7dCz%3DYDT4_w8tynTH7g%40mail.gmail.com.


BEST DATABASE REPLICATION AND SYNCHRONIZATION TOOL

2020-07-23 Thread Sunday Iyanu Ajayi
Hi guys,


Please I need recommendation on the best mssql to postgres database
replication and synchronziation tool ( especially linux OS enabled)


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/CAKYSAw26HU8mXLcD0hVQgiWXjWBKhO8O9tJGczonGHqvDcBD-g%40mail.gmail.com.


Re: Django rest framework saas project

2020-07-17 Thread Sunday Iyanu Ajayi
make use of django usergroups
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Tue, Jul 14, 2020 at 5:15 PM Raghavendra AK 
wrote:

> Users must be able to…
>
> 1. signup. A Company should be created.
> 2. create other users in the same company.
> 3. see a list of users from the same company
> 4. Company can view all users data.
> 5. Company can create Department,
> 6. add new users, that users only related main company
> 7. add roles to user(emp1="supervisor", emp2="normal-user")
>
> Users must NOT be able to…
> 1. see the users from other companies.
>
> Please Advice or give any reference will be very much appreciated,
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fb57d15c-226b-4b19-aaf7-cecfe065d80co%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/CAKYSAw3QO--kauftPPfwXSMkhPJH3xtCDC8M0Q0YvHJNXJjLBQ%40mail.gmail.com.


Re: ERROR WHEN RUNNING PYTHON SCRIPT IN DJANGO ENVIRONMENT

2020-07-09 Thread Sunday Iyanu Ajayi
Postgres DB

I finally got around it using django-extension

django-extension packages helps one to run python scripts in django
environment
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Thu, Jul 9, 2020 at 7:12 PM dr neyx de godlove 
wrote:

> which database are you using
>
> On Thu, Jul 9, 2020 at 5:35 PM Sunday Iyanu Ajayi 
> wrote:
>
>> Hi guys
>>
>> Please I need help with my code.
>>
>> I am trying to run a python script in my django environment and  that
>> makes use of the django database. I get this error
>>
>> ModuleNotFoundError: No module named  project.settings
>>
>> But if I run manage.py runserver, it runs without error
>>
>> *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/CAKYSAw2cRzCkF0%2BOFCe%2BGXpEzc0HZhA6mdyk%3DaLZ70xgmH2_%2BQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2cRzCkF0%2BOFCe%2BGXpEzc0HZhA6mdyk%3DaLZ70xgmH2_%2BQ%40mail.gmail.com?utm_medium=email&utm_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/CAJofND7rmJQdJgdQSox%2BJECrPYORO_Q4QxCm%2BBT9qWqgFdpZoQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJofND7rmJQdJgdQSox%2BJECrPYORO_Q4QxCm%2BBT9qWqgFdpZoQ%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw2dRokHT364PEbmCS7Dp6xfTyPmrbbpfdcss9q6u%2BgGUA%40mail.gmail.com.


ERROR WHEN RUNNING PYTHON SCRIPT IN DJANGO ENVIRONMENT

2020-07-09 Thread Sunday Iyanu Ajayi
Hi guys

Please I need help with my code.

I am trying to run a python script in my django environment and  that makes
use of the django database. I get this error

ModuleNotFoundError: No module named  project.settings

But if I run manage.py runserver, it runs without error

*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/CAKYSAw2cRzCkF0%2BOFCe%2BGXpEzc0HZhA6mdyk%3DaLZ70xgmH2_%2BQ%40mail.gmail.com.


Re: POSTGRES CONNTECTION TIMEOUT WHEN USING AN API

2020-07-06 Thread Sunday Iyanu Ajayi
Yes. I later figured it out after a lot of research.

Thanks to this link:
https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Tue, Jul 7, 2020 at 1:46 AM Dan Madere  wrote:

> Sounds like nginx is timing out waiting for Django, due to the slow query.
> You can set proxy_connect_timeout and proxy_read_timeout in your nginx
> config to allow it to wait longer. Another approach would be to optimize
> the SQL query and add indexes, to have the query run faster and not cause
> the timeout.
>
> Dan
>
> On Monday, July 6, 2020 at 9:24:48 AM UTC-4 sunne...@gmail.com wrote:
>
>> I get this error from my postgresql log also : could not send data to
>> client: Broken pipe
>> *AJAYI Sunday *
>> (+234) 806 771 5394 <+234%20806%20771%205394>
>> *sunne...@gmail.com*
>>
>>
>>
>> On Mon, Jul 6, 2020 at 2:06 PM Sunday Iyanu Ajayi 
>> wrote:
>>
>>> I have a database sql function that I am running fine when on the
>>> database but once i link the output via an api I created  and test via
>>> postman, I get Nginx 502 error and on my postgresql log I get : Çonnection
>>> Timeout error.
>>>
>>> The sql db function link to a foreign table and pulls some data (between
>>> 500-2000 rows)
>>>
>>> Please how can I fix this?
>>>
>>>
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394 <+234%20806%20771%205394>
>>> *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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9a815404-3c51-4a1f-b85d-ba6886dfc9a0n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9a815404-3c51-4a1f-b85d-ba6886dfc9a0n%40googlegroups.com?utm_medium=email&utm_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/CAKYSAw2w16jsuSPt%3D6UxV4GupAPq2HCFWBi%2BvsJYS_kH%3DwQ5WA%40mail.gmail.com.


Re: POSTGRES CONNTECTION TIMEOUT WHEN USING AN API

2020-07-06 Thread Sunday Iyanu Ajayi
I get this error from my postgresql log also : could not send data to
client: Broken pipe
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Mon, Jul 6, 2020 at 2:06 PM Sunday Iyanu Ajayi 
wrote:

> I have a database sql function that I am running fine when on the database
> but once i link the output via an api I created  and test via postman, I
> get Nginx 502 error and on my postgresql log I get : Çonnection Timeout
> error.
>
> The sql db function link to a foreign table and pulls some data (between
> 500-2000 rows)
>
> Please how can I fix this?
>
>
> *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/CAKYSAw0erbKyKfVAAHkyS55LtZX_hKy5-9xLo%2BkKPmmq0H-kSw%40mail.gmail.com.


POSTGRES CONNTECTION TIMEOUT WHEN USING AN API

2020-07-06 Thread Sunday Iyanu Ajayi
I have a database sql function that I am running fine when on the database
but once i link the output via an api I created  and test via postman, I
get Nginx 502 error and on my postgresql log I get : Çonnection Timeout
error.

The sql db function link to a foreign table and pulls some data (between
500-2000 rows)

Please how can I fix this?


*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/CAKYSAw1K%3DJ3oLBJ0%3DsuObqPJCVMbgAnymPxm-h%3D_9pbFBive6A%40mail.gmail.com.


Re: Task queue

2020-06-26 Thread Sunday Iyanu Ajayi
try using celery
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Fri, Jun 26, 2020 at 10:55 PM Joshua Kayode 
wrote:

> Pls i want to re color the blog picture using a task queue
>
> How can i beat achieve this and make it available on blog call
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEL9fCHyg5g9qnpDOAk27O6Qi3EOWwWA%3D6jrUJ5Mg35Uc%2B0b%3Dw%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/CAKYSAw1WHXNtd8vCAPOTW1LQ49yu%3DnAqkYd6kiGSC3oocnzRpg%40mail.gmail.com.


Re: pagination of a specific context in multiple context in ListView not working in django?

2020-06-08 Thread Sunday Iyanu Ajayi
 Modify this:

activities = paginator.page(page)
 data = activities .object_list
return (data)
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Tue, Jun 2, 2020 at 12:52 AM Ali Ahammad  wrote:

> in django, i am trying to list some queries of several objects like user
> lists, categoies and Post list. the homepage will be contained couple of
> blocks or boxes. each box will have different query list like Post list,
> User List, category list. But only one context will have pagination and
> other won't and ofcourse the pagination will be working on Post list.
>
> here is the views.py:
>
> class BlogappListView(ListView):
> model = Category,CustomUser
> template_name = 'home.html'
> context_object_name='category_list'
> queryset=Category.objects.all()
> paginate_by = 2
>
> def get_context_data(self, **kwargs):
> context = super(BlogappListView, self).get_context_data(**kwargs)
> context['user_list']= CustomUser.objects.all()
> context['post_list']=Post.objects.all()
> activities=context['post_list']
> return context
> def get_related_activities(self,activities):
> queryset=self.objects.activity_rel.all()
> paginator=Paginator(queryset,2)
> page=self.request.GET.get('page')
> activities=paginator.get_page(page)
> return(activities)
> in urls.py:
>
> urlpatterns = [
> path('',BlogappListView.as_view(),name='home'),
> ]
> in base.html, the paginate portion code:
>
> 
>   {% if is_paginated %}
>
> {% if page_obj.has_previous %}
> 
> First
>   
>   
>   Previous
> 
> {% endif %}
>
> {% for num in page_obj.paginator.page_range %}
>   {% if page_obj.number == num %}
>   
> {{ num
> }}
>   
>
>   {% elif num > page_obj.number|add:'-3' and num <
> page_obj.number|add:'3' %}
>   
> {{ num
> }}
>   
>
>   {% endif %}
> {% endfor %}
>
> {% if page_obj.has_next %}
> 
>   Next
> 
>   
>   Last
> 
>
> {% endif %}
>
>   {% endif %}
> 
> the main problem is that page number 1 is showing all the posts and also
> the second page. and category list is also truncated into 2 but the user
> list ok.
>
> so how can i make it work ? is there any other way?
>
> thank you 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/695c35d0-4841-4aaf-9080-7817cbe27fa9%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/CAKYSAw2DphFkhdz4FjzZf8-jXBhDwBmKZiYZLJP8tjSXmnX4sw%40mail.gmail.com.


Re: Issue with serving angular with django

2020-06-02 Thread Sunday Iyanu Ajayi
Hi  Andréas  ,

It actually followed the digital oceans setup in setting up the nginx server
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Mon, Jun 1, 2020 at 6:24 PM Andréas Kühne 
wrote:

> Hi Sunday,
>
> No - you don't. What collectstatic does is it collects all of the static
> files to the path where they should be stored. This should be a directory
> that should be served from nginx or apache or any other webserver. When you
> run manage.py runserver - you run a development server that isn't geared
> for production. And that is what is serving the files when "DEBUG" is set
> to True.
>
> To make it work like you want it to:
> 1. Install a webserver that can serve the static files.
> 2. Install gunicorn, uwsgi or some other wsgi server to serve the django
> application.
>
> When you have that working you will be able to look at your custom error
> pages and so on.
>
> There are many good tutorials on howto set this up - I usually look at
> digitalocean - check here for example:
>
> https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04
>
> You can also look at the official django docs for explaining how to run
> production loads:
> https://docs.djangoproject.com/en/3.0/ref/django-admin/#runserver
> https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
>
> When you get this working - serving the static files from a
> webserver isn't that hard.
>
> Regards,
>
> Andréas
>
>
> Den mån 1 juni 2020 kl 16:18 skrev Sunday Iyanu Ajayi <
> sunnexaj...@gmail.com>:
>
>> Hi Kasper,
>>
>> Thanks for the response.
>> I serve my static file by running python manage.py collectstatic on the
>> built file I get from the frontend angular guy
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunnexaj...@gmail.com *
>>
>>
>>
>> On Mon, Jun 1, 2020 at 2:55 PM Kasper Laudrup 
>> wrote:
>>
>>> Hi Sunday,
>>>
>>> On 01/06/2020 15.48, Sunday Iyanu Ajayi wrote:
>>> >
>>> > Please What am I doing wrong? Or are there better ways of serving
>>> > angular build files on django?
>>> >
>>>
>>> You haven't described how you are currently serving static files with
>>> Django. I suggest you start by reading this:
>>>
>>> https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/
>>>
>>> You definitely shouldn't use DEBUG in production and you definitely
>>> should serve static files with your web server of choice.
>>>
>>> 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/12912d74-160c-547a-5cb5-0275432e751d%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/CAKYSAw3vLNZ5RDLav-WuUO1kH4rn%3DF%3DcDLFdteK%2BM_4d9rR9HA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw3vLNZ5RDLav-WuUO1kH4rn%3DF%3DcDLFdteK%2BM_4d9rR9HA%40mail.gmail.com?utm_medium=email&utm_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/CAK4qSCcqMsfK_5Gwd9GkBHTTgR5EQKr9Vmp%3DUaZqt8WuRVCRqQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAK4qSCcqMsfK_5Gwd9GkBHTTgR5EQKr9Vmp%3DUaZqt8WuRVCRqQ%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw1syOBNWckifJ4dV3s9g%3DbqBJ8JfE%3DSUEArufE%2B8jyxuA%40mail.gmail.com.


Re: Issue with serving angular with django

2020-06-01 Thread Sunday Iyanu Ajayi
Hi Kasper,

Thanks for the response.
I serve my static file by running python manage.py collectstatic on the
built file I get from the frontend angular guy
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Mon, Jun 1, 2020 at 2:55 PM Kasper Laudrup  wrote:

> Hi Sunday,
>
> On 01/06/2020 15.48, Sunday Iyanu Ajayi wrote:
> >
> > Please What am I doing wrong? Or are there better ways of serving
> > angular build files on django?
> >
>
> You haven't described how you are currently serving static files with
> Django. I suggest you start by reading this:
>
> https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/
>
> You definitely shouldn't use DEBUG in production and you definitely
> should serve static files with your web server of choice.
>
> 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/12912d74-160c-547a-5cb5-0275432e751d%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/CAKYSAw3vLNZ5RDLav-WuUO1kH4rn%3DF%3DcDLFdteK%2BM_4d9rR9HA%40mail.gmail.com.


Issue with serving angular with django

2020-06-01 Thread Sunday Iyanu Ajayi
Hi guys,

I am working on a project which is made up of an angular and a django part.

- The frontend dev develops the frontend, makes a build and forwards to me

- I get the build and serve it using python manage.py collectstatic

But my challenge is that
 1. It only works when debug is set to True
 2. If debug is set to True, I am unable to set or customize my  error
pages ( it shows django error messages with some vital information that
makes my site vulnerable.

Please What am I doing wrong? Or are there better ways of serving angular
build files on django?

Thank you.

Regards,
*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/CAKYSAw02G2jzy%3D8gv%2B__GZOCBwQHoNskWEzzptZvEpMz6AuRow%40mail.gmail.com.


Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-20 Thread Sunday Iyanu Ajayi
Thank you so much. I really appreciate
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Wed, May 20, 2020 at 7:18 AM Derek  wrote:

> Yes - short answer is you cannot really "protect" Python code directly
> (see: https://python-compiler.com/post/how-to-distribute-python-program )
>
> Long answer - don't sell your code to anyone that you do not trust with
> it.  Obviously, there is a legal route, but there is also the "name and
> shame" option.  Sometimes open source is better; you get paid for your time
> to work on the code rather than trying to sell it as a product - which then
> you have to try and protect.  The open source option prevents the company
> from "selling" the code (well, they would look very silly if they tried to
> do that) and establishes you as the "go to" person for creating and
> maintaining that type of system. If they do make changes to the open source
> code, you'd get the benefit as well.
>
> In general, try and create partnerships with your clients so they want to
> include you in the development process, rather than treating each as other
> as competitors.
>
>
> On Tuesday, 19 May 2020 15:22:13 UTC+2, Andréas Kühne wrote:
>>
>> You can't really do that with Python - however - IF you want to go down
>> that route, you can just use the pyc files - you can theoretically
>> backwards compile them, but I think this is the most you can do
>>
>> Regards,
>>
>> Andréas
>>
>>
>> Den tis 19 maj 2020 kl 03:36 skrev Sunday Iyanu Ajayi > >:
>>
>>> I get your point but my solution is kind of a  SaaS Application. the
>>> client wants to host it on his controlled server  and if they get the
>>> source code, they can replicate, modify and maybe sell it.  Is there a way
>>> to host the compiled file or lock the directory to the project.
>>> *AJAYI Sunday *
>>> (+234) 806 771 5394
>>> *sunne...@gmail.com*
>>>
>>>
>>>
>>> On Mon, May 18, 2020 at 9:28 PM Jim Armstrong 
>>> wrote:
>>>
>>>> When I work on client projects, I deploy to a test server that is under
>>>> my control. Once the project is complete and they have paid the invoice, I
>>>> deploy to the production server under their control. At that point, I don't
>>>> care if they have access to the code - my contracts give the clients all
>>>> rights to the project code upon completion of the project.
>>>>
>>>>
>>>> On Friday, May 15, 2020 at 9:22:33 AM UTC-4, Sunday Iyanu Ajayi wrote:
>>>>>
>>>>> I am working for a client that wants to deploy a project I am working
>>>>> on in a remote server and I will like to project my source code when
>>>>> deployed so that they will not be able to mess with it.
>>>>>
>>>>> How can  I  go about it please?
>>>>>
>>>>> *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/636f0636-30df-4ce2-8629-2be8b208ec37%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/636f0636-30df-4ce2-8629-2be8b208ec37%40googlegroups.com?utm_medium=email&utm_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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKYSAw3Hqjuz5rD_AsZ5Wa%2B3WBzQ9LN0GzZKHx3D-irztJ1G0A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKYSAw3Hqjuz5rD_AsZ5Wa%2B3WBzQ9LN0GzZKHx3D-irztJ1G0A%40mail.gmail.com?utm_medium=email&utm_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/021a40fa-a755-4d77-addf-dfd112597dbc%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/021a40fa-a755-4d77-addf-dfd112597dbc%40googlegroups.com?utm_medium=email&utm_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/CAKYSAw3iWZ-pRSaO0ehCU0uzppjTmTQcmMevJkcCAiOA9ecSMg%40mail.gmail.com.


Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-18 Thread Sunday Iyanu Ajayi
I get your point but my solution is kind of a  SaaS Application. the client
wants to host it on his controlled server  and if they get the source code,
they can replicate, modify and maybe sell it.  Is there a way to host the
compiled file or lock the directory to the project.
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Mon, May 18, 2020 at 9:28 PM Jim Armstrong  wrote:

> When I work on client projects, I deploy to a test server that is under my
> control. Once the project is complete and they have paid the invoice, I
> deploy to the production server under their control. At that point, I don't
> care if they have access to the code - my contracts give the clients all
> rights to the project code upon completion of the project.
>
>
> On Friday, May 15, 2020 at 9:22:33 AM UTC-4, Sunday Iyanu Ajayi wrote:
>>
>> I am working for a client that wants to deploy a project I am working on
>> in a remote server and I will like to project my source code when deployed
>> so that they will not be able to mess with it.
>>
>> How can  I  go about it please?
>>
>> *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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/636f0636-30df-4ce2-8629-2be8b208ec37%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/636f0636-30df-4ce2-8629-2be8b208ec37%40googlegroups.com?utm_medium=email&utm_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/CAKYSAw3Hqjuz5rD_AsZ5Wa%2B3WBzQ9LN0GzZKHx3D-irztJ1G0A%40mail.gmail.com.


Help with Paginating my api views

2020-05-17 Thread Sunday Iyanu Ajayi
I made use of the global pagination ( which is setup on settings.py)  and
it worked fine only on generic viewsets .

I am trying to make use of pagination in a custom view and it is really
challenging. below is a screenshot of my api view.

I need help on how to apply pagination on an APIView shown below:

[image: image.png]

[image: image.png]
*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/CAKYSAw3d%3DjsORDXB89oxb%3DVNF6P9Oj-5_-2vfMkO7g%2BW4UUe9A%40mail.gmail.com.


Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

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



On Sat, May 16, 2020 at 1:32 AM John McClain  wrote:

> I'm not sure this is feasible. The issue is likely about getting paid for
> you and for them about getting what they paid for. There is no work-a-round
> for this dynamic in coding other than to use sandbox server you control for
> version control. Once they approve the iterations and pay you can transfer
> the code. Otherwise, you are going to have to transfer the code and hope
> you get paid.
>
> On Fri, 15 May 2020 at 14:21, Sunday Iyanu Ajayi 
> wrote:
>
>> I am working for a client that wants to deploy a project I am working on
>> in a remote server and I will like to project my source code when deployed
>> so that they will not be able to mess with it.
>>
>> How can  I  go about it please?
>>
>> *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/CAKYSAw2PjNzS0Kutg_-DMvwDqQoTrkWpvjwp7K-6JFR1XZ_%3DLQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2PjNzS0Kutg_-DMvwDqQoTrkWpvjwp7K-6JFR1XZ_%3DLQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_rMjbvxcRWLT03Z-_426Kv%3DfLtPCScBObFJQSisAnkpbw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAN-hv_rMjbvxcRWLT03Z-_426Kv%3DfLtPCScBObFJQSisAnkpbw%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw3-D-EqKfm6ug_AbzTvGGJUFogCcfT1dk_iiLub_B4XvA%40mail.gmail.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
> <https://groups.google.com/d/msgid/django-users/748afd17-f2be-4380-9c3d-8e0d11d35c91%40googlegroups.com?utm_medium=email&utm_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/CAKYSAw0_uvE%3DxN2eoBoUYJQ5_qErVWejeDYU8mESCFu9zQjZYQ%40mail.gmail.com.


Re: pip not working

2020-05-15 Thread Sunday Iyanu Ajayi
Can you share a screenshot of the error ?
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Fri, May 15, 2020 at 3:16 PM Akorede Habeebullah 
wrote:

> Hi guys, I need help with my pip. It was working fine until I upgraded it.
> now its not working fine anymore. I tried running all pip commands that I
> know its still not working.
> I detected this while trying to install requirements.txt for a cloned
> project , I've tried using  python -m pip install and pip install --user
> but its not working too.
>
> I need help pls.
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5c0ea322-4bbc-4ad8-a901-5d206fed198d%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/CAKYSAw2t5KZpJmEqxm4m15wMQvdQOx6iYX1PskYNtTVT8fvb1w%40mail.gmail.com.


Re: I'm new to this django help me out

2020-05-15 Thread Sunday Iyanu Ajayi
 You can host the project on a server and share the url

Or can you enlighten me on what you mean by output?- The Web app ?
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Fri, May 15, 2020 at 3:15 PM sree lekha  wrote:

> how can i share the output of a django program to others
>
> --
> 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/CAC0VY9zxM0SaSoQF5QpywiKbvy0g1LijoB5%2B%3D2y_Ak1gvwmnFQ%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/CAKYSAw3WxqupqA0%3DesFXqNBa_sGs%2Bc3%3Dwih3HmgxyfwYvHL1vw%40mail.gmail.com.


Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-15 Thread Sunday Iyanu Ajayi
The solution will be hosted on my client's server therefore they have
access to it. That is why I need a way to protect my source code.
- Is there are way to deployed the compiled python file of my
django project or encrypt the project file?

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



On Fri, May 15, 2020 at 2:57 PM Kasper Laudrup 
wrote:

> Hi Sunday,
>
> No need to shout in the subject line.
>
> On 15/05/2020 15.21, Sunday Iyanu Ajayi wrote:
> > I am working for a client that wants to deploy a project I am working on
> > in a remote server and I will like to project my source code when
> > deployed so that they will not be able to mess with it.
> >
> > How can  I  go about it please?
> >
>
> Don't give them access to the production server(s)?
>
> 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/775ceb24-2293-0bba-16dd-d437852e7da1%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/CAKYSAw3Njg1a0LstB1DALtcd1L6n-M0ChK4pF3W2xZF%3D0m%2BDsw%40mail.gmail.com.


HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-15 Thread Sunday Iyanu Ajayi
I am working for a client that wants to deploy a project I am working on in
a remote server and I will like to project my source code when deployed so
that they will not be able to mess with it.

How can  I  go about it please?

*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/CAKYSAw2PjNzS0Kutg_-DMvwDqQoTrkWpvjwp7K-6JFR1XZ_%3DLQ%40mail.gmail.com.


HOW TO PAGINATE REST FRAMEWORK VIEWS

2020-05-15 Thread Sunday Iyanu Ajayi
Good day guys,

Please I am working on a project and I need help with applying pagination.

The pagination works with the global generics viewsets.

I am trying to paginate a custom view (API rest framework.views) but it
seems not to work. Please I need help to how to fix it.
[image: image.png]
*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/CAKYSAw3WoQmfbQ9Q7_K-qOx8JYmgkJcz2LNW203ohTwRcagNpw%40mail.gmail.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 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
>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>>>>>>> sagar ninave
>>>>>>> about.me/sagarninave
>>>>>>> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>>>>>>>
>>>>>>> --
>>>>>>> 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
>>>>>>> <https:

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
>>>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>>
>>> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>>> sagar ninave
>>> about.me/sagarninave
>>> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>>>
>>> --
>>> 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
>>> <https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com?utm_medium=email&utm_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/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-dLr30ycFTo9tccTmKW74rvDA%3D0Oks8NqAVez0Tiyzocg%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw2PWEmow%3DbA3wAZ6MnTKkRdMAbq7SN%3D6L4gAcSS0gw1eA%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
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw2PsC452Sk5_1e_sMy3HuZ3zWrFh5p6CVn6K-KsVF1Rqg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
>
> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
> sagar ninave
> about.me/sagarninave
> <https://about.me/sagarninave?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
>
> --
> 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
> <https://groups.google.com/d/msgid/django-users/CAA6pdZ9fsGj3y%3DNVVQ_oCX9hY5DbLHtPVLM-nPhWYxpE4Qsi7w%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw2hYQGRYYZRB%3D7ZNJJJ-1OY2ykShsPam9xiRc-8M4BQJg%40mail.gmail.com.


Re: Notifications in DRF

2020-05-03 Thread Sunday Iyanu Ajayi
I have and it is pretty straight forward.
Check his demo:https://github.com/xtrinch/fcm-django-web-demo
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Tue, Apr 21, 2020 at 1:02 PM shreehari Vaasistha L <
shreehari9...@gmail.com> wrote:

> if anyone has implemented FCM in django rest framework using
> https://github.com/xtrinch/fcm-django or anyother packages, please share
> it with me.
> need to send notifications to devices.
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/08cda12c-51d4-4dc2-8448-9f18dd6b3c9b%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/CAKYSAw2Ff-tcGPgmBc0hrP9_ncHA3mG3SW7b87A5OoHhEmHRrQ%40mail.gmail.com.


Re: Need help whit DJANGO_SETTINGS_MODULE

2020-05-03 Thread Sunday Iyanu Ajayi
Hi Ilie Ioana,
Please check if
1. You are in your current directory ( or virtual evironment)
2. Is django installed on yur pc?

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



On Sun, Apr 19, 2020 at 2:22 PM Ilie Ioana  wrote:

> Hi,I'm new with django and python.
> I just strated a new django project in a venv using django 3.0 and seems
> that DJANGO_SETTINGS_MODULE is not set when running django-admin runserver
>
> Enter code here.(test1) 
> ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
>> django-admin runserver
>> Traceback (most recent call last):
>>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line 8, in
>> 
>> sys.exit(execute_from_command_line())
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 67, in handle
>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 76, in __getattr__
>> self._setup(name)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 61, in _setup
>> % (desc, ENVIRONMENT_VARIABLE))
>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but
>> settings are not configured. You must either define the environment
>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
>> accessing settings.
>> ..
>>
>>
>>
> I tried to set it myself with export DJANGO_SETTINGS_MODULE=test1.settings
> but i receive  ModuleNotFoundError: No module named 'test1'
> Seems like test1 module is not in the path, shouldn't be automatically
> added there?
>
> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
> django-admin shell
> Python 3.6.9 (default, Nov  7 2019, 10:44:02)
> [GCC 8.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> import sys
> >>> sys.path
> ['/home/ioana.i/Workspace/Ioana/test1/bin', '/usr/lib/python36.zip',
> '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload',
> '/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages']
> >>>
>
>
>
>
> --
> 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/07386bda-38a4-4897-b428-c8a39e52c487%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/CAKYSAw1XvpP4om4XJ-vbNqikum2b9soEcSre3rxAcMwGxqcy7w%40mail.gmail.com.


Re: Django - What is the best approach to handle multiple user types…and route the HTML pages based on this?

2020-04-26 Thread Sunday Iyanu Ajayi
You can use create user group on the django admin

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



On Sun, Apr 26, 2020 at 8:05 PM Mayank Tripathi 
wrote:

> I'm making a small test project with below user types: School Admin,
> Teacher, Student, Parent. And each user type will have different
> Permissions like School Admin has full access... Parents can only view
> their Childern's Activity. Teacher can see all students but can add / edit
> marks for their respective students only. Teachers can setup Exam etc..
> Students can take exam and submit the exam, but cannot edit / add any other
> information. Just can edit his profile detail.
>
> Approach 1: Do i need to create a Custom User calss and apply to each user
> type (ie one Custome Class.. and 4 user type calss).. and similarly have 4
> different view and html pages?
>
> Approach 2: Just have one custome class and have an field with UserType
> which will have the have as "SchoolAdmin", "Teacher", "Student","Parent"..
> and one view and html (as the data page would remain same and only data
> record will restrict), and somehow identify the User Type in View, and
> filter the record?
>
> Definately some view or html pages will be specific to one user type only
> which is i am able to handle, the issue is to use same view / html page to
> handle all user type.
>
> Please suggest... and any code snippet will will more helpful.
>
>
> Below is the thing from approach 1, i was trying.
>
> # models.py-class CustomUser(AbstractUser):
> USER_TYPE_CHOICES = (
> ('SchoolAdmin'),
> ('Teacher'),
> ('Student'),
> ('Parents'),
> )
>
> user_type = models.CharField(blank=False, choices=USER_TYPE_CHOICES)
> name = models.CharField(blank=False, max_length=255)
> country = models.CharField(blank=False, max_length=255)
> city = models.CharField(blank=False, max_length=255)
> phone = models.CharField(blank=True, max_length=255)
> created_at = models.DateField(auto_now_add=True)
>
> def __str__(self):
> return self.name
>
> class SchoolAdmin(models.Model):
> user = models.OneToOneField(
> CustomUser, on_delete=models.CASCADE, primary_key=True)
>
> class Teacher(models.Model):
> user = models.OneToOneField(
> CustomUser, on_delete=models.CASCADE, primary_key=True)
> photo = models.ImageField(upload_to='photos/%Y/%m/%d/', blank=True)
>
> class Student(models.Model):
> user = models.OneToOneField(
> CustomUser, on_delete=models.CASCADE, primary_key=True)
> teacher = models.ForeignKey(Teacher)
> photo = models.ImageField(upload_to='photos/%Y/%m/%d/', blank=True)
> class Parent(models.Model):
> user = models.OneToOneField(
> CustomUser, on_delete=models.CASCADE, primary_key=True)
> student= models.ForeignKey(Student)
>
> --
> 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/dbc99b6e-3d46-41c4-a5a9-1e85bbf7d8a4%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/CAKYSAw3ucCKdYsctEMBtMBY9G0Na%2BzQiHKRzJ9w-%3D7RZ6ZGh3A%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: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-13 Thread Sunday Iyanu Ajayi
My bad.
I meant sudo systemctl daemon-reload
Use this as a  guide:
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-

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



On Sun, Apr 12, 2020 at 2:57 PM Jagtar Singh Lakhyan <
jagtar.lakhe...@gmail.com> wrote:

> Hi Ajayi,
>
> sudo systemctl reload daemon-reload
>
> Failed to reload daemon-reload.service: Unit daemon-reload.service not
> found.
>
>
> perhaps u mean to say: sudo systemctl daemon-reload
>
>
> Ran these
> sudo systemctl daemon-reload
> sudo systemctl enable gunicorn
> sudo systemctl restart gunicorn
> sudo systemctl restart nginx
>
> wait for about 2-5minutes then run
> sudo systemctl status gunicorn
>
>
> Result:
>
>
> sudo systemctl status gunicorn
>
> [sudo] password for wms:
>
> *●* gunicorn.service - gunicorn service
>
>Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor
> preset
>
>Active: *active (running)* since Sun 2020-04-12 19:17:35 IST; 6min ago
>
>  Main PID: 8587 (gunicorn)
>
> Tasks: 4 (limit: 1689)
>
>CGroup: /system.slice/gunicorn.service
>
>├─8587 /home/wms/iitiansenv/bin/python3
> /home/wms/iitiansenv/bin/gun
>
>├─8590 /home/wms/iitiansenv/bin/python3
> /home/wms/iitiansenv/bin/gun
>
>├─8592 /home/wms/iitiansenv/bin/python3
> /home/wms/iitiansenv/bin/gun
>
>└─8594 /home/wms/iitiansenv/bin/python3
> /home/wms/iitiansenv/bin/gun
>
>
> Apr 12 19:17:35 wms systemd[1]: Started gunicorn service.
>
> Apr 12 19:17:35 wms gunicorn[8587]: [2020-04-12 19:17:35 +0530] [8587]
> [INFO] S
>
> Apr 12 19:17:35 wms gunicorn[8587]: [2020-04-12 19:17:35 +0530] [8587]
> [INFO] L
>
> Apr 12 19:17:35 wms gunicorn[8587]: [2020-04-12 19:17:35 +0530] [8587]
> [INFO] U
>
> Apr 12 19:17:35 wms gunicorn[8587]: [2020-04-12 19:17:35 +0530] [8590]
> [INFO] B
>
> Apr 12 19:17:35 wms gunicorn[8587]: [2020-04-12 19:17:35 +0530] [8592]
> [INFO] B
>
> Apr 12 19:17:35 wms gunicorn[8587]: [2020-04-12 19:17:35 +0530] [8594]
> [INFO] B
>
>
> The app is well tested on my local, even i tried 15 days back the same app
> to run on nginx, gunicorn and it ran on ip/domain:8000 but Not it didnt run
> on ip/domain.
>
>
> Also, i am checking for the app again if it has some issues.
>
>
> I am following this guide:
> https://medium.com/@_christopher/deploying-my-django-app-to-a-real-server-part-i-de78962e95ac
>
> On Sun, Apr 12, 2020 at 5:14 PM Sunday Iyanu Ajayi 
> wrote:
>
>> HI Jagtar,
>>
>> Sometimes when you get 502 nginx server error , it can be due to the fact
>> that your django code has some error. If there is an error in your code,
>> nginx will no serve.
>>
>> Try to run
>> sudo systemctl reload daemon-reload
>> sudo systemctl enable gunicorn
>> sudo systemctl restart gunicorn
>> sudo systemctl restart nginx
>>
>> wait for about 2-5minutes then run
>> sudo systemctl status gunicorn
>>
>> IT shoud display error in your code
>>
>> *AJAYI Sunday *
>> (+234) 806 771 5394
>> *sunnexaj...@gmail.com *
>>
>>
>>
>> On Sun, Apr 12, 2020 at 5:54 AM Jagtar Singh Lakhyan <
>> jagtar.lakhe...@gmail.com> wrote:
>>
>>> No luck, same 502 error.
>>>
>>> These r settings.py
>>>
>>> *# SECURITY WARNING: don't run with debug turned on in production!*
>>>
>>> DEBUG = *False*
>>>
>>>
>>> ALLOWED_HOSTS = [*'iitian.xyz <http://iitian.xyz>'*, *'192.95.37.123'*]
>>>
>>> On Sun, Apr 12, 2020 at 6:19 AM Andrew C. 
>>> wrote:
>>>
>>>> What’s the HTTP status code? Does the nginx page even show anything?
>>>> Try:
>>>>
>>>> sudo systemctl stop nginx && sudo systemctl disable nginx && sudo
>>>> systemctl enable nginx && sudo systemctl start nginx
>>>>
>>>> This command could also be in the wrong order... it’s been awhile.
>>>>
>>>> It could be a symbolic link error. I don’t know. If you see some web
>>>> page with an error message like Internal Error 500 or the default nginx
>>>> page, let us know.
>>>>
>>>> On Sat, Apr 11, 2020 at 1:39 PM Jagtar Singh Lakhyan <
>>>> jagtar.lakhe...@gmail.com> wrote:
>>>>
>>>>> sudo systemctl status nginx
>>>>>
>>>>> *●* nginx.service - A high performance web server and a reverse p

Re: 502 Bad Gateway nginx/1.14.0 (Ubuntu)

2020-04-12 Thread Sunday Iyanu Ajayi
HI Jagtar,

Sometimes when you get 502 nginx server error , it can be due to the fact
that your django code has some error. If there is an error in your code,
nginx will no serve.

Try to run
sudo systemctl reload daemon-reload
sudo systemctl enable gunicorn
sudo systemctl restart gunicorn
sudo systemctl restart nginx

wait for about 2-5minutes then run
sudo systemctl status gunicorn

IT shoud display error in your code

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



On Sun, Apr 12, 2020 at 5:54 AM Jagtar Singh Lakhyan <
jagtar.lakhe...@gmail.com> wrote:

> No luck, same 502 error.
>
> These r settings.py
>
> *# SECURITY WARNING: don't run with debug turned on in production!*
>
> DEBUG = *False*
>
>
> ALLOWED_HOSTS = [*'iitian.xyz '*, *'192.95.37.123'*]
>
> On Sun, Apr 12, 2020 at 6:19 AM Andrew C.  wrote:
>
>> What’s the HTTP status code? Does the nginx page even show anything? Try:
>>
>> sudo systemctl stop nginx && sudo systemctl disable nginx && sudo
>> systemctl enable nginx && sudo systemctl start nginx
>>
>> This command could also be in the wrong order... it’s been awhile.
>>
>> It could be a symbolic link error. I don’t know. If you see some web page
>> with an error message like Internal Error 500 or the default nginx page,
>> let us know.
>>
>> On Sat, Apr 11, 2020 at 1:39 PM Jagtar Singh Lakhyan <
>> jagtar.lakhe...@gmail.com> wrote:
>>
>>> sudo systemctl status nginx
>>>
>>> *●* nginx.service - A high performance web server and a reverse proxy
>>> server
>>>
>>>Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
>>> preset: enabled)
>>>
>>>Active: *active (running)* since Sat 2020-04-11 04:54:18 IST; 18h ago
>>>
>>>  Docs: man:nginx(8)
>>>
>>>   Process: 1650 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry
>>> QUIT/5 --pidfi
>>>
>>>   Process: 1652 ExecStart=/usr/sbin/nginx -g daemon on; master_process
>>> on; (code=exite
>>>
>>>   Process: 1651 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
>>> master_process on; (c
>>>
>>>  Main PID: 1653 (nginx)
>>>
>>> Tasks: 9 (limit: 1689)
>>>
>>>CGroup: /system.slice/nginx.service
>>>
>>>├─1653 nginx: master process /usr/sbin/nginx -g daemon on;
>>> master_process o
>>>
>>>├─1654 nginx: worker process
>>>
>>>├─1655 nginx: worker process
>>>
>>>├─1656 nginx: worker process
>>>
>>>├─1657 nginx: worker process
>>>
>>>├─1658 nginx: worker process
>>>
>>>├─1659 nginx: worker process
>>>
>>>├─1660 nginx: worker process
>>>
>>>└─1661 nginx: worker process
>>>
>>>
>>> Apr 11 04:54:18 wms systemd[1]: Starting A high performance web server
>>> and a reverse p
>>>
>>> Apr 11 04:54:18 wms systemd[1]: Started A high performance web server
>>> and a reverse pr
>>>
>>> On Sat, Apr 11, 2020 at 11:07 PM Rok Klancar  wrote:
>>>
 Dude, try "sudo systemctl status nginx"

 Dne sobota, 11. april 2020 18.53.50 UTC+2 je oseba Jagtar Singh Lakhyan
 napisala:
>
> Im trying to deploy django app using nginx & gunicorn but its showing
> error
>
> sudo nginx -t
>
> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
>
> nginx: configuration file /etc/nginx/nginx.conf test is successful
>
>
> sudo systemctl status gunicorn.service
>
> gunicorn.service - gunicorn service
>
>Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled;
> vendor preset:
>
>Active: *active (running)* since Sat 2020-04-11 21:19:19 IST; 11s
> ago
>
>  Main PID: 16326 (gunicorn)
>
> Tasks: 4 (limit: 1689)
>
>
> --
 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/a3223d66-8adb-4dcd-8a48-d43d8a426ddc%40googlegroups.com
 
 .

>>>
>>>
>>> --
>>>
>>> *jagtar singh*founder & CEO
>>> LinkedIn 
>>> Twitter 
>>>
>>> web 1: Network 
>>> web 2: WMS 
>>> web 3: Conference 
>>>
>>> Android App 1: Network
>>> 
>>> Android App 2: WMS
>>> 
>>> Android App 3: Conference
>>> 
>>>
>>> LinkedIn
>>> 
>>> LinkedIn2 

CUSTOMIZING ERROR 404 with debug =True

2020-04-12 Thread Sunday Iyanu Ajayi
Good day,

I have a web application built with django and angular. While deploying, I
had to set debug to be 'True' (debug=True) for it to work. but now we a
wrong url is type  with the root url, ( 192.2.3.4/ddfdf) , it takes be to
the django url with debug =True and even when I customize  or  create a new
custom 4004 error page ,it does not override the django default 404 error
page.

Please I need help on how to override django default error 404 page while
my debug is seet to true?
*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/CAKYSAw0d-W__azcE6xSvOZQ13xicgCX5Re4A3-PkzrxGY7uBtQ%40mail.gmail.com.


Re: ACESS FOREIGN KEY TABLE

2020-03-14 Thread Sunday Iyanu Ajayi
How are you querying it? Is it from python script or database query?
If it is a SQL database like postgres, you can join the two tables using
the "JOIN" syntax . You join the two tables using their ids

*SELECT **
*FROM profile p*
*JOIN skill s ON s.user_profile = p.id *

NB: You can customize the SELECT to select specific columns from both tables
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *




Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Thu, Mar 12, 2020 at 9:55 AM Soumen Khatua 
wrote:

> Hi Folks,
> My profile model is Foreignkey in another model called Skill,Now I fetch
> all the data of this user from Profile table(model) and store it into a
> variable called user_profile and now my query is I want to fetch the data
> of the Skill table(model) by using this variable.How I can do that??
>
> Thank you in advance
>
>
> Regards,
> Soumen
>
> --
> 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/CAPUw6WbQEQGF1U4UVKT4kJBWCsHJ%2BC5JX-_u-UpQREcMCuV6XA%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/CAKYSAw2tFN0aENXu8vUWWNoWamUis4i6xS36Vo%2B%3Di5XzkFNr5A%40mail.gmail.com.


Re: API documentation

2020-03-11 Thread Sunday Iyanu Ajayi
I am actually ask for API documentation tool that I can use to document my
API endpoints after building them using django rest framework
*AJAYI Sunday *
(+234) 806 771 5394
*sunnexaj...@gmail.com *



On Wed, Mar 11, 2020 at 11:05 AM Ayser shuhaib 
wrote:

> Django Rest Framework is what you need.
> Check this series of tutorials.
>
>  https://youtu.be/iIqMEflK-HM
>
> The Documentation:
> https://www.django-rest-framework.org
>
>
>
> On Wed, 11 Mar 2020 at 11:59, Sunday Iyanu Ajayi 
> wrote:
>
>> Please can someone recommend an api documentation tool that works with
>> django
>>
>> --
>> 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/CAKYSAw3MMAxmKDiSiTDGz3zTbLM%3D8RtHx1o_%2BtU4zHO3jwX6Xg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKYSAw3MMAxmKDiSiTDGz3zTbLM%3D8RtHx1o_%2BtU4zHO3jwX6Xg%40mail.gmail.com?utm_medium=email&utm_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/CAE0AZGJW71Kqo9%3DVqo7MHRmJykQjXYq4GSsEL3Fw2r%2BWE_6OFA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE0AZGJW71Kqo9%3DVqo7MHRmJykQjXYq4GSsEL3Fw2r%2BWE_6OFA%40mail.gmail.com?utm_medium=email&utm_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/CAKYSAw03z7m%3D1udG%3DOptgsOegVupCrrnXd3GLsX377wKb-rsww%40mail.gmail.com.


API documentation

2020-03-11 Thread Sunday Iyanu Ajayi
Please can someone recommend an api documentation tool that works with
django

-- 
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/CAKYSAw3MMAxmKDiSiTDGz3zTbLM%3D8RtHx1o_%2BtU4zHO3jwX6Xg%40mail.gmail.com.