Re: Response JSON Quoting

2008-04-16 Thread Szaijan
Thanks Justin. Yes, I'm certain. And my previous install was also some variety of 0.96, though I downloaded that one manually. In any case, the escape outputs to screen just fine, but I get a parse error any time I try to use it in my javascript. It would be nice if there was a built in

Re: Response JSON Quoting

2008-04-16 Thread Malcolm Tredinnick
On Wed, 2008-04-16 at 21:57 -0700, Szaijan wrote: [...] > After installing mod_python 3.3.1, reinstalling Django 0.96 (from svn > trunk), Subversion trunk isn't Django 0.96. It's Django 0.96 plus almost a year's worth of changes. > and reinstalling psycopg2 2.0.5.1, the quoting is all screwed

Re: Something wrong with dividing

2008-04-16 Thread Kenneth Gonsalves
On 17-Apr-08, at 10:57 AM, Poz wrote: > I've got a small problem. I am a newbie and I can't figure out what is > wrong with the script below. > > I'm trying to count up the "likes" and divid them by the > "likes"+"dislikes", but all I get when I divided them is > 0.0 >>> a = 1

Re: Response JSON Quoting

2008-04-16 Thread Justin Bronn
> After installing mod_python 3.3.1, reinstalling Django 0.96 (from svn > trunk), and reinstalling psycopg2 2.0.5.1, the quoting is all screwed > up and my Javascript no longer functions. Are you sure pulled 0.96 from the svn? Auto-escaping has been in trunk for 5 months now (r6671). -Justin

Re: Something wrong with dividing

2008-04-16 Thread [EMAIL PROTECTED]
When doing integer division, python returns the floor(it rounds the answer), you need to cast one of the things being divided to a float for it to return a float, pretty much remove all those int calls, and change the last line to read percentage = float(likeresults) / totalresults On Apr 17,

Something wrong with dividing

2008-04-16 Thread Poz
Hello all, I've got a small problem. I am a newbie and I can't figure out what is wrong with the script below. I'm trying to count up the "likes" and divid them by the "likes"+"dislikes", but all I get when I divided them is 0.0 Anyone have any ideas?? code is below. Thanks, poz

Response JSON Quoting

2008-04-16 Thread Szaijan
I had my first Django app running on the dev server, but in gettting mod-python installed and running I seem to have broken something... or fixed something that was broken before. Previously, when I'd send a response dictionary object from a view, I would include a field called queryJson which

Re: unsubscribe

2008-04-16 Thread Justin Lilly
How about just sending an email to the unsubscribe link at the bottom of EVERY POST yeesh. On Wed, Apr 16, 2008 at 10:21 PM, steve skelton <[EMAIL PROTECTED]> wrote: > STOP SENDING EMAILS TO [EMAIL PROTECTED] > > > > -- Justin Lilly Web Developer/Designer http://justinlilly.com

unsubscribe

2008-04-16 Thread steve skelton
STOP SENDING EMAILS TO [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

Re: Have you used OrderingField?

2008-04-16 Thread Malcolm Tredinnick
On Wed, 2008-04-16 at 06:41 -0700, Julien wrote: > Thanks Karen for the clarification! That code looked dead to me too... > is that worth filing a ticket? It's not harmful and it could well be useful to some people who are using with order_with_respect_to, for example. Regards, Malcolm --

Re: Enterprise applications with Django

2008-04-16 Thread James Bennett
On Wed, Apr 16, 2008 at 8:05 AM, Hussein B <[EMAIL PROTECTED]> wrote: > Is it possible to create enterprise applications (in the same context > of Java EE applications, highly concurrent, distributed ...) with > Python? Google seems to manage it... -- "Bureaucrat Conrad, you are

Re: Enterprise applications with Django

2008-04-16 Thread ydjango
For graphs and charts I am looking at, after reading many threads on the forum reportlab matplotlib and chartdirector I am leaning towards to chartdirector, even though it costs money , because it give me in memory, streaming, dynamic, clickable and ajax charts. Also Img tag url can point to a

Re: MySQLDB install issues on OS X 10.4

2008-04-16 Thread Graham Dumpleton
Since you appear to be using MacPorts Python, suggest you go ask them about the SDK warning and whether it is a problem or not. Graham On Apr 17, 5:11 am, Ron <[EMAIL PROTECTED]> wrote: > Hello - massively frustrated. > > Python 2.5.2 installed and running > Django latest build installed and

New youtube video

2008-04-16 Thread kkkk
New youtube video http://www.youtube.com/watch?v=tWxFZRgh664 http://www.youtube.com/watch?v=K20FaUQpCEk http://www.youtube.com/watch?v=sSutNlV4Tq0 http://www.youtube.com/watch?v=1P8wqWC7ISE http://www.youtube.com/watch?v=wS1hPZiuXnk http://www.youtube.com/watch?v=wgkDtlod8Wg

Re: Django en Dreahost

2008-04-16 Thread jonknee
You have to develop your apps specifically for GAE though, so it's not really a Django host. You can't use large parts of Django, such as the ORM. The template engine is nice and easy to use though. On Apr 16, 2:58 pm, xet7 <[EMAIL PROTECTED]> wrote: > Hi, > you could sign in to Google App

Re: Django en Dreahost

2008-04-16 Thread Justin Fagnani
I run a few Django sites on Dreamhost and the only problem I've ever had is that you need to get support to raise the Apache softlimit or you'll get a 500 error. Have you tried using the MySQL backend? I've never used Sqlite on Dreamhost, but MySQL with the mysql_old backend always works. -Justin

serving static content on Windows

2008-04-16 Thread Andre Meyer
hi all i am new to Django and trying to figure out a few things. so far, everything looks very nice. but now, i am stuck at something very simple: i cannot manage to serve static content (images, css, dojo, ...) from Django itself. i have done what is described at

Filter on ForeignKey not working

2008-04-16 Thread Brandon Taylor
Hello everyone, Here are my models: class Seminar(models.Model): title = models.CharField(max_length=255) display = models.BooleanField() def __unicode__(self): return self.title class Admin: ordering = ['title'] search_fields = ('title',) class

Re: Handle unicode in Admin application ?

2008-04-16 Thread desfrenes
Oops... never mind, it was just me using __str__ instead of __unicode__ ... On Apr 16, 10:21 pm, desfrenes <[EMAIL PROTECTED]> wrote: > Hello ! > > I have exceptions while using the admin application in django > :http://dpaste.com/45311/ > Apparently it doesn't support characters such as ù, ô,

Handle unicode in Admin application ?

2008-04-16 Thread desfrenes
Hello ! I have exceptions while using the admin application in django : http://dpaste.com/45311/ Apparently it doesn't support characters such as ù, ô, etc... Any idea ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Enterprise applications with Django

2008-04-16 Thread 小龙
Youtube ,and Google.Jobs. and Googlespot with it's platform. > > -- deSign thE fuTure http://www.freeis.cn/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: MySQLDB install issues on OS X 10.4

2008-04-16 Thread Jeff Anderson
Ron wrote: Hello - massively frustrated. Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/ MacOSX10.4u.sdk Please check your Xcode installation I'd start with the error message about a missing sdk. It might be corrupted or otherwise "messed up" That's more of an xcode

Re: Enterprise applications with Django

2008-04-16 Thread [EMAIL PROTECTED]
One thing you can do for PDF's is create an HTML page using standard django templates(or however you like) and then use html2pdf to create the pdf. On Apr 16, 2:42 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > Did you use any open source (or commercial) tools/ framework > > for dynamic reporting?

Re: Enterprise applications with Django

2008-04-16 Thread Tim Chase
> Did you use any open source (or commercial) tools/ framework > for dynamic reporting? Or did you build on your own? Which > tool/framework did u use? Most of our dynamic reporting was HTML based. We do have some that exported to "Excel XML Document" format (not OOXML) which was easy enough to

Re: Enterprise applications with Django

2008-04-16 Thread ydjango
Did you use any open source (or commercial) tools/ framework for dynamic reporting? Or did you build on your own? Which tool/framework did u use? (My app requires Dashboard with graphs,dynamic charts and dynamic reports.) Also for business rules and process flow - did u use any tools/

Re: Django en Dreahost

2008-04-16 Thread Ariel Mauricio Nunez Gomez
> :( Is the one I have hired a time ago and I can't move easily. Is there > a free hosting where I can try my django applications (not for > production sites). > Go with alwaysdata http://djangofriendly.com/hosts/alwaysdata/ Since you understand spanish and english, I'd think you won't have much

MySQLDB install issues on OS X 10.4

2008-04-16 Thread Ron
Hello - massively frustrated. Python 2.5.2 installed and running Django latest build installed and running Have tried for three days to lick the mysqldb installation, no dice. Have checked path statements, etc. I have dev tools installed. GCC 4.0.1. running build running build_py copying

Re: Django en Dreahost

2008-04-16 Thread xet7
Hi, you could sign in to Google App Engine user account waiting list, there's possibility host Django apps for free sometime in the future: http://code.google.com/appengine/ On 16 huhti, 14:07, Juanjo Conti <[EMAIL PROTECTED]> wrote: > :( Is the one I have hired a time ago and I can't move

Re: Distributed databases

2008-04-16 Thread mg
It sounds like you would either have to go with the custom driver idea or use another ORM package like Sqlalchemy(which means you don't get certain features like the contrib apps) On Apr 16, 1:04 pm, "Chris Czub" <[EMAIL PROTECTED]> wrote: > Would it be possible to replace the Django database

Re: Enterprise applications with Django

2008-04-16 Thread mg
Currently the Django ORM cannot handle composite keys. I am currently in the middle of migrating a legacy application to the django framework and have come across this limitation a couple of times. Our way around was to give up completely on the django ORM and switch over to the SqlAlchemy

Re: Distributed databases

2008-04-16 Thread Chris Czub
Would it be possible to replace the Django database driver(i.e. postgresql, sqlite, mysql) with a custom one that managed the various database connections? Similar to the SQL proxy idea(or maybe identical). On Wed, Apr 16, 2008 at 1:41 PM, RaviKondamuru <[EMAIL PROTECTED]> wrote: > > Here is the

Re: File Upload, form issue

2008-04-16 Thread Karen Tracey
On Wed, Apr 16, 2008 at 11:39 AM, sparky <[EMAIL PROTECTED]> wrote: > > Thank you for your help. > > I'm baffled. The validation error is: > > contentThis field > is required. > > which is fair enough... but it is in the form and I've selected a > file, clicked open, and clicked submit... > I've

Re: Have you used OrderingField?

2008-04-16 Thread [EMAIL PROTECTED]
FWIW this seems like something that would go hand in hand with portions of #13 On Apr 16, 12:36 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:41 AM, Julien <[EMAIL PROTECTED]> wrote: > > Thanks Karen for the clarification! That code looked dead to me too... > > is

Re: google search results, returned to your site?

2008-04-16 Thread jonknee
> I have never used it myself but there Google does offer an ajax search > api athttp://code.google.com/apis/ajaxsearch/ > Not exactly django but you could probably still get it into a > template. > Josh > Yep, that's what replaced the old SOAP API. If you have a SOAP key it still works, but you

Re: Distributed databases

2008-04-16 Thread RaviKondamuru
Here is the thread that talks about multiple database support: http://groups.google.com/group/django-users/browse_frm/thread/02fb947b2305b78f/8999719cad4a6010 Ravi. On Apr 16, 6:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello everyone, > > This is my first post on this list, so

Re: Have you used OrderingField?

2008-04-16 Thread Karen Tracey
On Wed, Apr 16, 2008 at 9:41 AM, Julien <[EMAIL PROTECTED]> wrote: > Thanks Karen for the clarification! That code looked dead to me too... > is that worth filing a ticket? > I'd say its worth removing dead code to avoid confusion, but that's just my opinion. The core devs may feel it's not

Re: Enterprise applications with Django

2008-04-16 Thread Bruno Tikami
Hussein B, You can use Twisted [1] or Pyro [2] to call python remote objects. With Pyro, you may use pickle/ unpickle to transfer data and Twisted allows you to use XMLRPC, HTTP request or whatever protocol you wnat to use. Pyro is far more simplier but Twisted si way more robust (Google uses it

Re: django vs mod_python's handlers

2008-04-16 Thread Karen Tracey
On Wed, Apr 16, 2008 at 10:53 AM, Egon Esser <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am on the way to install django on apache2/mod_python with MySQL. > > Right now, though, I feel a bit like an idiot, cause I could not find > any documentation or discussion on the internet that would give

Re: Enterprise applications with Django

2008-04-16 Thread jeffself
On Apr 16, 10:08 am, "Hernan Olivera" <[EMAIL PROTECTED]> wrote: > > If the question is "can it handle business logic rather than just > > be a system for writing blog software and news sites?" then most > > certainly. Several of the Django sites I've authored (they're > > internal rather

Re: google search results, returned to your site?

2008-04-16 Thread Josh.MIPS
I have never used it myself but there Google does offer an ajax search api at http://code.google.com/apis/ajaxsearch/ Not exactly django but you could probably still get it into a template. Josh On Apr 15, 10:03 pm, visitorQ <[EMAIL PROTECTED]> wrote: > i'm familiar with the google search

Re: File Upload, form issue

2008-04-16 Thread sparky
Thank you for your help. I'm baffled. The validation error is: contentThis field is required. which is fair enough... but it is in the form and I've selected a file, clicked open, and clicked submit... I'm probably doing something mind-meltingly stupid. hmmm. Glad the rest of it seems ok,

Wireless spy camera hidden in a toy

2008-04-16 Thread Gadget Champ
Wireless spy camera hidden in a toy One of my minor complaints about Scarlett Johansson's latest movie, The Nanny Diaries, is that a nanny cam hidden in the eyes of a teddy bear is such a painful cliche that you don't even have to see it in the trailer to know it's

Admin Site, Multiple Models One Page

2008-04-16 Thread Josh.MIPS
I was wondering if anyone knows of any way to make multiple models show up on one page in the admin interface? I am working on integrating django with a legacy php database and have two models (created using inspectdb) that belong together. Alternatively is there any way to have one model

Re: Permissions not working in Admin Interface

2008-04-16 Thread Josh.MIPS
I fixed my issue but I am still not sure what caused it. I rearranged the order of the models and then when I went in to change user permissions there were two sets of add/change/delete for the model in question, one plural and one not (the name of the model is not plural). The non-plural

django vs mod_python's handlers

2008-04-16 Thread Egon Esser
Hi all, I am on the way to install django on apache2/mod_python with MySQL. Right now, though, I feel a bit like an idiot, cause I could not find any documentation or discussion on the internet that would give me an overview on how the things below relate to one another. It seems I still need

Re: Enterprise applications with Django

2008-04-16 Thread Norman Harman
Hussein B wrote: > In Java we have a dedicated component model for business logic (EJB) > and the ability to call remotely other components > With Java, we can create 3-tier enterprise applications not to mention > a cluster of servers. > I didn't play with Django yet but it seems to me that the

Re: Distributed databases

2008-04-16 Thread Norman Harman
I've never seen anything that would make this "easy" in Django itself. You will probably have more luck looking into sql proxies. Django will talk to the proxy, the proxy will figure out what database to actually query and return results to Django. This way Django doesn't have to change,

Re: Distributed databases

2008-04-16 Thread Michael Wieher
You could probably do it by having mutliple sites and thus multiple settings.py files and somehow integrating them all together yourself but that seems like a tangled up mess On Wed, Apr 16, 2008 at 8:19 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > This is my first

Re: python manage.py runserver

2008-04-16 Thread Michael Wieher
Yeah I was gonna say, isn't there a few more lines in the traceback? Usually tracebacks take the form Originatinig-Module -Mod-that-called-it --mod-that-called-it ...etc until there's usually something you personally wrote and it ends with SomeError, line X (of your code) etc.etc. On Wed, Apr

Re: Enterprise applications with Django

2008-04-16 Thread Tim Chase
>> If the question is "can it handle business logic rather than >> just be a system for writing blog software and news sites?" >> then most certainly. Several of the Django sites I've >> authored (they're internal rather than public-facing) for my >> company which are far more process-oriented

Re: Enterprise applications with Django

2008-04-16 Thread Hernan Olivera
> If the question is "can it handle business logic rather than just > be a system for writing blog software and news sites?" then most > certainly. Several of the Django sites I've authored (they're > internal rather than public-facing) for my company which are far > more process-oriented

Re: Enterprise applications with Django

2008-04-16 Thread Tim Chase
> Is it possible to create enterprise applications (in the same context > of Java EE applications, highly concurrent, distributed ...) with > Python? > I'm still playing around Python but it seems to it is best fits in > public web sites (YouTube), news sites, forums ... while "enterprise" is a

Re: Images

2008-04-16 Thread [EMAIL PROTECTED]
I managed to get this working properly. Thanks for all the help. On Apr 16, 3:00 am, "Rishabh Manocha" <[EMAIL PROTECTED]> wrote: > Did you take a look > athttp://www.djangoproject.com/documentation/static_files/#how-to-do-it. > If you are using the dev server, this is the way to do it. > >

Re: Have you used OrderingField?

2008-04-16 Thread Julien
Sorry, here's the proper link: [1] http://blog.vicox.net/2008/03/10/orderingfield-for-django/ On Apr 16, 11:41 pm, Julien <[EMAIL PROTECTED]> wrote: > Thanks Karen for the clarification! That code looked dead to me too... > is that worth filing a ticket? > > It seemed interesting to me because

Re: Have you used OrderingField?

2008-04-16 Thread Julien
Thanks Karen for the clarification! That code looked dead to me too... is that worth filing a ticket? It seemed interesting to me because I was looking for some kind of mechanism that would make it easy to define "orderable" objects. For example, elements of a list, or children of a tree branch,

Re: python manage.py runserver

2008-04-16 Thread Karen Tracey
On Wed, Apr 16, 2008 at 7:18 AM, <[EMAIL PROTECTED]> wrote: > > when i run the command above it shows this message , what is the > problem i have successful installed django and i want step to run the > server and > $ python manage.py runserver > Validating models... > Unhandled exception in

Re: Enterprise applications with Django

2008-04-16 Thread Hussein B
In Java we have a dedicated component model for business logic (EJB) and the ability to call remotely other components With Java, we can create 3-tier enterprise applications not to mention a cluster of servers. I didn't play with Django yet but it seems to me that the presentation and logic are

Re: Distributed databases

2008-04-16 Thread Guillaume Lederrey
On 16/04/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > display this data. Would be also possible, to have different database > types (i would like to have several sqlite databases and one postgres > running)? > > I need all this for scalability reasons. I am choosing framework for

Re: Enterprise applications with Django

2008-04-16 Thread Guillaume Lederrey
On 16/04/2008, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > I guess YouTube is highly concurrent, distributed ... > > I think you can create enterprise applications with django and python. > > What do you think is possible with Java, that you can't do with python? Having your production

Distributed databases

2008-04-16 Thread [EMAIL PROTECTED]
Hello everyone, This is my first post on this list, so please by gentle and patient ;) I would like to ask, if it is possible to have DJango running on one machine, and have several databases (each with different content) on other machines. Basically I would specify a few tables, and each would

Re: Enterprise applications with Django

2008-04-16 Thread Thomas Guettler
Hussein B schrieb: > Hi. > Is it possible to create enterprise applications (in the same context > of Java EE applications, highly concurrent, distributed ...) with > Python? > I'm still playing around Python but it seems to it is best fits in > public web sites (YouTube), news sites, forums ...

Re: python manage.py runserver

2008-04-16 Thread andy baxter
[EMAIL PROTECTED] wrote: > when i run the command above it shows this message , what is the > problem i have successful installed django and i want step to run the > server and > $ python manage.py runserver > Validating models... > Unhandled exception in thread started by 0xb7a7995c> >

Enterprise applications with Django

2008-04-16 Thread Hussein B
Hi. Is it possible to create enterprise applications (in the same context of Java EE applications, highly concurrent, distributed ...) with Python? I'm still playing around Python but it seems to it is best fits in public web sites (YouTube), news sites, forums ... Thanks.

Re: google search results, returned to your site?

2008-04-16 Thread Ned Batchelder
Google Custom Search Engine seems to something like this, though I only use it in the mode where results are presented on a Google page. One of the options in the code section of the control panel is to host the results on your page using an iframe. It isn't an XML api, but you should be

Re: QS-RF: something strange happens with model inharitance

2008-04-16 Thread Michael
Sorry, sector119, I misread a few things last night and didn't quite get what you were asking. I glad to see that you have things worked out. On Wed, Apr 16, 2008 at 2:38 AM, sector119 <[EMAIL PROTECTED]> wrote: > > On Apr 15, 8:39 pm, Michael <[EMAIL PROTECTED]> wrote: > > manage.py syncdb

Re: Problem with abstract base class in QS-RF

2008-04-16 Thread Michael
Thanks for fixing that. I look forward to seeing how you did it. I really appreciate the amount of work that you have put into this. Did you at least feel a little bit guilty inside whilst writing up a > proposed solution that involved adding yet more classes? :-) > Maybe I felt a little

Re: File Upload, form issue

2008-04-16 Thread Karen Tracey
On Wed, Apr 16, 2008 at 6:55 AM, sparky <[EMAIL PROTECTED]> wrote: > > Hello all, > > I have a slightly unusual requirement: I want to use a FileField in a > form but with a TextField in the model. (The content being uploaded is > a big bit of flat text, but I want to store it in the database,

Re: File Upload, form issue

2008-04-16 Thread Chris Hoeppner
It would really help to know some more about your setup. Eg, are you using a form generator, using newforms "by hand" or are you making it all the "artisan" way, coding the html yourself? Maybe post a bit of your view code and the relevant template / form bits. ~ Chris El mié, 16-04-2008 a las

python manage.py runserver

2008-04-16 Thread ThikhoLishivha
when i run the command above it shows this message , what is the problem i have successful installed django and i want step to run the server and $ python manage.py runserver Validating models... Unhandled exception in thread started by Traceback (most recent call last): File

Re: Django en Dreahost

2008-04-16 Thread Juanjo Conti
:( Is the one I have hired a time ago and I can't move easily. Is there a free hosting where I can try my django applications (not for production sites). Maybe someone here could let me some space anywhere, I am small and don't make noise :) Thanks, Juanjo -- mi blog:

File Upload, form issue

2008-04-16 Thread sparky
Hello all, I have a slightly unusual requirement: I want to use a FileField in a form but with a TextField in the model. (The content being uploaded is a big bit of flat text, but I want to store it in the database, not as a file.) The problem is that with the code that I have together the

Re: HTTPS, Django

2008-04-16 Thread Valts Mazurs
Hi, Only Apache should be enough. Best regards, Valts. On Wed, Apr 16, 2008 at 12:22 PM, Monica Leko <[EMAIL PROTECTED]> wrote: > > Hi > > Do I need to configure Django for HTTPS, or this is only relevant to > server (Apache)? > > > > --~--~-~--~~~---~--~~ You

Re: Search Frameworks

2008-04-16 Thread rich
I'm very happy with Sphinx and David Cramer's Django-Sphinx, very easy to implement! Cheers - rich http://www.davidcramer.net/code/117/announcing-django-sphinx-200.html On Apr 16, 12:11 am, brydon <[EMAIL PROTECTED]> wrote: > I'm curious what people are currently using for search frameworks on

Re: New site - www.iau.org

2008-04-16 Thread Joe Bloggs
A nice clean site, I would be interested to know:- How long it took to develop? Which django components did you use? Any gotchas ( things that were unexpected or non-obvious ) you had on the way? Regards, Joe On Tue, Apr 15, 2008 at 11:03 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >

HTTPS, Django

2008-04-16 Thread Monica Leko
Hi Do I need to configure Django for HTTPS, or this is only relevant to server (Apache)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Images and Stylesheets

2008-04-16 Thread Reisswolf
>> The only relevant thing to note based on your earlier post would be that '/media/' is by default used by the ADMIN_MEDIA_PREFIX setting. Perhaps the 'media' URL is experiencing some stompage... << Hi Doug, For pointing out the above pitfall, I would personally like to pay for your plane

Re: QS-RF: something strange happens with model inharitance

2008-04-16 Thread sector119
I'm sorry, it was my mistake... I forgot to add abstract = True to Meta, because I do not read http://code.djangoproject.com/browser/django/branches/queryset-refactor/docs/model-api.txt, I think that everything will be just like in python class inharitance... Sorry..

Re: session data or ???

2008-04-16 Thread [EMAIL PROTECTED]
great, thank you very much Horst now it is working, but still have some question please. for instance in my views.py i have: index_globals={} Class Test: init and some more data def homepage(request): some code with variables index_globals['info'] =

Re: QS-RF: something strange happens with model inharitance

2008-04-16 Thread sector119
> I can't repeat this at all. Can you please construct a very small > example that demonstrates the problem you are seeing so we can test it. I have Organization model that was placed in "organizations.models" and table for this model were created with trunk. Than I move my project to the qs-rf

Re: One app installed several times

2008-04-16 Thread Thomas Guettler
Rajesh Dhawan schrieb: > You mention above that it was important to you to have multiple > instances of the app models in your DB. Can you explain the reason > behind this so people can see if there's a way to do this better? > > > One company holds several sub companies. There are people who

Re: Problem with abstract base class in QS-RF

2008-04-16 Thread Malcolm Tredinnick
On Tue, 2008-04-15 at 09:46 -0400, Michael wrote: [...] > I have been looking at this for a while now and I am really stumped as > to how to pull out the child model name from inside the field. I > really hope this will be an easy fix, but I am about to give up. > Should I file a ticket anyway,

Re: ModelForms: overwriting a field using parameters from the form constructor

2008-04-16 Thread Bram DUvigneau
Thanks, it works. I'm using this in the __init__ of my form, because I'm subclassing ModelForm. Bram Richard Dahl wrote: > You could do something like this: > > f = forms.form_for_model(modelname) > f.base_fields['fieldname'].queryset = (query_based_on_variable) > > I automatically do this

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-16 Thread sector119
Thanks, Malcolm, everything works fine now, I just remove 'parent' from ordering! I know about django-mptt, but I do not need tree actually, I just want to view relations... With plain ordering... --~--~-~--~~~---~--~~ You received this message because you are

Re: google search results, returned to your site?

2008-04-16 Thread Jeff Anderson
visitorQ wrote: > i'm familiar with the google search feature that allows you to search > the contents of a particular site by adding "site: www.targetsite.com" > to your search. i was wondering if it were possible to retrieve these > results, maybe via XML, and present the data within your own

Re: Images

2008-04-16 Thread Rishabh Manocha
Did you take a look at http://www.djangoproject.com/documentation/static_files/#how-to-do-it. If you are using the dev server, this is the way to do it. Hence, you should not be using anything like (http://127.0.0.1:8000/detail/...) in your view. R On Wed, Apr 16, 2008 at 4:37 AM, [EMAIL

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-16 Thread sector119
> One more thing: What are you doing with class Import? That doesn't make any > sense like that to me. It's for my own purposes. I use it to show that data can be imported into this model and to define clean methods like in newforms to clean and normalise imported data :) class Import:

Re: QS-RF: something strange happens with model inharitance

2008-04-16 Thread Malcolm Tredinnick
On Tue, 2008-04-15 at 23:38 -0700, sector119 wrote: > On Apr 15, 8:39 pm, Michael <[EMAIL PROTECTED]> wrote: > > manage.py syncdb doesn't create new columns into tables. If you already have > > the tables installed and you wish to add another column you are going to > > have to do this with SQL

Re: QS-RF: something strange happens with model inharitance

2008-04-16 Thread sector119
On Apr 15, 8:39 pm, Michael <[EMAIL PROTECTED]> wrote: > manage.py syncdb doesn't create new columns into tables. If you already have > the tables installed and you wish to add another column you are going to > have to do this with SQL directly. There are a few projects out there that > intend to

problem with a 'comma' in url

2008-04-16 Thread Scott SA
Hi, I'm working with django-tagging and for simplicity while testing and prototyping I have been using urlencoded-tags in URLs (seems that is about to change*, so this likely will be moot for me). When a tag contains a comma i.e. "smith, john" it gets encoded and works fine _until_ I want to

the problem wordpress install

2008-04-16 Thread giftidea
How to set up the config file, it is very diffcult for me ' Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

the problem wordpress install

2008-04-16 Thread giftidea
How to set up the config file, it is very diffcult for me ' Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To