Brian
here:
'''
File "/home/larrisa/env/venv/lib/python3.6/site-packages/rest_framework/viewsets.py", line 68, in as_view
raise TypeError("The actions argument must be provided when "
TypeError: The actions argument must be provided when calling .as_view() on a ViewSet. For example .as_view({'get': 'list'})
'''
Brian
If you read the docs on viewsets, it's stated that this is unnecessary
inchidi
so, have you register your view with a router?
Brian
Yes... I used the default router
inchidi
then you dont need to re-add that view to your urls
Brian
Okay... Let me try that
inchidi
maybe this part of the doc help you understand the diff
Brian
Awesome.. Many thanks @Inchidi 👍
inchidi
you're welcome
Anonymous
Have anyone used the PasswordResetForm
Anonymous
am facing weird issues here
Anonymous
ConnectionRefusedError at /accounts/forgot
[WinError 10061] No connection could be made because the target machine actively refused it
Anonymous
def change_password(request):
form = PasswordResetForm(request.POST or None)
if request.method == 'POST':
if form.is_valid():
email = form.cleaned_data["email"]
form.save(from_email="blabla@gmail.com",
email_template_name='accounts/password_reset_email.html',
html_email_template_name=None,
request=request)
return render(request, 'accounts/forgotpassword.html', {'form':form})
Anonymous
please anyone
Anonymous
Anonymous
ʚɞÇherry Łoveʚɞ
i just google it and try the first result.
https://github.com/Lawouach/WebSocket-for-Python/issues/130
Anonymous
well... that means it's an old issue
Anonymous
but I don't think it has anything to do with OS
Anonymous
Anonymous
Django Bot
>> Jobs
- Senior Web Application Developer
Alexey
hm, TelecommuteL No means that this postion work in office (no remote)
Django Bot
>> Blogs
- Django Filters Problem: How To Display All Results When The Filter Is Not S
Django Bot
>> Links
- Bi-lingual website using Wagtail CMS. – Joss Ingram, Web Developer
Anonymous
please anyone
Try setting up a dumb SMTP server by running this code in cmd 👇
python -m smtpd -n -c DebuggingServer localhost:1025
Django Bot
>> Links
- Persistent database connections with async workers on Django
Anonymous
did someone experimented with GraphQL in Django?
Eugene
Yep, using django-graphene
Anonymous
and what's your point? django-graphene or django-rest?
Anonymous
me too
Anonymous
that's why I asked
Anonymous
Anonymous
depends... the DSL is great as well
Anonymous
seems like I'll be able to decide after I'll finish a project with it
Robert
Django Bot
>> Links
- How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04 | D
Kori
Hey is there a way I can send a confirmation email in django without having to save the user first in my db?
Kori
Currently that's the only way my app is working and I would like it to save the user only after confirming their email
cj
Kori
Kori
I kinda thought there would be another way that I may not know about.
That's all
cj
I kinda thought there would be another way that I may not know about.
That's all
you can use a temporay table, but still it's saving in the DB to know which user you're doing the confirmation 🤔
I can't think on a way of doing it without persisting data, maybe encoding the data and sending as a URL argument in the confirmation mail, and decoding it to fill the form when the user open the URL 🤷🏻♂️
Jimmies San
you can save it on a spreadsheet
Jimmies San
and then, if confirmed, save on db
Jimmies San
😂😂😂😂😂😂😂
Kori
😂 thanks for the help.
I'll see what I'll do
Jimmies San
the problem is: what happens if...
i mean: you can use a memcache/redis or a in-memory system to flag this temporary data and then save it... but if you lose it?
always better use a database :)
keep the track using some sort of "flag" and then move/erase it
Kori
Thank you
it makes sense when you put it that way.
George
Hi, i need some help.
I'm creating models for my postgresql db
how can i make an array of references to objects in another table like:
Table 1
1 A
2 B
3 C
4 D
Table 2
1 {1 of table1, 2 of table1}
2 {2 of table1, 4 of table1}
3...
Jimmies San
George
Jimmies San
many to many?
George
well, im thinking about it
George
but all just reference to one
George
many to one (?)
George
im reading that i should use an intermediate table
George
ok then, thank you
Anonymous
Hey guys, I need to reboot my server after post request. If I do this in function, I’ll get 502 on loading
Z
Django Bot
>> Links
- django-vue: A boilerplate for Django to get running with Vue.JS patterned a
Django Bot
>> Links
- everbug: Django debugging tool for browser
Alexey
Alexey
as option your gunicorn service is not started after reboot
Anonymous
good evening
Anonymous
was faced with a difficulty when trying Django+telegram
can i put my question here?
Mirco
inchidi
Django Bot
>> Links
- Django (2.1): An Introduction for Beginners - YouTube
Alibek
Hello everybody. Is there anybody who worked with django-websocket-redis? The user and broadcast channels work well, but for my project I need a group channel. I've overridden Django's default Group class into Chat class. I also tried with this default Group class and passed it's name but nothing works.
Alibek
My repo https://github.com/rippleoverdrive/local
Daniel
Daniel
John
hi guys