Re: django hosting companies

2007-08-14 Thread Jay Parlar
On 8/14/07, Ian Lawrence <[EMAIL PROTECTED]> wrote: > > ola > i have said before on this list but these > http://www.webfaction.com/ > guys are awesome...i have nothing to do with them i just respect their > service and support > []'s > Ian I'll second this. Webfaction is the way to go. They're

Re: Using Django to generate Flash/Flex content

2007-08-14 Thread arthur debert
Hi Sam. As someone who codes Actionscript for a living, I can understand where you are coming from. > > That is the point, when HTML is the lowest common denominator, a web > application is limited. HTML is evolving at a snail's pace, whereas > Flash has steadily evolved into something far more

Re: Filter on related model problem...

2007-08-14 Thread Carl Karsten
Collin Grady wrote: > 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': [, , ...]} :) > > why is it call regroup and not

Re: Deployed project keeps reloading

2007-08-14 Thread Graham Dumpleton
Apache is a multi process web server. Thus, more probable explanation is that the latter requests are being handled by a different Apache child process and thus those processes in turn need to load the data for the first time. For an explanation of the different Apache MPM models see:

Re: Using Django to generate Flash/Flex content

2007-08-14 Thread SamFeltus
"""I think there is a general reticence to move into this area, given Django's roots in web publishing, where HTML is the lowest common denominator. """ That is the point, when HTML is the lowest common denominator, a web application is limited. HTML is evolving at a snail's pace, whereas

Deployed project keeps reloading

2007-08-14 Thread Lars
Hi all, I'm running a project with a resource-intensive Django app which needs to cache some data in memory. This means the first time it handles a request it may take say 10s, but secondary requests take <1s. I'm having trouble with deploying it with apache2 and mod_python, in the sense that

Re: checking if the model instance is not saved for 1-to-1 models

2007-08-14 Thread Kai Kuehne
Sorry, On 8/15/07, Kai Kuehne <[EMAIL PROTECTED]> wrote: > self.added = models.DateTimeField(auto_now=True) I meant auto_now_add. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

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

2007-08-14 Thread sime
Encouraging to hear all the feedback here, this was really just a thought provoker (with perhaps a dash of vented frustration). Newforms is great, and it's *nearly* there. Just needs a few key enhancements before it's ready for prime time. No doubt the newforms- admin guys have been noticing

Re: next page in this category

2007-08-14 Thread James Bennett
On 8/14/07, James Tauber <[EMAIL PROTECTED]> wrote: > Okay, this is the solution I came up with: > > http://dpaste.com/16869/ I've done some similar things to account for a get_next/get_previous on a model where some objects aren't meant to be publicly visible, and remembered a little-known but

Re: Custom primary key using Oracle 10g

2007-08-14 Thread Catriona
Hi Jon Thanks for your reply. I read the article but with Oracle, a sequence and trigger needs to be created for autogenerated primary keys. If I try the code that you gave me, neither the sequence nor trigger are created - ie C:\DjangoTraining\PK>python manage.py sql test CREATE TABLE

Re: next page in this category

2007-08-14 Thread James Tauber
Okay, this is the solution I came up with: http://dpaste.com/16869/ On 14/08/2007, at 12:31 AM, James Tauber wrote: > > > 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

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

2007-08-14 Thread Pigletto
> If you wanted to use the standard form_for_* functions, that sounds > like something you could solve by creating a BaseForm which overrides > __init__ (taking any extra arguments you require,.e.g. querysets which > specify data to be used to populate a field's choices), and modifies > the

Re: Why isn't my app appearing in the admin?

2007-08-14 Thread Collin Grady
On Aug 14, 8:39 am, "Rob Hudson" <[EMAIL PROTECTED]> wrote: > Is it odd that I don't see an error? Just the admin page without the > models I'm looking for? Nope. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Generalizing media files URLs

2007-08-14 Thread Collin Grady
You've pretty much summed up your only choices that I can see :) If you like 4 the best, go with that :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Free guitars!!!!!

2007-08-14 Thread knjaz milos
http://freeguitars.blogspot.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 unsubscribe from this group, send email to

Re: Using queryset values() spanning relationships

2007-08-14 Thread Collin Grady
Author.objects.filter(book__publisher__id=1).distinct() doesn't work? --~--~-~--~~~---~--~~ 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

Free guitars!!!!!

2007-08-14 Thread knjaz milos
Custom guitar, acoustic guitar, electric guitars, reviews, specifications, pictures, prices, all here! http://pro-guitars.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Dynamic values for BaseForm

2007-08-14 Thread Robert
On 7 Sie, 17:40, Doug B <[EMAIL PROTECTED]> wrote: > form = NewsForm(request.POST, somegroup=somegroup) > > given your form __init__ definition, you are passing POST into the > spot for somegroup. > > What I did to get around this was something like this: > > class NewsBaseForm(BaseForm): >

Re: Using queryset values() spanning relationships

2007-08-14 Thread r_f_d
You should be able to do this: p = Publisher.objects.get(pk=1) authors = Author.objects.filter(book__publisher__exact = p).distinct() list = ([(a.id, a.name) for a in authors]) I don't have a python shell handy so I do not know for sure that the syntax is correct, but I do things like this all

Re: django hosting companies

2007-08-14 Thread Ian Lawrence
ola i have said before on this list but these http://www.webfaction.com/ guys are awesome...i have nothing to do with them i just respect their service and support []'s Ian On 8/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I was looking at the django friendly hosting page off the

Re: enable auto reload from the python

2007-08-14 Thread Chris Hoeppner
[EMAIL PROTECTED] escribió: > Hi, > > I am testing my Model from the python shell and I would like to know > if I could enable auto-reloading? > > Thanks, > > Julien > > > > > Auto-reloading? You mean re-importing the module when something changed. I don't know of anything like that,

Re: django hosting companies

2007-08-14 Thread Chris Hoeppner
> Are you using a django friendly hosting company? Who are they? Are > they great/ok/crappy? How much do you pay a yr? I'm hosting everything I have at media temple (mediatemple.com), and they're very nice people. I have a dedicated box, but they're working on a very nice solution to deploy

Re: Access db module

2007-08-14 Thread Carl Karsten
Tim Chase wrote: >> Someone wants to create a browser UI for an access db. can't change the db, >> even though A) access can talk to other engines via odbc and B) it will cost >> someone else more. >> >> python does odbc, there is already a MsSql_oledb for django module, so all I >> need to

Re: django hosting companies

2007-08-14 Thread Tim Chase
> Are you using a django friendly hosting company? One other distinction I would make in your data-collection is "Django-capable" versus "Django-friendly". This issue came out on the list earlier. Some providers "support" Django which means "if you can figure out how to make it run, we'll

django hosting companies

2007-08-14 Thread [EMAIL PROTECTED]
I was looking at the django friendly hosting page off the django site...but they aren't rated or anything like that. I have an idea for a site ( not related to my current employers stuff ) ... and want to find a host where I can work with the django trunk...with one mysql database... but not

Re: 0.96 tarball is corrupt

2007-08-14 Thread john
On Aug 14, 1:29 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > I've downloaded the tarball several times - each time the archiver > > shows it as corrupt (other tarballs work fine). Using Ubuntu Feisty. > > (and the Feisty backport package is broken as well). > > Given the multiple responses that

Re: Access db module

2007-08-14 Thread Tim Chase
> Someone wants to create a browser UI for an access db. can't change the db, > even though A) access can talk to other engines via odbc and B) it will cost > someone else more. > > python does odbc, there is already a MsSql_oledb for django module, so all I > need to do is make one for

Re: Access db module

2007-08-14 Thread Carl Karsten
swell. I am hoping I can use the MsSql_OLEDB code. Carl K Graham Hagger wrote: > Carl, > > Your question triggered some horrible access memories - but also > intrigued me. A quick googling brought me this link which might help > you out somewhat. > >

Re: Access db module

2007-08-14 Thread Graham Hagger
Carl, Your question triggered some horrible access memories - but also intrigued me. A quick googling brought me this link which might help you out somewhat. http://www.markcarter.me.uk/computing/python/ado.html Graham Carl Karsten wrote: > Someone wants to create a browser UI for an

enable auto reload from the python

2007-08-14 Thread [EMAIL PROTECTED]
Hi, I am testing my Model from the python shell and I would like to know if I could enable auto-reloading? Thanks, Julien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Using queryset values() spanning relationships

2007-08-14 Thread NickJ
Sorry, think I've answered my own question: Further searching found a similar request in developers a couple of months back: http://groups.google.com/group/django-developers/browse_thread/thread/ef2d981e49ba1b4d/a4c531b8b4880cd0 Which didn't get any love. So I guess I'll need to drop in to SQL

Using queryset values() spanning relationships

2007-08-14 Thread NickJ
Take 3 models: class Publisher(models.Model): name = models.CharField() class Author(models.Model): name = models.CharField() class Book(models.Model): publisher = models.ForeignKey(Publisher) authors = models.ManyToManyField(Author) i.e. a book must have one or more

Re: Doctests and fixtures

2007-08-14 Thread eXt
Thanks! On 14 Sie, 12:52, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 8/14/07, eXt <[EMAIL PROTECTED]> wrote: > > > > > But how to load fixture for doctest? Do I have to load it from > > doctest's code? There is also initial_data fixture but I don't want to > > use it for this purpose.

Re: 0.96 tarball is corrupt

2007-08-14 Thread Tim Chase
> I've downloaded the tarball several times - each time the archiver > shows it as corrupt (other tarballs work fine). Using Ubuntu Feisty. > (and the Feisty backport package is broken as well). Given the multiple responses that the tarball seems fine (tested on WinXP, OS X, FreeBSD, Ubuntu

checking if the model instance is not saved for 1-to-1 models

2007-08-14 Thread omat
Hi, In my models where I want to set the time when the instance is fist saved, I override the save() method of the model class like this: def save(self): if not self.id: self.added = datetime.now() super(MyModel, self).save() but for models that are related to another one with

Re: Weird problem with memcached enabled

2007-08-14 Thread larsholm
Hi What the error says is that it cannot add this together "time.time() + cache_timeout" because on is float and the other is a string, so I suspect that you somewhere have specified *cache_timeout* as a string in quotes instead of just a number (without quotes). Either in the settings.py or in

Generalizing media files URLs

2007-08-14 Thread Vincent Foley
Hello, My coworker and I have a sizable Django project called Gestio. We're pretty much done writing it, so now we're making sure that it'll work without hitches wherever we may install it. Thanks to the {% url %} tag, we can choose to place the application under /, /gestio, /webapps/ gestio

Re: Using Django to generate Flash/Flex content

2007-08-14 Thread John Melesky
On Aug 14, 2007, at 1:11 PM, SamFeltus wrote: > I don't understand why none of the major Python frameworks embrace > Flash/Flex wholeheartedly, especially with innovations such as > Papervision3D, which will happen in HTML when monkeys fly. Unlike HTML, SWF is essentially executable bytecode for

Re: Using Django to generate Flash/Flex content

2007-08-14 Thread Ramdas S
On 8/14/07, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > > I think there is a general reticence to move into this area, given > Django's roots in web publishing, where HTML is the lowest common > denominator. > > I can't speak on behalf of any of the developers, but I'd imagine that > the news

Using contrib.sitemaps with multiple domains

2007-08-14 Thread Jon Atkinson
Hello, More on the contrib.sitemaps framework. My personal site is available at three different URLs: jonatkinson.org jonatkinson.eu jonatkinson.co.uk The same code runs all the sites, though I have some code which inspects the request object and prints a different title based on the domain

Re: 0.96 tarball is corrupt

2007-08-14 Thread Dave Rowe
On Tue, 14 Aug 2007 12:56:14 -0500, "James Bennett" <[EMAIL PROTECTED]> wrote: > > On 8/14/07, john <[EMAIL PROTECTED]> wrote: >> I've downloaded the tarball several times - each time the archiver >> shows it as corrupt (other tarballs work fine). Using Ubuntu Feisty. >> (and the Feisty

0.96 tarball is corrupt

2007-08-14 Thread john
I've downloaded the tarball several times - each time the archiver shows it as corrupt (other tarballs work fine). Using Ubuntu Feisty. (and the Feisty backport package is broken as well). --~--~-~--~~~---~--~~ You received this message because you are

Weird problem with memcached enabled

2007-08-14 Thread TheMaTrIx
Firefox = All pages OK Internet Explorer = http://www.domain.com gives HTTP500 error with info: [error] PythonHandler django.core.handlers.modpython: Traceback (most recent call last): [error] PythonHandler django.core.handlers.modpython: File "/usr/lib/

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

2007-08-14 Thread Jonathan Buchanan
On 8/14/07, Pigletto <[EMAIL PROTECTED]> wrote: > > > Out of interest, where do you find newforms to be inflexible? Are you > > referring to the form_for_* convenience functions or the bulk of > > newforms itself? > I also found some 'inflexible' places. > > I had a lot of work with form_for_*

Re: Design plus admin question

2007-08-14 Thread Ritesh Nadhani
Okay. That was most helpful. I think I will do the same. This is much more intuitive. On 8/14/07, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > I've been experimenting with this too, and I've put a declaration of: > > live = True > > at the top of my urls.py file. Then the sections of my urls.py

Re: Painfully simple template problem

2007-08-14 Thread Wiley
Thanks - I knew there was a reason I felt stupid asking that question. It's clear now. On Aug 14, 10:15 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > You've got your inheritance backwards. > > Rendering base.html never uses base_header.html. > Renderig base_header.html would use the code from

Re: Design plus admin question

2007-08-14 Thread Jon Atkinson
I've been experimenting with this too, and I've put a declaration of: live = True at the top of my urls.py file. Then the sections of my urls.py file which change between development and live are just put inside an if else block. Remember, all the files are interpreted, so this works quite

Re: Debugging production site.

2007-08-14 Thread Merric Mercer
Just what I was looking for - many thanks MerMer Matt McClanahan wrote: > 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

Re: Design plus admin question

2007-08-14 Thread Ritesh Nadhani
Well, I can do that. I just wanted to know if that is the right way. I have total control over the server as I am the admin. Just wanted to follow the right way :) On 8/14/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > Why can't you mount it at root on the development and personal >

Re: Why isn't my app appearing in the admin?

2007-08-14 Thread Rob Hudson
On 8/14/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Unless that something is forgetting the inner Admin class, I'll wager > you've bumped into #1796. I *really* need to get myself into gear and > work on that some more. It's embarassing. > > At the moment, there's no known reliable

Re: Multiple primary keys

2007-08-14 Thread Lars Stavholm
Thanks, Michael, I'll give it a try. /Lars Michael Radziej wrote: > Hi Lars, > > I found myself in a similar position, and I'm also coming from the database > side ... funny ;-) > > I have attached a small patch that solved the problem for me and might be a > start for you, but be aware, it's

Re: Why isn't my app appearing in the admin?

2007-08-14 Thread Rob Hudson
On 8/14/07, Paul Rauch <[EMAIL PROTECTED]> wrote: > inside the model class, add the class Admin. I forgot to check that explicitly on the server but only because the admin was working locally. That would have been embarrassing though. :) Thanks, Rob

Re: pass a template to a genric_view

2007-08-14 Thread Jay Parlar
On 8/14/07, Marco A. <[EMAIL PROTECTED]> wrote: > HI ! > I have this urls.py > > (r'^10/$', > 'django.views.generic.list_detail.object_list', info_dict , > {'template':'cit_list10.html'}), > > but the genericview use the standard template ... not the template in > 'cit_list10.html'. > > I

Re: DjangoSnippets.org is down

2007-08-14 Thread James Bennett
On 8/14/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > Seems DjangoSnippets is down. > Yesterday it took 10 minutes to load a page and now its simply > erroring out. Yes, it was down. Usually, when it goes down, there is no need to send an email to this mailing list, or to me, or to ping me on IRC;

Re: Painfully simple template problem

2007-08-14 Thread Jeremy Dunck
You've got your inheritance backwards. Rendering base.html never uses base_header.html. Renderig base_header.html would use the code from base.html, but override the contents of block header. On 8/14/07, Wiley <[EMAIL PROTECTED]> wrote: > > Sorry for the newbie question here, I've searched the

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

2007-08-14 Thread Pigletto
> Out of interest, where do you find newforms to be inflexible? Are you > referring to the form_for_* convenience functions or the bulk of > newforms itself? I also found some 'inflexible' places. I had a lot of work with form_for_* methods. While using form_for_* methods there is only one place

Painfully simple template problem

2007-08-14 Thread Wiley
Sorry for the newbie question here, I've searched the group and all the documentation I can find. I'm sure I'm missing something basic. Here's the principle that I don't understand behind the practical question I'm going to ask: When a view only renders a single template, how does django "know"

Gallery for Django

2007-08-14 Thread lastmohican
Hi, maybe this is of use, I wrote a full-fledged gallery app for django and put a complete tutorial on my site: https://saschashideout.de/wiki/DjangoGalleryTutorial/ In there are also all needed hooks and an example for creating an ajax gallery.

Ga

2007-08-14 Thread lastmohican
Hi, maybe this is of use, I wrote a full-fledged gallery app for django and put a complete tutorial on my site: https://saschashideout.de/wiki/DjangoGalleryTutorial/ In there are also all needed hooks and an example for creating an ajax gallery.

Gallery for Django

2007-08-14 Thread lastmohican
Hi, maybe this is of use, I wrote a full-fledged gallery app for django and put a complete tutorial on my site: https://saschashideout.de/wiki/DjangoGalleryTutorial/ In there are also all needed hooks and an example for creating an ajax gallery.

DjangoSnippets.org is down

2007-08-14 Thread TheMaTrIx
Seems DjangoSnippets is down. Yesterday it took 10 minutes to load a page and now its simply erroring out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

pass a template to a genric_view

2007-08-14 Thread Marco A.
HI ! I have this urls.py (r'^10/$', 'django.views.generic.list_detail.object_list', info_dict , {'template':'cit_list10.html'}), but the genericview use the standard template ... not the template in 'cit_list10.html'. I doesnt find the problem Thanks for help ! Marco

Extending the model's manager methods?

2007-08-14 Thread Stefan Matthias Aust
To access a db object, there is a get() method and a get_or_create() method. I often need to test for an object or get it without failing if it doesn't exist. Of course I could do something like exists = Foo.objects.filter(id=id).count() == 1 or try: foo = Foo.objects.get(id=id)

Re: Debugging production site.

2007-08-14 Thread Deryck Hodge
On 8/13/07, TheMaTrIx <[EMAIL PROTECTED]> wrote: > > 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? Did you set your SERVER_EMAIL setting in addition to the

Is there a hook to restrict ForeignKey choices in newforms-admin?

2007-08-14 Thread AndyB
I'm using code like this to simulate row level permissions: class JobOptions (admin.ModelAdmin): def queryset(self, request): userOrg = Organisation.objects.filter(contact=request.user.id) if (request.user.id==1): # admin can edit all jobs return Job.objects.all()

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

2007-08-14 Thread sanchothefat
On Aug 14, 11:00 am, larsholm <[EMAIL PROTECTED]> wrote: > Hi, > > On Aug 14, 3: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

Feeling empty, depressed, irritable when not at the computer (((((InFffOZzzz)))))

2007-08-14 Thread ***** FreE InFoz *****
Do you know anyone who plays computer all the time? Perhaps their personal relationships, work and social life are suffering due to their desire to constantly play computer? If this is the case, this person you know may have a computer addiction. http://www.info-computeraddiction.ibiz2u.com

Re: How to make use of the hooks in newforms-admin?

2007-08-14 Thread AndyB
Actually I had tried it that way initially to no avail. Thanks to your pointer I tried again and discovered why it hadn't worked: http://code.djangoproject.com/changeset/4584/django The change_list_queryset hook as been renamed to just queryset It's working beautifully now. I'm still sticking

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

2007-08-14 Thread Henrik Lied
I've got #2070 on my django installation, but that won't help when I access the 'content' attribute. I see that snippet #370 [1] uses the FileWrapper from Django to split the file into chunks. Could that be used on the FILES-object too? [1] http://www.djangosnippets.org/snippets/365/ On Aug

Re: basic testing procedure?

2007-08-14 Thread patrickk
thanks for all the answers and your patience. got the basic testing- setup now ... patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

[Urgent] Freelance Django Developers Wanted

2007-08-14 Thread Siliconbits
[This is a repost] We are currently looking for more Django developers to join us on a freelance basis. Location is irrelevant as long as you have a fast and reliable Internet access. You will be working from home, so you should be able to work independently, but also be able to demonstrate

Re: Adding permissions in a fixture

2007-08-14 Thread Russell Keith-Magee
On 8/14/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > The only permanent solution I can think of would be to introduce some > > sort of query language into the fixtures, which is a road I'd rather > > not travel down. Any other suggestions are welcome. > > That's something I hadn't thought of,

Re: Doctests and fixtures

2007-08-14 Thread Russell Keith-Magee
On 8/14/07, eXt <[EMAIL PROTECTED]> wrote: > > But how to load fixture for doctest? Do I have to load it from > doctest's code? There is also initial_data fixture but I don't want to > use it for this purpose. Yes, you need to call management.load_data manually. The code looks something like:

Re: newforms-admin: ready for use?

2007-08-14 Thread patrickk
I see. What a bummer! On 14 Aug., 11:51, eXt <[EMAIL PROTECTED]> wrote: > And delete? Read this > thread:http://groups.google.fr/group/django-users/browse_thread/thread/6c438... > > BTW - is it possible to build custom widget (or whole custom field) > for fields in old-forms admin? > > Jakub

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

2007-08-14 Thread Jonathan Buchanan
On 8/14/07, eXt <[EMAIL PROTECTED]> wrote: > > On 14 Sie, 03:47, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: > (...) > > What you have described is three different pieces of information that > > are similar in the trivial case, and one that you don't need to > > manage. > > > > - fields in

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

2007-08-14 Thread larsholm
Hi, On Aug 14, 3: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. Are you trying to get the latest copy of django from the

Lets meet in Munich

2007-08-14 Thread Wolfram Kriesing
The Python UG is meeting in Munich (Germany) next tuesday, lets join them! I hope to see some Django ppl! """ Das vierte Usertreffen in München findet am Dienstag, den 21.08.2007 statt. Zeitpunkt wäre 18:00 und der Ort ist Zoozie'z in der Wittelbacherstraße 15. WLAN ist vorhanden, und das

Re: newforms-admin: ready for use?

2007-08-14 Thread eXt
And delete? Read this thread: http://groups.google.fr/group/django-users/browse_thread/thread/6c4383af1486b9d8/bde32ce971a21eed#bde32ce971a21eed BTW - is it possible to build custom widget (or whole custom field) for fields in old-forms admin? Jakub Wiśniowski On 14 Sie, 11:41, patrickk

newforms-admin: ready for use?

2007-08-14 Thread patrickk
we´re currently building a bigger site in django which should be online in about 4 weeks from now. my question is: would you recommend using the newforms-admin branch or stick with the current admin? btw: we´re not using anything like file-upload. edit-inline is very important though.

Doctests and fixtures

2007-08-14 Thread eXt
Hi! What is the proper way to use fixtures with doctests? For unittest we have something like: from django.test import TestCase from myapp.models import Animal class AnimalTestCase(TestCase): fixtures = ['mammals.json', 'birds'] def setUp(self): # test definitions as before

Re: Generic View Pagination

2007-08-14 Thread MikeHowarth
I'd read that as well Collin and obviously totally forgotten about. I'll give that a whirl! On Aug 13, 11:54 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > As the documentation for object_list says, it will append _list to > template_object_name, so you should actually be checking >

Re: small error in django documentation ...

2007-08-14 Thread Kenneth Gonsalves
On 14-Aug-07, at 2:47 PM, Malcolm Tredinnick wrote: >> PostgreSQL, MySQL, Oracle and SQLite (the latter doesn't require a >> separate server to be running)." (SQLite doesn't require a separate server to be running) <--- will stay true even if other rdbms names are added after 'SQLite'

Python user group meeting in Munich

2007-08-14 Thread Marek Kubica
Hi again! I'm announcing the forth Python user group meeting and I invite all Django users from Munich to come. The announce: regards, Marek

Re: Multiple primary keys

2007-08-14 Thread Michael Radziej
Hi Lars, I found myself in a similar position, and I'm also coming from the database side ... funny ;-) I have attached a small patch that solved the problem for me and might be a start for you, but be aware, it's more a crutch than a solution. - this patch won't make it into the project, so

Re: small error in django documentation ...

2007-08-14 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 09:07 +, vm wrote: > In "How to install Django -> Get your Database Running" part, it says: > "If you plan to use Django's database API functionality, you'll need > to make sure a database server is running. Django works with > PostgreSQL, MySQL, Oracle and SQLite (the

Re: Error from URLs with non-ascii characters and that need login

2007-08-14 Thread Malcolm Tredinnick
On Fri, 2007-08-10 at 05:05 -0700, web-junkie wrote: > Okay, after further investigation the error appears for me too, not > just googlebot. When I browse the site as anonymous user and click a > link with encoded Unicode in URL, and if that links needs login, I get > an error. > Seems to be a

small error in django documentation ...

2007-08-14 Thread vm
In "How to install Django -> Get your Database Running" part, it says: "If you plan to use Django's database API functionality, you'll need to make sure a database server is running. Django works with PostgreSQL, MySQL, Oracle and SQLite (the latter doesn't require a separate server to be

Using Mootools Fancy Uploader with Django

2007-08-14 Thread steviecee
Hi, Has anyone ever attempted to use Mootools FancyUploader with Django? I'm having trouble working out the best way to tackle it, theres a middleware class that aids uploads called upload.py, would it be necessery to use this? If not has anyone got any other ideas on how to implement the

Re: databrowse, coercing to Unicode:

2007-08-14 Thread Michael Radziej
Hi, this looks very similar to this ticket (though I'm not sure): http://code.djangoproject.com/ticket/5146 You might want to add your traceback as an attachment. Ah, you get tracebacks that are easier to read if you click on the link "switch to cut and paste view" (or similar, close to the

Re: Why isn't my app appearing in the admin?

2007-08-14 Thread Malcolm Tredinnick
On Tue, 2007-08-14 at 00:41 -0700, Rob Hudson wrote: > OK, this is baffling. Tonight I've been working locally adding a new > app to my project. I got enough of it going and wanted to publish to > my server. So I updated via SVN on my server, ran validate to check > for errors, then ran

Re: Custom primary key using Oracle 10g

2007-08-14 Thread Jon Atkinson
Catriona, I have very little Oracle experience, but also no reason to think that setting a custom primary key would be different from any other database backend. The documentation is here: http://www.djangoproject.com/documentation/models/custom_pk/ The primary key is set by using

Re: Ajax Form Submission Trouble

2007-08-14 Thread dor
Try this: onclick="this.disabled=true;" Notice the "disabled" instead of "disable"! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Ajax Form Submission Trouble

2007-08-14 Thread Thejaswi Puthraya
> I seem to have some terribly stupid users that repeadtly press the > submit button on an ajax comments form. How can clear the form after > the user submits the message like youtube does (they are ajax'd > aswell). I've tried onclick="this.disable=true" and all, but it > doesn't work in IE7.

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

2007-08-14 Thread eXt
On 14 Sie, 03:47, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: (...) > What you have described is three different pieces of information that > are similar in the trivial case, and one that you don't need to > manage. > > - fields in HTML - where you want to put field X. Only required if you >

Re: Tutorials

2007-08-14 Thread Thejaswi Puthraya
> I have kept quite on this email group but I have a question now, I have only > seen one tutorial for django, are there more? I am really interested in > learning and using django. Anybody done any screencasts? if so can anyone > point me in the correct direction? Check out Django

Re: Tutorials

2007-08-14 Thread CorbeChen
Hi Sean: there is a good tutorial in ibm's developerworks: Python Web frameworks, Part 1: Develop for the Web with Django and Python. http://www-128.ibm.com/developerworks/linux/library/l-django/ index.html">Develop for the Web with Django --~--~-~--~~~---~--~~

Re: Why isn't my app appearing in the admin?

2007-08-14 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob Hudson schrieb: > OK, this is baffling. Tonight I've been working locally adding a new > app to my project. I got enough of it going and wanted to publish to > my server. So I updated via SVN on my server, ran validate to check > for errors,

Tutorials

2007-08-14 Thread Sean Culver
Hey all! I have kept quite on this email group but I have a question now, I have only seen one tutorial for django, are there more? I am really interested in learning and using django. Anybody done any screencasts? if so can anyone point me in the correct direction? Thanks alot! Sean

Why isn't my app appearing in the admin?

2007-08-14 Thread Rob Hudson
OK, this is baffling. Tonight I've been working locally adding a new app to my project. I got enough of it going and wanted to publish to my server. So I updated via SVN on my server, ran validate to check for errors, then ran syncdb, the models got installed, I reloaded Apache and logged into

Ajax Form Submission Trouble

2007-08-14 Thread [EMAIL PROTECTED]
I seem to have some terribly stupid users that repeadtly press the submit button on an ajax comments form. How can clear the form after the user submits the message like youtube does (they are ajax'd aswell). I've tried onclick="this.disable=true" and all, but it doesn't work in IE7. Any

  1   2   >