inchidi
technically you do what jimmies said https://t.me/django/50513
inchidi
inchidi
without views and without media (served by web server) right?
Ghorz
def is_user(request, instance):
return (
not request.user.is_anonymous and request.user.is_authenticated and
((instance.user.pk == request.user.pk) or
request.user.is_superuser or request.user.is_staff)
)
image = PrivateFileField("file", upload_to = 'protected', condition = is_user, attachment=False)
inchidi
inchidi
mind to elaborate?
inchidi
Ghorz
i worked with django-xsendfile
Ghorz
django-xacel
inchidi
oh okay
Ghorz
Mirco
Yea
So no need of those packages
Ghorz
Mirco
Jaydeep
Can django make a website in which a fingerprint and face recognition use for authentication?
Rohan
Rohan
But can you actually make it secure?
Dipesh
https://stackoverflow.com/questions/57451652/psycopg2-errors-stringdatarighttruncation-value-too-long-for-type-character-var
Please help
Gupteswar
Any one have a django project
Dipesh
Anonymous
How can I auto-generated a serialized field
Anonymous
For eg.. I want to auto-generate a uuid field in a serilaizer
Derrick
Anyone managed to creat a property management web app with Django
Derrick
For property owners enabling them to have Unit , Tenant ,Property,Owner ,Vender
Aman
hey folks,
I have started a ecommerce business its a hyperlocal business . we are hiring college student as interns
intrested students can dm me.
Derrick
Hey guys I’m trying to instal psycopg2 with pip and getting this error can someone help ?
Anonymous
What's the error
007
How to get dyamic input name attribute name and it's value in views.py
Eg :-
< input id='exp-1' name='exp_1' value = 'exp_val_1' type='text' >
Hemant
slinker.in is my django website
This is now stable please check and give me any changes or error fixing help
Thank you
Mirco
Mirco
Hemant
Ok I try for it
Hemant
Because it's paid
Hemant
Any free source for https
007
Using POST data
But how can you get input field name which is dynamic ?
Mirco
Jesus
Im trying to create two different types of users, free tier and premium tier. I have researched and became to the conclusion of using Django groups, which gives permissions to certain group of users, not only one user. my questions comes, how can I implement this in a template? for example, display a button if you are premium tier user. All I have seen in youtube is about an specific user and within admin page which was not really helpful in my case (or maybe im just confused?). Thank you
007
Explain better "dynamic"
suppose in my template page : 
{% for img in img_obj %}
<input type="text" name="img_name_{{img.id}}" value="val-{{img,id}}">
{% endfor %}
=========
i want to retrieve value of input field using POST.get()
Сергей
I send emali via send_emal from shell but in my email message I have nothin but if I send from view It`s all right, what`s the problem?
Mirco
007
By name and you will get img_id
But here, name is changing according to id , so how can i retrieve name of input field which I'm going to submit without using ajax name="img_name_{{img.id}}"
godmode
I've been looking for templates for a simply blog style Ghost like cactus ... Do you know if there is a placer qith templates for Django frameworks looks like?
Goutham
Goutham:
Hi guys how can I write inner join query in django...
And need it as a queryset
Please help
Anonymous
How can I use postgres along with Mongodb
Different table different db
Rajab
.
007
Rajab
~Kishor~
Ghorz
Was working on payment processing, was able to process dummy on the payment server(paystack).
Now I need to have the payment status captured and stored in my database.
The issue is I find it difficult capturing json data. Don't even know where to start
Ghorz
Paystack.com
Jackson
Hi guys. I have a problem deploying django on heroku.
Jackson
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
Jackson
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(APP_ROOT, 'staticfiles')
STATICFILES_DIRS = [
os.path.join(APP_ROOT, 'static'),
]
Anonymous
Anonymous
i think it's BASE_DIR
Jackson
I just changed. let me see here ...
Yuri
Hey guys, which social auth lib do you recommend having extreme security in mind?
Yuri
I've found this https://pypi.org/project/django-allauth/
Yuri
Which I think it's pretty interesting
Yuri
Did someone here have used it for a project that the security is the priority?
Ghorz
Mohan
👍
How to install virtual env
Ghorz
Ghorz
Yuri
Ghorz
Ghorz
no
Ghorz
you can see my login and signup page, bottom right is google recaptcha V3
Ghorz
I think image is banned here
Ghorz
Search youtube
Ghorz