Yash
Official doc buddy
Its to hard for beginners !!
Maz
Its to hard for beginners !!
Lol...nothing's easy in this life.
cj
Its to hard for beginners !!
fake news... you won't find anything simpler and well explained than those
cj
Error Not Found! wanted to post this long code: https://hastebin.com/ewaquwehuc
𝓈𝒽𝒶𝒽𝓇𝑜𝑜𝓏
https://del.dog/pojerazide.coffeescript Please can anyone help
$whoami
Aadhi
How to change a string variable in to a case insensitive inside views.py
Aadhi
It should accept same in both uppercase and lowercase
cj
depends on what do you want to do, you could use __i... when querying a model... but I'm not good (yet) at reading minds
𝓈𝒽𝒶𝒽𝓇𝑜𝑜𝓏
try https://hastebin.com/egufuwaqiy.py
The del.dog do the same😑
Aadhi
I have a string variable say "name" inside views.py. Value of the variable is reads from an HTML form. Now I want is if user inputs as CAT or cat, it should accept as same not as different values
Aadhi
I am storing those values into database
sahil
How to use mysql as a database in window 10
cj
I am storing those values into database
are you doing something else before storing it? so that's why you care about the capitalization?
Doragonsureiyā
How to use mysql as a database in window 10
Looks like you need an offtopic group, please continue this conversation at @PythonOfftopic
cj
I am storing those values into database
why do you care about the capitalization to store a value? 🤔
Aadhi
While taking the count of each values these CAT and cat shown as separate entries
cj
show the query string (using the ORM obviously) you are using to count them.
$whoami
The del.dog do the same😑
work for me dude https://ibb.co/YbvSw9B
Shiva
Guys I want to get parameters from url and after that I want to redirect them to a new HTML page , what should I learn to do this ?
Gaurav
Any celery expert here?? Can we load dedicated script only in celery instead of loading whole app in worker?
Gaurav
Do you mean you need deferred task launch?
I am doing a project in which i need to reduce the resources use by celery workers I am deploying using docker compose and multiple instances of same app on same server
Vaaaa🌍🍪
when I am try run server , used "python manage.py runserver ", I have this text "Watching for file changes with StatReloader", how this fix?
Sai
send traceback of your error to help us understand your issue
I'm using a Apache server. In https.conf I edited the <virtualhost> file added three important fields as you know. But still I'm getting the following error. (failed): net::ERR_SSL_PROTOCOL_ERROR
Rahul
How to redirect after accounts/login to next page
Shiva
Guys I have a leaflet map , in HTML form I will ask for lat , long , maptype , zoom , to redirect to my map I want to get values from user in url without showing HTML form EG : https://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&key=YOUR_API_KEY
Sanjay Krishnan
Can someone ehelp?
Use LOGIN_REDIRECT_URL in settings
Mirco
Can someone ehelp?
Have you tried on your search engine ? 😊
Firdaus
I was following this https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04 The differences from the howto are 1. I'm using pipenv 2. My directory/file structure is different. I managed to get my Django app running using manage.py runserver 0.0.0.0:8000 and gunicorn --bind 0.0.0.0:8000 config.wsgi But stumbled on error here: command: sudo systemctl start gunicorn.service output: Job for gunicorn.socket failed. See "systemctl status gunicorn.socket" and "journalctl -xe" for details. command: sudo systemctl start gunicorn.socket output: Failed to start gunicorn.service: Unit gunicorn.service is not loaded properly: Invalid argument. See system logs and 'systemctl status gunicorn.service' for details. Files: 1. directoy/file structure - https://pastebin.com/ckqb7cCQ 2. systemctl status gunicorn.service output - https://pastebin.com/THAQkxEw 3. systemctl status gunicorn.socket output - https://pastebin.com/PEJ4T9He 4. /etc/systemd/system/gunicorn.socket file - https://pastebin.com/HT0w8bPu 5. /etc/system/systemd/gunicorn.service file - https://pastebin.com/P1bn0mNc 6. /home/firdaus/code/worms_web/config/wsgi.py file - https://pastebin.com/Dkc1rmCt
Firdaus
any kind of help is very much appreciated 😀
Firdaus
Failed to restart gunicorn.service: Unit gunicorn.service is not loaded properly: Invalid argument. See system logs and 'systemctl status gunicorn.service' for details.
Firdaus
everything working now... my own stupid silly mistake... i forgot to sudo systemctl daemon-reload
Firdaus
Mohit thanks for the help
Mohit
Mohit thanks for the help
You're welcome
aPëx Prâdatør
Anyone in any graphic design group?
Sander
Anyone in any graphic design group?
I know a graphic designer
aPëx Prâdatør
I know a graphic designer
I just need a group so that I can ask solutions to problems when I encounter a problem in graphic design
Sander
What is the build in filter for summing two values in a Django template?
Oğuzhan
you mean structure while using it?
Mohit
What is the build in filter for summing two values in a Django template?
It's called a pipe, and you don't need one to sum two values, you can use {{2+2}}
Oğuzhan
can you explain to me please?
Mohit
Mohit
It is better to do the computation inside the view and render it in the templates
Oğuzhan
i know that but which one is pipe "{{ 2 + 2 }}" or "+" symbol?
Shiva
Guys how to redirect to a page after a successful post request , also I want to pass the value's posted by user to the page
Oğuzhan
thank you..
Oğuzhan
The pipe character indicates that you want to send the results of the left hand side to the filter defined on the right side. The filter will modify the value in some way. The 'escape' filter is just one of many. The list of built in filters can be found here: Django Documentation - Built-in filters reference In a django template the | character definitely does not mean the 'bitwise OR' operator.
Anonymous
Anonymous
Not sure if this is the right thread to ask this question, but it’s about Bokeh, both Python and JS side, so please let me know if there is a more relevant chat for the topic. Anyway, I’m trying to solve to following situation. I have a restful api endpoint which serves some data (using restful framework). The page does 2 things with the data: 1) renders it to an html table, and 2) sends it to another endpoint to get html and JS input in order to render a Bokeh chart. I’d like to be able to do the following- when the user hovers over a point in the table, the relevant point in the Bokeh chart lights up, and vice versa. There’s quite a lot on how to add hover events to Bokeh in the front end, but I haven’t found anything extensive on how the Bokeh chart can influence other html elements. Has anyone maybe faced a similar problem and knows of the part of documentation or another source on the matter?
Shiva
redirect + session
I can't understand please explain in detail
raven
you can search it
Mounikesh
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.") django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
Mounikesh
guys im getting this erro even there is a secret key in my settings.py file
Naruto
Hey guys, I have studied python and wants to learn Django ....so please provide me the best source.....and also tell me how to move further to be good at it
iNcAeLuM
hi i am doing a django curse, but am not getting one concept. when you are mapping url in urls.py you use regular expresions to do so, i am not getting why not map the url without using regular expresions what is the diffrence??
Anonymous
Please provide the link
djangoproject.com
inchidi
hi i am doing a django curse, but am not getting one concept. when you are mapping url in urls.py you use regular expresions to do so, i am not getting why not map the url without using regular expresions what is the diffrence??
am not sure, maybe this is why you are confused. with django version 2+ you have url dispatcher function called path() and with that function you dont need to use regex. while with older version django you use url() and its using regex.
N S
How can i prevent users for re entering a session from which they have logged out
N S
I have given login_required () in my view and login_url in settings.py