Re: problems with i18n

2007-08-13 Thread Heba Farouk
django r5881 but on windows, i think now the problem is with gettext on windows because when i tried it on fedora it worked thank u all for help On 8/13/07, koenb <[EMAIL PROTECTED]> wrote: > > > Hi Heba, > > I just tried your project with django trunk r5881: I put everything in > a folder, modi

Re: Multiple primary keys

2007-08-13 Thread Lars Stavholm
Malcolm Tredinnick wrote: > On Tue, 2007-08-14 at 06:51 +0200, Lars Stavholm wrote: >> Malcolm Tredinnick wrote: >>> On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: >>> [...] You will have more difficulty with the Admin application and generic views. Both of these features

Design plus admin question

2007-08-13 Thread acidity
Hi This is more of a design question then anything. We are using Apache and mod_python in our development server. The whole Django project is kept as subfolder in the Apache data directory. So everybody out here can access it over: http://192.168.1.10/project The project is actually checked ou

Re: Multiple primary keys

2007-08-13 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 06:51 +0200, Lars Stavholm wrote: > Malcolm Tredinnick wrote: > > On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: > > [...] > >> You will have more difficulty with the Admin application and generic > >> views. Both of these features rely upon the ability to inst

Re: Accessing the content-attribute in request.FILES without loading it into memory

2007-08-13 Thread simonbun
Hi, You'll want to take a look at ticket #2070 [1] for streaming uploads. It has a working patch that will make it to trunk pretty soon I think. I'm not sure how you would handle streaming uploads directly to a S3 bucket, but it shouldn't be too hard to hack the patch from the ticket. [1] http:/

Re: Multiple primary keys

2007-08-13 Thread Lars Stavholm
Malcolm Tredinnick wrote: > On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: > [...] >> You will have more difficulty with the Admin application and generic >> views. Both of these features rely upon the ability to install URLs >> like: >> >> /path/to/object/42/ -> edit object 42 >> >

Re: Filter on related model problem...

2007-08-13 Thread Collin Grady
Regroup generates a list of dicts with two keys - grouper (the value of the field you're grouping by) and list (the list of objects that match that) So in this case, you get entries like {'grouper': , 'list': [, , ...]} :) --~--~-~--~~~---~--~~ You received this

Re: cmemcached etc

2007-08-13 Thread Victor Ng
On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > No, its not reasonable to assume people know everything about python > from day 1. I really don't think this is an issue of knowing "everything about python". Rather - it's about knowing how to use Google: http://www.google.com/search?hl=en&q

next page in this category

2007-08-13 Thread James Tauber
Imagine you have a Page model with a creation_time field and a many- to-many field of Categories. Clearly you can navigate through each page in creation order one by one with get_next_by_creation_time (which is quite awesome, really). But how might one do the same per category? i.e. for each

Re: Filter on related model problem...

2007-08-13 Thread [EMAIL PROTECTED]
Nice--I was thinking about using regroup, but I didn't think this was a "proper" use of it. Thanks! On Aug 13, 8:22 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > view: > > poems = > Poem.objects.filter(approved=True).select_related().order_by('auth_user.use > rname') > > template: > > {% regroup

Custom primary key using Oracle 10g

2007-08-13 Thread Catriona
Hello I am a beginning Django user and would appreciate help on the following issue. How do I specify a custom primary key in my model when using Oracle 10g I am using the lastest Django version from svn. Thanks for your help Catriona --~--~-~--~~~---~--~~ Yo

Re: error with Admin

2007-08-13 Thread john
On Aug 13, 11:30 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Your problem is completely unrelated to INSTALLED_APPS, if your django/ > contrib/admin/templates dir is missing. Okay, thks. It appears the Feisty django 0.96 backport is broken. Using synaptic, I removed django, then had to remove

Chak de india Video songs / Audio Songs and wallpapers

2007-08-13 Thread Super Man
Chak de india Video songs / Audio Songs and wallpapers www.FunAtoZ.com --~--~-~--~~~---~--~~ 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 uns

Chak de india Video songs / Audio Songs and wallpapers

2007-08-13 Thread Super Man
Chak de india Video songs / Audio Songs and wallpapers www.FunAtoZ.com --~--~-~--~~~---~--~~ 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 uns

Re: Filter on related model problem...

2007-08-13 Thread Carl Karsten
Collin Grady wrote: > view: > > poems = > Poem.objects.filter(approved=True).select_related().order_by('auth_user.username') > > template: > > {% regroup poems by user as grouped %} > {% for group in grouped %} > {{ group.grouper }} > {% for poem in group.list %} > {{ poem.title }} > {% endfor

Re: error with Admin

2007-08-13 Thread Collin Grady
Your problem is completely unrelated to INSTALLED_APPS, if your django/ contrib/admin/templates dir is missing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Filter on related model problem...

2007-08-13 Thread Collin Grady
view: poems = Poem.objects.filter(approved=True).select_related().order_by('auth_user.username') template: {% regroup poems by user as grouped %} {% for group in grouped %} {{ group.grouper }} {% for poem in group.list %} {{ poem.title }} {% endfor %} {% endfor %} Perhaps something like that?

Re: Filter on related model problem...

2007-08-13 Thread [EMAIL PROTECTED]
> u = User.objects.filter(poem_set__approved=True) I think you meant: u = User.objects.filter(poem__approved=True) > and then in your template, you can have something like > > {% for user in users %} >User: {{ user }} >{% for poem in user.poems %} > {% if poem.approved %} > {

Re: Importing My Own Modules

2007-08-13 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 02:10 +, Brisingman wrote: > > > On Aug 13, 9:14 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > On Tue, 2007-08-14 at 00:26 +, Brisingman wrote: > > > Hi, > > > > > Have 2 problems that may be related but definitely need resolution. > > > > > 1) Want to use

Re: Installing django on a vm using NAT - SVN 400 bad request

2007-08-13 Thread james_027
Hi, On Aug 14, 9:36 am, sanchothefat <[EMAIL PROTECTED]> wrote: > Hi, I'm trying to get django going on a debian etch vm I have which > uses NAT to access the web. I found some info that suggested using https:// > but that won't work. > Should I try ubuntu or is there something in the vm settings

Re: Importing My Own Modules

2007-08-13 Thread Brisingman
On Aug 13, 9:14 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-08-14 at 00:26 +, Brisingman wrote: > > Hi, > > > Have 2 problems that may be related but definitely need resolution. > > > 1) Want to use my central library ( /home/me/bin) with Django in > > different projects

Re: DRY? I have a field lists to manage in 4 places

2007-08-13 Thread Russell Keith-Magee
On 8/14/07, sime <[EMAIL PROTECTED]> wrote: > > Warning, devils advocate post. It's meant to be constructive > criticism. > > I have my fields listed in HTML, in forms.py (newforms), in models.py, > and in my database (post-syncdb). Four places no less. What you have described is three different

Re: error with Admin

2007-08-13 Thread john
On Aug 13, 8:28 pm, Empty <[EMAIL PROTECTED]> wrote: > On 8/13/07, john <[EMAIL PROTECTED]> wrote: > > > > Are the templates actually present in django/contrib/admin/ > > > templates/ ? > > > there is a directory /usr/lib/python2.5/site-packages/django/contrib/ > > admin/templatetags/... > > > "te

Installing django on a vm using NAT - SVN 400 bad request

2007-08-13 Thread sanchothefat
Hi, I'm trying to get django going on a debian etch vm I have which uses NAT to access the web. I found some info that suggested using https:// but that won't work. Should I try ubuntu or is there something in the vm settings I need to change? I'm still quite new to *nix but making progress so any

DRY? I have a field lists to manage in 4 places

2007-08-13 Thread sime
Warning, devils advocate post. It's meant to be constructive criticism. I have my fields listed in HTML, in forms.py (newforms), in models.py, and in my database (post-syncdb). Four places no less. Before we shout too much about DRY, newforms _for_model needs a tonne more flexibility, and syncdb

Re: Adding permissions in a fixture

2007-08-13 Thread Todd O'Bryan
On Tue, 2007-08-14 at 08:27 +0800, Russell Keith-Magee wrote: > On 8/14/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > > > I asked this before and no one answered, but after having to do this > > manually in the shell for about the fifteenth time, I'm going to ask > > again. > > Can't say I reme

Re: Multiple primary keys

2007-08-13 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 08:47 +0800, Russell Keith-Magee wrote: [...] > You will have more difficulty with the Admin application and generic > views. Both of these features rely upon the ability to install URLs > like: > > /path/to/object/42/ -> edit object 42 > > This works fine if you have a sin

Re: Importing My Own Modules

2007-08-13 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 00:26 +, Brisingman wrote: > Hi, > > Have 2 problems that may be related but definitely need resolution. > > 1) Want to use my central library ( /home/me/bin) with Django in > different projects. Tried to import a module from this library in an > app view and got an im

Accessing the content-attribute in request.FILES without loading it into memory

2007-08-13 Thread Henrik Lied
Hi there! I'm using Amazon S3 for file storage, and I have to send the file directly from request.FILES. (I could always save the file locally first, send it to Amazon and then delete it from my local server, but this would double the wait for the user.) Is there a way to only load chunks of the

Re: Multiple primary keys

2007-08-13 Thread Russell Keith-Magee
On 8/14/07, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > Hi all, > > first of all: django rocks! I'm a database application developer Glad you like it! Welcome to the community. > I know that this has been discussed on this list, but what I would > like to know now is: is there any effort going

Re: Filter on related model problem...

2007-08-13 Thread Tim Chase
> I have a "poem" model that belongs to "user". The "poem" model an > "approved" attribute. I want to print a list of users and display only > their poems that are approved. > > What do I specify in the Queryset to make this work? > > I want to do something like this: > u = User.objects.filter(p

Re: error with Admin

2007-08-13 Thread Empty
On 8/13/07, john <[EMAIL PROTECTED]> wrote: > > On Aug 13, 6:58 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > > Do you have "django.contrib.admin" in INSTALLED_APPS? > > yes > > > > Are the templates actually present in django/contrib/admin/ > > templates/ ? > > there is a directory /usr/lib/pytho

Re: Adding permissions in a fixture

2007-08-13 Thread Russell Keith-Magee
On 8/14/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > I asked this before and no one answered, but after having to do this > manually in the shell for about the fifteenth time, I'm going to ask > again. Can't say I remember seeing this question the first time round. Apologies for missing it. >

Importing My Own Modules

2007-08-13 Thread Brisingman
Hi, Have 2 problems that may be related but definitely need resolution. 1) Want to use my central library ( /home/me/bin) with Django in different projects. Tried to import a module from this library in an app view and got an import error. 2) sys.path shows /home/me/bin with the other stuff, i

a great new websit look here

2007-08-13 Thread [EMAIL PROTECTED]
http://www.pennergame.de/ref.php?uid=4762 --~--~-~--~~~---~--~~ 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: cmemcached etc

2007-08-13 Thread TheMaTrIx
No, its not reasonable to assume people know everything about python from day 1. I only just started using Python and primarily started using it because of Django. I had no problem installing Python, hooking it into Apache, configuring Django, etc etc, sys administration is my main field of exper

Over 50 million unclaimed accts. Is one yours?

2007-08-13 Thread arsrefunds
Test Message --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For

Filter on related model problem...

2007-08-13 Thread [EMAIL PROTECTED]
I have a "poem" model that belongs to "user". The "poem" model an "approved" attribute. I want to print a list of users and display only their poems that are approved. What do I specify in the Queryset to make this work? I want to do something like this: u = User.objects.filter(poem.approved=Tru

Over 50 million unclaimed accts. Is one yours?

2007-08-13 Thread arsrefunds
Test Message --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For

Over 50 million unclaimed accts. Is one yours?

2007-08-13 Thread arsrefunds
Test Message --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For

look @ this nice sit it´s great

2007-08-13 Thread pupsi
http://www.pennergame.de/ref.php?uid=4762 --~--~-~--~~~---~--~~ 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

Over 50 million unclaimed accts. Is one yours?

2007-08-13 Thread arsrefunds
Test Message --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For

Re: cmemcached etc

2007-08-13 Thread Jeremy Dunck
On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > Neither of these apps has any kind of information on their sites or in > the archives on how you can install those modules so you can enable > memcached in the django config. They seem to think that everyone knows > everything about Python or som

Re: cmemcached etc

2007-08-13 Thread Joseph Heck
What platform are you trying to install this onto? -joe On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > Ok, I've used memcached for quite some time with PHP sites and that > was rather easy. > > Now I see you can use it with Django, but to get memcached support you > need to either install

Re: error with Admin

2007-08-13 Thread john
On Aug 13, 6:58 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Do you have "django.contrib.admin" in INSTALLED_APPS? yes > Are the templates actually present in django/contrib/admin/ > templates/ ? there is a directory /usr/lib/python2.5/site-packages/django/contrib/ admin/templatetags/... "te

Adding permissions in a fixture

2007-08-13 Thread Todd O'Bryan
I asked this before and no one answered, but after having to do this manually in the shell for about the fifteenth time, I'm going to ask again. Is there a way to add user permissions to a test fixture that isn't brittle? Let me outline what I'm doing and see if I'm doing something wrong: 1. I

Re: Debugging production site.

2007-08-13 Thread TheMaTrIx
Any idea why ADMINS would fail to send out the debug or 404 PNF mails while your apps are sending email perfectly with the settings you put in your settings.py for SMTP auth? On Aug 14, 12:03 am, Matt McClanahan <[EMAIL PROTECTED]> wrote: > On Aug 13, 2:11 pm, Merric Mercer <[EMAIL PROTECTED]> wr

cmemcached etc

2007-08-13 Thread TheMaTrIx
Ok, I've used memcached for quite some time with PHP sites and that was rather easy. Now I see you can use it with Django, but to get memcached support you need to either install cmemcached or python-memcached. Neither of these apps has any kind of information on their sites or in the archives o

Re: Django database API - What is it good for?

2007-08-13 Thread TheMaTrIx
Also, if I'm not mistaken, when you use the database api, the input validation steps are taken care of by the framework, you don't just tell in the models what format fields should be in the database, but at the same time are telling the framework what input it should accept for that field. If a f

Re: Proper way to extend contrib.auth

2007-08-13 Thread Collin Grady
Copying the code out will not work. Nothing in django will be looking in your new location, so your changes will be ignored. If you absolutely must change the User model itself, you are stuck with editing the django source directly. --~--~-~--~~~---~--~~ You rece

Re: error with Admin

2007-08-13 Thread Collin Grady
Do you have "django.contrib.admin" in INSTALLED_APPS? Are the templates actually present in django/contrib/admin/ templates/ ? Are the permissions on that directory and every directory above it such that the webserver can read them? --~--~-~--~~~---~--~~ You rec

Re: Django database API - What is it good for?

2007-08-13 Thread Collin Grady
> >>> users = User.objects.filter(groups__contains="Staff") ? This line doesn't work because "groups" is a ManyToManyField, not a CharField, so __contains="Staff" doesn't make any sense. Something like users = User.objects.filter(groups__name="Staff") should work a little better :) --~--~-

Re: Generic View Pagination

2007-08-13 Thread Collin Grady
As the documentation for object_list says, it will append _list to template_object_name, so you should actually be checking "products_list" based on your line there :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Debugging production site.

2007-08-13 Thread Matt McClanahan
On Aug 13, 2:11 pm, Merric Mercer <[EMAIL PROTECTED]> wrote: > Is there anyway to trap the debug information - so it is logged - but > not visible to users? A good starting point is to use the ADMINS setting, which will give you a way to receive error reports via e-mail when debugging is off: h

Generic View Pagination

2007-08-13 Thread MikeHowarth
>From reading the documentation on generic views, I don't seem to be making much head way. Basically I'm looking to create a paginated page displaying all products within a specific category. Within my urls.py I call the category view within my app: (r'^category/(?P\d+)/$', 'eshop.shop.views.cat

Re: SlugField not prepopulating?

2007-08-13 Thread MikeHowarth
Thanks for such a quick reply Richard. Yep think it was a combination of not displaying and also not having an additional comma at the end of the prepopulate_from tuple. On Aug 13, 10:26 pm, RichardH <[EMAIL PROTECTED]> wrote: > Mike, welcome to Django. > The prepopulate_from relies on Javascr

Re: SlugField not prepopulating?

2007-08-13 Thread RichardH
Mike, welcome to Django. The prepopulate_from relies on Javascript in the admin pages, so only works in the site admin interface. However you have also set editable=False, so it will not be seen in the admin pages anyway. >From the Model Reference documentation: "SlugField ... Accepts an extra opt

Re: Django database API - What is it good for?

2007-08-13 Thread James Bennett
On 8/13/07, Amirouche <[EMAIL PROTECTED]> wrote: > What do you mean, I can't understand. OK, suppose you are running an online store, so you have a database table "orders", which lists orders customers have placed, and another "addresses" which lists the addresses to ship the orders to. To calcul

Debugging production site.

2007-08-13 Thread Merric Mercer
I'm very occasionally getting errors reported to me on our production site by our members. However, we cannot replicate the problem ourself and because debugging is turned off the members are not giving me any real clues. Is there anyway to trap the debug information - so it is logged - but

Re: Using Django to generate Flash/Flex content

2007-08-13 Thread Amirouche
On Aug 13, 8:59 pm, SamFeltus <[EMAIL PROTECTED]> wrote: > Or, am I missing something and it is a bad idea? I am curious what > more experienced coders think? > > Sam the Gardener I'm not experienced coder, but I don't think that it's a bad idea, but it looks like it's not the primary purpose

Re: Django database API - What is it good for?

2007-08-13 Thread Amirouche
On Aug 13, 3:19 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 8/13/07, sagi s <[EMAIL PROTECTED]> wrote: > > > Surely not. It is... darn - Can I just use SQL and be done with it? > > Of course. > > But keep in mind that, when programming in an object-oriented > language, it's often more us

error with Admin

2007-08-13 Thread john
I am just working on my first project. I successfully created a couple of models but get the following error when I poin the browser at /admin/ Any ideas ? thks. Running on Ubuntu Feisty w/ .96 backport. TemplateDoesNotExist at /admin/ admin/login.html Request Method: GET Request URL:

SlugField not prepopulating?

2007-08-13 Thread MikeHowarth
Hi I was wondering whether anyone could help me, I just starting out with Django and am attempting to write a simple web app. Ideally I'd like to use a slug field populated based on the name of my product. However the slug field is not being populated, my model looks like this: class Product(mo

Re: doctest and response.template and response.context problem

2007-08-13 Thread eXt
Oops.. My fault here. I just realized that everything is ok with tests, problem was with my ./manage.py shell session. Solution is to call: >>> from django.test.utils import setup_test_environment >>> setup_test_environment() Thanks for your help. Jakub On 13 Sie, 20:31, eXt <[EMAIL PROTECTED]

Great new Website

2007-08-13 Thread pupsi
http://www.pennergame.de/ref.php?uid=4762 --~--~-~--~~~---~--~~ 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

Win 3000 Dollar evey month

2007-08-13 Thread ANiME.GiRL.88
Dear I recently joined AGLOCO because of a friend recommended it to me. I am now promoting it to you because I like the idea and I want you to share in what I think will be an exciting new Internet concept. AGLOCO's story is simple: Do you realize how valuable you are? Advertisers, search

Win 3000 dollar

2007-08-13 Thread ANiME.GiRL.88
Dear I recently joined AGLOCO because of a friend recommended it to me. I am now promoting it to you because I like the idea and I want you to share in what I think will be an exciting new Internet concept. AGLOCO's story is simple: Do you realize how valuable you are? Advertisers, search

Re: Feed question

2007-08-13 Thread [EMAIL PROTECTED]
That looks like it... thanks! On Aug 12, 8:10 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > http://www.djangoproject.com/documentation/syndication_feeds/#a-compl... > > The example here is pretty much what you want, you just need to change > how you lookup the objects for the feed. --~--~--

Repair Your (Microsoft) Operating System

2007-08-13 Thread John Travolta
Windows XP tips and tricks. Learn how to bypass very common windows problems, to speed up your system and make it more reliable with useful tips and tricks. http://windowsxpsp2pro.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscrib

Multiple primary keys

2007-08-13 Thread Lars Stavholm
Hi all, first of all: django rocks! I'm a database application developer and not a web developer. I'm not even fluent in python. Despite that, the django framework has made it possible for me to develop web based database applications with relative ease. And, I can use the model and the database

Re: Django database API - What is it good for?

2007-08-13 Thread James Bennett
On 8/13/07, sagi s <[EMAIL PROTECTED]> wrote: > Surely not. It is... darn - Can I just use SQL and be done with it? Of course. But keep in mind that, when programming in an object-oriented language, it's often more useful to get back a set of domain-specific objects -- which requires using Djang

Django database API - What is it good for?

2007-08-13 Thread sagi s
I've been playing around with Django for a couple of weeks. I'm finding myself spending most of my type tinkering with the Database API to try to wrestle the information I need out of my database. At this point it looks to me like I have replaced one set of incantations (SQL) for another (Databa

Re: Using Django to generate Flash/Flex content

2007-08-13 Thread SamFeltus
Or, am I missing something and it is a bad idea? I am curious what more experienced coders think? Sam the Gardener --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: doctest and response.template and response.context problem

2007-08-13 Thread eXt
Yes, I know that. I use ./manage.py test. I'll add that my django is latest version from trunk. Any more hints? Jakub On 13 Sie, 13:19, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 8/13/07, eXt <[EMAIL PROTECTED]> wrote: > > > > > So here is a template and a context. Why I can't access

Re: Disabling python-caching with mod_python, Apache 2.2

2007-08-13 Thread [EMAIL PROTECTED]
Thank you, Ethan. On Aug 13, 8:02 pm, Ethan Miller <[EMAIL PROTECTED]> wrote: > On 8/13/07 10:55 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > However, it seems like the requested pages are cached. Not in the > > regular way though, it is as though the compiled Python procedures ar

Re: application/xhtml+xml MIME won't take

2007-08-13 Thread TheMaTrIx
For the site in question yes. It'll be an intranet site where only a tested version of Firefox is allowed for web browsing and they demanded the latest stable versions of all standards to be used. And for other sites where xhtml 1.1 is wanted, I'm planning to use a middleware that'll dynamically

Using Django to generate Flash/Flex content

2007-08-13 Thread SamFeltus
I was wondering if there was any work on the web to use Django to generate Flash and Flex content, instead of HTML content? Flash is rapidly evolving into a more technologically advanced web display technology. HTML rules for text, but is pretty much useless for displaying other sorts of ideas

Re: Disabling python-caching with mod_python, Apache 2.2

2007-08-13 Thread Ethan Miller
On 8/13/07 10:55 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > However, it seems like the requested pages are cached. Not in the > regular way though, it is as though the compiled Python procedures are > compiled, while the data is still up to date. > > I'm wondering if this is a problem

Re: basic testing procedure?

2007-08-13 Thread Tim Chase
> self.assertEquals(list(self.movie.details_genre.all()), "[ Action-Komödie>, ]") > ... > > output: > AssertionError: [, ] ! > = '[, \xc3\xb6die>]' First, it looks like you're comparing a list of objects to a string. I'm not sure if QuerySets override the magic method to determine if they're

Re: SQL problem : how to use id thats autoincremented in statement

2007-08-13 Thread Carl Karsten
[EMAIL PROTECTED] wrote: > hi all, > > i have a problem with the current project i am working on.actual thr's > a table X with a field ID(autoincrement) and a field named HASH.which > is md5 of the id.now should i have to make two queries ..first one to > find out whats going to be next id and t

Disabling python-caching with mod_python, Apache 2.2

2007-08-13 Thread [EMAIL PROTECTED]
Recently I begun using Apache instead of the debugging server that comes with Django. After having a rough time configuring and successfully installing mod_python and Django, my projects are once again working. However, it seems like the requested pages are cached. Not in the regular way though,

Over 50 million unclaimed accts. Is one yours?

2007-08-13 Thread arsrefunds
Test Message --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For

Re: no cookie vs. expired cookie

2007-08-13 Thread Bob T.
> Basically, I want a different message for people that presumably have > never seen the site, and those that just need to login again. Could you use two cookies, one that doesn't expire that let's you know that they've been to the site, and another that expires in 2 weeks? Bob --~--~

Re: application/xhtml+xml MIME won't take

2007-08-13 Thread John Lenton
On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > I'm developing a site that needs to be xhtml 1.1, my page validates > just fine except that the server keeps spitting it out as text/html > instead of application/xhtml+xml. > > How the heck do I make django set application/xhtml+xml for the pag

SQL problem : how to use id thats autoincremented in statement

2007-08-13 Thread [EMAIL PROTECTED]
hi all, i have a problem with the current project i am working on.actual thr's a table X with a field ID(autoincrement) and a field named HASH.which is md5 of the id.now should i have to make two queries ..first one to find out whats going to be next id and then insert the hash of it ..or there

Re[2]: XML output

2007-08-13 Thread Alex Nikolaenkov
Daniel, > I think you're wrong on this one ...unfortunately :) XSLT 2 and XPath > 2 are mighty things... Yeah. Checked. Just a rumor. I was so excited when heard that for the first time. However files can be processed by the third-party application supporting the 2.0 standard (Saxon f.e.) --

Re: XML output

2007-08-13 Thread Daniel Kvasnicka jr.
On Aug 12, 7:18 am, Alex Nikolaenkov <[EMAIL PROTECTED]> wrote: > You wrote 12 ??? 2007 ?., 1:41:39: > > > Alex Nikolaenkov <[EMAIL PROTECTED]> writes: > >> Hello guys, > >> I like just about everything in django, but at this point of me reading > >> django > >> book I can't imagine the way o

Re: application/xhtml+xml MIME won't take

2007-08-13 Thread TheMaTrIx
Found it DEFAULT_CONTENT_TYPE = 'application/xhtml+xml' To override the global default. On Aug 13, 5:33 pm, TheMaTrIx <[EMAIL PROTECTED]> wrote: > I'm developing a site that needs to be xhtml 1.1, my page validates > just fine except that the server keeps spitting it out as text/html > instead

Re: XML output

2007-08-13 Thread Daniel Kvasnicka jr.
On Aug 11, 11:41 am, Alex Nikolaenkov <[EMAIL PROTECTED]> wrote: > Hello guys, > I like just about everything in django, but at this point of me reading django > book I can't imagine the way of xmlizing django. > > Is there a way to use XSLT templates instead of standard django template > languag

application/xhtml+xml MIME won't take

2007-08-13 Thread TheMaTrIx
I'm developing a site that needs to be xhtml 1.1, my page validates just fine except that the server keeps spitting it out as text/html instead of application/xhtml+xml. How the heck do I make django set application/xhtml+xml for the pages it serves? I tried changing the text/html entry in my mi

Re: Re[2]: XML output

2007-08-13 Thread mcburton
> Hehe... I've heard that python already supports XSLT 2 & XPATH 2. It's > very convenient to to use these standards. BTW does python support > XQuery, XInclude, XLink, XPointer and stuff like that? Are you sure about XSLT 2 and XPATH 2? I haven't seen version 2 support in python, only XSLT and X

Re: How to rewrite SQL for Django

2007-08-13 Thread Tim Chase
>> You cannot. Django does not do aggregates like GROUP BY yet. You will >> have to use manual sql to get those values. > > Thanks for your reply. > But how to use sql together with Django so that I can use advantages > of paginator? You can inject SQL into your query with the .extra() call (I

Re: basic testing procedure?

2007-08-13 Thread patrickk
thanks. that works. now I´m getting an error due to some unicode related stuff: ... self.assertEquals(list(self.movie.details_genre.all()), "[, ]") ... output: AssertionError: [, ] ! = '[, ]' thanks, patrick On 13 Aug., 17:03, Tim Chase <[EMAIL PROTECTED]> wrote: > > now, I just ran into a pr

Re: basic testing procedure?

2007-08-13 Thread Tim Chase
> now, I just ran into a problem with unittests: > > ... > self.assertEquals(self.movie.details_country.all(), []) > ... > > the output is: > AssertionError: [] != [] > > isn´t that supposed to work? all() returns a queryset object that has list-like behaviors. However, it isn't a list and t

Re: basic testing procedure?

2007-08-13 Thread patrickk
using doctests works fine so far. now, I just ran into a problem with unittests: ... self.assertEquals(self.movie.details_country.all(), []) ... the output is: AssertionError: [] != [] isn´t that supposed to work? thanks, patrick On 13 Aug., 13:14, "Russell Keith-Magee" <[EMAIL PROTECTED]> w

Re: How to rewrite SQL for Django

2007-08-13 Thread Pythoni
On Aug 13, 2:45 am, Collin Grady <[EMAIL PROTECTED]> wrote: > You cannot. Django does not do aggregates like GROUP BY yet. You will > have to use manual sql to get those values. Thanks for your reply. But how to use sql together with Django so that I can use advantages of paginator? L. --~--

Re: problems with i18n

2007-08-13 Thread koenb
Hi Heba, I just tried your project with django trunk r5881: I put everything in a folder, modified the settings to use sqlite3, created a db, did manage.py syncdb. Then I started the development server, looked at 127.0.0.1:8000 and it seems to work just fine. What django version are you using ?

Re: Static data on django

2007-08-13 Thread Tim Chase
> I'm quite new to django, but I'm rather confident that I have looked > for it pretty well. Feel free to yell, if I'm asking a stupid > question. We'll, you've at least learned somewhere that Django shouldn't be handling your media...that's at least something :) > I cannot understand how I can

Re: Static data on django

2007-08-13 Thread [EMAIL PROTECTED]
Ok, I think I got it. django.views.static.serve. I think I can work it out from here. On Aug 13, 4:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm quite new to django, but I'm rather confident that I have looked > for it pretty well. Feel free to yell, if I'm asking a stupid > questio

Static data on django

2007-08-13 Thread [EMAIL PROTECTED]
I'm quite new to django, but I'm rather confident that I have looked for it pretty well. Feel free to yell, if I'm asking a stupid question. I cannot understand how I can tell django that /images (for example) is an images folder, located at, say, /home/guruyaya/images/ and no object should handle

  1   2   >