Reputation: 5173
I'm the beginner. I'm trying to deploy Django app to the internal web-server that is control by admin. The apache linux box with python 2.6 installed , but I am using 2.7 - on windows - other than following settings from http://www.djangobook.com/en/2.0/chapter12.html
My question is , what are the installations that I have to ask the admin to install in the linux box ?
What about all the packages ? For example I use pandas. I usually do
"pip install pandas"
on my windows, do I need to ask admin to install that as well ?
If I don't use Django , but normal html - I usually just FTP to
/virtualhosts/mycompany.com/reports/www/index.html
and I would be able to see it. For Django I have >
mysite1/
manage.py
mysite2/
__init__.py
settings.py
urls.py
wsgi.py
Do i upload all mysite1 to replace index.html ( /virtualhosts/mycompany.com/reports/www/ ) ?
Sorry i am truly beginner here.
Upvotes: 0
Views: 255
Reputation: 2149
You should ask admin to install virtualenv so you will be able to install everything else on your own. Anyway you will have to get ssh access to server to be able run your projects, so ask admin for it.
pip install django
and you will get latest versionrequirements.txt
in your projects, just find this file and send it to your admin, asking him to pip install -r requirments.txt
. If not - you should read about this file cause it kind of must-have in project.mysite1
I recommend you check out this thing, cause it is very easy and useful, especially if admin will help you to install it virtualenv wrapperEdit: also consider installing Ubuntu alongside with Windows(it has such option out-of-box) You will fall in love with it for sure and will not be willing to return on Windows(except to play games if you do)
Upvotes: 1