Simon
Hi,
I want to give access to DetailView class based view of a post to either the author of the post or a memeber of the staff group, but not to anyone else.
I have used GroupRequiredMixin from django-braces, to restrict the view to staff group, but I don't know how to allow access to the post author also. Any ideas how I could accomplish this?
Alan
Brian
Brian
Alternatively share a pastebin link with your code. If your detailedview has context, it's even easier
Simon
Brian
Bunty chhatri wala..
I deployed my app on Heroku..
Now it saying *Base.html* not found
But locally it is working fine.
Brian
I can totally read this pal
Simon
Anonymous
Should I add migrations folder to .gitignore if not why
Nirupam
User.objects.all() --- in this objects is not available ..? Why
Bunty chhatri wala..
Cheap
Bunty chhatri wala..
P
Tushar
https://pastebin.com/j22t9rwz
Tushar
Tushar
Nirupam
Create users.
Actually i was getting one error.since morning..that is ..whereever i am creating app, in app.py file it's coming as warning. And i am not able to add app name i. Installed_ app..
P
Rainur
Hello! What kind of solutions do you use for costumize default django admin interface ?
Rainur
Has anyone used django-admin-tool?
Anonymous
Hello! I am new to python and want to learn djano and flask. Can anyone provide material to start on with as an beginner.
Anonymous
sure
Anonymous
Thankyou
Yash
Hello.. where can I easily learn django rest framework other than from it's documentation? I'm a beginner in django.
Anonymous
The easiest way to deploy a django app in AWS is using docker ?
Mirco
Anonymous
Can i use Faker iniside my models
Mirco
For testing, yes
Anonymous
For testing, yes
I want it to fill each time when one object of that model is created and this is for a slugfield (link field) to be filled random but unique
Tushar
just like we have delete action for select details so it is possible can we make action which are use for make user. in my alumni project i want when admin select student and they will be make user
Shivank
Hi all,
I have a question,
How can we activate an virtual environment which is saved in some other directory ,for a project.
Adiziel
Shivank
Thanks ! Figured it
Adiziel
Great
Rit
Hi bros...
Even though I learned python I am struggling to write codes in view part of Django... How to become good in writing programs in view
Thiago
guys can someone help me I'm not sure what to do I already did and redid 10x
I have his django-address app I want the user to send the location
through the documentation there is no connection with the user so add no models user = models.OneToOneField (User, on_delete = models.PROTECT, verbose_name = "Professional Name")
at django-admin everything works correctly
but when I send the form it doesn't store
as far as i know i did everything right, as i always did, but something is wrong
Thiago
guys can someone help me I'm not sure what to do I already did and redid 10x
I have his django-address app I want the user to send the location
through the documentation there is no connection with the user so add no models user = models.OneToOneField (User, on_delete = models.PROTECT, verbose_name = "Professional Name")
at django-admin everything works correctly
but when I send the form it doesn't store
as far as i know i did everything right, as i always did, but something is wrong
Ghorz
saran
Hi anyone tried django translation?? Is it worth using or reliable?? I'm working on multilingual site. Or any other alternatives.
Anonymous
Abrar
It was a simple yes or no question.
Some people here overreact a lot.
Xavier
Xavier
Xavier
Anonymous
Hello experts, please suggest if pandas can be used in django..i need the data frame utilities only..
Mirco
Anonymous
Why not ?
🙂 actually heard that it is a huge library and may take lot of space... Thanks @pyflare
Anonymous
Thanks...🙂
Dev
Anyone tell me how do i fetch data from an API to my html file in django
Anonymous
Mirco
Kronos
get data with requests and then take the data what you want and do whatever you want with it on the views...then pass it into the template context
Kronos
Dev
Kronos
Depending on the api
Dev
Anonymous
Mirco
or even pycURL 😂
Yes but nah
httpx now is much better than requests and it supports async/await 🔝
Anonymous
Anonymous
Anonymous
Like if the field is date or string like that??
Mirco
saran
Roman
Hi guys
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
.
Roman
Why do I get this ? All if fine the request is proceed