Jump to content

Python Installation on HelioHost, Including Libraries and Django


cokie
 Share

Recommended Posts

I have three questons:

 

1.) Is python installed on the server already?

 

2.) How can I include libraries if the library doesnt have them installed like CGI - Can I just include CGI without worrying if the library is installed on the server.

 

3.) Does Django have the NECESSARY libraries like the C standard libraries or is it more specific libraries.

 

Thank you guys so much!

 

Cokie

Link to comment
Share on other sites

Guest Geoff
1.) Is python installed on the server already?

 

Yes, we have the latest python installed on both servers.

 

2.) How can I include libraries if the library doesnt have them installed like CGI - Can I just include CGI without worrying if the library is installed on the server.

 

You can include libraries by adding them to the PYTHONPATH.

 

3.) Does Django have the NECESSARY libraries like the C standard libraries or is it more specific libraries.

 

Not sure what you mean here, but django applications can run on both servers.

  • Like 1
Link to comment
Share on other sites

 

 

Not sure what you mean here, but django applications can run on both servers.

 

I mean how standard or how primitive is the use of django? I assume it is for applications so its is not like sin arch sin functions.

Link to comment
Share on other sites

Guest Geoff

Django is THE web framework for python. If you are writing anything more than a couple of files, I would highly recommend django.

Link to comment
Share on other sites

  • 2 weeks later...
I have three questons:

 

1.) Is python installed on the server already?

 

2.) How can I include libraries if the library doesnt have them installed like CGI - Can I just include CGI without worrying if the library is installed on the server.

 

3.) Does Django have the NECESSARY libraries like the C standard libraries or is it more specific libraries.

 

Thank you guys so much!

 

Cokie

 

answer 1: is yes python is installed

Python 2.4.3

Python 2.7.1

Python 3.2

are supported

 

answer 2: A lot of python libraries are installed, check out Snake Charmer . For what isn't, like say I use haystack and whoosh for search functionallity. I simply include the module in my project directory.

 

And answer3: Full support for Django 1.3 and 1.1, and you can use Django like any other python module like in answer 2.

 

I highly recommend reading Django Docs for more info on Django and how to use.

Link to comment
Share on other sites

3.) Does Django have the NECESSARY libraries like the C standard libraries or is it more specific libraries.

django is written in python and havn`t any binary modules

you could consider django as a pure python module,and you can download your own version of django to your /www folder

and add it to the pythonpath,and a python egg is ok,too. :rolleyes:

 

Link to comment
Share on other sites

  • 3 years later...
  • 2 years later...
Yes, we have the latest python installed on both servers.

 

QUOTE
2.) How can I include libraries if the library doesnt have them installed like CGI - Can I just include CGI without worrying if the library is installed on the server.

 

You can include libraries by adding them to the PYTHONPATH.

First

thank you....

You mentioned before that users can't access shell

so how can I add Packages to my project

you said python and django is already installed. that's ok

but if I have a local project uses these packages:

-------------------------------

beautifulsoup4==4.6.0

Django==1.11.3

gunicorn==19.7.1

pytz==2017.2

whitenoise==3.3.0

----------------------------

installed locally on my pc

how can I add these packages to the web server

I know how to add myModels

I am new to python

,bebo

Edited by abanoub
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...