rakshit
And it still shows
rakshit
GET http://127.0.0.1:8000/media/shop/images/default.jpg 404 (Not Found)
rakshit
On the console
(⌐■-■)
Why the link generated after running manag.py is showing error in my browser
Check in ur main urls py and app's urls.py that a blank url is assigned to some response
William
Yup
What is your media URL and media root?
rakshit
MEDIA_ROOT= os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/'
William
rakshit
Yup
rakshit
I got media/shop/images
William
I got media/shop/images
Which URLs file are you using the one inside the project folder or you created new urls file inside the app folder? If you have any prefix like Path('api/',include('app.urls')),
rakshit
The one inside an app folder
Shakthi
While deploying django on heroku i m getting H10 APP crashed error
Shakthi
Anyone pls help
Abdullah
did you check the logs?
Shakthi
Yes
Shakthi
In that it shows H10 app crashed at the end
CryptoHunt
Hello guys, can someone give me clues about how to make async iteration through DB in django?
Shafquet
Which online resource u use to learn django
Doragonsureiyā
Which online resource u use to learn django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Shafquet
Hii my file is running on vs code
Shafquet
But it is showing error on browser
Shafquet
Can anyone tell me what is the problem
Charly
Can anyone tell me what is the problem
not without knowing the error
Shafquet
not without knowing the error
It is saying page not found
Charly
It is saying page not found
Have you added a view for that url?
Shafquet
Have you added a view for that url?
Can I send u images personally on dm
Doragonsureiyā
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
👑 Dharmzeey
Please where is the best place to deploy django app
AK
DigitalOcean , simple & cheap
👑 Dharmzeey
Thanks
Natsu
Please where is the best place to deploy django app
Pythonanywhere, heroku( if u don't have media file)
Shubham
How can I pass a dictionary in an SQL query in django.what will be the syntax For ex - select column from table where column = {dict}
shiva
Any one knows custom django-admin commands
shiva
def delete_projects(project_ids): try: undeleted_projects = [] list_of_projects = eval(project_ids) for project in list_of_projects: Project.objects.get(uid=project) projectmodule = ProjectModule() remove_project = projectmodule.remove_project(project_id=project, notifymembers=True) if not remove_project: undeleted_projects.append(project) if len(undeleted_projects) > 0: return "unable to delete all the selected projects.Please try again." else: return "Projects have been Deleted successfully." except ObjectDoesNotExist: logger.info("Project cannot be found") return "Project for the given id does not exists."
Sohibjon
Who does know online cources from Django
Doragonsureiyā
Who does know online cources from Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
i need help. How to type right arrow?
Shakthi
After deployment I'm getting module not found error
Shakthi
Module name __tkinter
Shakthi
Heroku nd Django
Shakthi
If anyone knows help me
Santhosh
In virtual environment you should install tkinter. Because sometimes it won't install the things in requirements.txt.
Shakthi
But i didn't user this tinker lib
Shakthi
*__tkinter
𝕁𝕒𝕧𝕠𝕙𝕚𝕣
Module name __tkinter
Make sure you've typed tkinter correctly and check if you added it in requirements.txt
Doragonsureiyā
i need help. How to type right arrow?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Syed
How to show rank of student according to total marks in django ?
Syed
??
Syed
I have null value of rank column in database
Greg
Hey guys, I need help. How can I return Httpresponce in celery task?
Martin
Hey guys, I need help. How can I return Httpresponce in celery task?
No way. Celery task is a detached process or thread, depending on settings.
Greg
so, how can I detect, when task is over, and after it return httpresponce for csv file downloading?
Martin
so, how can I detect, when task is over, and after it return httpresponce for csv file downloading?
For what reason do you want to use celery? To reduce the time, which client will wait, until you process the csv?
Greg
no, I use celery for background task, but after task is complete I need to download csv file with model object results, which created in celery task
Martin
The transparent way is to use web sockets, read about Centrifugo. Another way is to make several responses by client to verify that background task is completed or not.
William
no, I use celery for background task, but after task is complete I need to download csv file with model object results, which created in celery task
Is download necessary? If not you can send an email with an csv attachment at the end of your celery task.
Koushik
Guys why am I getting ../login/login when I submitted the login form
Koushik
In the url and getting page not found error
Koushik
Yahh I have given the view name, the view name is login
Santhosh
Santhosh
If you forget to put it, this add the strings to your url like login/login.
Shafquet
Satyam
Can anyone give me any video lectures link ?
Satyam
To learn django as a beginner to advance
Maxim
Can anyone give me any video lectures link ?
https://www.youtube.com/results?search_query=django
Satyam
Which one I choose
Doragonsureiyā
Which one I choose
It's up to you