Muflone
+ all its dependencies
Muflone
then you can
1. copy into the virtualenv
2. link them
Anonymous
i know i being a burden but help me man.
Muflone
there's no way it's not there, look better ahah
Muflone
import django
print(django.__file__)
Anonymous
Anonymous
/usr/local/lib/python3.6/dist-packages/django/__init__.py
Muflone
/usr/local ?
that's not installed from a package manager
Anonymous
坂田銀時
They might be in $HOME/.local/bin/ or something
坂田銀時
Oh
Anonymous
Muflone
from where you find them, copy into your virtualenv
Muflone
just remember to pick up also the dependencies packages
Anonymous
okay, to what path inside the venv should i copy them to?
Muflone
into site-packages folder
Anonymous
Anonymous
into site-packages folder
😝😝😝it worked. thank you so much man. i really mean it. u just saved me alot of hours from going to internet café
Anonymous
so i just copy package from that path like that and it will appear in my venv right?
Muflone
sure
Anonymous
Muflone
generally packages are self contained, everything can be found in a single file or in a folder
Muflone
+ the external dependencies
Muflone
rarely a single package is split in two folders
Muflone
Anonymous
👌🏻
🤯🤯i wish i knew this long ago.
✊✊
Muflone
if you wouldn't use pip outside of the virtualenv you wouldn't have packages into your home or /usr/local
Anonymous
坂田銀時
Lol, you installed using sudo pip pip --user and also package-manager install
Muflone
and also pip without --user
Anonymous
so how exactly should I install them?
Muflone
only use virtualenvs, one for each project
Anonymous
i am most often offline
Muflone
you can share the packages among multiple virtualenvs, using the same logic
Muflone
numpy is not a pure python package, it needs compiled C libraries
Muflone
you have to copy also the binary libraries
Muflone
clean virtualenvs will help you in deploy phase
Anonymous
Muflone
it depends from the package itself
Muflone
if you got it from apt/rpm, use that to get the files list
Anonymous
Muflone
dpkg -L package_name
Muflone
should list the files
Anonymous
how do i list all'em
Muflone
using the above command
Anonymous
using the above command
well its saying i haven't installed that package.
i am taking ur time bro, just in general i should install all packs in my venv and then share them right?
Muflone
I don't get what you mean.
do you have numpy installed?
Anonymous
Muflone
then you have the dpkg command to get the files list
Muflone
use the correct package name, that you use to install it with apt
Anonymous
坂田銀時
It might be python-numpy
Muflone
experience and learning
Muflone
there's not a book for everything
Muflone
+ google
Anonymous
okay, got it. thank you again
Anonymous
Muflone
Just "move you ass" 😜
Anonymous
hell naww
python developer
Hai Everyone
python developer
anybody have Django Hallticket Generation Project
python developer
Or any information please let me know
Ayomide
Guys....im getting a error 500 when i turn debug =False in my django application on heroku
Ayomide
What do you think could be wrong.....
If youve ever deploy to heroku pls assist
Jigani
hello ayomide.... i'm not really a pro but i feel you should go back to development and set your debug to True and figure out where the error is from b'cus the error 500 must have been raised due to error in your code....if you wrote tests, you might want to run a test on your app
Ayomide
When i set debug to true....
Everything works well
Anonymous
Anonymous
Does anyone have complete working project on djnago...for practice
S