Muflone
+ all its dependencies
Muflone
then you can 1. copy into the virtualenv 2. link them
坂田銀時
How can it be better?
I mean they would need to login in order to connect.
Anonymous
then find your django package from there
there is no django package in: /usr/lib/python3.6 absolute path
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
import django print(django.__file__)
better, I'll try that
Anonymous
/usr/local/lib/python3.6/dist-packages/django/__init__.py
Muflone
/usr/local ? that's not installed from a package manager
坂田銀時
They might be in $HOME/.local/bin/ or something
坂田銀時
Oh
Muflone
oh fuck. i installed it using pip
it's the same though, copy them from there use the same techique to get the file location
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
sure
Thank you
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
Anonymous
rarely a single package is split in two folders
okay, now all i have to do is package.__file__ and copy it to my env
Anonymous
👌🏻
🤯🤯i wish i knew this long ago. ✊✊
Anonymous
They might be in $HOME/.local/bin/ or something
yeah there arw some packages there too. i just tried numpy.__file__ and found it there
Muflone
if you wouldn't use pip outside of the virtualenv you wouldn't have packages into your home or /usr/local
坂田銀時
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
Lol, you installed using sudo pip pip --user and also package-manager install
and numpy doesn't show in the venv pip freeze list even tho its already copied
Anonymous
only use virtualenvs, one for each project
that's the problem, i barely get network connection
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
Anonymous
you can share the packages among multiple virtualenvs, using the same logic
shoot. then I'll suck it up and make an env and install the necessary packs
Muflone
clean virtualenvs will help you in deploy phase
Anonymous
you have to copy also the binary libraries
fuck, are they in the same path?
Muflone
it depends from the package itself
Anonymous
clean virtualenvs will help you in deploy phase
yeah, heroku wasn't letting me deploy the apps i made
Muflone
if you got it from apt/rpm, use that to get the files list
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
I don't get what you mean. do you have numpy installed?
yes, i imported it in the shell and it was imported
Muflone
then you have the dpkg command to get the files list
Anonymous
then you have the dpkg command to get the files list
when i typed dpkg -L numpy it says package 'numpy' is not installed
Muflone
use the correct package name, that you use to install it with apt
坂田銀時
It might be python-numpy
Anonymous
use the correct package name, that you use to install it with apt
yep, that worked its in the venv nkw so i have no idea what i am doing in linux environment compared to u guyz so can u suggest some books in linux and pip and stuff related to linux
Muflone
experience and learning
Muflone
there's not a book for everything
Muflone
+ google
Anonymous
okay, got it. thank you again
Anonymous
+ google
i 🦆🦆go tho😝
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
Does anyone have complete working project on djnago...for practice
S
Guys....im getting a error 500 when i turn debug =False in my django application on heroku
Turn it on and read where is a bug and fix it and make it false and get it hosted