Rutherford
Roman
Rutherford
Anonymous
REST or Graph ql which is better for large business apps
prasanth_reddy™
Rebellion
urlpatterns += [
path('', RedirectView.as_view(url='catalog'))
]
I had put redirect url in one of the demo projects. But when I create other project in different directory and that too using separate environment, still default url is redirecting to this one.
How, url mentioned in one project is affecting the other...?
I have commented that out but still itis redirectly to this url..?
Why..?
Rebellion
Every other project is affecting because of it. What should I do...?
𝕁𝕒𝕧𝕠𝕙𝕚𝕣
Rebellion
Can I send you screenshot..?
Rebellion
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/catalog/
Using the URLconf defined in demo.urls, Django tried these URL patterns, in this order:
admin/
myApp/
The current path, catalog/, didn’t match any of these.
Rebellion
This is how web page looks...👆🏾
Vivek
Mirco
Rotana
Can we get MAC Address of client with Django ?
Krunal
Is there any way to direct upload attachment from the email in django?
Jay
Mirco
Doragonsureiyā
Can we get MAC Address of client with Django ?
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box, write down the same words you asked here
Step 4: Read the first results
Jaya
hey can anyone help me with websocket token authentication, i am little confused with it
Krunal
Use SMTP
I am using imap_tools and fetching the email. Should I use direct attachment object or need to save file somewhere and then need to upload.
Python Guy
how to get all comments of a post
Mirco
Python Guy
Jaya
hey can anyone help me with websocket token authentication, i am little confused with it
Anshu
Jaya
i have done that part, just need a little clarification about how i should implement it in routing.py
Anshu
Jaya
i have created that custom middleware for authentication , just want to know how to code that tokenauthmiddleware in routings.py file
Rebellion
Rebellion
It seems that I have to give up that default '8000' port and use other port...
that's the only option left...
Mirco
Rebellion
Now, I'm trying to declare to new port number in settings.py under 'DATABASES' dictionary. But, it does not work.
So, I'm using 'python manage.py runserver 7000' command to run server on port '7000'.
Is there any way of putting port number in settings.py itself...?
Mirco
Rebellion
Mirco
Jaya
how to authenticate websocket token via query parameter in django?
Azamat
Jaya
yes
Azamat
Do u want to pass token in WebSocket?
Azamat
You can use web socket headers
Azamat
Do you connect to ws from Javascript?
Jaya
yes but the problem is i am facing some issues while sending token via headers so i want it to send it as parameter for authentication, i hope you are getting my question.😅
Guilherme
Good morning
Guy, I need to connect 2 databases in my project, but I am nota able to look at the official Django documentation.
Does anyone know I can make this connection or another link but step by step?
Azamat
Azamat
And you can get it from self.scope in consumer
Jaya
so i should verify the token in consumers, is it a correct way to do so?
Azamat
You can also verify token in middleware
Azamat
Create custom middleware and check token there
Azamat
What middleware do you use in asgi.py?
Lady
Mirco
Lady
Rebellion
Yeah, thank you all for reply..!
Mirco
Doragonsureiyā
Anonymous
Djnago rest framework in how to set null value
Example:
box = serializer.serialziermethod()
def get_box(self, obj):
# return BoxSerializer(BranchBox.objects.by_user(self.context['request'].user).filter(branchproduct__product=obj).first()).data
So, i want show there if box user have no any value there show box:null
If box have value show box value
213
Hi there, any experience using azure ad to signup and signin users in a django website? The documentation is very poor on the net. Thanks for any help
Mirco
RK
How to become full stack python developer.. Which technologies I need to learn
RK
Any one can help me
Umutbek
Django template
Mohamad Reza
How to change admin panel theme color from dark to light ??
Searched on google but can't found the results I want
RK
Is Angular complusary
RK
213
Mirco
Igor'
How Can I avoid CaptchaField() in pytest?Registration's test
Igor'
@pytest.mark.django_db
def test_published_post_register(client):
response_name = client.post(reverse('register'), {
'username': 'john', 'email': 'lennon@thebeatles.com', 'password1': 'Hack1234', 'password2': 'Hack1234'})
assertRedirects(response_name, reverse('main_page'))
Roman
Hi! i'd like to start with there is the python library verify_email, in python script it working well and correctly check email, but when i call this library in my django project(to check given email) i have error. i didn't find the way how to check email in django, can you help me with it?