Presence
I'm getting error
Presence
NoReverseMatch at /auth/registration/ Reverse for 'home' not found. 'home' is not a valid view function or pattern name.
Presence
in postman
Presence
what could be the issue?
Presence
It is giving me this error but when I check in admin panel user is getting registered successfully.
Coco
How can i access admin panel of django if i made a login middleware that process the view for different users?
Coco
After creating middlewre i can't access the admin panel.
Presence
WARNINGS: ?: (2_0.W001) Your URL pattern 'swagger(?P<format>\.json|\.yaml)' [name='schema-json'] has a route that contains '(?P<', begins with a '^', or ends with a '$'. This was likely an oversight when migrating to django.urls.path().
Presence
What is this warning
Presence
Using url syntax in path?
path('swagger(?P<format>\.json|\.yaml)', schema_view.without_ui(cache_timeout=0), name='schema-json'),
Presence
using this path
---
can we do bulk blog posts in django ??
Nikolay
import from django urls like path
---
??
Nikolay
can we do bulk blog posts in django ??
I don’t understand. you mean bulk create posts?
Presence
import from django urls like path
path(r'^swagger(?P<format>\.json|\.yaml)', schema_view.without_ui(cache_timeout=0), name='schema-json'),
Presence
This?
Presence
still getting same error
Nikolay
still getting same error
from django.urls import path, re_path ... re_path(r'^swagger(?P<format>\.json|\.yaml)', schema_view.without_ui(cache_timeout=0), name='schema-json'),
Виктор
in path u cant to use regular expressions
Presence
Presence
lets show ur urls
urlpatterns = [ path('admin/', admin.site.urls), path('auth/', include('dj_rest_auth.urls')), path('auth/registration/', include('dj_rest_auth.registration.urls')), path('auth/facebook/', FacebookLogin.as_view(), name='fb_login'), path('auth/facebook/connect/', FacebookConnect.as_view(), name='fb_connect'), # path('accounts/', include('allauth.urls')), re_path(r'^swagger(?P<format>\.json|\.yaml)', schema_view.without_ui(cache_timeout=0), name='schema-json'), # path('swagger(?P<format>\.json|\.yaml)', schema_view.without_ui(cache_timeout=0), name='schema-json'), path('', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), ]
Presence
here
Виктор
in next time use github gist or dpaste.de for code sharing please
Nikolay
yes
I’ve never did that, but I think yes
Nitesh
Hey there everyone, where can I get complete knowledge about caching with django
Nitesh
do u read official documentation?
Yes , but I didn’t it.
Виктор
Deepak
what are the Django signals? I have watched all tutorials. but did not get the main purpose
Nitesh
didn’t get the idea from django , I’m noobie to django and web dev as a whole
Deepak
yes
Deepak
whats the main purpose of it?
Виктор
whats the main purpose of it?
how signals u mean to question?)
Deepak
u means every decorator are signals?
Виктор
models signals or core?
Nitesh
I think he meant model signals , like post_save
Deepak
post save presave all are involved in those signals
Deepak
yeah
Виктор
post save presave all are involved in those signals
https://docs.djangoproject.com/en/3.0/topics/signals/#defining-and-sending-signals
Deepak
i have read the docs but did not get the whole point
Виктор
For me documentation is full info=)
Виктор
https://docs.djangoproject.com/en/3.0/ref/signals/ can see this too
Deepak
can u tell me whats the main purpose of signals?
Presence
if u user "reverse" or {% url 'name' % } u need to use "name" in path
I'm not trying to reverse or anything.. I'm using swagger..
Presence
and I'm simply trying to create api endpoint for login using dj rest auth
Nikolay
can u tell me whats the main purpose of signals?
To send signals when you creating/updating/deleting instances
---
pip install djangorestframework WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/be/5b/9bbde439
Deepak
To send signals when you creating/updating/deleting instances
it means if someone creates an account then a message pop up to let us know that the user is registered.
Deepak
?
kancharla
How to send SMS to phn number in django
Nikolay
it means if someone creates an account then a message pop up to let us know that the user is registered.
Pretend that you want to create something for every user after registration, or delete some files after deleting user, you can achieve it by signals
Deepak
oh ok.. like in corey Schafer tutorial. IN which profile pic set by default when user registered
Presence
https://dpaste.org/Ox3q This is my url and apps list
Nikolay
for this error
Somewhere in your code you did write reverse(‘home’) but you have not this name in your urlpatterns
Andrej
How to send SMS to phn number in django
You need an sms gateway. I have developed a project through which you can send sms in Django through your own smartphone. https://www.sms-api-gateway.com
Presence
Somewhere in your code you did write reverse(‘home’) but you have not this name in your urlpatterns
I dont have view.py because I'm just using dj rest auth app to create api endpoint for user login
Presence
Try to search ‘home’ with your IDE
LOGIN_REDIRECT_URL = 'home'
Presence
I've this