Re: Server Not running

2020-09-10 Thread Kasper Laudrup
Hi Spyke, On 10/09/2020 06.45, Spyke Lionel wrote: I get this while trying to run server: "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9-py3.8.egg\django\contrib\auth\base_user.py", line 49, in     class AbstractBaseUser(models.Model): RuntimeError: __clas

Re: NGINX + GUNICORN

2020-09-10 Thread Kasper Laudrup
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

Re: NGINX + GUNICORN

2020-09-10 Thread 'Amitesh Sahay' via Django users
Please make sure that gunicorn.service file has same entry of project dir path as nginx. Regards, Amitesh On Thursday, 10 September, 2020, 01:09:20 pm IST, Giovanni Silva wrote: Dears,  can anyone help-me to configure a NGINX + GUNICORN to multiple projects? for the first project ev

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 + GUNICOR

Re: Server Not running

2020-09-10 Thread Spyke Lionel
thanks for responding. I will upgrade my Django version On Thu, Sep 10, 2020, 8:48 AM Kasper Laudrup wrote: > Hi Spyke, > > On 10/09/2020 06.45, Spyke Lionel wrote: > > I get this while trying to run server: > > > "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\django-1.9

I need help with my first Django project - its structure etc.

2020-09-10 Thread Mislav Jurić
Hey guys, I went through the Django tutorial about 2 weeks ago and I decided to create a website using Django. I have a couple of questions on the structure of the Django project, but before I voice them, I wanted to describe the features t

Re: I need help with my first Django project - its structure etc.

2020-09-10 Thread Ogunsanya Opeyemi
1. You have to start from there 2. Yes you need two apps companies and employees 3. Yes your idea is correct 4. You can do that. Email me if you still need help On Thursday, September 10, 2020, Mislav Jurić wrote: > Hey guys, > > I went through the Django tutorial >

Re: I need help with my first Django project - its structure etc.

2020-09-10 Thread Mislav Jurić
Hey Ogunsanya, before you responded, I started following through the tutorial again, modifying the code as needed.* I created one app and in that app I have two models* - one for employees, one for companies. I created different URL structure and views for employees and companies. However, as

Re: I need help with my first Django project - its structure etc.

2020-09-10 Thread Mislav Jurić
Hey Ogunsanya, before you responded, I started following through the tutorial again, modifying the code as needed.* I created one app and in that app I have two models* - one for employees, one for companies. I created different URL structure and views for employees and companies. However, as

Django and Pandas

2020-09-10 Thread Emmanuel Oppong Ntiamoah
Hello family, please i want to know can i use pandas to generate report on django, if so how? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+un

Re: I need help with my first Django project - its structure etc.

2020-09-10 Thread Ogunsanya Opeyemi
Hi, So the reason why i said two apps is that you would be able to manage them very well and your work will be clean. Also if there is any issue with employee you would know that that issue is coming from the employee app likewise companies. So to interconnect them you need to add the two apps insi

Deployment to VM (full root access) with container or not?

2020-09-10 Thread guettli
I know this page: https://docs.djangoproject.com/en/3.1/howto/deployment/ And yes, I could help myself to get my django project running on a webserver. Nevertheless I would like to follow a common way instead of hacking it on my own. In the past I used this pattern: I created a linux user for e

Re: Django and Pandas

2020-09-10 Thread Gabriel Araya Garcia
Jajaja,...es muy simple. Debes hacer lo que la mayoría de nosotros hacemos, seguir los foros, mira que hay decenas de ellos. No pretenderas que te hagamos la tarea Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos El jue., 10 sept. 2020 a las 12:21, Emmanuel Oppong Ntiamoah (< lad

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

2020-09-10 Thread amr
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 'appname:post_detail' post.id %}") and you will redirect to your url as (localhost:port/postdetail/1) or 2

Re: NGINX + GUNICORN

2020-09-10 Thread Giovanni Silva
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; pr

Re: Help me with the view please

2020-09-10 Thread coolguy
Since you didn't share the template screen shot i can't say what you are using there for remaining fee. Anyways, you are sending two context variables 'fees' and 'total_fees'... you can either calculate it on template {{ fees - total_fees }} or you can send another context variable from your vi

Re: Help me with the view please

2020-09-10 Thread coolguy
Can you please share the template you are using. You can send another context variable for remaining fee. On Thursday, September 10, 2020 at 2:16:27 PM UTC-4 dex9...@gmail.com wrote: > Thanks for helping me @coolguy,but it seems I ran into another problem, > the school fees and remaining fees so

Re: Help me with the view please

2020-09-10 Thread coolguy
If i choose to go with your way of calculation, i would do this... def student_detail(request, pk): student = Student.objects.get(id=pk) fees = student.fee_set.aggregate(total_paid_fees=Sum('paid_fees'), total_school_fees=Sum('school_fees')) balance_fees = fees["total_school_fees"] -

Re: Django and Pandas

2020-09-10 Thread Khaleel Ahmed H. M. Shariff
Hi Emmanuel, May Peace, Blessings & Mercy of Almighty God be on you! Pandas is only a module in Python. You can import the module the way you import any other module. Kindly let us know what kind of a report you want to display on the webpage. It will give us insights as to what you want. Thanks