Juris
Mirco
Juris
Let me double-check.
Juris
Positive: same token issued every time.
Mirco
share your urls also
Juris
They are default
Juris
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.home, name='home'),
path('signup/', views.signup, name='signup'),
path('accounts/', include('django.contrib.auth.urls')),
]
Mirco
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.home, name='home'),
path('signup/', views.signup, name='signup'),
path('accounts/', include('django.contrib.auth.urls')),
]
looks good
Juris
can I post 1 long message from the console, without using pastebin, or is it bad tone?
Mirco
Juris
https://pastebin.com/u1Fgu4Sb
Juris
The same "http://127.0.0.1:8000/accounts/reset/MQ/55b-ea0815f9b775d6c2a029/" is repeated every time, and when followed - produces:
Juris
Set new password
Invalid token.
Request a new password change token
Juris
Sorry, I misled you, the problem does not occur at the 'save password' stage. It happens when I follow the link/token.
Juris
Tried resetting password for a different user. Token is different, but I'm still getting token invalid response. Let me look at my template code again :/
Gio
I am trying to create an api using DRF
I'm doing pretty good except for one part:
I extended the user model
( class User(AbstractUser) ) and added AUTH_USER_MODEL = 'vote.User' in settings.py
Now, when I try to update the password from the shell, using set_password() and then calling save(), the password is hashed
If I try to create a user from a serializer, using create_user(), I am able to hash the password. If I try to update (both PUT and PATCH) using set_password() and the save() the password is stored in plain text.
I'll post code in one minute
Do you guys have any idea what it could be?
Gio
https://pastebin.com/ryvviSQ3
R
Anonymous
I have this url name
return reverse('images:create')
and this works too if I enter it in browser
127.0.0.1:8000/create/?url=https://somesite.com/image.jpg
If I do the first one, page 'images: create' opens with no data
But with get request (second one) it fills the url field of form of that view and template
How can I make similar request to browser but from a third view
I was thinking something like
reverse(request, 'images:create')
But this is wrong. How can I do it?
Anonymous
This has been worst question in the history of questions, maybe ever
Gio
sick
Guys! Hello! I tried to make auth via vk.com but I have some problems such as TypeError: 'set' object is not reversible.
sick
TypeError at /login/vk-oauth2/
Dcruz
How i can use Pip over proxy? i want to install a django app.
Dcruz
Tried the basic but no results.
Dcruz
Dcruz
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f61490f9510>, 'Connection to 192.168.100.4 timed out. (connect timeout=15)')': /simple/django-templated-email/
^COperation cancelled by user
Dcruz
Definitely its a proxy error.. i cant get to pipy.org from my webbrowser.
R
Anonymous
Anonymous
Dcruz
Anonymous
😅
https://github.com/pypa/pip/issues/4417
Dcruz
Hugo
Hi,
Is there any way to draw(line preferably) on image in a webpage and save it.
Thanks in advance.
Hugo
I meant a way to implement this.
Shubham
Hello
Shubham
I had set up Django in Docker, now I am trying to install pip packages, like rest_framework and added in installed apps too.
but it throws ModuleNotFoundError: No module named 'rest_framework', whats the generic way of installing the pip packages in an existing dockerized Django project
Shubham
Can anyone help me?
R
Jimmies San
Erick
Srinivas
I'm creating a web application, it contains notifications, for a particular time interval django has to query the database and make notification popups, how it is possible with django. Can any one help me on this ?
Jimmies San
Jimmies San
Srinivas
Jimmies San
Mirco
Srinivas
how to interact python with js
Mirco
how to interact python with js
look for it on your search engine, study and if u don't understand ask again :)
you can learn in a better way
Srinivas
Srinivas
My requirement is webpage should not refresh, but based on remainder time the popup has to be shown on webpage ( how to query the database for particular time interval in html using python ?)
Anonymous
Shubham
Mirco
Shubham
Shubham
@pyflare
Mirco
Mohit
anyone knows how to set up nginx
Mohit
For angular plus django app
Tema
How to get file size in get response of Django rest framework?
Tema
I have standart serizliaer of model…
I have file path , but I also need to get the size of this file!
Tema
Here is my serializer:
class MovieSerializer(serializers.ModelSerializer):
fileszie = ????
class Meta:
model = Movie
fields = ('title','file')
Tema
Made question on stackoverflow https://stackoverflow.com/questions/55595657/get-file-params-size-filename-in-django-rest-framewrok
Anonymous
Hi
Anonymous
My Name Kelvin.. Can anyone here suggest me a book for beginner ? Because i want learn Django.
Anonymous
Thank You For Your Attention Guys
cj
Anonymous
Thank You
Anonymous
Anonymous
Oh, Im so sorry
Alexander
how to generate swagger 3 scheme for DRF-based APIs?
cj