Rohan
yes or to use mogodb instead of a sql
There are drivers you can install and define in your settings
Anonymous
ok, thx i will see if i can find something useful
Rohan
ok, thx i will see if i can find something useful
Basically you just type the same thing in your search engine and it'll lead you to some stack overflow thread
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?
Anonymous
thx for the advice 👍🏻
Rohan
🖖
Sebuhi
https://t.me/pythonres/21
İs there any pdf files of those books?
Rohan
İs there any pdf files of those books?
Click on those links and find out :)
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.
Sardor
Are you using it to save the files temporarily or you're gonna save all of those on your server?
Right now I am saving it locally. I have added MEDIA_ROOT, and MEDIA_URL to my settings.py file
Sardor
Also added this to the urls.py urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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
Well, to avoid this mess I use AWS S3 buckets to store media and cloudfront. Then I store their URLs in my database instead.
Yeah, I will host this app to digital ocean eventually, but for testing I wanted to use my local server
Rohan
Yeah, I will host this app to digital ocean eventually, but for testing I wanted to use my local server
Then you can save your files in a directory like /tmp where you won't get permission set fuck ups at all
Rohan
I meant changing media root to /tmp/<some directory>
Rohan
Also, be sure to specify absolute path
Sardor
I meant changing media root to /tmp/<some directory>
I renamed media to tmp and absolute path is this I believe BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Sardor
still not working
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
Sardor
Hello guys new here and I want to learn django.can someone pls take me through the process of installing django on windows
You should download a book called Django 2 by example, it is available online and you can also access YouTube on how to get started with Django
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
Actually client is asking for "I want to confirm that we are following AES 256 for encryption"
What i should answer to him we are using default django authentication and not using any other library 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:
.
Actually client is asking for "I want to confirm that we are following AES 256 for encryption"
I don't understand) AES is used for encryption something with password. So client is trying to encrypt his own password with password? (ahahah)
.
I googled it and found awesome lib https://github.com/InterSIS/django-rest-encrypted-lookup
.
Can this achieved by django
Encryption is provided by the PyCrypto AES library.
.
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)??
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
NC
Hi, I am new in django and would like to host my project on a local server. How do I go about it?
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
Mirco
English pls
Junior
Sorry, it's my falt
Ronald
pip freeze
Ronald
and then install them on your digital ocean vps
Doug
pip freeze > ./requirements.txt
Daniel
pip freeze > ./requirements.txt
for update requirements.txt file ... ritght?
.
Is there any decent alternative to Pycharm?
Doug
for update requirements.txt file ... ritght?
Correct. Just make sure the path after the > leads to your file
Doug
For updating or creating the file
Ronald
Is there any decent alternative to Pycharm?
https://code.visualstudio.com/
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.
cj
Is there any decent alternative to Pycharm?
no... but it depends on what do you want to do
Ronald
otherwise, I love Visual Studio. It's super lightweight and the python linter is perfect.