Anonymous
ok, thx i will see if i can find something useful
Rohan
But in the end you'll be tired of it since the support sucks,big time.
Anonymous
so, your suggestion would be to move to a sql like postgresql?
Rohan
Anonymous
thx for the advice 👍🏻
Rohan
🖖
Rohan
Sardor
Hi, I am trying to upload an image through admin to a profile I created and I am getting the following error: [Errno 13] Permission denied: '/media'. Changing directory permissions did not help. Anyone see how to fix this? I appreciate your help and time.
Rohan
Sardor
Also added this to the urls.py urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Le Createur
Sardor
Rohan
Well, to avoid this mess I use AWS S3 buckets to store media and cloudfront. Then I store their URLs in my database instead.
Rohan
Those URLs can be rendered directly onto websites
Rohan
But also, are you doing this media thing on a development server or a production server?
Sardor
Sardor
Rohan
I meant changing media root to /tmp/<some directory>
Rohan
Also, be sure to specify absolute path
Sardor
still not working
Rohan
Rohan
/tmp is a legit directory on a linux machine
Sardor
my bad, tmp solved the issue, @PulsatingQuasar Thank you very much I really appreciate your help and time!
Rohan
🖖
Le Createur
Does
model.many_field = [val1, val2, val3]
Works ?
Guillermo
Anonymous
Hello guys new here and I want to learn django.can someone pls take me through the process of installing django on windows
George
Rajesh
Is django uses AES 256 for encryption
.
Rajesh
Password
R
Password
https://docs.djangoproject.com/en/2.1/topics/auth/passwords/#how-django-stores-passwords
Rajesh
Actually client is asking for
"I want to confirm that we are following AES 256 for encryption"
Rajesh
does django provides that encryption or its better than that it yes what method django provides
Code9
By default, Django uses the PBKDF2 algorithm with a SHA256 hash, a password stretching mechanism recommended by NIST. This should be sufficient for most users: it’s quite secure, requiring massive amounts of computing time to break.
However, depending on your requirements, you may choose a different algorithm, or even use a custom algorithm to match your specific security situation. Again, most users shouldn’t need to do this – if you’re not sure, you probably don’t. If you do, please read on:
Rajesh
Rajesh
Rajesh
.
I googled it and found awesome lib https://github.com/InterSIS/django-rest-encrypted-lookup
.
but i think it is not what you needed. but you can update code for your needs
Rajesh
ok i have gone through that it looks too completed
Ooha
Hii, i am new to django
How to display the output of python script in django template(html)??
Mirco
Ooha
Using views
Bt it is displaying output of python script in python compiler
Ooha
Bt..i want it in my html page
Mirco
You have to render html page using views and passing a context that you will use in your template using Django templating syntax
In your context will be every data you wanna render inside your template
Mirco
And share your code if u want a better help
Using pastebin or similar pls
Trev
NC
Hi, I am new in django and would like to host my project on a local server. How do I go about it?
George
Daniel
hi people, I have a quiestion: I created a droplet into digitalOcean, and I installed virtual eviroment, I have a project in bitkuquet, mi quiestion is: I should clone my project into folder virtual eviroment? in mi local PC I have aside mi project and folder virtual eviroment. What is the better way? Thanks
Le Createur
Daniel
Mirco
English pls
Junior
Sorry, it's my falt
Sardor
Ronald
Ronald
pip freeze
Ronald
and then install them on your digital ocean vps
Daniel
Doug
pip freeze > ./requirements.txt
.
Is there any decent alternative to Pycharm?
Daniel
Doug
For updating or creating the file
Ronald
Ronald
If you're just starting out with python/django, you're probably better off using a fully features IDE such as pycharm, that will create your virtualenv's and stuff for you.
Ronald
otherwise, I love Visual Studio. It's super lightweight and the python linter is perfect.