Re: Problem with accessing Audio files from server.

2012-04-26 Thread Mario Gudelj
Well, you should be able see the response from the server in Firebug or Chrome Console. If it's 404 you need to look at your paths. If it's 200 you have a frontend issue. -m On 27 April 2012 14:37, atul khairnar wrote: > Yes, I am using embedded player in html in the

How to serve files to client?

2012-04-26 Thread atul khairnar
Hi all, I have a question. How to serve the files (may be image file or audio stream) to the client's browser in html? What necessary changes are need to be done in settings.py and urls.py and other files? please help. thank you. -- Atul Khairnar -- You received this message because you are

Re: Testing Google Charts within Django Unit Tests

2012-04-26 Thread Jonas Geiregat
> I'm looking for a way to test the data that a google chart displays on > a web site with a unit test. Is this at all possible, and if so, where > should I look to accomplish this? I've tried accessing the Google > visualization datatable that is used to create the chart, but it > doesn't seem

Re: Django deployment practices -- do people use setup.py?

2012-04-26 Thread Andrew Cutler
On 27 April 2012 14:27, pritesh modi wrote: > > i am looking for same actually can u provide me information about that. i > think what i understand is here finally the .py code should not go at > deployment server and only compile code is going at server and run at >

Re: Problem with accessing Audio files from server.

2012-04-26 Thread atul khairnar
Yes, I am using embedded player in html in the front end. I think the path where i am storing the files, server could no access them? On Apr 26, 2:35 pm, Mario Gudelj wrote: > How do you expect it to play? Do you have a player on the front end? Also, > if you look at the

Re: Django deployment practices -- do people use setup.py?

2012-04-26 Thread pritesh modi
Hello Andrew i am looking for same actually can u provide me information about that. i think what i understand is here finally the .py code should not go at deployment server and only compile code is going at server and run at deployment server. so can you provide me the information ? thanks

Testing Google Charts within Django Unit Tests

2012-04-26 Thread Zachary Toner
I'm looking for a way to test the data that a google chart displays on a web site with a unit test. Is this at all possible, and if so, where should I look to accomplish this? I've tried accessing the Google visualization datatable that is used to create the chart, but it doesn't seem to be a part

Can't find module

2012-04-26 Thread Gerald Klein
Hi, I am having a strange problem, I have a search module named 'search' but Django states ;No module named search here is my url url(r'^search/$', 'cms.search.views.search'), url physical is 'http://localhost/search/' Any ideas? thanks --jerry -- Gerald Klein** Linux registered user

Re: ModelForms

2012-04-26 Thread Eryn Wells
On Thu, Mar 22, 2012 at 3:46 PM, hack wrote: > I think I shot myself in the foot using ModelForms to generate all of my > html forms.  Is there any way to use a stylesheet when your forms are > generated from ModelForms? You should be able to render the forms and plug the

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Russell Keith-Magee
Ok - I think everyone needs to settle down a little bit. I've just re-read the whole thread. Here's my summary: The OP didn't post a question - they posted a source of information that they thought might be helpful for someone coming from a Struts background. Marcin gave a one line response.

Re: Group administrator

2012-04-26 Thread Russell Keith-Magee
Hi Marcin, Nobody is refusing to do anything. Google groups has a painful UI, over which we have no control, and one of the things that Google Groups doesn't make it easy to expose is the list of people who are owners and managers of the list. Why haven't we done something on our own to

Custom commands for manage.py

2012-04-26 Thread .
Hello, I have several questions connected with custom commands. 1. How to delete anything from this dict? Is there a specific method for this? [1] >>> Poll.objects.all() [] 2. How to get rid of default options (which are available from --help (traceback, verbosity etc.))? Those are handled by

DeleteView example with template

2012-04-26 Thread Steve Kilbane
Hi all, I've been banging my head against the docs, but I'm struggling with the generic views. I get the concept of the views, but I'm finding it difficult to work out what I should put in any given template. Am I right in thinking that a GET of a DeleteView should generate a form called "form"?

Re: Django + boto support

2012-04-26 Thread Brian Schott
It works very well. You'll want to do the boto calls from something like celery tasks in the background. Brian Schott bfsch...@gmail.com On Apr 26, 2012, at 1:27 PM, Nikolas Stevenson-Molnar wrote: > The S3 part at least integrates well. It's used by the django-storages > project:

Re: Django + boto support

2012-04-26 Thread Nikolas Stevenson-Molnar
The S3 part at least integrates well. It's used by the django-storages project: http://code.larlet.fr/django-storages/. Other then that, I don't see why the other parts wouldn't work as well. If your performing tasks that take a while, you'll probably want to handle them in the background rather

Django + boto support

2012-04-26 Thread Eduardo B
Hi, I am planning to develop a systems management tool for Ubuntu platform. Mitch Garnaat released a Python API that supports connecting to various Amazon Web Services. I would like to know if boto integrates very well with Django.

Re: (List objects(Recently Added - Most Common

2012-04-26 Thread Bill Freeman
For most recent N, try something like: My_Model.objects.order_by("-id")[:N] [This assumes that your database assures that primary keys increase monotonically against creation order. This is usual. If you have an unusual database in this regard, or if you wanted to limit how old an item can be

Re: (List objects(Recently Added - Most Common

2012-04-26 Thread mohamed wagdy
recently mean Nadded and most common it meanthe N object that the personused say .i makean event system and i want to know most common event in my system On 4/26/12, Bill Freeman wrote: > On 4/25/12, mohamed wagdy

Re: Django UnicodeEncodeError in errorlist

2012-04-26 Thread Bill Freeman
On 4/26/12, Andrei wrote: > Hi, > > I am having an issue with rendering Django's ErrorList if one of my error > list items is unicode. When Django renders my errorlist > > {{ form.non_field_errors }} > > it runs the following >

Web services.

2012-04-26 Thread Sherif Shehab Aldin
Hi All, I am developing some django apps, mostly they are adds to the django admin interface... What I need to do a lot is adding some Ajax calls, but I am a bit confused about weather It's better to provide those Ajax calls as web services like SOAP or REST, or I just create normal views.. I

Re: (List objects(Recently Added - Most Common

2012-04-26 Thread Bill Freeman
On 4/25/12, mohamed wagdy wrote: > please i want a help > > I have some object stored in a databaseand i want to > make List of this object (Recently Added object - > and > Most Common) And I want a better description of what you are

Re: deploying django - including third party apps

2012-04-26 Thread Shawn Milochik
There's no reason a user couldn't run virtualenv, regardless of permissions. Download the virtualenv tarball and extract it. It contains a file named virtualenv.py. Done. Run python virtualenv.py some_path and it will work. -- You received this message because you are subscribed to the

Re: Soap web services with Soaplib in Django

2012-04-26 Thread Mario Gudelj
BTW, frontend/paypal.html there is a path to one of templates. you need to supply your template path there. On 27 April 2012 00:04, Mario Gudelj wrote: > Never used that soap client, but from looking at the example on the right > you'd do something like this: > > def

Re: Soap web services with Soaplib in Django

2012-04-26 Thread Mario Gudelj
Never used that soap client, but from looking at the example on the right you'd do something like this: def your_view(request): from soaplib.client import make_service_client from foo.views import HelloWorldService client = make_service_client('http://localhost:8000/hello_world/',

Re: deploying django - including third party apps

2012-04-26 Thread Mike Ryan
If he can't install virtualenv (permission denied), he will have problems copying his modules to the dist/site-packages dir. Also, this method of manually copying is (no offence meant :-) ) rather hacky, and probably not good advice in most situations. Thomas Rega's suggestion of installing

Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-04-26 Thread Raphael
Hello djangos, I have talked to Kurtis and he thinks its a good idea to update the django developer rates for 2012. So we are going to do some worldwide statistics on the average hourly rates on django related projects in consideration of project specific parameters. (details below) As we

Soap webservice with soaplib & suds

2012-04-26 Thread Meenakshi Ithape
I use soap webservices with soaplib & create client from command prompt using suds, This working properly. Can anybody tell me how to create client through view instead of command prompt? How to pass oject to @rpc() or @soap() method of soaplib? How to display webservice response in template or

Re: serving SOAP service with soaplib, consuming with suds

2012-04-26 Thread Meenakshi Ithape
I done this & successfully run the code. I want to ask that, can it possible to create client through view instead of command prompt? On Sunday, 24 October 2010 07:54:15 UTC+5:30, Scott Hebert wrote: > > Ricko - > > You may have already gotten your answer. I believe your problem is > related

Re: Group administrator

2012-04-26 Thread Marcin Tustin
Thank you for this, but that page does not identify any of the persons as admins of this list. On Thu, Apr 26, 2012 at 13:10, kenneth gonsalves wrote: > On Thu, 2012-04-26 at 13:04 +0100, Marcin Tustin wrote: > > > On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote: >

Re: Group administrator

2012-04-26 Thread kenneth gonsalves
On Thu, 2012-04-26 at 13:04 +0100, Marcin Tustin wrote: > > On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote: > > > I shall be grateful if the Group administrator would identify > > > themself, as > > > google does not make this information public. > > > > please drop this. From long

Admin page: how to calculate a parent Field after saving all tabular inlines

2012-04-26 Thread Manuel Rocchetto
Hi to all, i have an admin page PlayerAdmin with 3 different TabularInlines. What i need is to calculate the value of a field in the Player model and save it, but for doing this i need information that are on the records of the TabularInlines, so i think that i have to save them too before

ANN: eGenix mxODBC - Python ODBC Database Interface 3.1.2

2012-04-26 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC - Python ODBC Database Interface Version 3.1.2 mxODBC is our commercially supported Python extension providing ODBC database connectivity to

Django UnicodeEncodeError in errorlist

2012-04-26 Thread Andrei
Hi, I am having an issue with rendering Django's ErrorList if one of my error list items is unicode. When Django renders my errorlist {{ form.non_field_errors }} it runs the following code : class ErrorList(list,

Re: deploying django - including third party apps

2012-04-26 Thread kamagatos
You don't absolutely need virtualenv/pip to perform this task. Just get your 3rd party apps from /usr/local/lib/python2.X/dist-packages/ (if you are using ubuntu) and copy them at the root of your hosting python path. It should do the thing. good luck On Wednesday, April 25, 2012 11:14:58 AM

Re: Group administrator

2012-04-26 Thread Marcin Tustin
On Thu, Apr 26, 2012 at 13:02, kenneth gonsalves wrote: > On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote: > > I shall be grateful if the Group administrator would identify > > themself, as > > google does not make this information public. > > please drop this. From

Re: Group administrator

2012-04-26 Thread kenneth gonsalves
On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote: > I shall be grateful if the Group administrator would identify > themself, as > google does not make this information public. please drop this. From long experience with this list I can assure you that any behavior against list policies is

Re: Django + Windows Server 2003 + IIS6 + MSSQL 2005

2012-04-26 Thread honyczek
Hi, there is a isapi library in the PyWin32 project (http://sourceforge.net/projects/pywin32/). I use that. For SQL Server connection I use django-mssql (http://code.google.com/p/django-mssql/). Jan Dne úterý, 17. dubna 2012 16:35:35 UTC+2 Enrique Juan de Dios napsal(a): > > Hello Everyone, >

Group administrator

2012-04-26 Thread Marcin Tustin
I shall be grateful if the Group administrator would identify themself, as google does not make this information public. -- Marcin Tustin Tel: 07773 787 105 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Marcin Tustin
Y On Thu, Apr 26, 2012 at 12:29, Tom Evans wrote: > On Thu, Apr 26, 2012 at 12:20 PM, Marcin Tustin > wrote: > > On Thu, Apr 26, 2012 at 09:34, Tom Evans > wrote: > >> > >> What one framework may call something may

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Tom Evans
On Thu, Apr 26, 2012 at 12:20 PM, Marcin Tustin wrote: > On Thu, Apr 26, 2012 at 09:34, Tom Evans wrote: >> >> What one framework may call something may not be what another >> framework does, and users moving between frameworks don't need to be

Re: Left Join

2012-04-26 Thread David
Thanks Tom Not the end of the world. Just wanted to be sure I hadn't misinterpreted the ORM capabilities. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Left Join

2012-04-26 Thread Tom Evans
On Thu, Apr 26, 2012 at 12:12 PM, David wrote: > I have models similar to this: > > class Person(models.Model): >     first_name = models.CharField(max_length=255) >     last_name = models.CharField(max_length=255) > > class PersonAttendance(models.Model): >  

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Marcin Tustin
On Thu, Apr 26, 2012 at 09:34, Tom Evans wrote: > > What one framework may call something may not be what another > framework does, and users moving between frameworks don't need to be > belittled just because they do not know how that framework names > things. > > If

Left Join

2012-04-26 Thread David
I have models similar to this: class Person(models.Model): first_name = models.CharField(max_length=255) last_name = models.CharField(max_length=255) class PersonAttendance(models.Model): person = models.ForeignKey(Person) worked_date = models.DateField() class

Re: Problem with accessing Audio files from server.

2012-04-26 Thread Mario Gudelj
How do you expect it to play? Do you have a player on the front end? Also, if you look at the assets loaded into a browser - you can do this with Net panel in firebug - does the file get loaded? On 26/04/2012 2:23 PM, "atul khairnar" wrote: > Hi, > I am writing Internet

Re: Soap web services with Soaplib in Django

2012-04-26 Thread Meenakshi Ithape
Thanks for the reply, I am new in django, Can you suggest me, how should i display the result which is getting from web service display it on web-browser? I am waiting for the reply. On Thursday, 26 April 2012 11:36:19 UTC+5:30, somecallitblues wrote: > > It's probably a problem with what you're

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Tom Evans
On Wed, Apr 25, 2012 at 5:50 PM, Marcin Tustin wrote: > Just because you used to do it in Struts, it does not mean that it is the > best, or even a good, way to do it in django. > That's not true, certainly not in this case. A commonly used feature in Django is the

Re: deploying django - including third party apps

2012-04-26 Thread Thomas Rega
Am 26.04.12 09:37, schrieb luke lukes: Hi Daniel. yes I have ssh access but without root or sudo privileges. it seems there's no virtualenv installed. i've tried to install virtualenv with 'pip install virtualenv' but i got this error: /error:

Re: deploying django - including third party apps

2012-04-26 Thread luke lukes
Hi Daniel. yes I have ssh access but without root or sudo privileges. it seems there's no virtualenv installed. i've tried to install virtualenv with 'pip install virtualenv' but i got this error: *error: /usr/local/lib/python2.6/site-packages/virtualenv.py: Permission denied* any help? Il

Re: Confused about GeoDjango and PostGIS

2012-04-26 Thread vishy
I am having trouble converting latitude and longitude. Both are in double precision in the table. So, I am doing this UPDATE my_table SET geom = ST_PointFromText('POINT(' || longitude ||' '|| latitude ||')', 4326) But, when I do this SELECT ST_PointFromText(geom ) FROM my_table I am getting an

Re: Ignoring empty forms in a formset

2012-04-26 Thread Martin Tiršel
Thanks, form.has_changed() seems to be the way. But I don't understand the empty_permitted attribute, it is usable only with ModelForm? I am using the formset only for mass form processing not for inserting/updating models. Martin On Wednesday, April 25, 2012 2:35:20 PM UTC+2, Tom Evans

Re: Soap web services with Soaplib in Django

2012-04-26 Thread Mario Gudelj
It's probably a problem with what you're passing to the template or what you have in your template. You should supply some actual code from your view and your template. -m On 25 April 2012 15:01, Meenakshi Ithape wrote: > I used the Soap web services with Soaplib in