Hian
Sessionmiddleware
Mirco
Hello, does anyone know how i can create a view thats doesnt go through middleware?
It's not possible and if you need something like this, you are going wrong with something
Hian
Session middleware is lazyload?
Sam
Does any one know how to clear code cache, I am running django project in docker container and I need to restart container each and every time while making code changes
Sam
Isn't there is way to clear this code cache
Mirco
Isn't there is way to clear this code cache
nope, that's how docker works you need to re-build everytime in local dev you can enable the Django watcher instead
Эльдияр
how to set slug in url like that localhost://8000/posts/?category=politics&category=life.... rightnow my url localhost:8000//posts/?category=3&category=5
Mirco
What is Django Watcher? How to implement
it's already implemented into the runserver ( dev server )
__init__
how to Signing and Verifying in pthon with pkcs#12 certificate??
__init__
Use pyopenssl
okey thanks let me try.
Prof K. S.
I have html page which takes 2 files as input and a python code for checking hash value sequence I want to import that file(from html page) to python code and based on results it should return yes or no in html How can I do that?
Doragonsureiyā
I have html page which takes 2 files as input and a python code for checking hash value sequence I want to import that file(from html page) to python code and based on results it should return yes or no in html How can I do that?
What have you tried to do so far to solve that issue? Show your code and explain where and why you're stuck on solving your issue. Read rule 5️⃣ to learn how to show your code
Kennedy
Hello guys, I have my authorization header keyword as Bearer, how can I make use of it in a DRF project?
Hian
Someboby use sentry?
Doragonsureiyā
Someboby use sentry?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
EN
What do you mean ? You can use any library of js (react, vue and etc.)
Raja
Does any one have idea about the chunk files
Raja
How to compress network payloads
Enam_may
Can I use session and model for a comment form in the same time?
Enam_may
What's the difference between sessions and models data?
Hian
does anyone know how do I ignore the sentry just for a url?
Mirco
Or create a custom filter for specific stuff to ignore Everything is inside their docs
Hian
I need it to be a url, because he is accessing the user and I don't want him to do it because it is slow, it is a very simple view that generates a random value.
Hian
I created the before send but it catches the user before yet
Sai
Make the url and send it
Amor
Hi guys, does anyone know how to deploy django application in red hat linux. I'm facing lot of issue in that
Zey
I want to email the html template which will contain images but When I am receiving mail images are not showing?
Ngeene
I want to build a backend which allows a user to schedule appointment by looking at a service( business service like Salon, Spa, ) calendar and book a slot which is available. It would be great if someone can direct me to right path where there are enough resources to understand basic of scheduling calendar events with django rest framework.
You can use a combination of django and javascript. Whereby django does the booking and the js does the display of availability of slots. This would involve creating some booking model with fields such as the date you'd like to book, the user making the booking and probably some settings like how many people are allowed to book a session. So that in case the max no. of people is reached, the system blocks further bookings. Alternatively you can check out integrations with Google calendar API.
Hian
I debugged the code and saw that sentry is making use of the logged in user, however this view needs to be extremely fast.
Mirco
I debugged the code and saw that sentry is making use of the logged in user, however this view needs to be extremely fast.
Yup but sentry is called when there is an exception unless you trigger it manually
Hian
I thought that too, it doesn’t make sense without exception
Mirco
I thought that too, it doesn’t make sense without exception
Yeah but I don't think so your view is slow due to Sentry I've never experienced something like this
Hian
without sentry 5miliseconds , with sentry 1 second
Mirco
without sentry 5miliseconds , with sentry 1 second
Weird 😔 For sure you cannot ignore it per view
malloc
How do I separate static files for django multiple apps?
malloc
Organize your css and js by themes
Thanks. I found another way of doing it.
🤪👁
I am in
клауб хартелл
How can I set up django offline? (I want to download django and make it portable to install it on offline machines) Does anyone here know?
Zey
I want to email the html template which will contain images but When I am receiving mail ,images are not showing?
vijay
hi how to build a video confrence app in django
Kennedy
Can you explain further on this issue?
I have my Authorization headers set as; Authorization: Bearer <Token> My understanding is that DRF uses Authorization: Token <Token> So I want to modify my DRF to recognize Bearer. I have a class already set with; authentication.TokenAuthentication.keyword = 'Bearer' While I try subclassing this doesn't detect the new keyword "Bearer"
Zey
manage.py collectstatic
can u explain in detail?
Doragonsureiyā
hi how to build a video confrence app in 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
Sumit
Can anyone tell me why keeping secret key in .env file is secured in production server, I mean what makes this secure?
Alexandro
not a good practice
Alexandro
yes
Sumit
And if it has not to be loaded as public repo than no need , right?
Alexandro
you mean your code lives on a server, and it's not uploaded to any git service like github or bitbucket?
Alexandro
or just that your repo is private?
Alexandro
even if it is private
Alexandro
not a good practice other members of your team where you work together are going to use that code
Alexandro
and reuse it let's say you upload your key from twilio to the repo and you clone the repo on another server, but that one is going to use another key, then you have to remember that
Alexandro
you introduce more problems and resolve nothing without following good practices and standards
Sumit
I am following the standards , but I know the reasons too, thanks for your answer.
Spence
Hi,how do I create an email that sends message to all registered user's in Django, please any help
Sumit
Hi,how do I create an email that sends message to all registered user's in Django, please any help
use sendmail function of django, grab the list of email of your user and send it
Alexandro
Hi,how do I create an email that sends message to all registered user's in Django, please any help
email transporter and broadcast the message with a query of all your emails
Sumit
Thanks
https://agusmakmun.github.io/python/django/2016/04/20/adding-broadcast-mail-to-all-users-registered-inside-django-admin.html
Sumit
This will also helps you.
Alexandro
I want to email the html template which will contain images but When I am receiving mail ,images are not showing?
use alt in your images, I think svg are not supported on emails, use good standards for images, they have to be from the same source (domain) of the sender another option, the easy one, just use sendgrid, they do that dirty work for you and they have a free plan