I recently added s3 to my project

I recently added s3 to my project, and it works great on my local server, but when I try to push I get this error ModuleNotFoundError: No module named 'storages', and my project crashes.
21 Replies
Percy
Percy2y ago
Project ID: 7af32cf3-ad22-4da2-9a25-d6dd64394033
ThePhotis
ThePhotisOP2y ago
7af32cf3-ad22-4da2-9a25-d6dd64394033
Brody
Brody2y ago
please upload your package.json and package-lock.json files
ThePhotis
ThePhotisOP2y ago
ok, I'm really new to all of this. where can i find those files? and where do i upload them?
Brody
Brody2y ago
nodejs right? edit: me dumb oops
ThePhotis
ThePhotisOP2y ago
im not sure im using that i have a django project
Brody
Brody2y ago
lmao i was certian node calls it module, im sorry for the confusion please send your reqierments.txt file in this thread
ThePhotis
ThePhotisOP2y ago
here you are
Brody
Brody2y ago
what package do you use to connect to the s3 bucket
ThePhotis
ThePhotisOP2y ago
boto3 dose that sound right? sorry im teaching myself as i go.
Brody
Brody2y ago
try addding "django-storages" to your req.txt file full word too hard to type, you know what file i mean
ThePhotis
ThePhotisOP2y ago
ok and try pushing again?
Brody
Brody2y ago
yep
ThePhotis
ThePhotisOP2y ago
it failed 😩 #11 ERROR: executor failed running [/bin/bash -ol pipefail -c python -m venv /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt]: exit code: 1
Brody
Brody2y ago
please show a full screenshot of that error and send that file again
ThePhotis
ThePhotisOP2y ago
Actually, i got it to deploy, but it crashed because it couldn't find boto3, so I added that to the req.txt file and pushed it again
Brody
Brody2y ago
awsome, glad you got it working also just curious, are you using aws s3 for s3?
ThePhotis
ThePhotisOP2y ago
yes
Brody
Brody2y ago
cool, happy coding!
ThePhotis
ThePhotisOP2y ago
thank you. im sure ill have more questions soon1
Want results from more Discord servers?
Add your server