Swapnil
I want to inherit navbar.html page in child html page but the problem is when i give any <title>title</title> in base.html then it also inherit the title of base.html to every page
Swapnil
can anyone tell me ??
Swapnil
how to fix this problem ?
Mihir
use include
Darth✧
https://dpaste.org/cxoA I m using django channels for creating chat room ....and in chat box i m not getting usrname with that user message...its returning undefined ....please have a look of my code
Swapnil
i want inherit navbar in in evry page but when adding it shows only navabr on that page
Anonymous
i want inherit navbar in in evry page but when adding it shows only navabr on that page
Create base.html and put everything which are using repeatedly in your website into it and inherit the base.html into the required templates
h
Hey guys, actually i have some doubt in DSA can you please suggest me a channel where i can ask that doubt. Thanks
Anonymous
How many gunicorn instances we can start on one server?
Ghorz
How many gunicorn instances we can start on one server?
How many users do you expect on the server and will your server process huge data?
Adan
i want inherit navbar in in evry page but when adding it shows only navabr on that page
add the navbar code in a separate navbar.html file and use (% include "path/to/navbar.html" %} in any template you want to have the navbar, or add it at the top of base.html and let all other templates extend base with (% extends "path/to/base.html"%}
✙Yaroslav
How to return to the page with parameters in ajax without reloading the page? I make a system of likes, and the likes are added, but not displayed on the page, I have to update page, how to make it not updated? Now I have this script https://dpaste.org/wDz7
RAMANA
Please any One suggest Best python Django Courses for Beginners
Doragonsureiyā
Please any One suggest Best python Django Courses for Beginners
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
RAMANA
Thanks so much
cj
yes but you have to use a front-end library for that
cj
there are many front-end libraries, you have to try them yourself and use the one that fits your needs
McLean
help on link paynow on my django shop web
Anonymous
How many users do you expect on the server and will your server process huge data?
We have multiple django application running on same node and our users are limited ~50...currently we have as many gunicorn instances running as django projects
Anonymous
We wanted to streamline this and exploring ways to have more control in optimized way..and couple of questions which gunicorn documentation does not address
Anonymous
Yes that i got from docs but thats specific to one instance right ? Above mentioned no of workers under one master gunicorn ?
Jay
Which tutorials should I buy to learn Django from basics
Anonymous
What if we have multiple gunicorn master running
Doragonsureiyā
Which tutorials should I buy to learn Django from basics
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Ghorz
You can test buy using it on each instance then check your performance
Ghorz
Besure to use Supervisor for deployment
Anonymous
All
Yes agree so we dont have any other way to conclude this and just we need to see performance and decide accordingly
Anonymous
Ok
U also have expertise on nginx ?
OnlyGod
What is the best analysis Api to use in analysing data from your django models
Ghorz
U also have expertise on nginx ?
Nginx + Supervisor Thats the key
Ghorz
No knowledge is lost
Anonymous
Nginx + Supervisor Thats the key
Yeah just a question we have multiple hosts where nginx is installed , what if one node A completely goes down how to reroute requests to nginx on other node B
Kristofmike
Anonymous
I am aware that how to load balance but thats specific to under one nginx
Anonymous
IP
Where need to configure this ?
Anonymous
Supervisor will handle it
Supervisor and nginx will be on node right and i am saying that entire server/node goes down where nginx and supervisor will be unreachable
Anonymous
But our contingency/backup server is up
OnlyGod
What tutorial is best for learning geodjango
Kristofmike
Hmm, I read from this step @c0x6A , Installing Django Once you've created a virtual environment, and called workon to enter it, you can use pip3 to install Django.  pip3 install django~=2.2 .
Ghorz
Supervisor and nginx will be on node right and i am saying that entire server/node goes down where nginx and supervisor will be unreachable
That's the least you should be worried about for the now. Get a good serve from digitalocean or aws. Once the use base grows you can start thinking of that. I have a serve on 16GB RAM/CPU Process heavy transactions. At some point it became very slow. The processor overloads, I hard to tune the Mysql before the site performed normally again
Ghorz
What tutorial is best for learning geodjango
I think the earlier people stop asking the Boring questions "what's the best video/Tutorial/approach" and start using what they have, the better for you all.
Ghorz
You all always want the best when you've learned nothing.
Anonymous
We already got nginx supervisor gunicorn functioning well just have to plan on outages
Ghorz
We already got nginx supervisor gunicorn functioning well just have to plan on outages
For outage, I believe your database, server program etc are on the same machine
Ghorz
If so I'll advice you have write a monitor or task that watches Mysql, and other system software required by your app once any goes down the program should restart it.
Ghorz
There may be better ideas
OnlyGod
I think the earlier people stop asking the Boring questions "what's the best video/Tutorial/approach" and start using what they have, the better for you all.
The one I saw I couldn't get the hang of it, it made use of older versions of django and a different OS than the one I use
Anonymous
We also maintain everything on contingency including db's where we perform replications on regular interval..u can say every transaction we replicate on contingency
Ghorz
The one I saw I couldn't get the hang of it, it made use of older versions of django and a different OS than the one I use
Don't get stuck in one os. Virtual machine is free, A word of advice. A programmer who is scared of Linux is a not programmer.
Anonymous
If so I'll advice you have write a monitor or task that watches Mysql, and other system software required by your app once any goes down the program should restart it.
We have system services running that takes care of restarting stuffs but if node is down all web related activities impacts and by any means we need to serve them
Anonymous
Thts the reason i am asking about routing all requests to contigency server where we have similar env like prod
Anonymous
Anything goes inside nginx.conf will not help if node is down due to outages
Ghorz
Anything goes inside nginx.conf will not help if node is down due to outages
nginx.conf is very reliable, except a misconfiguration or during ssl update via SSH
Ghorz
I believe you may have to check Kubernetes
Ghorz
Also readup
Ghorz
https://medium.com/platformer-blog/kubernetes-multi-node-cluster-with-multipass-on-ubuntu-18-04-desktop-f80b92b1c6a7
OnlyGod
Don't get stuck in one os. Virtual machine is free, A word of advice. A programmer who is scared of Linux is a not programmer.
Yeah, I know that and am not scared of it, the main point is that it makes use of older versions of django in which some of the libraries are not supported now
Anonymous
nginx.conf is very reliable, except a misconfiguration or during ssl update via SSH
Agree buddy, thanks for your help and time, will research on this further
Ghorz
Great programmers still write cobol, Fortran C, python 2....
Ghorz
And 60% of your financial transactions run on a software written 50years ago
OnlyGod
Use it as it it. Once you're done with it, replicate on new version.
that will be a lot of work reading the django docs but thanks for all your advice, I needed it👌
Anonymous
Any idea on how to run cron job in conda for running the django server
Anonymous
Link to any source is highly appreciated
Anonymous
My organization is not allowing it
Anonymous
So I need to use cron tab
Anonymous
In virtual environment
Anonymous
Ok
Anonymous
I am facing problem in installing the crom tab
Anonymous
Not sure what are all packages needs to be installed for it
Anonymous
We got dkron for running jobs (python processes), may be will check with my collegue he has done it since I run them will nohup only