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

Re: NGINX + GUNICORN

2020-09-11 Thread Kasper Laudrup
Hi Giovanni, On 10/09/2020 23.58, Giovanni Silva wrote: */This doesn't work. /* NGINX - FILE server {     listen 81;     server_name www.aidacomunicacao.com.br If I go to http://www.aidacomunicacao.com.br:81/ as you have configured here, I see the default Django welcome page. Is this no

RE: Help me with the view please

2020-09-11 Thread fadhil alex
Sorry for bothering you @coolguy, you’re the only person who seems to be nice to a Django beginner developer like me, and I would like to bother you one more timeYour solution for using methods in models is perfectly fineYou see I want school_fees to be a fixed amount, example $300So when a student

Re: I am getting this error plz help me out of this.

2020-09-11 Thread Hedrick Godson's
In ur anchor tag in template {% url "xyz:rst" post.pk %} On Thu, 10 Sep 2020, 20:15 amr wrote: > In your views function you passed a (pk) so you must pass it in your path > in (urls.py) as > path('postdetail//', views.post_detail, name='post_detail') > Then in your template in(href="{% url 'appn

Re: NGINX + GUNICORN

2020-09-11 Thread Giovanni Silva
No... I want to access www.aidacomunicacao.com.br and I hope see the django webpage Em sex, 11 de set de 2020 04:39, Kasper Laudrup escreveu: > Hi Giovanni, > > On 10/09/2020 23.58, Giovanni Silva wrote: > > */This doesn't work. /* > > > > NGINX - FILE > > server { > > listen 81; > > s

Re: NGINX + GUNICORN

2020-09-11 Thread Kasper Laudrup
Hi Giovanni, On 11/09/2020 12.24, Giovanni Silva wrote: No... I want to access www.aidacomunicacao.com.br and I hope see the django webpage Then don't listen on port 81, but use the default port 80 for non-encrypted HTTP traffic. Kind regards, Kasper

Help with payment processing in django

2020-09-11 Thread shyam.ac...@gmail.com
Hi guys, I am working on a project which offers contents and every content has a different price. i want the users to see only the overview of the content, and if they want full access to the content they have to buy it. If anyone here has done something like this before please let me know.

Re: Help with payment processing in django

2020-09-11 Thread Ogunsanya Opeyemi
Hi i have message me on whatsapp lets talk 09062351846 On Friday, September 11, 2020, shyam.ac...@gmail.com < shyam.acharjy...@gmail.com> wrote: > > Hi guys, I am working on a project which offers contents and every > content has a different price. i want the users to see only the overview of >

Re: Help with payment processing in django

2020-09-11 Thread Omkar Parab
Check-out last few videos of this 👇 series. https://www.youtube.com/playlist?list=PLpyspNLjzwBnGesxJOt_0r4xTWR80j7Y3 On Fri, Sep 11, 2020, 4:22 PM shyam.ac...@gmail.com < shyam.acharjy...@gmail.com> wrote: > > Hi guys, I am working on a project which offers contents and every > content has a di

Setting an existing field to use ForeignKey can't access the object

2020-09-11 Thread Patrick Carra
hello I am attempting to relate two existing tables class Circuitinfotable(models.Model): id1 = models.AutoField(primary_key=True, null=False, unique=True) pid = models.CharField(max_length=255, blank=True, null=True) circuitid = models.CharField(max_length=255, blank=True, null=True)

Re: Setting an existing field to use ForeignKey can't access the object

2020-09-11 Thread Ogunsanya Opeyemi
Your ciecuitinfotable model does not have budget and budget_set field On Friday, September 11, 2020, Patrick Carra wrote: > hello I am attempting to relate two existing tables > > class Circuitinfotable(models.Model): > id1 = models.AutoField(primary_key=True, null=False, unique=True) >

Re: Setting an existing field to use ForeignKey can't access the object

2020-09-11 Thread Patrick Carra
OGUNSANYA I'm trying to access the related objects in the budget table from the Circuitinfotable. From what I can tell once they are related using the ForeignKey I should be able to do this with c.budget but it doesn't work for me. On Friday, September 11, 2020 at 10:43:39 AM UTC-5 Ogunsanya O

Re: Setting an existing field to use ForeignKey can't access the object

2020-09-11 Thread Patrick Carra
Okay I figured it out. First I was using the wrong table (an old table that I should have deleted out). Second I needed to set the db_column attribute in my ForeignKey options). Works like a charm now. Sorry but thanks for the help! On Friday, September 11, 2020 at 11:59:56 AM UTC-5 Patrick C

Re: Help me with the view please

2020-09-11 Thread coolguy
Technically your Fee model is designed incorrectly. You should have separate models for 'fees' and 'fees_paid' where fee would have been the foreign key in 'fees_paid. Fee should have a property like annual fee etc for each student as fee may be different based on student discounts etc. Then wh

Re: NGINX + GUNICORN

2020-09-11 Thread Julio Cojom
It depends, some people use virtualenvs, so you need to install gunicorn in each project. https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 this might help, just change dependencies install to fit your os. In my case, I deploy