.
Okay😁
bot
Who is very good in maths??
bot
Engineering Mathematics
Mirco
Doragonsureiyā
Who is very good in maths??
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
.
Should I create templates folder outside of app or inside app
.
And within templates folder another folder which has the same name as the app
.
?
Sadra
Anonymous
Hi all... greetings...
I am facing an issue in Django admin,
I have a model form in Django admin and overriding it’s save method, the problem is when I save anything from admin dashboard, in few cases the code runs twice and for that reason some dependent actions are being performed twice. Also the success message is appearing twice.
I am unable to understand the reason. Please help me out. Any help is appreciated.
Thanks in advance
Lugano
Abdul
Sadra
Hello , how make function like and dislike like on YouTube
Hey,
You better focus on the back side. It's ok for some developers working as a semi-fullstack but it's a bit weird to think about the UI. Otherwise, you can use the ready templates in order to achieve your goals and think about the way that you can connect both sides together.
Anyway, you can use Ajax in order to create a Like/Dislike system in Django. Other hand, you can keep continue with loading page system. Anytime you press the button, the page will redirect you to the current page. (refreshes)
GL :) ❤️
The mint of Linux **
I want to work on any open source project or anyone git repo... anyone?
The mint of Linux **
Share link in dm
The mint of Linux **
Plzz..I want to work on someone's project...☺️
Manish
https://stackoverflow.com/questions/64160573/how-to-display-value-from-the-database-in-input-tag-in-django
Bramh Prakash
Hi all,
Is anybody have Idea to read more than 5gb CSV file in python without using padas?
John
I'm trying to deploy my django app generated by cookiecutter to heroku.
But "git push heroku master" fails when it runs "python manage.py collectstatic"
It returns an error:
No module called "debug_toolbar" found.
I figured out it could be that the project is running the local settings.
When I checked the manage.py, I found this:
if name == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "config.settings.local"
)
Please how should I go about this? Should I just change the code in manage.py to "config.settings.production" OR is there a cleaner way.
R.U.S.H.A.B.H
John
v3.0.8
R.U.S.H.A.B.H
'debug_toolbar.middleware.DebugToolbarMiddleware'
R.U.S.H.A.B.H
Try adding this
R.U.S.H.A.B.H
In middleware
John
Try adding this
Have u used cookiecutter to generate your django project before?
R.U.S.H.A.B.H
R.U.S.H.A.B.H
John
And am pushing it to heroku(production). I don't need the local settings. That's what I what to change.
Commodity
I have an image sharing app. I am using cloudinary to store images. So should I post images to cloudinary server from backend or frontend?
John
John
Better still, I never knew django cookiecutter had deployment documentation for heroku:
https://cookiecutter-django.readthedocs.io/en/latest/deployment-on-heroku.html
John
Thanks.
John
Doragonsureiyā
Thanks.
You're welcome! 😊
Chetan
Hey Everyone,
I am stuck with a problem I need to find the weather a perticular shop is open at a time given time or not
Database design
Shop-owner->schedule->schedule-day->time-slots
There are 4 tables which are connected with foreign keys
I need to check for given vendor weather he is open or not
Or otherway find all the vendors which are open at a given time
Sadra
Chetan
Yes that's will be the ideal case, but here I got the requirement that user will send shopids and datetime stamp
I need to return corresponding to those ids weather that shop is open or not
In that case I can only think of one solution with iteration
Find the shopid then find the schedule which is default then current day then check all the slots to find if shop is open or not
Any better way please, that will be of great help
Sadra
https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html
Chetan
Sadra
That's ok. ❤️
Good Luck.
Andrés
Good evening I have no experience in Web Development, I am doing a project with Django, but I had a problem and the documentation is not clear to me and it is even confusing. The problem is that in a ListView I want to make filters, but it must have a series of radiobuttons to indicate by which field I will filter, depending on the Selected RadioButton, a form should appear to make this filter. In web pages they tell me that with Javascript that I have never programmed in Javasript xD Only in Kotlin and java. I leave you the design of the page and I hope you can help me how to do it with Django Pure (if you can)
mahori.
I have an image sharing app. I am using cloudinary to store images. So should I post images to cloudinary server from backend or frontend?
Hey Ankit, both are perfectly valid options.
Pushing it to your server first, gives you more control at the cost of well, you'll be paying for ingress + compute cost. But you'll get ability to process (compress/filter etc) before pushing to external server . Also this approach allows you to switch third party from cloudinary to something else without front-end knowing about it at all. Doing directly from frontend (eg. Singed url of s3), just is super easy and yoi don't have to deal with a lot of problems around large files or latency etc
Anonymous
Anyone know how to send data from js to html
Anonymous
?
Украинский
Anyone know how to send data from js to html
Please, learn JavaScript first! If you wanna send dynamic data through JS you will be need to use @ajax_request decorator from django_annoying.
Install it by running following command:
Windows
pip install django_annoying
Linux
pip3 install django_annoying
MacOS
pip3 install django_annoying
Anonymous
Prem
Anonymous
I dropped my idea to make my app in django because I was not able to fetch n use my static file in my shared hosting.
Anonymous
I switched to laravel
Anonymous
Any tutorial for multi vendor in django ?
Sreenath
Is there anyone who's using Pythonanywhere in this week ?
Sreenath
I'm facing many issues for the past two days for the tasks which were working fine before
Pirates Of
Sreenath
Are you using email SMTP ?
Sreenath
I'm not able to send emails since two days
Commodity
mahori.
The
Actually m just begineer i will check what you said.
Anonymous
Hi
What's the diffrence between class and class-bassed?
Aamir
Class has no 'objects' member pylint(no-member)
Aamir
i am getting this error
Aamir
please help me to resolve this
The mint of Linux **
The mint of Linux **
Who is .... participating on hacktoberfest???
Aamir
The mint of Linux **
Ok.. gald to hear that
Deepak
use bootstrap bro
SuperN00b
what’s the most popular solution for handling views counts guys ? I searched around and found some 3rd lib or solution of reading server log file , but I want to know the most usage solution . Thank you
Sadra
Link
I linked the word "DBMQ".
https://github.com/lnxpy/DBMQ
Krishnama
Hii guys.. follow my page👇..for daily updates and learn python
https://www.instagram.com/python_codrs/
Богдан
Богдан
Create a counter in sessions