Re: No ROLLBACK within TestCase on second database

2012-09-05 Thread Mike Dewhirst
On 5/09/2012 3:09pm, Kit Randel wrote: On 05/09/12 16:28, Mike Dewhirst wrote: I asked about this a couple of weeks ago and the correct solution is to use a TransactionTestCase Hi Mike, I don't want to be explicitly test transactional behaviour, which I think is the intention behind

Authentication across projects

2012-09-05 Thread yillkid
Hi all . I have two projects (A and B), different django installation, database, but same host. I want the B projects share A project User database table. So A user account can login into B project site, but we don't create any user account in B project. and I have already search many

Using array for making form

2012-09-05 Thread Satinderpal Singh
Hi, I want to make a form in such a way that the contents of the form should be declared in the array, and also the user details field corresponding to that contents of the form, which a user fills, should also be in array in the the models of the project. I currently use to do this like: class

Re: Validating GB telephone numbers in Django forms.

2012-09-05 Thread Amyth Arora
you can alternatively use jquery to validate the field, i do not have the link handy as m on my phone right now but google validation engine, it is one of the most powerful jquery validation library which also has builtin method of validating uk phone numbers. On Sep 4, 2012 5:00 AM, "g1smd.1"

Re: with/include template pattern? seeking best practices

2012-09-05 Thread e.generalov
{% for e in some_list %} {% include "single_element.html" with element=e %} {% enfor %} I find myself writing things like this a lot in django templates > > {% for e in some_list %} > {% with e as element %} > {% include "single_element.html" %} > {% endwith %} > {%

Re: Installation script?

2012-09-05 Thread Carsten Agger
Den 04-09-2012 20:41, creecode skrev: Have you checked out pip which has a requirements feature and fabric . Those two would probably take you a fair ways or at least give you some ideas how you might approach the problem. Thanks

Re: Editable Tables

2012-09-05 Thread Sait Maraşlıoğlu
DHTMLX is looking great, I hope I can integrate it to my website. Actually I was looking for a way to make it modular, let me explain. Say, we have a modal named books, and it has fields, named 'name,pages,author' . using a generic view or something, it will display a table vith its field

Re: Editable Tables

2012-09-05 Thread Sait Maraşlıoğlu
This is an example how to create and modify admin listing page: This explains better class BookAdmin(admin.ModelAdmin): list_display = ('title', 'publisher', 'publication_date') list_filter = ('publication_date',) date_hierarchy = 'publication_date' ordering =

Re: with/include template pattern? seeking best practices

2012-09-05 Thread Mike S
The code `e.generalov` gave has been valid since Django 2.3: For more complicated context, you can also write an inclusion tag < https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#inclusion-tags> and use

Re: Does ``QuerySet.select_for_update`` lock related (joined) rows as well?

2012-09-05 Thread Tom Evans
On Wed, Sep 5, 2012 at 1:45 AM, Yo-Yo Ma wrote: > restaurant = > Restaurant.objects.select_for_update().select_related('owner').get(name=u'Koala > Kafe') > > Assuming the ``owner`` field points to a ``Person`` table, will the > aforementioned query prevent the ``Person``

How to use FTP to upload files with Django?

2012-09-05 Thread Chaney Lee
I just want to allow users uploading some videos to server in my website.I want to use FTP.So ,how to realize it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

creating an object on saving another model to the database

2012-09-05 Thread Martin Illgen
Hello, I've the following problem: - I have a model (ModelA) with a primary key consisting of a foreignkey (ModelB - ID) - *Databasestructure* TableA TableA_TableB - PK, BIGINT(20), FK TableB:ID NAME - VARCHAR(255) TableB ID - PK, AI, BIGINT(20) NAME - VARCHAR(255) - *Django

Re: Output of form in Extjs

2012-09-05 Thread Russell Keith-Magee
Hi João, Thanks for the suggestion, but this isn't something we're likely to add to Django's core itself. This is for two reasons. The first is that we have been specifically avoiding any dependency on any particular database library. Django is a server-side framework, so we don't want to impose

Re: bound field object - dynamic forms

2012-09-05 Thread mjh
tried {{ issue.x }} x = 0,1,2,3 but nothing is displayed in the template any other thoughts? On Monday, 3 September 2012 22:53:03 UTC+1, somecallitblues wrote: > > Try {{ issue.0}} and {{ issue.1}} > On Sep 4, 2012 5:55 AM, "mjh" > wrote: > >> Hi all - not sure how to

Re: Validating GB telephone numbers in Django forms.

2012-09-05 Thread g1smd.1
Thanks for the reply and information. The jQuery validation routines for GB telephone numbers contain significant errors and shortcomings. I already posted some patches correcting many of those problems at least a month ago, but they haven't been reviewed yet. The new Python/django

Django admin runs out of memory with ForeignKeys to large tables

2012-09-05 Thread Mattias Linnap
Hi all, I have a model X that references another model Y with a ForeignKey. There are very few Xs, but close to a million Ys in the database (and it will grow considerably in the future). This causes MemoryErrors in the Django built-in admin pages: the ForeignKey is rendered as a select box

Test driven development in Django framework

2012-09-05 Thread jyria
What is your experience? Is it worth it, and is it possible? I tried it and found it quite difficult to follow guideline of unit testing -- testing a unit of code, a class for example. Maybe Im just ignorant, but I didnt see, how can I create registration app only with unit tests. The only

Re: Django admin runs out of memory with ForeignKeys to large tables

2012-09-05 Thread Mattias Linnap
I've found two solutions: setting "editable=False" in the model's field definition (which removes the field completely from admin), or adding it to readonly_fields list in the ModelAdmin (which keeps the data visible). Perhaps it will be possible to subclass ModelAdmin, and make all

Re: Does ``QuerySet.select_for_update`` lock related (joined) rows as well?

2012-09-05 Thread Yo-Yo Ma
Thanks, Tom. That does help. On Wednesday, September 5, 2012 6:02:27 AM UTC-4, Tom Evans wrote: > > On Wed, Sep 5, 2012 at 1:45 AM, Yo-Yo Ma > wrote: > > restaurant = > > > Restaurant.objects.select_for_update().select_related('owner').get(name=u'Koala > > > > Kafe')

Re: Django admin runs out of memory with ForeignKeys to large tables

2012-09-05 Thread m1chael
what about raw_id_fields ? On Wed, Sep 5, 2012 at 9:00 AM, Mattias Linnap wrote: > I've found two solutions: setting "editable=False" in the model's > field definition (which removes the field completely from admin), or > adding it to readonly_fields list in the ModelAdmin

Problem with Django recaptcha

2012-09-05 Thread Lakshmen
I have git cloned the django-recaptcha( https://github.com/praekelt/django-recaptcha) into my directory and have included the public and private keys in my settings.py and captcha = ReCaptchaField(). But i get this error everytime i run the forms: Captcha: Input error: k: Format of site key

Re: Django Interview Questions

2012-09-05 Thread Dimitri Gnidash
This seems to be a copy-paste of Django FAQ. On Tue, Sep 4, 2012 at 8:10 AM, Stephen Anto wrote: > Hi Guys, > > I have updated Django latest interview questions and answers. It may cover > all technical requirements of the interview. > > Vist

Re: Output of form in Extjs

2012-09-05 Thread JJ
Hi Russell, I would like to create was plugin, as you presentation. I would like to contribute with this code. How can it help you? Thank's On Wednesday, September 5, 2012 8:46:06 AM UTC-3, Russell Keith-Magee wrote: > > Hi João, > > Thanks for the suggestion, but this isn't something we're

Re: How to use URL namespaces in tests?

2012-09-05 Thread Natim
I've got the same problem any ideas ? Le jeudi 23 août 2012 09:25:54 UTC+2, e.generalov a écrit : > > Url patterns which provided by a django application should be > addressedexternally in > the form of "namespace:name". I guess it will be connected to the project as > follows: > >

Re: Choosing a JS framework to go together with Django

2012-09-05 Thread Kelly Nicholes
It would be a travesty to not mention backbone.js. On Tuesday, September 4, 2012 7:39:49 AM UTC-6, dotnetCarpenter wrote: > > Hi all. > > I'm new here and just took over a Django project for the first time. I'm > still getting to grip with Django but as a front end dev for the past 5 > years,

Re: How to use URL namespaces in tests?

2012-09-05 Thread Natim
Ok it is quite easy, you are missing {% load url from future %} in your template. Le jeudi 23 août 2012 09:25:54 UTC+2, e.generalov a écrit : > > Url patterns which provided by a django application should be > addressedexternally in > the form of "namespace:name". I guess it will be connected

Re: Django admin runs out of memory with ForeignKeys to large tables

2012-09-05 Thread Thomas Lockhart
On 9/5/12 6:00 AM, Mattias Linnap wrote: I've found two solutions: setting "editable=False" in the model's field definition (which removes the field completely from admin), or adding it to readonly_fields list in the ModelAdmin (which keeps the data visible). Perhaps it will be possible to

Re: bound field object - dynamic forms

2012-09-05 Thread Mando
are you passing it to the template? On Wednesday, September 5, 2012 7:09:57 AM UTC-5, mjh wrote: > > tried {{ issue.x }} x = 0,1,2,3 but nothing is displayed in the template > > any other thoughts? > > On Monday, 3 September 2012 22:53:03 UTC+1, somecallitblues wrote: >> >> Try {{ issue.0}} and

Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
We have a django app that requires the users to login. For some testing we want to do, we want to disable this so the app can be run without logging in. Is there some way to easily do this? I've tried commenting out all the @login_required decorations, but then I was getting a 403. I tried

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
If any of your templates/views depend upon a request.user object, you'll run into issues because that will not exist without "logging in". I'm not sure of a good way around this off-hand without knowing more about your site. Sorry! On Wed, Sep 5, 2012 at 11:18 AM, Larry Martell

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
On Wed, Sep 5, 2012 at 9:22 AM, Kurtis Mullins wrote: > If any of your templates/views depend upon a request.user object, you'll run > into issues because that will not exist without "logging in". I'm not sure > of a good way around this off-hand without knowing more

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
I don't see why not. Are you running unit tests (testing scripts) or are you just using the browser for testing? On Wed, Sep 5, 2012 at 11:24 AM, Larry Martell wrote: > On Wed, Sep 5, 2012 at 9:22 AM, Kurtis Mullins > wrote: > > If any of your

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
This *might* be helpful depending on how you're testing: http://stackoverflow.com/questions/2036202/how-to-mock-users-and-requests-in-django On Wed, Sep 5, 2012 at 11:36 AM, Kurtis Mullins wrote: > I don't see why not. Are you running unit tests (testing scripts) or are

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
On Wed, Sep 5, 2012 at 9:36 AM, Kurtis Mullins wrote: > I don't see why not. I've been trying to do that, but it's still complaining. > Are you running unit tests (testing scripts) or are you > just using the browser for testing? I'm trying to do performance

Re: Django Interview Questions

2012-09-05 Thread Tim Chase
On 09/05/12 09:05, Dimitri Gnidash wrote: > This seems to be a copy-paste of Django FAQ. It seems to be a copy/paste of a LOT of sources around the web, not just the Django FAQ :-) -tkc -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread anthony tresontani
We are using a middleware to enforce a user login: /class AutoAuthMiddleware(object): """ Middleware for testing purpose only. Can enforce the user login. """ def process_request(self, request): enforce_user = request.GET.get("enforce_user", None) if

Re: Editable Tables

2012-09-05 Thread MattDale
I used this tutorial to get me going with the dhtmlx grid. http://www.rkblog.rk.edu.pl/w/p/using-dhtmlxgrid-django-application/ it's easy once you get the hang of it to make custom grids for each view, but not as cut and dry as it seems you are looking for. On Wednesday, September 5, 2012

Does anyone know how to access the Protege Ontology Editor?

2012-09-05 Thread Alex Glaros
Anyone know how to access the Protege Ontology Editor from Django? http://protege.stanford.edu/ Anyone with experience using it? Thanks, Alex Glaros -- You received this message because you

Re: Django Interview Questions

2012-09-05 Thread Aaron C. de Bruyn
I disagree with the "how to install" section. I use Nginx and uwsgi to host Django applications. There are other ways to deploy it too. The section makes it seem like the only 'real' way would be Apache. Lastly, it doesn't seem to touch on how a lot of people actually install and deploy django

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
On Wed, Sep 5, 2012 at 12:21 PM, anthony tresontani wrote: > We are using a middleware to enforce a user login: > > class AutoAuthMiddleware(object): > """ > Middleware for testing purpose only. > Can enforce the user login. > """ > > def

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
Looks like you just need a quick: from django.contrib.auth.models import User towards the top :) On Wed, Sep 5, 2012 at 12:57 PM, Larry Martell wrote: > On Wed, Sep 5, 2012 at 12:21 PM, anthony tresontani > wrote: > > We are using a

Re: Django Interview Questions

2012-09-05 Thread Kurtis Mullins
Yeah, I think this guide is a little crazy. If I'm getting interviewed based on questions I can't answer without looking up relevant documentation then I'd probably look bad even though the interviewer is the one lacking the required knowledge to get the job done. Maybe that's why I don't

Re: Test driven development in Django framework

2012-09-05 Thread Javier Guerra Giraldez
On Wed, Sep 5, 2012 at 7:46 AM, jyria wrote: > What is your experience? Is it worth it, and is it possible? > > I tried it and found it quite difficult to follow guideline of unit testing > -- testing a unit of code, a class for example. Maybe Im just ignorant, but > I didnt

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
Thanks - but now I'm getting NameError: "global name 'get_backends' is not defined" On Wed, Sep 5, 2012 at 12:59 PM, Kurtis Mullins wrote: > Looks like you just need a quick: > > from django.contrib.auth.models import User > > towards the top :) > > > On Wed, Sep 5,

Re: setting up Django Compressor

2012-09-05 Thread Phil
Hi Joni, Yes I have 'compressor.finders.CompressorFinder' added. All the requirements are installed too I double checked them all, tried installing them all individually and it said they were all installed already. When I first setup the site it was using django1.3, but recently upgraded it.

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Amyth Arora
could you post the traceback and the respective code. Most probably you'll need to disable all login_required decorators and also disable your user login based template tags in all the templates for it to work properly. On Wed, Sep 5, 2012 at 10:36 PM, Larry Martell

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
Actually, I've got another idea for you. You mentioned you wanted to simply access using urllib. Maybe you could create a small script to extract a CSRF token from the login page, login with a known (test) user, and continue passing and extracting the CSRF token as needed? On Wed, Sep 5, 2012 at

Re: Django Interview Questions

2012-09-05 Thread Amyth Arora
after reading this guide it seems, the interviewer who asks such questions himself is new to django or more importantly to programming. When it comes to programming or codes , most of the interviewers would ask you logic based questions instead of framework based questions as technologies like

Re: bound field object - dynamic forms

2012-09-05 Thread Amyth Arora
check if it is being passed to template. {% if issue %} {{ issue }} {% else %} Issue was not passed #Debug {% endif %} On Wed, Sep 5, 2012 at 8:45 PM, Mando wrote: > are you passing it to the template? > > > On Wednesday, September 5, 2012 7:09:57 AM UTC-5, mjh wrote:

Re: Choosing a JS framework to go together with Django

2012-09-05 Thread Amyth Arora
I am not sure what you are exactly trying to achieve. A more issue specific topic would have been easy to understand though i can suggest you following frameworks (in particular order): 1. KnockoutJS 2. BackboneJS 3. Cappucino 4. Ember.Js 5. Sammy.JS 6. Spine.JS 7. JavascriptMVC On Wed, Sep 5,

Re: How to use FTP to upload files with Django?

2012-09-05 Thread Mando
Would this work -> nginx-gridfs ? On Wednesday, September 5, 2012 1:09:25 AM UTC-5, Chaney Lee wrote: > > I just want to allow users uploading some videos to server in my website.I > want to use FTP.So ,how to realize it? -- You received this message

Re: Problem with Django recaptcha

2012-09-05 Thread Amyth Arora
This is because the re-captcha API is not able to recognize the keys ? do you have the re-Captcha settings set to automatic by any chance ? if so change it to manual and add the domains you'd want to work it on and you should have it working... On Wed, Sep 5, 2012 at 6:19 PM, Lakshmen

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
The code is what Anthony posted, and the traceback is simply: Traceback: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response 89. response = middleware_method(request) File

Re: How to use FTP to upload files with Django?

2012-09-05 Thread Kurtis Mullins
Do you want to use FTP to serve or accept the files? On Wed, Sep 5, 2012 at 2:14 PM, Mando wrote: > Would this work -> nginx-gridfs ? > > > On Wednesday, September 5, 2012 1:09:25 AM UTC-5, Chaney Lee wrote: >> >> I just want to allow

Re: Validating GB telephone numbers in Django forms.

2012-09-05 Thread Amyth Arora
To be frank , i am not really familiar with all possibilities of GB phone numbers, if you could throw some light on this, i might be able to help ya. On Wed, Sep 5, 2012 at 5:59 PM, g1smd.1 wrote: > > Thanks for the reply and information. > > > The jQuery validation

Re: How to use FTP to upload files with Django?

2012-09-05 Thread Amyth Arora
To accept i guess as he said , he want his users to be able to upload files... On Wed, Sep 5, 2012 at 11:53 PM, Kurtis Mullins wrote: > Do you want to use FTP to serve or accept the files? > > On Wed, Sep 5, 2012 at 2:14 PM, Mando wrote: > >> Would

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
I have no idea how that would be done (neither extracting the token nor passing it via urllib). I'm googling this, but if you know and want to share, that would be great. On Wed, Sep 5, 2012 at 1:50 PM, Kurtis Mullins wrote: > Actually, I've got another idea for you.

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
I got Anthony's code to work by adding the appropriate imports: from django.contrib.auth.models import User from django.contrib.auth import get_backends from django.contrib.auth import login Thanks very much!! On Wed, Sep 5, 2012 at 1:06 PM, Larry Martell wrote: >

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
Sure, To submit a cookie, check this out: http://stackoverflow.com/questions/3334809/python-urllib2-how-to-send-cookie-with-urlopen-request To harvest a CSRF Token from a page (for example, as part of a form), here's one example solution I found:

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
Thanks Kurtis! On Wed, Sep 5, 2012 at 2:48 PM, Kurtis Mullins wrote: > Sure, > > To submit a cookie, check this out: > http://stackoverflow.com/questions/3334809/python-urllib2-how-to-send-cookie-with-urlopen-request > > To harvest a CSRF Token from a page (for

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
No problem! Alternatively, you may have some luck with Selenium ... although I have no experience here and am not sure if it can be made to record times or any other indication of performance. http://seleniumhq.org/ On Wed, Sep 5, 2012 at 2:48 PM, Larry Martell wrote: >

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
Actually, I take that back. I did some quick reading and found this from Selenium's FAQ (http://selenium-grid.seleniumhq.org/faq.html) " Selenium Grid is not designed for performance and load testing, but very efficient web acceptance/functional testing. The main reason for this is that

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Larry Martell
I have timing built into the app using Navigation Timing: http://www.html5rocks.com/en/tutorials/webperformance/basics/ It gets logged in our database. On Wed, Sep 5, 2012 at 2:58 PM, Kurtis Mullins wrote: > Actually, I take that back. I did some quick reading and

Re: bound field object - dynamic forms

2012-09-05 Thread mjh
yes it is being passed to the template as I can access the label, choices, help_text, required items of the boundfield object... i.e., {{ issue.label }} {{ issue.choices }} {{ issue.help_text }} I can get everything it seems apart from the form object !!! {{ issue }} writes to the template:

Re: Editable Tables

2012-09-05 Thread Sait Maraşlıoğlu
Thx for greata tutorial, Ive already seen mygrid :) in my website I will use mainly grid, lots of them, so I was looking for a solution to create them automatically, like django do that in its admin page. if I keep doing them manually all grid titles and column names, its almost impossible, its

Re: How to use FTP to upload files with Django?

2012-09-05 Thread Mando
here is an example http://django-mongodb.org/tutorial.html#uploading-files-to-gridfs it suggest using https://github.com/mdirolf/nginx-gridfs in production though On Wednesday, September 5, 2012 1:25:29 PM UTC-5, Amyth wrote: > > To accept i guess as he said , he want his users to be able to

Re: Validating GB telephone numbers in Django forms.

2012-09-05 Thread g1smd.1
The GB number plan is quite complicated, with a variety of number lengths and formats. Some of it is detailed here: http://www.aa-asterisk.org.uk/index.php/Number_format I already compiled all the RegEx patterns that are needed. Some are listed here:

Re: Test driven development in Django framework

2012-09-05 Thread Mike Dewhirst
On 6/09/2012 3:04am, Javier Guerra Giraldez wrote: On Wed, Sep 5, 2012 at 7:46 AM, jyria wrote: What is your experience? Is it worth it, and is it possible? I tried it and found it quite difficult to follow guideline of unit testing -- testing a unit of code, a class for

Re: Choosing a JS framework to go together with Django

2012-09-05 Thread dotnetCarpenter
Wow - a lot of answers. Great community! First of all, just to clearify. My aim is to have smooth user experience while utilizing Django and replicate as little code as possible on the client and the server. Think, reuse of server code on the client. I've looked at AngularJS and it has a

Re: Choosing a JS framework to go together with Django

2012-09-05 Thread dotnetCarpenter
Hi vicherot. I'm interested to know how you made the distinction between your dhtml/ part of your site to the shtml/ part. It looks like you pretty much used the same code base to generate the 2 versions. Can you elaborate on the Django specific parts of your implementation? Cheers, Jon Den

Re: Choosing a JS framework to go together with Django

2012-09-05 Thread dotnetCarpenter
@Peith Yes, I can see the advantage of not having to spend time working out template conflicts. But you'll have to write two sets of template code, right? One for Django and one for KnockoutJS. Or am I missing something? Cheers, Jon Den tirsdag den 4. september 2012 16.38.29 UTC+2 skrev Peith:

Re: Choosing a JS framework to go together with Django

2012-09-05 Thread dotnetCarpenter
@Kelly Nicholes In backbone.js everything is in JS, meaning that there could be no conflict between declarative code and Django handled templates. If I can expose my python models, through auto serialization (JSON) from Django, I can see a productivity win. But I'm a little afraid of the tight

uwsgi install question

2012-09-05 Thread ecs1749
I know this a Django group but uwsgi is blocking my way to seeing the next step of my first Django project. There doesn't seem to be a uwsgi group that I can see. So, I hope you don't mind. First step for the uwsgi install procedure: apt-get install build-essential python-dev libxml2-dev

Re: Development server won't work from a shared web host

2012-09-05 Thread ecs1749
Ok, ok. I now have a Ubuntu/server with a Ubuntu desktop running using oracle vm virtualbox. I know almost nothing about Linux. I don't even know how to ssh to this beast sitting in front of me. I hope this is a start... On Tuesday, September 4, 2012 9:19:57 AM UTC-7, Marcin wrote: > >

Re: uwsgi install question

2012-09-05 Thread Trevor Joynson
If there's no apt-get, you're probably on an rpm-based distribution such as CentOS. you can tell what distro you are on via "lsb_release -a". Your webhost should already have libxml2 installed as it's required by nearly everything web dev, but the header files sound like they aren't installed