Baggy ️️
Guys whenever I try to open admin page, it redirects to homepage
Baggy ️️
What might be wrong?
Baggy ️️
??
Andrew
When I try to send an email from delopment server on the local computer, letters are sent. When I try to send an email from the server, nothing sends, and after 5-10 minutes i get Timeout Error([Errno 110] Connection timed out). Why?
Piyush
Guys whenever I try to open admin page, it redirects to homepage
Check your urls.py and views.py, maybe it redirects you to your homepage...
Piyush
Do anyone has a perfect link or tutorial video for "How to configure Django with Angular"
Piyush
Then it is something wrong in urls.py
Baggy ️️
Can I pm you?
Baggy ️️
If you have time
m0nte cr1st0
Can you help me, pls? https://stackoverflow.com/questions/59966732/errordetailstring-expected-a-list-of-items-but-got-type-returndict-code
PV
Guys whenever I try to open admin page, it redirects to homepage
Django <2 url(r'^admin/', admin.site.urls), Django 3 path('admin/', admin.site.urls),
Jimmies San
Guys... C'mon use pastebin
S
Anyone made music player with django??
areeb
ValueError: seek or closed file
areeb
I have issue when trying to save a thumbnail in test cases
Doragonsureiyā
Anyone made music player with django??
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 52k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Alex
I have issue when trying to save a thumbnail in test cases
Dont pm me and use pastebin for your code
areeb
Okay
Current
Can someone suggest Django Rest Api Tutorial
cj
Can someone suggest Django Rest Api Tutorial
read the official documentation
Alex
Can someone suggest Django Rest Api Tutorial
Weeeeeell, you could start from their official tutorial https://www.django-rest-framework.org/tutorial/quickstart/
Current
I mean video tutorial 😅😅 newbie
cj
I mean video tutorial 😅😅 newbie
🤮 read official documentation, is 10000 times better than watching random outdated unofficial videos
Current
thanks buddy
Alex
thanks buddy
DRF has really good docs and it will be much faster than any video
Current
hmm lets see
areeb
[Python] thumnail_save_error - Pastebin.com https://pastebin.com/jPpNFcp2
Alex
[Python] thumnail_save_error - Pastebin.com https://pastebin.com/jPpNFcp2
I would advice you to start from indenting the block with self.assertLogs("main", level="INFO") as cm: image.save()
Alex
because at the moment you call it, "main/fixtures/the-cathedral-the-bazaar.jpg" is already closed by the with open statment
PV
I have a doubt, foreign key refers to a model, but how it get/identify the required field in that model
areeb
[Python] File Not Found Error - Pastebin.com https://pastebin.com/s1VM0uSm
areeb
No it didn't
areeb
Kind of throws another error which I shared
Alex
FileNotFoundError: [Errno 2] No such file or directory: 'main/fixtures/the-cathedral-the-bazaar.thumb.jpg'
areeb
I'm not
Alex
well, if it says that cannot find the file that means it cannot find the file
areeb
My bad bro kind of mind off sorry for raising an issue
Dhruva
How to generate dynamic urls
Anonymous
How to generate dynamic urls
You can use regular expression on URL
Dhruva
Be specific
I want to fetch title in url from the HTML template I have rendered
Anonymous
Emmm from template pass the tilte to the URL just like in URLs.py path('<str:title>/,view.sth,name='namesth') In ur template <a href ="url 'namesth' {{title}} > Finally pass the title to that template
Dhruva
No need of slug and all stuff
Ayy
Hi I have a app built with only Django, django-templates and Postgres as DB. What's the best way to implement a ForeignKey field in a form similar to how it's generated in admin (existing values in drop-down + a button to add new) I also want to implement fuzzy search for the existing values
The Summer
Hello guys, Is anyone has an example of Django-background-tasks?
The Summer
I wanna make an app in which I want to create objects everyday
Current
what kind of object
Михаил
celery, apscheduler
The Summer
celery, apscheduler
i want example sir 😅
The Summer
What’s wrong with sample in docs?
I copied and pasted it but when i run it says "Object of type WSGIRequest is not JSON serializable"
Muslim
I copied and pasted it but when i run it says "Object of type WSGIRequest is not JSON serializable"
Share code in pastebin/gist. Seems to me that u’re trying pass request as argument to background task function
Muslim
I dont have idea how to use it
Why r u passing request to background task?
H
Can any one suggest a good tutorial on django + angular8
Muslim
Where shoul i
U should just pass simple primitive objects to task, it serializes passed arguments and request is not serializable
The Summer
U should just pass simple primitive objects to task, it serializes passed arguments and request is not serializable
Bro do me a favor just write a code which returns random number at every minute
The Summer
random and time
using schedule and repeat argument
Current
i think their is error in your model
Current
check any class variable having typo of default in models of your app
Current
you have a variable in which you have to set default instead you did typo as "Defaul"
Current
can you send the pic or screen shot of your models
Macurrent
i Have seen it