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')), ]
Juris
can I post 1 long message from the console, without using pastebin, or is it bad tone?
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
Gio
Try using make_password https://docs.djangoproject.com/en/2.1/topics/auth/passwords/#module-django.contrib.auth.hashers
Even make_password does not hash passwords, I imported it with from django.contrib.auth.hashers import make_password and added the default PASSWORD_HASHERS in settings. It works in the shell, but it doesn't work in def update(). Very strange.
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
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.
R
How i can use Pip over proxy? i want to install a django app.
pip instal X —proxy urproxypath or set the HTTPS_PROXY env var
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.
Dcruz
🤷‍♀️
How can i install manually a package?
Anonymous
Dcruz
Anonymous
😅
https://github.com/pypa/pip/issues/4417
R
How can i install manually a package?
Clone it and probably just run setup.py
Dcruz
Clone it and probably just run setup.py
That works! thanks everyone
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?
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 ?
Srinivas
async task: shit like celery, django-q etc...
celery is confusing, can u provide any best resource for celery intergration to django
Srinivas
check django-q, it's easier
ok, thank you for your reply
Srinivas
check django-q, it's easier
how to display popups dynamically without refreshing the page, for html data is passed using views
Srinivas
like a modal box?
like notifications
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
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
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 ?
Write an ajax call in front-end to get latest notification list for a specific interval(interval can be defined in js itself). Through ajax u can get the data without refreshing the pages
Shubham
Shubham
Shubham
@pyflare
Mirco
Thanks
Yw 😊
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
Anonymous
Thank You
Anonymous
My Name Kelvin.. Can anyone here suggest me a book for beginner ? Because i want learn Django.
give attention to the pinned message 😒😒😒😒
Anonymous
Oh, Im so sorry
Alexander
how to generate swagger 3 scheme for DRF-based APIs?