Re: Django Tutorial

2007-03-17 Thread Paul Rauch
ost and gets a chance > of being taken in account by the core devs and/or people experienced > in MySQL. > > Regards, > http://code.djangoproject.com/ticket/3424 I added a comment here. mfg Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: U

problem with template {% url string %}

2007-03-19 Thread Paul Rauch
om django.conf.urls.defaults import * urlpatterns = patterns('mysite.cvh.views', (r'^$','index'), (r'^login/$','login'), ) according to the documentation {% url cvh.view.login %} should render to /test/cvh/login/ but it renders to /test/cvh/ even {% u

Re: problem with template {% url string %}

2007-03-20 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan Sagalaev schrieb: > Paul Rauch wrote: >> Template: >> {% url cvh.view.login %} > > Here you have "view". > >> urlpatterns = patterns('mysite.cvh.views', >> (r'^$','

building a django rpm, probs with adding documentation

2007-03-24 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm currently building a rpm of django for suse. But I can't figure out how to add the documentation, it doesn't get added, when running "python setup.py build" mfg Paul Rauch -BEGIN PGP SIGNATURE- Version

Re: building a django rpm, probs with adding documentation

2007-03-25 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lars Stavholm schrieb: > Paul Rauch wrote: >> Hello, >> >> I'm currently building a rpm of django for suse. >> >> But I can't figure out how to add the documentation, it doesn't get >> added, w

raw_id_admin and newforms

2007-03-29 Thread Paul Childs
My searching hasn't yielded much so here it goes... I understand that raw_admin_id is being removed and it will only be available as part of the Admin inner class in a model. Does this make it unaccessible to custom forms? If this is the case, does anyone know how to duplicate the raw_admin_id b

newforms gurus: Forms With Multiple Inline Objects?

2007-03-31 Thread Paul Childs
I am trying to make the switch to new forms with little success. I have searched the news group, looked over examples (found this to be very good http://www.djangoproject.com/documentation/models/model_forms/) and looked at some suggested tutorials. The reason for the lack of success is that a l

Re: newforms gurus: Forms With Multiple Inline Objects?

2007-04-03 Thread Paul Childs
Hi folks, Can someone suggest to me what I need to do to make this question a little more answerable? On Apr 1, 12:05 am, "Paul Childs" <[EMAIL PROTECTED]> wrote: > I am trying to make the switch to new forms with little success. I > have searched the news group, looke

how to save a dictionary in database

2007-04-07 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, >test = bla(rights={'bla':'blupp'}) >test.save() >Traceback (most recent call last): > File "", line 1, in > File "/usr/lib64/python2.5/site-packages/django/db/models/base.py", >line 242, in save >','.join(placeholders)), db_values) >

Re: how to save a dictionary in database

2007-04-07 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malcolm Tredinnick schrieb: > > Presumably you realise why this fails now: a TextField only stores text, > not Python object. > > So turn your Python object into a string: look at the Pickle and cPickle > modules in the standard Python library. > >

Re: Recieving XML Documents over HTTP

2007-04-07 Thread Paul Childs
Not sure if this is what you are looking for, but this might be a place to start... http://code.djangoproject.com/wiki/XML-RPC On Apr 6, 8:19 pm, "johnny" <[EMAIL PROTECTED]> wrote: > This may be stupid question for an expert. But stupidity is in not > asking. > > How do I access the XML Documen

repository for SuSe

2007-04-08 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I just published my repository for SuSe, till now it only contains django and psycopg2. I hope it'll be usefull http://repo.lightlan.de/ mfg Light Lan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with

Re: repository for SuSe

2007-04-09 Thread Paul Rauch
r: /var/adm/mount/AP_0x0051/noarch/python-django- > svn-4945-0.prauch.1.SuSE1020.noarch.rpm cannot be installed > > > > On Apr 8, 4:55 am, Paul Rauch <[EMAIL PROTECTED]> wrote: >> Hello, >> I just published my repository for SuSe, >> till now it only conta

Re: newb: Sending Request to Django Dev Server, From Python Terminal

2007-04-09 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 johnny schrieb: > How do you send a request to localhost djanog dev server from Python > Terminal? > I have started mysql and python dev server locally on my machine. > Now, I want to open > python terminal send a request, to 127.0.0.1:8000/putProduct

Re: Efficient method to execute a query

2007-04-15 Thread Paul Rauch
nning? > > thanks > > http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running here you can see what queries django is running. mfg Paul Rauch --~--~-~--~~~---~--~~ You received this message because you are s

Re: Django Manage.py Error After Fresh Linux Install

2007-04-16 Thread Paul Rauch
the searchpath. eg python/site-packages/django/ mfg Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iQIVAwUBRiOC6RG67lyyQrltAQL6Vg//f17wlT0eLJUCU885suOlz8Pynv6hHlsJ NCVwfTSt/6OF

Re: __str__ referencing variables in other classes

2007-04-20 Thread Paul Childs
Hey Jason Try: return self.title + self.member.first_name + self.member.last_name instead of: return self.title + member.first_name + member.last_name I think that might be the problem. Cheers, /Paul --~--~-~--~~~---~--~~ You received this message because you

Re: How-to django and regular CGI?

2007-04-23 Thread Paul Rauch
but the site is low-traffic so...) > > http://www.djangoproject.com/documentation/fastcgi/ this might answer your question greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://e

select_related() does not span apps?

2007-04-24 Thread Paul Smith
tem in the appropriate django.db.connection.queries item to verify.) Is this the expected behavior? Have others managed to get this to work? Cheers, -Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: select_related() does not span apps?

2007-04-24 Thread Paul Smith
My mistake -- I had unintentionally set 'null=True' in the ForeignKey definition. -Paul On Apr 24, 1:08 pm, Paul Smith <[EMAIL PROTECTED]> wrote: > I have a model defined with a ForeignKey that points to another model > in a different installed app. select_related() d

Re: Invalid Login and Throwing Captcha

2007-04-27 Thread Paul Rauch
he user can easily delete the cookie, better create a table which saves ip,browsertype,number of loginattempts and in which account the user tried to login. mfg Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://e

Re: Apache2/mod_python/Django problem

2007-05-04 Thread Paul Rauch
PythonDebug On > PythonInterpreter todo > > > > What am I missing in the config? > > TIA > Rolly > > is in the dir "/home/rxferoli/apps" the dir todo? inside the dir todo should be the file settings.py mfg Paul Rauch --~--~-~--~~-

Re: sitemap for django 0.95.1

2007-05-07 Thread Paul Rauch
; if you take a look at the first line of http://www.djangoproject.com/documentation/sitemaps/ there is written: "New in Django development version" meaning: No, not even in 0.96 mfg Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG w

Re: Komodo and Django - code completion / code intellisensing

2007-05-10 Thread Paul Childs
ject is located at c: \idms_project\idms then the way to import would be: sys.path.append(r"c:\idms_project"), or; 2. Follow the directions here: http://www.imladris.com/Scripts/PythonForWindows.html to add the path to the PYTHONPATH in the windows registry. /Paul On May 9

Re: Different django versions on same host

2007-05-14 Thread Paul Rudin
orestis <[EMAIL PROTECTED]> writes: > Hello, > > I think this will be easy to do, but I just want to check: > > Is it possible to have different Django versions on the same host, and > point my sites to different versions ? > > I'd like to use bleeding edge for personal stuff (yay for > experimen

Re: My Learning Path

2007-05-19 Thread Paul Rudin
chell <[EMAIL PROTECTED]> writes: > > Maybe you guys could point me to some ressources and provide the order > in which I should work through them in order to learn Django > properly. > I'd suggest working through the python tutorial first , and then the djan

faster serving of static files with django/modpython

2007-05-19 Thread Paul Rudin
I know that serving static files isn't recommended, but for various reasons people do it sometimes anyway. I had a little poke around in the code and noticed that for mod_python at least it's pretty easy to improve the performance from the current situation. I simply subclassed HttpResponse to

problems using django on lighttpd with fastcig

2007-05-29 Thread Paul Rauch
/wiki/InitdScriptForLinux but has been modified a bit. greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iQIVAwUBRlxilxG67lyyQrltAQJq+RAAkmCBBDlniY2AjsM6S1UGvGW7JvOUQew0 8U9SXb0JcIQ

Re: problems using django on lighttpd with fastcig

2007-05-29 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kelvin Nicholson schrieb: > On Tue, 2007-05-29 at 19:27 +0200, Paul Rauch wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hello list ;) >> > > Howdy. > > I just took a quick browse throug

Directed graph implementations for Django

2007-09-16 Thread Paul Dorman
Hi all, definite newbie here. I'd like to implement a category type system in Django. I've looked in the cookbook and Googled a bit, but to no avail. What I'm after should be pretty simple: a directed graph for categories, where objects and perhaps categories can be a member of one or more categor

Re: Off Topic: Slug regular expression

2007-10-31 Thread Paul Rauch
email to [EMAIL PROTECTED] For more options, > visit this group at http://groups.google.com/group/django-users?hl=en > -~--~~~~--~~--~--~--- > they match the same. greetz Paul Rauch signature.asc Description: PGP signature

cache middleware and middlewareorder

2007-12-05 Thread Paul Rauch
dleware.AuthenticationMiddleware' >before the CacheMiddleware. the only way to get a working djangoinstance is to put sessionmiddleware _before_ cachemiddleware, what you shouldn't do according to the docs. is this a mistake in the docs or an error in django? greetz Paul Rauch signature.asc Description: PGP signature

Re: Windows XP and Django

2006-09-27 Thread Paul Barry
I actually just got python and django running on my Windows XP box no problem. I kept notes of my setup, here they are, hopefully you find them helpful. 1. Install Python 2.4 http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi I put it in the default location of c:\Python24. If you don't

acts_as_list?

2006-09-28 Thread Paul Barry
Does django has something like the rails ActiveRecord acts_as_list? For those who don't know what acts_as_list is, it gives you the api for dealing with an ordered list of objects. For example, think if was modeling a book. I would have a Book object with a one to of a simple Netflix queue. Yo

Many-to-Many with Intermediate Table Bug in Admin in Django 0.95?

2006-09-29 Thread Paul Childs
sure if they address the same circumstances. Thanks, /Paul Models: - from django.db import models class Action(models.Model): name = models.CharField(maxlength=20) class Admin: pass class ReferenceDocument(models.Model): document_n

Re: Many-to-Many with Intermediate Table Bug in Admin in Django 0.95?

2006-09-30 Thread Paul Childs
home and there were no problems. Thanks for saving me a lot of time. Cheers, /Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

customizing the admin interface

2006-10-02 Thread Paul Barry
Is the admin interface customizable at all? Specifically: 1. Can you create a workflow, like step 1, step 2, step 3, then save object? 2. Can you create a lookup select for a foreign key? For example, if I have an object that has a ForeignKey and there are 10,000 instances of the foreign key

Rendering Many-to-Many with raw_id_admin=True in Template

2006-10-04 Thread Paul Childs
I have a Many-to-Many relationship between two models, Action and Part (see below). Part has thousands of records so I am using "raw_id_admin=True". This works great in the admin. I am using a generic view to create an update form for an Action. This works fine but it only displays the part ids

Re: Rendering Many-to-Many with raw_id_admin=True in Template

2006-10-04 Thread Paul Childs
Sorry to be a pest folks. I had forgotten that the {{object}} was still accessible. So to get what I want I just had to do this: {% for part in object.part.all %} {{part}} {% endfor %} --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Django's target applications?

2006-10-06 Thread Paul Barry
The social networking site with ~1 millions users, are you referring to grono.net? The action of the login page is do-login.jsp and the Server header is "Apache-Coyote/1.1". Melt points to a MovableType blog. On 10/6/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 10/6/06, Serg Kovrov <[EMA

Re: customizing the admin interface

2006-10-06 Thread Paul Barry
hole new custom admin interface, is that true? On 10/3/06, Michael <[EMAIL PROTECTED]> wrote: > > > On 10/3/06, Paul Barry <[EMAIL PROTECTED]> wrote: > > > > Is the admin interface customizable at all? Specifically: > > > > 1. Can you create a workflow

Re: Django's target applications?

2006-10-06 Thread Paul Barry
The link on http://code.djangoproject.com/wiki/DjangoPoweredSites points to the blog. I guess that link should be updated. On 10/6/06, Antonio Cavedoni <[EMAIL PROTECTED]> wrote: > > On 6 Oct 2006, at 22:02, Paul Barry wrote: > > The social networking site with ~1 milli

AttributeError thrown by Validator

2006-10-13 Thread Paul Childs
I am sure that I have read everything there is available in the newsgroup and docs concerning uploading files. If I missed something I apologize in advance. Right now all I am trying to do is upload a file and use the manipulator to validate that it is not missing. Everything seems to be working

Re: AttributeError thrown by Validator

2006-10-14 Thread Paul Childs
Thanks a million Rajesh! It is so great to have such a helpful community. Cheers, /Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: How much do you cost?

2006-11-11 Thread Paul Smith
eelancer or agency. Bad design can make a waste of your good engineering and vice-versa. Anyway, HTH.--PPS: IOW, double your budget and add a zero. :) --Paul Smith[EMAIL PROTECTED] --~--~-~--~~~---~--~~  You received this message because you are subscribed to the Google Groups

Re: ./manage.py dbdump > mydata.sql

2006-11-17 Thread Paul Smith
That's an awesome idea. Thank you for working on that, Russ... be sure and post to the list when you're ready to go. --P -- Paul Smith [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

General File Upload Questions.

2006-11-30 Thread Paul Childs
more features than I need. I would just like to put a cap on the size of an uploaded file and stop the upload *before* the whole file is sent to the web server and handed over to the view. Thanks, /Paul Traceback (most recent call last): File "c:\python24\lib\site-packages\django-0.

Re: General File Upload Questions.

2006-12-01 Thread Paul Childs
Paul Childs wrote: > 1. Is there an upper limit to the size of files that one can upload to > Django? I am able to upload files of about 5 MB or less with no > problems, but when I try to upload a file (to the Django dev server) > which is larger I get an error message from Django

Apache ErrorDocument Question.

2006-12-01 Thread Paul Childs
Sorry if this is a tad off topic... I have Django 0.95 up and running with no problems under Apache2 with flatpages installed and also running fine. I have limited uploads by adding the setting LimitRequestBody 5242880 to the httpd.conf file, which works great. If I try to upload a large file I

Re: Help with Contact Form

2006-12-01 Thread Paul Childs
Assuming that you are using the example exactly... Off-the-top-of-my-head try something like: return render_to_response('thankyou.html', {'my_form_data': new_data}) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Apache ErrorDocument Question.

2006-12-01 Thread Paul Childs
It looks like I am going down the wrong path. I think that what I observed was by design since Django is handling the request. I think the question should be... How do I handle the 413 error within Django? Any help would be greatly appreciated. --~--~-~--~~~---~--~

Re: Apache ErrorDocument Question.

2006-12-04 Thread Paul Childs
Thanks Waylan but... It appears that when I configure Apache to limit the request body, if a file is uploaded that exceeds the setting, Apache doesn't seem to pass on anything to mod_python and records an error in error.log. Thus the view never gets called so there is no opportunity to raise the

Re: Apache ErrorDocument Question.

2006-12-04 Thread Paul Childs
Thanks Waylan but... It appears that when I configure Apache to limit the request body, if a file is uploaded that exceeds the setting, Apache doesn't seem to pass on anything to mod_python and records an error in error.log. Thus the view never gets called so there is no opportunity to raise the

Upgrading from .95 to Development Version

2006-12-07 Thread Paul Childs
The firewall has the SVN port closed off so when I noticed this ticket http://code.djangoproject.com/ticket/1327 I was encouraged to go and get a development version of Django. I scooped the script and ran it and lo and behold I had Revision 4179 of the 96-pre version of Django! I uninstalled my .

Re: Upgrading from .95 to Development Version

2006-12-07 Thread Paul Childs
Well, I tried again and installed everything from scratch - new project, app, database. I went through the first two sections of the tutorial and I still got the same problem. I have posted this image of the problem which shows how the admin looks through Firefox... http://static.flickr.com/108/3

Re: Upgrading from .95 to Development Version

2006-12-07 Thread Paul Childs
I'm pretty sure that the download script that I found here... http://code.djangoproject.com/ticket/1327 must not be doing the job properly. I took the media from the admin in the 0.95 release and replaced the dev version's media and that fixed a good chunk of it. I'll have to do a SVN checkout

Re: Upgrading from .95 to Development Version

2006-12-07 Thread Paul Childs
Thanks Istvan, You guessed right I am on windows. I changed the script, ran it, installed django and navigated to the built in admin site where I was greeted by the nice clean looking admin interface that I am used to seeing. --~--~-~--~~~---~--~~ You received

Re: How would I add a custom widget in the admin for a ManyToMany relationship?

2006-12-08 Thread Paul Childs
There is a lot of information in this group about solving this problem. Look at raw_id_admin http://groups.google.com/group/django-users/search?group=django-users&q=raw_id_admin&qt_g=1&searchnow=Search+this+group --~--~-~--~~~---~--~~ You received this message

Bug? -- Scripting to Store Images Throws Exception but Still Successfully Stores Image

2006-12-20 Thread Paul Childs
I have a lot of images for the initial load and want to use a script to get them into the database. When I try to store the image in my Photo model (see the below) I get an error. The funny thing is that I can go on and set the ssi_status, caption and then execute save() and it will store everyth

Re: Bug? -- Scripting to Store Images Throws Exception but Still Successfully Stores Image

2006-12-20 Thread Paul Childs
The funny thing is that I can go on and set the ssi_status, caption and then execute save() and it will store everything to the database. Is this a bug? I'm using the latest svn trunk. On closer inspection the files that are stored on the server are zero bytes but all the database entries are

Re: Bug? -- Scripting to Store Images Throws Exception but Still Successfully Stores Image

2006-12-21 Thread Paul Childs
Thanks Fredrik you saved me some nerve cells. Your answer worked like a charm. Of note: I noticed that there was no need to call the save() method on the photo since the save_image_file() [ie save_FIELD_file()] method saved all photo fields to the database. This means that I had to set all requ

Ordering flatpages?

2006-12-21 Thread Paul Smith
So I'm working on this site in Django, and turns out there's quite a bit of static flatpages-style content involved. I've extended flatpages (well, started with flatpages and built my own), added rich text editing and so on, and I'm building some navigation dynamically by looking at the '

Re: Ordering flatpages?

2006-12-24 Thread Paul Smith
On Dec 22, 7:57 am, "David Blewett" <[EMAIL PROTECTED]> wrote: Paul Smith wrote: > Another thing on my mind is > what would happen if my flatpages start getting all hierarchical on > me... has anyone had to figure out how to let users manage objects with > somet

A single field keeps Duplicating on the many side of a many-to-one

2007-01-16 Thread Paul Childs
I'm using Django version 0.96-pre I checked out from SVN on the 12th. I have two models: Photo and SsiStatus (see code below) A SsiStatus object can have many photos. I have written a view to handle updating the SsiStatus and every time I click to save the update the caption of any existing pho

Re: A single field keeps Duplicating on the many side of a many-to-one

2007-01-16 Thread Paul Childs
I figured it out... I missed putting {{ photo.id }} in the template. The "new_data" values helped out. I am speculating that Django didn't know the id of the existing object so it created a new one in the database even though one already existed. Sorry to bother everyone. --~--~-~--~-

IPython Shell does not see database changes made by views.

2007-01-31 Thread Paul Childs
the shell so I don't have to shut down and restart it every time I make a change to data outside of it. I'm using IPython 0.7.2 , MySQL 5.0.27, and a dev version of Django from a couple of weeks ago. Thanks in advance, /Paul --~--~-~--~~~---~--~~ You rec

Transaction middleware + Filesystem

2007-02-02 Thread Paul Collier
if it happens inside several layers of function calls this becomes difficult. Is there some sort of common Django or Python idiom for this sort of thing, an easy way to add hooks to the transaction middleware, or should I just stop being so paranoid about consistency? ;) Thanks! -

Help please with get_absolute_url in admin and public pages

2006-05-17 Thread Paul Childs
I am new to Django and so far have found it amazing. I have two simple questions based on the following models which I am running using the development server that comes with Django 0.91: #- class RepairType(meta.Model): repair_type

Re: Help please with get_absolute_url in admin and public pages

2006-05-17 Thread Paul Childs
OK, I was able to find the documentation on serving media files. I thought Django might have some automagic way of doing it so I really didn't clue into what my real problem was. I'm still looking for the answer to question 2. Any help would be appreciated. Thanks --~--~-~--~~

Re: Help please with get_absolute_url in admin and public pages

2006-05-18 Thread Paul Childs
Thanks everyone. --~--~-~--~~~---~--~~ 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 PROTECTE

Re: Unhappy, reinventing

2006-05-25 Thread Paul Smith
tirely prime-time, it's closer to the patterns/ideas you described in your article. Cool ideas in there. Take a look: http://www.plope.com/software/meld3 --P -- Paul Smith [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Controlling Display of Foreign Key Input Fieldsets in Admin

2006-05-30 Thread Paul Childs
I have been searching for a difinitive answer to a few questions but can't find any. I am trying to get control of how foreign key fieldsets display in the Django admin. For example I have a Repair model. It is a foreign key for SupportingDoc, Photo, and PartNumber. These are all to be edited inl

Re: Controlling Display of Foreign Key Input Fieldsets in Admin

2006-05-30 Thread Paul Childs
Forgot to mention I am using Django 0.91 --~--~-~--~~~---~--~~ 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: Controlling Display of Foreign Key Input Fieldsets in Admin

2006-05-31 Thread Paul Childs
OK, Is this a case of RTFM? If so please let me know and I will continue to dig. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goog

Re: Controlling Display of Foreign Key Input Fieldsets in Admin

2006-06-01 Thread Paul Childs
Thanks Luke. I'm sure problem one is just a side effect of why two and three won't work. I'm still loving Django though! Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

"View on Site" broken with move over to Apache/mod_python.

2006-06-05 Thread Paul Childs
View on Site broken with move over to Apache/mod_python. I have moved my Django 0.91 project (idms, the application under the idms project is called "pra" with several more apps to come) from my development server over to Apache/mod_python on Windows XP SP1. Everything was working fine using the

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread Paul Childs
gin.logout'), (r'', 'django.views.auth.login.login'), (r'^login/', 'django.views.auth.login.login'), (r'^accounts/login', 'django.views.auth.login.login'), Hope this helps /Paul --~--~-~--~~~---~--~---

Re: DoesNotExist at /accounts/login/

2006-06-07 Thread Paul Childs
I'm using version 0.91. That's the difference. The only other thing I can suggest is to chekc if you have your login and logout templates in the right place and that the template locations are in your settings.py file. Sorry I couldn't help out. Good luck. --~--~-~--~~~

Subversion Repository is Asking for a User Name and Password

2006-06-07 Thread Paul Childs
I would really like to download the developer version. I am using TortoiseSVN. When I perform an import I get a dialogue that says... Django SVN repository Requests a username and a password Could someone please help me out. Thanks, --~--~-~--~

Re: Subversion Repository is Asking for a User Name and Password

2006-06-07 Thread Paul Childs
Thanks very much Jeremy. Worked like a charm. Regards, /Paul --~--~-~--~~~---~--~~ 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 u

Guidance would be most welcome

2006-06-13 Thread Paul Childs
I have been using Django for about a month now and I just moved over to the development version. I am creating an application in which the client has dictated very stringent database record management in order to have a detailed audit trail on all changes made data. This does not necessarily mean

Re: Guidance would be most welcome

2006-06-13 Thread Paul Childs
Thanks for the input Waylan. It certainly gives me another angle on the solution. I have been digging into the docs again and it seems to me that Django is flexible enough to handle this without having to dive into the source. Of course it would be nice just to call the save() and delete() meth

Re: Controlling Display of Foreign Key Input Fieldsets in Admin

2006-06-14 Thread Paul Childs
Thanks Luke, it took me a while but now I understand... http://code.djangoproject.com/wiki/NewAdminChanges#Adminconvertedtoseparatetemplates --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Guidance would be most welcome

2006-06-16 Thread Paul Childs
Sweet! Thanks for the heads up. --~--~-~--~~~---~--~~ 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

Please Help with Template for django.views.generic.create_update.update_object

2006-06-19 Thread Paul Childs
I am using the Dev trunk as of Saturday with the models below: #-- class Repair(models.Model): tail_number = models.IntegerField(choices=AIRCRAFT_CHOICES) location = models.CharField(maxlength=30) damage_type = models.CharField(maxlength=50) clas

Re: Please Help with Template for django.views.generic.create_update.update_object

2006-06-20 Thread Paul Childs
Honest, I really tried to figure this out on my own. I have been relying on the Django website for answers but template examples are in really short supply. I'd even accept a search string for Google if that's all anyone is willing to give. Thanks in advance. --~--~-~--~~---

Re: Please Help with Template for django.views.generic.create_update.update_object

2006-06-20 Thread Paul Childs
I received an email from someone in the group for more clarification: > But then, why do you want to put more than one image in a form? There can be more than one photograph of each repair. I need to mirror what is done in the admin with models that are edited inline. > What is the form for? wh

Re: Please Help with Template for django.views.generic.create_update.update_object

2006-06-21 Thread Paul Childs
Hi Malcom, > I am not 100% certain what you are wanting to display in the repeating > section of the form. Is it every photo in the system? Or maybe every > photo associated with the existing "repair" instance? Sorry for being > dense; I'm trying to work out the context from some code fragments >

Re: Please Help with Template for django.views.generic.create_update.update_object

2006-06-21 Thread Paul Childs
Thanks for your insight Jay. I tried using the {{ form.error_dict }} on my page and all I got was an empty dictionary. Thanks again. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Template to Render Unknown Number of Arguments

2006-06-22 Thread Paul Childs
I am trying to create a template that will only render selected values of an unknown number of dictionary keys which follow a certain pattern. This is the form of the dictionary in context: {'pets':{'dog0':'Rover','dog1':'Spike','cat0':'Fang'}} The pet dogs can go from dog0, dog1, dog2,...dogn.

Re: Template to Render Unknown Number of Arguments

2006-06-22 Thread Paul Childs
Thanks for your input Malcom. I'm going to take a look at extending with new template tags. --~--~-~--~~~---~--~~ 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@goo

Re: Template to Render Unknown Number of Arguments

2006-06-22 Thread Paul Childs
You do have a point spacedman. I might be able to massage the data in a view. It actually happens to be the results of a generic view, an update_object to be precise. It is a model and the model in which it is a foreign key i.e. edit_inline. Works great in the admin interface (it's rendered quite

Re: ManyToMany field on User object

2006-06-30 Thread Paul Sargent
On 7/1/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: If you could make that change (change "User" to "user", for example) andsee if the problem reoccurs, that would be great.I think that did it. I'd changed it a while back, but I'd also commented out the field that was giving me problems so I h

Manager for Admin

2006-07-06 Thread Paul Childs
I am trying to create a manager for a model so that only objects with a status of 0 or 1 show up in the admin. Could someone please let me know how to write a "where" clause in the manager (e.g "current_status < 2" or something like "current_status=0 or current_status=1") Here's what I tried...

Re: Manager for Admin

2006-07-06 Thread Paul Childs
Many many thanks James. I have been going all over the map on that one. --~--~-~--~~~---~--~~ 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: Manager for Admin

2006-07-06 Thread Paul Childs
Many many thanks James. I have been going all over the map on that one. --~--~-~--~~~---~--~~ 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: Manager for Admin

2006-07-06 Thread Paul Childs
I did some more digging and here is the reference for those who are interested: Field lookups are how you specify the meat of an SQL WHERE clause. They're specified as keyword arguments to the QuerySet methods filter(), exclude() and get(). http://www.djangoproject.com/documentation/db_api/#fiel

Pre-processing Request Info in Generic View Wrapper

2006-07-17 Thread Paul Childs
#x27;ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 'C:\\Documents and Settings\\Paul\\Application Data', 'CLASSPATH': 'C:\\Program Files\\Java\\jre1.5.0_06\\lib\\ext\\QTJava.zip', 'COMMONPROGRAMFILES&#x

Re: Pre-processing Request Info in Generic View Wrapper

2006-07-17 Thread Paul Childs
Of course seconds after the post I ran across this... http://www.pointy-stick.com/blog/2006/06/29/django-tips-extending-generic-views/ Thanks go out to Malcolm Tredinnick. and this... http://code.djangoproject.com/browser/django/trunk/django/views/generic/list_detail.py Sorry to bother everyone.

Re: QuerySet

2006-07-18 Thread Paul Childs
Check this out. http://code.djangoproject.com/wiki/NewbieMistakes Cheers, /Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

<    1   2   3   4   5   6   >