Re: multiple projects on one host - admin pages appear different/plain

2007-06-13 Thread sarvi
Thanks for the Tip. The solution worked. Here it is for the benefit folks like me in the future. This works for the 2 projects on this server accessed via http://localhost/testsite/admin/ & http://localhost/mysite/admin/ And also works with the development server as well. url.py modified wi

Re: "Powered by Django" directory - Designer Wanted!

2007-06-13 Thread Ross Poulton
I've actually just put in a little mod to cause labels to show up in red when there is an error (and requried fields are bold). We'll expand on that once the new look & feel is up. There are now 6 sites listed at www.djangosites.org which has fleshed out the front page a bit. Thanks for submittin

Re: "Powered by Django" directory - Designer Wanted!

2007-06-13 Thread Ross Poulton
On Jun 14, 3:37 pm, olive <[EMAIL PROTECTED]> wrote: > in fact there was an error, but it didn't catch my eyes. > > You should make it more visible. Once wathi's design is online the error messages etc should be much clearer. Thanks for the feedback! Ross --~--~-~--~~~-

Re: multiple projects on one host - admin pages appear different/plain

2007-06-13 Thread Kelvin Nicholson
> > > SetHandler None > > Regarding the plan admin: Try adding a symlink called 'media' between your project directory and /some/path/django-src/django/contrib/admin/media/ -- or you could alternatively setup an alias in the apache config to achieve the same thing. --~--~-~--~

multiple projects on one host - admin pages appear different/plain

2007-06-13 Thread sarvi
I am new to both django/python My problem: When I uncommented the admin url for 2 separate django projects on my PC, the following URL http://localhost:8000/admin/ worked for these separate projects on the development server On the apache server though http://localhost/testsi

Re: "Powered by Django" directory - Designer Wanted!

2007-06-13 Thread olive
Ross, in fact there was an error, but it didn't catch my eyes. You should make it more visible. Nice work anyway, Olivier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

problems with a shared host setup

2007-06-13 Thread [EMAIL PROTECTED]
I've been trying to get django up and running on a shared account, and i'm having troubles - I have done everything I think I'm supposed to as per the setup documentation, but it just seems to hang when I try to access the page I setup. Here is a copy of my config and the error message I receive:

Re: Captcha module ready for testing

2007-06-13 Thread Nimrod A. Abing
Hello, I am about to try your module and I haven't downloaded it yet but I have a few questions and some suggestions. I have my own CAPTCHA module too which is slightly different from yours in some respects: 1. It does not need a dedicated directory to save image files. Images are created in-mem

Re: Problems with running Django on a remote machine

2007-06-13 Thread Graham Dumpleton
On Jun 14, 9:30 am, "Dirk van Oosterbosch, IR labs" <[EMAIL PROTECTED]> wrote: > 3. The docs say I should have Apache+mod_python as preform MPM as > oposed to worker MPM. How do I find out which of those two I've got > running here? > [Thu Jun 14 00:36:33 2007] [notice] mod_python: Creating 8 sess

Re: new Django site: critterwatch.org

2007-06-13 Thread Bryan L. Fordham
Michael Trier wrote: > Nice work. You need someone to spice up the UI, but the content rocks. > Great job. > > Thanks And yeah, I'm not a UI design guy. Given a design I can code it, but I suck at coming up with the design from scratch. So if anyone on this list wants to donate a nice desig

Re: new Django site: critterwatch.org

2007-06-13 Thread Michael Trier
Nice work. You need someone to spice up the UI, but the content rocks. Great job. Michael On 6/13/07, Bryan L. Fordham <[EMAIL PROTECTED]> wrote: > > Jeremy Dunck wrote: > > Nice. Screen-scraping the votes, or is there actually an API? > > > Screen scraping, I'm afraid. Georgia was easy, which

How to render date and time separately with newforms.SplitDateTimeWidget

2007-06-13 Thread Paul
Is this possible? The old forms module allowed you to render the date and time separately in the template for the form. Now it seems this is no longer possible. So it isn't possible for instance to render the date on one row of a table and the time on the following row just below it like: {{for

Problems with running Django on a remote machine

2007-06-13 Thread Dirk van Oosterbosch, IR labs
Hello, Django newbie here. I just started with learning and trying Django. I quite like it. I'm developing a little site on my Powerbook, but now I want to deploy it on a remote machine and I have some problems. I have three issues. 1. First I tried to use manage.py runserver on the remote ma

Re: Maintaining a resource between requests

2007-06-13 Thread Niels
On Jun 13, 8:38 pm, "Patrick Quinn" <[EMAIL PROTECTED]> wrote: > I'd like to maintain a resource (python object) between multiple > requests and multiple users. In this case, I'd like my app to > maintain a Jabber connection which is established when it's needed and > kept as long as possible. T

Re: reduce execution time of object.count()

2007-06-13 Thread Bram - Smartelectronix
simonbun wrote: > If your situation allows it, you could de-normalize and save the count > result in a separate table. Then you need to adjust the count whenever > you add / delete a row ofcourse. We keep a set of 'stats' tables which count various things in the database (nr of comments, number

database connections

2007-06-13 Thread [EMAIL PROTECTED]
Greetings. I am about 75% through creating a django application as a new section of my company's site, www.etsy.com. It's basically a CMS, something that I know django is especially well suited to (tho I can tell it would work for nearly any domain). Recently, my site ops team started asking me q

Re: Django datestyle

2007-06-13 Thread Mario Gonzalez
On 13 jun, 15:35, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > > yes, I tried that too. I tried DATE_FORMAT and DATETIME_FORMAT with. > Currently I've got this in my settings file: > DATETIME_FORMAT = ' d-m-Y ' > > But the result is a ISO style too > arg! I wrote an ungly hack to do that :( da

Re: Simple many to one relationship queries

2007-06-13 Thread vhg119
Nevermind. I should have searched a little more. I found this which explains it all: http://www.djangoproject.com/documentation/db-api/#backward I can't wait for my Django programming book to be delivered. On Jun 13, 2:24 pm, vhg119 <[EMAIL PROTECTED]> wrote: > To clarify, is there a built in

Re: Simple many to one relationship queries

2007-06-13 Thread vhg119
To clarify, is there a built in way of doing manName = "ford" m = Manufacturer.objects.filter(name = manName)[0] c = m.list_of_cars() rather than doing another search and filter through Cars? On Jun 13, 2:20 pm, vhg119 <[EMAIL PROTECTED]> wrote: > Say I have these two models: > > class Manufa

Simple many to one relationship queries

2007-06-13 Thread vhg119
Say I have these two models: class Manufacturer(models.Model): name = models.CharField( maxlength=30) class Car(models.Model): manufacturer = models.ForeignKey(Manufacturer) name = models.CharField( maxlength=30) As you can see, a car is made by one manufacturer. One manufacturer

Re: Sitemap questions (probably dumb ones)

2007-06-13 Thread John DeRosa
David Larlet wrote: > 2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> I've been playing with the sitemap stuff and am finding it to be quite >> slick. I do, however, have some questions about some unusual cases. >> >> 1)It works beautifully for listing all the detail pages that make up a >> l

Trouble with custom context processor and model

2007-06-13 Thread [EMAIL PROTECTED]
I have a custom context processor that is in my settings file, so it is being called on each request. When making any request, I receive the following error. Traceback (most recent call last): File "c:\Python24\lib\site-packages\django\core\handlers\base.py" in get_response 77. response = call

Re: new forms and read-only rendering

2007-06-13 Thread eXt
I know that, but generic view needs a template created by hand (or I missed something). I want to automatically generate some html code (as new forms do). Thanks for answer. On 13 Cze, 22:33, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > That kind of mechanism doesn't exist within Newforms. If you w

Re: new forms and read-only rendering

2007-06-13 Thread Joseph Heck
That kind of mechanism doesn't exist within Newforms. If you want to display a representation of an model object, you're better off looking at generic views for that sort of functionality. -joe On 6/13/07, eXt <[EMAIL PROTECTED]> wrote: > > Hello > >I use new forms library in my application

new forms and read-only rendering

2007-06-13 Thread eXt
Hello I use new forms library in my application (to be honest - it is my first django application) and I can't find a method to render the form as read-only (something like myform.as_table(readonly=True)). When I say read-only I mean no tags in html, just field values. Is it possible or ma

Re: Django datestyle

2007-06-13 Thread Mario Gonzalez
On 13 jun, 14:16, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > > Have you tried the DATE_FORMAT setting > (http://www.djangoproject.com/documentation/settings/#date-format)?It > doesn't change the representation stored in the DB, but *does* change > how Django displays the date. > yes, I tri

Re: Captcha module ready for testing

2007-06-13 Thread Martin Winkler
Am Wed, 13 Jun 2007 18:47:10 - schrieb JustJohnny <[EMAIL PROTECTED]>: > I just installed your captcha module. I'm not sure if it was me, my > setup or the code but I kept getting a 'help_text' error. That is very strange - help_text is part of django's newforms fields. I tried to reproduce

Re: Django datestyle

2007-06-13 Thread Mario Gonzalez
On 13 jun, 12:56, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 6/13/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > ... > > > all this thanks to other libraries (mx tools) > > I'm not sure if it'll help, but psycopg2 doesn't rely on mx. Thanks for responding, I tried that but postgresql_psyco

Re: Captcha module ready for testing

2007-06-13 Thread JustJohnny
Martin, I just installed your captcha module. I'm not sure if it was me, my setup or the code but I kept getting a 'help_text' error. I ended up removing all references to help text from captcha/__init__.py", line 169 and other areas. After I got past that, I discovered that I needed to install

Maintaining a resource between requests

2007-06-13 Thread Patrick Quinn
I'd like to maintain a resource (python object) between multiple requests and multiple users. In this case, I'd like my app to maintain a Jabber connection which is established when it's needed and kept as long as possible. This way the app can IM users as needed without having to go through the

YAHOO MAIL UNLIMITED STORAGE NOW

2007-06-13 Thread JAVED AS
YAHOO MAIL - UNLIMITED STORAGE Yahoo has just announced to make Yahoo Mail - Unlimited Storage... Read complete announcement here http://thinktarget.net -- www.thinktarget.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Django datestyle

2007-06-13 Thread Jacob Kaplan-Moss
On 6/13/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > I'm getting some problems with style DateTime field because in my > country we don't use ISO style, we use ISO, DMY instead. Have you tried the DATE_FORMAT setting (http://www.djangoproject.com/documentation/settings/#date-format)? It doesn'

Re: Django datestyle

2007-06-13 Thread Jeremy Dunck
On 6/13/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: ... > all this thanks to other libraries (mx tools) I'm not sure if it'll help, but psycopg2 doesn't rely on mx. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Django datestyle

2007-06-13 Thread Mario Gonzalez
I'm getting some problems with style DateTime field because in my country we don't use ISO style, we use ISO, DMY instead. I've got postgres installed and after activate log_statements it confirmed. Always show up: LOG: statement: SET DATESTYLE TO 'ISO' LOG: statement: BEGIN; SET TRANSACTION

Spread and Django

2007-06-13 Thread Joseph Heck
Has anyone investigated or used Spread (spread.org) as a messaging bus between systems, either using Django or not? I am looking for something to transport messages between systems - basically a message queue mechanism. Spread seemed like it might do the trick, and has some reasonable python libr

using Many-to-Many horizontal interface outside of admin

2007-06-13 Thread Jason McVetta
Forgive this question if the answer is overly obvious; but I have not yet figured it out. I want to use the horizontal M2M widget from the admin interface in my own template. The model looks like something this: class Foo(models.Model): bars = models.ManyToManyField(Bar, filter_interface=mod

Re: reduce execution time of object.count()

2007-06-13 Thread Nis Jørgensen
Nis Jørgensen skrev: > > What is missing above is creating INSERT/UPDATE/DELETE rules for the > "entity" view. I hacked together the ones below - they seem to work, > but there might be subtle points of how this works that I have not > understood. > [...] > CREATE RULE entity_insert as ON INS

Re: User Friendly Parent Categories in Admin Panel

2007-06-13 Thread Sebastian Macias
Thanks Chris. I think this is going to help a lot. I might simplify the model a little and update the wiki so others with the same question can find a quick solution. Sebastian Macias On Jun 12, 6:33 am, "Chris Moffitt" <[EMAIL PROTECTED]> wrote: > You can see the category model we use in Satchm

Re: new Django site: critterwatch.org

2007-06-13 Thread Bryan L. Fordham
Jeremy Dunck wrote: > Nice. Screen-scraping the votes, or is there actually an API? > Screen scraping, I'm afraid. Georgia was easy, which is nice since it was the logical place for me to start (I'm near Savannah, Ga.). Some other states, for instance South Carolina, have their Senate/House

Re: new Django site: critterwatch.org

2007-06-13 Thread Bryan L. Fordham
Udi wrote: > If I were you I'd get my hands on pictures of all of the "critters" > and put them next to their names. It'd spice up the UI a bit. Good idea. I've considered it, but now I think I definitely will. Thanks --B --~--~-~--~~~---~--~~ You received this m

Thanks for giving chance to be part of this exciting group

2007-06-13 Thread ilogicnet consulting
Thanks for giving chance to be part of this exciting group --~--~-~--~~~---~--~~ 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

Re: new Django site: critterwatch.org

2007-06-13 Thread Jeremy Dunck
On 6/12/07, Bryan L. Fordham <[EMAIL PROTECTED]> wrote: > It's a site to track how you state senators and congressmen vote. Right > now it only has information for Georgia, but I'm working on adding the > next state (namely, South Carolina) right now. Nice. Screen-scraping the votes, or is there

Re: Unicode-branch: testers wanted

2007-06-13 Thread ZebZiggle
Super ... thanks Malcolm! I'll start later today. -Sandy PS> Congratulations ... looks like a great addition. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

deleting rows with generic relations

2007-06-13 Thread Bram - Smartelectronix
hello everyone, Say I have Model1 Model2 Model3 And generic relations pointing to these... Like, say, Comments or Tags When deleting Model1, 2, 3 I obviously need to delete all the generic ones! Is there any smarter way to go about this except for overriding delete( ) and doing it by hand?

Re: reduce execution time of object.count()

2007-06-13 Thread Nis Jørgensen
Nis Jorgensen skrev: > Paul Rauch wrote: > >> Is there a way to reduce execution time by counting objects? >> >> it's even splitted in two queries now, with only 2474487 entries ;) >> >> in django I use "model.objects.count()" >> >> SELECT COUNT(*) FROM "rainbowtables_hashes":34.552 >> >> SELEC

Re: Noob here. Accessing data across relationships

2007-06-13 Thread [EMAIL PROTECTED]
You just need something like: {% for p in object.events.all %} {% if p.event_name %} {{ p.event_name }}, {% else %}> {% endif %} {% endfor %} You could put the whole row in the IF, if you like. On Jun 12, 8:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I

Re: Django Deployment Headache (Apache Permissions?)

2007-06-13 Thread John Morton
On Thursday 07 June 2007 08:58, [EMAIL PROTECTED] wrote: > I'm trying to push a beta build of an App I wrote to my Apache server > but, I'm running into some problems (I'm pretty sure it's permission > related) > > Here's the details. [snip] > /home/thebest/TheBest/alpha1/TheBest is the root

Re: Unicode-branch: testers wanted

2007-06-13 Thread Malcolm Tredinnick
On Wed, 2007-06-13 at 23:05 +1000, Malcolm Tredinnick wrote: > On Wed, 2007-06-13 at 05:50 -0700, ZebZiggle wrote: [...] > > > > 3. I've read http://code.djangoproject.com/wiki/UnicodeBranch but are > > there any more docs/examples of the conversion process available. > > Read the UnicodeBranch

Re: Unicode-branch: testers wanted

2007-06-13 Thread Malcolm Tredinnick
On Wed, 2007-06-13 at 05:50 -0700, ZebZiggle wrote: > Hi, I'm really stuck on a bug (decode exceptions on attempting to save > utf-8 to postgres text fields) and suspect I'm going to need the > unicode branch to solve it. But I have some questions: > > 1. When is it likely that this branch will b

Re: Unicode-branch: testers wanted

2007-06-13 Thread ZebZiggle
Hi, I'm really stuck on a bug (decode exceptions on attempting to save utf-8 to postgres text fields) and suspect I'm going to need the unicode branch to solve it. But I have some questions: 1. When is it likely that this branch will be merged with trunk? 2. How would you rank the stability of t

Re: sleep for 30 minutes?

2007-06-13 Thread Forest Bond
On Wed, Jun 13, 2007 at 12:29:10AM -0700, MartinWinkler wrote: > > > I don't recall hearing a good argument for *not* delivering the images > > dynamically, without saving them to disk. Why not do it that way? > > Since I do not want the developer to change anything in urls.py or add > some midd

Captcha module ready for testing

2007-06-13 Thread MartinWinkler
Hi all, I just uploaded the captcha module I recently mentioned to http://django.agami.at/media/captcha/ Please take a look at it and tell me what you think of it. I really hope this module can be put into the trunk on django.contrib some day. Maybe one of the lead developers can take a look too

Re: Handling Very Large File Uploads and Cookie-less Visitors

2007-06-13 Thread Nimrod A. Abing
Hello, Glad to see the issue with large file uploads is being addressed. I'll have to wait until things settle with regards to this issue and until the patch finds itself in an official stable release. As for sessions, sounds like a good idea to implement the defense against session DoS as middl

Re: session variable in template

2007-06-13 Thread Malcolm Tredinnick
On Wed, 2007-06-13 at 07:31 +, Dushyant Sharma wrote: > how can i use it with HttpResponseRedirect() > > like if i wish to use it as return HttpResponseRedirect('/someurl', > RequestContext(request)) You don't pass a context to HttpResponseRedirect because it doesn't render a template. Howe

Re: Database protection/coherency between multiple applications accessing the same tables

2007-06-13 Thread Malcolm Tredinnick
On Wed, 2007-06-13 at 00:17 -0700, womble wrote: > Thanks for the response Malcolm- comments/follow-up inline below. > > > > > You'll need to do manual transaction management, for a start, just like > > you would with any two processes from remote machines accessing the same > > data. The only p

Re: image bundle for django

2007-06-13 Thread Amit Upadhyay
On 6/12/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > > One thought I had to counter that would be to group small images > together, then medium sized images, then large images. Depending on > how many images your website actually uses, this would need to be > tuned, but maybe it would help alleviat

Fwd: Django meetup in Munich

2007-06-13 Thread Wolfram Kriesing
just to remind munich based django devs, see you tomorrow hoepfully all the best wolfram -- Forwarded message -- From: Wolfram Kriesing <[EMAIL PROTECTED]> Date: Jun 5, 2007 5:06 PM Subject: Django meetup in Munich To: django-users@googlegroups.com Hi devs in Munich, we are a

Re: Database protection/coherency between multiple applications accessing the same tables

2007-06-13 Thread James Bennett
On 6/13/07, womble <[EMAIL PROTECTED]> wrote: > It sounds like we should be looking into transactions, but I can't find > any examples regarding how to set them up, what will happen when a > transaction fails (e.g. try to update a row that has been locked by > another db client), and how to handle

Re: Database protection/coherency between multiple applications accessing the same tables

2007-06-13 Thread womble
Hi James, thanks for the reply. It sounds like we should be looking into transactions, but I can't find any examples regarding how to set them up, what will happen when a transaction fails (e.g. try to update a row that has been locked by another db client), and how to handle it. It's probably p

Re: session variable in template

2007-06-13 Thread Dushyant Sharma
how can i use it with HttpResponseRedirect() like if i wish to use it as return HttpResponseRedirect('/someurl', RequestContext(request)) is it possible On Jun 13, 5:42 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-06-12 at 13:27 +, Dushyant Sharma wrote: > > i am buildin

Re: sleep for 30 minutes?

2007-06-13 Thread MartinWinkler
> I don't recall hearing a good argument for *not* delivering the images > dynamically, without saving them to disk. Why not do it that way? Since I do not want the developer to change anything in urls.py or add some middleware or cookies - what would be the URL of this dynamically generated ima

Re: Database protection/coherency between multiple applications accessing the same tables

2007-06-13 Thread womble
Thanks for the response Malcolm- comments/follow-up inline below. > > You'll need to do manual transaction management, for a start, just like > you would with any two processes from remote machines accessing the same > data. The only point of coordination is the database, so you need to > work t