Re: problem with apache and wsgi

2010-04-25 Thread Graham Dumpleton
On Apr 26, 3:46 pm, Kenneth Gonsalves wrote: > On Friday 23 Apr 2010 6:03:33 pm Massimiliano della Rovere wrote: > > > does apache have the rights to open the file and enter the directories > > smedia and images? > > yes This sort of loss of a slash is usually caused by people writing: Alias

Setting up spatialite

2010-04-25 Thread andres osinski
Hi everyone. I've been trying (unsuccessfully) to get SQLite support for Geodjango running on my machine. I havd Django 1.1 and a SQLite database where I'm trying to sync my models. I installed spatialite from Ubuntu's repository, built SQLite and pysqlite 2.6.0 from source, and added the Google Ma

Re: admin not playing nicely with sqlite

2010-04-25 Thread Daniel Roseman
On Apr 25, 6:07 pm, Sheena wrote: > I've been experiencing some strange problems with my admin site. I > defined a few simple models and got Django to talk to an sqlite db > sucessfully, I have no problem adding and removing table entries > through the shell. I then activated the admin site and ad

Re: "view on site" erroring without sites framework

2010-04-25 Thread James Bennett
On Mon, Apr 26, 2010 at 12:59 AM, Francis Gulotta wrote: > The latest patch in that ticket's comments seems to work for me. Being new > to the project may I ask, is this ticket not closed due to lack of tests or > have a stumbled upon a design disagreement? The latest patch attached is lacking te

"view on site" erroring without sites framework

2010-04-25 Thread Francis Gulotta
I get a "DatabaseError: (1146, "Table 'project.django_site' doesn't exist")" error when clicking on a "View on site" link. I'd rather not use the framework as the url is changing around with development and deployment quite frequently. I think this is the link for the ticket around this issue. htt

Re: problem with apache and wsgi

2010-04-25 Thread Kenneth Gonsalves
On Friday 23 Apr 2010 6:03:33 pm Massimiliano della Rovere wrote: > does apache have the rights to open the file and enter the directories > smedia and images? > yes -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in -- You received this message bec

Displaying a User Confirmation (Flash style) Message after a redirect - How?

2010-04-25 Thread BrendanC
I see that the an upcoming will include a new messaging framework to display custom user messages - I think this is designed to mimic ROR. See:http://docs.djangoproject.com/en/dev/ref/contrib/messages/ In the current release V1.0 or 1.1 what is the recommended approach? On a successful save I

Re: loaddata and m2m backend tables...

2010-04-25 Thread Lachlan Musicman
On Mon, Apr 26, 2010 at 15:06, Lachlan Musicman wrote: > > How do I fill in the many to many tables, since there isn’t a model > that directly represents those tables? Ah, just import it straight into database, works a treat. I used phpmyadmin and my csv dump. No need for loaddata at all. Cheers

loaddata and m2m backend tables...

2010-04-25 Thread Lachlan Musicman
Hi, I used loaddata to insert some data into my app - now all my model related tables are correctly populated. How do I fill in the many to many tables, since there isn’t a model that directly represents those tables? I found this: http://www.b-list.org/weblog/2007/nov/21/install-time/ but it su

Re: modelForm ordering

2010-04-25 Thread backdoc
That still doesn't work. In fact, no matter which column I select, I still get the same order. This is my current code: 101 class Rotation(models.Model): 102 player = models.ForeignKey(Person, to_field='f_name', verbose_name='Player', limit_choices_to={'relationship' : 'Player'}) 103 da

Re: admin not playing nicely with sqlite

2010-04-25 Thread Karen Tracey
On Sun, Apr 25, 2010 at 1:07 PM, Sheena wrote: > I've been experiencing some strange problems with my admin site. I > defined a few simple models and got Django to talk to an sqlite db > sucessfully, I have no problem adding and removing table entries > through the shell. I then activated the adm

Re: form class

2010-04-25 Thread xpanta
Thank you very much. >From what I read, I think I have to get a better grip on django form handling. :-) On 24 Απρ, 20:39, Daniel Roseman wrote: > On Apr 23, 9:03 pm, xpanta wrote: > > > > > > > Thank you for the answers. > > > The link provided by George is an excellent resource and I shoul

Re: Test failing on @login_required view

2010-04-25 Thread eka (Esteban)
Found: Python 2.6.5 made a change to the way cookies are stored which is subtly incompatible with the test client. This problem has been fixed in the 1.1.X and trunk branches, but the fix hasn't yet made it into a formal release. If you are using 1.1.X and Python 2.6.5, you're going to

Re: Oracle cursor.execute problem

2010-04-25 Thread Tim Sawyer
Ian wrote: On Apr 23, 1:59 pm, Tim Sawyer wrote: Hello. This code works fine: >>> import cx_Oracle >>> lDsn = cx_Oracle.makedsn(lDatabaseHost, int(lDatabasePort), lDatabaseName) >>> lConnectString = "%s/%...@%s" % (lDatabaseUsername, lDatabasePassword, lDsn) >>> lConnection = cx_Oracle.co

admin not playing nicely with sqlite

2010-04-25 Thread Sheena
I've been experiencing some strange problems with my admin site. I defined a few simple models and got Django to talk to an sqlite db sucessfully, I have no problem adding and removing table entries through the shell. I then activated the admin site and added my models. I can manage users and all t

Re: Template tag to display boolean values?

2010-04-25 Thread Dmitry Dzhus
Derek wrote: > I am looking for a way to display a boolean value, with the "on" / "off" http://docs.djangoproject.com/en/1.1/ref/templates/builtins/#yesno -- Happy Hacking. http://sphinx.net.ru む -- You received this message because you are subscribed to the Google Groups "Django users" group

Interesting Django or Python Issue

2010-04-25 Thread Kenneth Loafman
Folks, I have a user command that runs, via cron, twice hourly with multiple threads and queues. At the end of the run, I wait for all of the queues to empty and join all of the threads. I close Xapian, print some log info, and delete the pid file so another instance can run. All of this is com

Template tag to display boolean values?

2010-04-25 Thread Derek
I am looking for a way to display a boolean value, with the "on" / "off" icon that the Django Admin uses in the change list, but within a template view of a single object. The documentation refers to a "custom tag", but I am not sure if the code or tag is accessible from elsewhere - there is no do

Re: auto generate "dummy" content (e.g. Lorem ipsum generator for Django)

2010-04-25 Thread Leo
Of course, a couple other things to look at that might save you from needing to regenerate the content: Fixtures: http://docs.djangoproject.com/en/dev/howto/initial-data/ South: http://south.aeracode.org/ I just started using south, and it really cleans up the database schema change workflow. Le

Re: Strange natural keys serialization XML format (Django SVN-12978)

2010-04-25 Thread h-k-ii
Thank you for your advise. I created ticket regarding 1 and 3 to http://code.djangoproject.com/ticket/13418 On Apr 16, 4:12 pm, Russell Keith-Magee wrote: > On Fri, Apr 16, 2010 at 8:40 PM, h-k-ii wrote: > > You are correct. > > > Based on my experience with natural keys, I would propose improv