Re: Manipulators Question

2006-08-15 Thread James Bennett
On 8/15/06, mediumgrade <[EMAIL PROTECTED]> wrote: > It's for a simple RSVP app I'm writing. My problem is that I want to > present someone with a for which only updates the RSVP status. I was > trying to use an update manipulator, but it appears as though the > manipulator is requiring that I

Re: Manipulators Question

2006-08-15 Thread alex kessinger
The way I get arournd this is to make all the other parts of the form hidden. --~--~-~--~~~---~--~~ 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

Re: OperationalError after inpectdb

2006-08-15 Thread James Bennett
On 8/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > OperationalError at /admin/ghsite/inventory/ > (1054, "Unknown column 'inventory.keyfgallid_id' in 'field list'") ...snip... > How can I fix this without renaming all of the keys? Assuming that 'keyfgallid' is the name of the actual

Manipulators Question

2006-08-15 Thread mediumgrade
So, I have a model which looks like this: STATUS_TYPES = ( (1, 'Attending'), (2, 'Not Attending'), (3, 'Tentatively Attending'), (4, 'Tentatively Not Attending'), (5, 'No response'), ) class Recipient(models.Model): name = models.CharField(maxlength=50) persons =

Re: OperationalError after inpectdb

2006-08-15 Thread Malcolm Tredinnick
On Tue, 2006-08-15 at 20:38 -0700, [EMAIL PROTECTED] wrote: > I have an existing mysql db. I reverse engineered the models.py with > inspectdb... > > My foreign key names seem to be messing up the query that django > generates: > > OperationalError at /admin/ghsite/inventory/ > (1054,

Re: Yet another "directory sutructure" question

2006-08-15 Thread Malcolm Tredinnick
On Tue, 2006-08-15 at 20:42 -0700, [EMAIL PROTECTED] wrote: [...] > project/ > main/ > models.py > views.py > app1/ > views.py > app2/ > views.py > utilities/ > __init__.py (utility functions) >

Re: Accessing db_table in _pre_save()

2006-08-15 Thread James Bennett
On 8/15/06, Julio César Carrascal Urquijo <[EMAIL PROTECTED]> wrote: > (I'm using Django 0.95, btw) Then you want to be overriding the model's 'save' method rather than using a '_pre_save' method; '_pre_save' and friends went away in the 0.91 -> 0.95 move. -- "May the forces of evil become

OperationalError after inpectdb

2006-08-15 Thread [EMAIL PROTECTED]
I have an existing mysql db. I reverse engineered the models.py with inspectdb... My foreign key names seem to be messing up the query that django generates: OperationalError at /admin/ghsite/inventory/ (1054, "Unknown column 'inventory.keyfgallid_id' in 'field list'") Here is my invemtory

Re: Yet another "directory sutructure" question

2006-08-15 Thread [EMAIL PROTECTED]
I've been using a "monolithic" app-style. That is, I was trying to make an application "pluggable", so others could use it. This meant that I'd chucked everything into one application directory under one project ( I thought people could just drop my app inside their projects and run with it ). So

Re: Accessing db_table in _pre_save()

2006-08-15 Thread Julio César Carrascal Urquijo
That's it. 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Accessing db_table in _pre_save()

2006-08-15 Thread Ian Holsman
are you referring to ? *modelname*._meta.db_table On 16/08/2006, at 12:57 PM, Julio César Carrascal Urquijo wrote: > > I'm using a cursor inside the _pre_save() method for one of my models > and figured it would be wise to use the table name gerated by Django > instead of just hard-coding the

Accessing db_table in _pre_save()

2006-08-15 Thread Julio César Carrascal Urquijo
I'm using a cursor inside the _pre_save() method for one of my models and figured it would be wise to use the table name gerated by Django instead of just hard-coding the name. Is it possible to access the table name of a model from one of it's methods? Thanks. (I'm using Django 0.95, btw)

Re: Re: javascript options

2006-08-15 Thread James Bennett
On 8/15/06, Scott Anderson <[EMAIL PROTECTED]> wrote: > This hasn't been true for a few releases now with respect to exending > Object, but yes, that was probably the most annoying "feature" of > Prototype. Array, Function, and String are still extended, but in > practice I don't find those

Re: search in django

2006-08-15 Thread Andy Dustman
On 8/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Data in the database is searched by LIKE (or ILIKE) SQL command which > is wrapped in Django ORM. If you need fulltext search engine you can > use MySQL which has such feature (you need to user raw SQL for it), > postgresql needs some

Re: Custom file handling

2006-08-15 Thread Ian Clelland
On 8/15/06, Nathan Ekstrom <[EMAIL PROTECTED]> wrote: > > Hey all, > I've tried searching the list for this but I probably don't know the > right key words to use. What I would like to do is customize the > behavior of the ImageField and FileField of models. Instead of saving > to media// I'd

Re: Custom file handling

2006-08-15 Thread Jay Parlar
On 8/15/06, Nathan Ekstrom <[EMAIL PROTECTED]> wrote: > > Hey all, > I've tried searching the list for this but I probably don't know the > right key words to use. What I would like to do is customize the > behavior of the ImageField and FileField of models. Instead of saving > to media// I'd

Re: javascript options

2006-08-15 Thread Anton Visser
The Yahoo User Interface library is rather cool and gets a great plug in this article. http://www.b-list.org/weblog/2006/08/05/django-tips-simple-ajax-example-part-2 cheers, Anton a wrote: > guys i m trying to figure out which javascript toolkit to use > > i m now trying to figure out which

Re: compare integers in template (newbie question)

2006-08-15 Thread Alan Green
On 8/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Folks, > > I'd really love to be able to do something like this: > {% if videoObject.rating > 0 %}*{% endif %} > {% if videoObject.rating > 1 %}*{% endif %} > {% if videoObject.rating > 2 %}*{% endif %} > > To display an appropriate

Re: Locking problem with mod_python

2006-08-15 Thread Ian Holsman
aren't semaphores inter-process (not cross process)?try using a file handle instead..regardsIan.On 16/08/2006, at 11:49 AM, Daniel Poelzleithner wrote:Hi,I have a function that generates a tile for a google map overlay andwrites it to disc so later requests can simply use the file. Due thenature

OT: Sort messages by thread in OS X Mail

2006-08-15 Thread Sean Schertell
Hey guys, I hope I'm not the only schmuck to arrive so late to the "sort by thread" party. If any of you folks have a "django" mailbox for this mailing list in OS X Mail and you haven't tried using the sort message by thread feature -- you're really missing out! Just select your django

Re: Yet another "directory sutructure" question

2006-08-15 Thread Sean Schertell
Thanks a lot for the tips Malcolm... "suck and see", eh? Okay, will do ;-) That said, I'm still very interested to see anyone else's approach to this basic organization question. Any other thoughts out there? Cheers, Sean On Aug 16, 2006, at 9:26 AM, Malcolm Tredinnick wrote: > > On

Locking problem with mod_python

2006-08-15 Thread Daniel Poelzleithner
Hi, I have a function that generates a tile for a google map overlay and writes it to disc so later requests can simply use the file. Due the nature of the map, generating the tiles previous is not a option so it has to be done on demand, which works nice on the developer server but not on

Re: Sorting entries using generic views

2006-08-15 Thread keukaman
Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED]

Re: How do I store project in subversion?

2006-08-15 Thread Ian Holsman
On 16/08/2006, at 10:55 AM, Corey Oordt wrote:Don't store your .pyc in the repository.the easiest way to avoid doing this it toa) fix up your svn:ignore in your repo to ignore themb) edit ~/.subversion/config and uncomment the line 'global-ignores' and make it global-ignores = *.pyc *.pyo .*.swp

Re: geographic targeting with django

2006-08-15 Thread David Blewett
You could combine the maxmind GeoIP database 1 + cross-referencing that with the CivicSpace ZIP code database 2.David Blewett1 http://www.maxmind.com/app/geolitecity 2 http://www.civicspacelabs.org/home/zipcodedbOn 8/15/06, Ian Holsman < [EMAIL PROTECTED]> wrote:Hi.does anyone know of a python

Re: Sorting entries using generic views

2006-08-15 Thread Jay Parlar
On 8/15/06, keukaman <[EMAIL PROTECTED]> wrote: > > I'm using generic views to display some blog entries. It's a very > simple app that i'm using to learn django. > > The problem I'm having is trying to sort the output with the newest > entry showing at the top. Does anyone have a simple model.py

Re: geographic targeting with django

2006-08-15 Thread Corey Oordt
Ian,Try: http://www.maxmind.com/app/geolitecityCoreyOn Aug 15, 2006, at 8:17 PM, Ian Holsman wrote:Hi. does anyone know of a python module/interface to allow me to determine what state a given IP# is in? (Open source preferably) -- Ian Holsman [EMAIL PROTECTED] http://VC-chat.com It's what the

Re: How do I store project in subversion?

2006-08-15 Thread Corey Oordt
Don't store your .pyc in the repository. Create a settings.default.py and store it in the repository. Each user can then maintain slightly different settings On Aug 15, 2006, at 6:50 PM, alex kessinger wrote: > > I want to thank you for all your anwsers it has been very helpfull. I > also

Sorting entries using generic views

2006-08-15 Thread keukaman
I'm using generic views to display some blog entries. It's a very simple app that i'm using to learn django. The problem I'm having is trying to sort the output with the newest entry showing at the top. Does anyone have a simple model.py and template.html I could look at that shows this? Thank

Re: Secret Key

2006-08-15 Thread Malcolm Tredinnick
On Wed, 2006-08-16 at 00:16 +, Seth Buntin wrote: > This might be a stupid question (and maybe off topic) but what does the > secret key do and why is it there? If we told you it wouldn't be secret, now would it? Really... people should think before asking these question... :-) More

Re: Yet another "directory sutructure" question

2006-08-15 Thread Malcolm Tredinnick
On Wed, 2006-08-16 at 08:56 +0900, Sean Schertell wrote: [...] > Here's the type of thing I'm after: > > shared_apps/ > mysuperblog > mysuperforum/ > > sites/ > mysite1/ > base/ >__init.py__ > manage.py > settings.py >

Re: Secret Key

2006-08-15 Thread limodou
On 8/16/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > > This might be a stupid question (and maybe off topic) but what does the > secret key do and why is it there? > It's used to deal with the password. Of cause the password is processed by MD5. -- I like python! My Blog:

Secret Key

2006-08-15 Thread Seth Buntin
This might be a stupid question (and maybe off topic) but what does the secret key do and why is it there? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: search in django

2006-08-15 Thread [EMAIL PROTECTED]
check http://openfts.sourceforge.net/ and http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: search in django

2006-08-15 Thread a
wat are the addons needed for postgresql thanks a lot [EMAIL PROTECTED] wrote: > Data in the database is searched by LIKE (or ILIKE) SQL command which > is wrapped in Django ORM. If you need fulltext search engine you can > use MySQL which has such feature (you need to user raw SQL for it), >

Re: search in django

2006-08-15 Thread [EMAIL PROTECTED]
Data in the database is searched by LIKE (or ILIKE) SQL command which is wrapped in Django ORM. If you need fulltext search engine you can use MySQL which has such feature (you need to user raw SQL for it), postgresql needs some addons for it.

Re: compare integers in template (newbie question)

2006-08-15 Thread Jonathan Buchanan
> Folks, > > I'd really love to be able to do something like this: > {% if videoObject.rating > 0 %}*{% endif %} > {% if videoObject.rating > 1 %}*{% endif %} > {% if videoObject.rating > 2 %}*{% endif %} > > To display an appropriate number of stars for a video clip in a > template. > > Right

Re: Django neophyte question.

2006-08-15 Thread Bryan Chow
On 8/14/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Heheh. Welcome indeed. 10 helpful answers in under 20 minutes. ;-) Impressive, but credit should also be given to Google Groups' laggy updates, resulting in 9 out of 10 helpful answerers (including me) being totally oblivious to the fact

search in django

2006-08-15 Thread a
how is searching implemented in the admin interface inorder to use searching should we use pylucene thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: getting and storing favicon.ico as an image

2006-08-15 Thread Bryan Chow
Look into Python's urllib and httplib. http://docs.python.org/lib/lib.html a wrote: > /favicon.ico > > i want to get the favicon.ico from the URL when a blog is added to the > aggregator > > and then display the image, > this is the usage scenario > > Please let me know how to do this in

Yet another "directory sutructure" question

2006-08-15 Thread Sean Schertell
I'm still not clear about the best way to organize my site directories. Can you kind folks please share your strategies? If possible, I'd like to keep my site bundled together -- I'm particularly allergic to the idea of storing all my sites templates off in a separate dir somewhere. To my

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Bryan Chow
On 8/15/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > Wow! Ask and ye shall receive! > > TemplatePages is *precisely* what I was looking for :-) > > I can't wait to get to the office and try it out. Yay! > > Sean Cool. Please let us know how it works out for you. Bryan :)

getting and storing favicon.ico as an image

2006-08-15 Thread a
/favicon.ico i want to get the favicon.ico from the URL when a blog is added to the aggregator and then display the image, this is the usage scenario Please let me know how to do this in python i m willing to use os.spawnv() and call convert if need be thanks a lot

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Sean Schertell
Wow! Ask and ye shall receive! TemplatePages is *precisely* what I was looking for :-) I can't wait to get to the office and try it out. Yay! Sean On Aug 16, 2006, at 6:33 AM, Bryan Chow wrote: > > On 8/15/06, Sean Schertell <[EMAIL PROTECTED]> wrote: >> I'd really like to use Django

compare integers in template (newbie question)

2006-08-15 Thread [EMAIL PROTECTED]
Folks, I'd really love to be able to do something like this: {% if videoObject.rating > 0 %}*{% endif %} {% if videoObject.rating > 1 %}*{% endif %} {% if videoObject.rating > 2 %}*{% endif %} To display an appropriate number of stars for a video clip in a template. Right now, I'm resorting to

Re: Ajax/DHTML shopping basket in Django example

2006-08-15 Thread Malcolm Tredinnick
On Tue, 2006-08-15 at 16:17 +, [EMAIL PROTECTED] wrote: > The link: http://code.djangoproject.com/wiki/ajax_shop_basket > > It describes how to make a Ajaxa/DHTML/PHP script convert to the django > version and how to plug it to the the database. > I'm not english native speaker so the

Re: Site-Wide views

2006-08-15 Thread Jeremy Dunck
On 8/15/06, Russell Hay <[EMAIL PROTECTED]> wrote: > I have something similiar on a website I'm developing where there is a > navigation tree that is built from a database. The way I do it is I created > a view that builds the tree and then I just use an "ajax" function to load > that into a

Re: Re: How do I store project in subversion?

2006-08-15 Thread alex kessinger
I want to thank you for all your anwsers it has been very helpfull. I also have another question. I am new to the python language, but is it okay to store thre .pyc files in subversion. also how do you guys handle different settings.py files amongest developers.

Custom file handling

2006-08-15 Thread Nathan Ekstrom
Hey all, I've tried searching the list for this but I probably don't know the right key words to use. What I would like to do is customize the behavior of the ImageField and FileField of models. Instead of saving to media// I'd like to be able to save it to a custom directory dependant on

Re: Configurable LDAP authentication

2006-08-15 Thread David Robinson
Guillaume Pratte wrote: > I took the code from http://www.carthage.edu/webdev/?p=12, adapted it > and generalized it so you can specify LDAP server and other > configuration items in settings.py. ... > There is no explicit copyright in the code found at > http://www.carthage.edu/webdev/?p=12, >

Re: Site-Wide views

2006-08-15 Thread Russell Hay
Seth, I have something similiar on a website I'm developing where there is a navigation tree that is built from a database. The way I do it is I created a view that builds the tree and then I just use an "ajax" function to load that into a div on the site at page load. -Russell On Tue, Aug

Re: question about huge websites

2006-08-15 Thread Ian Holsman
On 16/08/2006, at 7:39 AM, a wrote:What kind of low-level socket and threading code is necessary for a dbintensive site such as reddit. How do we use it from django? doesanyonehave experience using itplease reply...I would imagine that they aren't just using a database.most of the "low level

Re: 1062, "Duplicate entry '1' for key 2"

2006-08-15 Thread cyberco
Hmmmit turns out that the problem is with a ForeignKey. The example above (unfortunately) doesn't show it, but my model T also contains 2 ForeignKeys. The database (mysql) accepts the same value (in different rows) for one ForeignKey, but not for the other. That baffles me. I've tried

Re: Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
> You're using a variable "feedtype" that's not defined. > > It's the same thing as doing this in the Python interactive prompt: > > print a + 1 > > The variable "a" is not defined yet, so Python raises a NameError. > > The problem in your case is that your view won't know the value of >

Re: Re: How do I store project in subversion?

2006-08-15 Thread Jon Atkinson
> To create a repository, follow the instructions > at: http://svnbook.red-bean.com/en/1.0/ch05s02.html The SVN book is an excellent resource, and if you want to dive straight in and get your repository set up quickly, I recommend the 'Quickstart' section:

Re: Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
> > I think it's worth raising a feature request in the Django Trac for > this functionality. I can imagine that this would be very useful to a > lot of people in the future. > > Michael Done! http://code.djangoproject.com/ticket/2544 --Jon

Re: question about huge websites

2006-08-15 Thread Joseph Heck
Your question both seems orthognal to what you wrote and not really pertaining to Django. If you can lay out what you want to do, or ask how to do something specific, it would be much easier to answer.-joe On 8/15/06, a <[EMAIL PROTECTED]> wrote:

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Bryan Chow
On 8/15/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > I'd really like to use Django templates and stay DRY by using the > same base template for my static pages as I do for any apps in the > site. On 8/15/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > ... you just need an easy way to

Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Adrian Holovaty
On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > (r'^/?(?P\w+)/$', > 'django.views.generic.list_detail.object_list', {'queryset': > Item.objects.filter(feed__feedtype__feedtype__iexact=feedtype).order_by('-time'), > 'paginate_by': 15, 'extra_context': {'is_first_page': True}}), > > And oddly

Re: Learning Django

2006-08-15 Thread Adrian Holovaty
On 8/15/06, Reinhard Knobelspies <[EMAIL PROTECTED]> wrote: > Nearing the 1.0 release-date of Django and remembering the announcement > about Adrians and Jacobs book that is in the works i´m pretty > confident that we will see a huge boost of highly qualified > documentation on top of the

filter by related data

2006-08-15 Thread John Goodleaf
Title: Message Django newb. I haven't yet read everything (I admit it) but I'm hoping someone can help me out with a quick answer.   Assuming the following model:   class Patient(models.Model):    study_id = models.CharField(maxlength=10)    usubjid = models.CharField(maxlength=8,

RE: filter by related data

2006-08-15 Thread John Goodleaf
Thanks. I had just figured it out this very minute and was about to call a 'nevermind.' I had, I suppose out of habit, tried c=Comments.objects.filter(usubjid.study_id__exact='CP-AI-005') Missed the initial set of double underscores. D'oh. Thanks though. I appreciate your time. J

Re: Compress images on upload?

2006-08-15 Thread Bryan Chow
On 8/13/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > http://www.verdjn.com/wiki/PhotoField > > Beautiful, now it's worth my time ;-) > > Seriously, thanks a lot. > Jay P You're welcome, Jay! Please drop us a line and let us know if you have any questions, comments, or suggestions about the

Re: Learning Django

2006-08-15 Thread Reinhard Knobelspies
Nearing the 1.0 release-date of Django and remembering the announcement about Adrians and Jacobs book that is in the works i´m pretty confident that we will see a huge boost of highly qualified documentation on top of the allready very helpful docs. As the plans include to open-source the digital

Re: How do I store project in subversion?

2006-08-15 Thread Corey Oordt
I'm probably not the best person to be answering this, but I do have an internal subversion repository.If you don't have a working subversion server, follow the instructions at: http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html(Since it's an internal machine, I just use basic

Re: filter by related data

2006-08-15 Thread Tim Shaffer
comments = Comment.objects.filter(usubjid__study_id__exact='CP-AI-005') By using the usubjid__study_id syntax it lets django know that you want to filter by study_id field in the usubjid (Patient) model. --~--~-~--~~~---~--~~ You received this message because

question about huge websites

2006-08-15 Thread a
http://redditblog.blogspot.com/2005/12/on-lisp.html >From moving to python by the founders of reddit Because of the low-level socket and threading code we had to write, reddit would not run on my Mac, and I was always tethered to our FreeBSD development server. Not being able to program offline

Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Michael van der Westhuizen
Hi Jon, On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: [snip] > I've just tried removing the regular expression - so the line looks like: > > (r'^/?(?P\w+)/$', > 'django.views.generic.list_detail.object_list', {'queryset': >

Where to put Admin functions for users?

2006-08-15 Thread Corey
Everyone, The built-in admin is a great tool for editing data. But what about administrative functionality that you might need? Examples: Purge log files. Archive messages. Give everyone an x% raise. Where are you guys/gals putting this functionality, and are how are you integrating it with

Re: upload error | deleting object after it has been uploaded...

2006-08-15 Thread Ian Clelland
On 8/15/06, jelle <[EMAIL PROTECTED]> wrote: > > > Hi, > > Enjoying django while working on my new site. Things is that I'm > experiencing a freak error. When finishing an upload, the object > generated by the upload action is deleted. > Checking out the history in the admin interface gives the

Re: How do I store project in subversion?

2006-08-15 Thread John Sutherland
On 15 Aug 2006, at 20:52, [EMAIL PROTECTED] wrote: > I was wondering if someone could tell me how they store the django > project in subversion. I am moving a php project I have already > written > to django and I want to open source this project. So I am trying to > figure out the best way to

Re: Current *preferred* fcgi setup, lets settle this once for all

2006-08-15 Thread Tim Shaffer
Here is my .htaccess file... let me know if you have any questions. AddHandler fastcgi-script .fcgi RewriteEngine On RewriteRule ^(media/.*) - [L] RewriteCond %{REQUEST_URI} !(django.fcgi) RewriteRule ^(.*)$ django.fcgi/$1 [L] --~--~-~--~~~---~--~~ You received

Re: How do I store project in subversion?

2006-08-15 Thread [EMAIL PROTECTED]
there are many tutorials on the web, just google them. If you are looking for a subversion repository for your project you can get one at berlinos.de. Sourceforge.net gives CVS, google subversion. If you want something easy, powerfulla and in python then check Mercurial -

Configurable LDAP authentication

2006-08-15 Thread Guillaume Pratte
Hello, I took the code from http://www.carthage.edu/webdev/?p=12, adapted it and generalized it so you can specify LDAP server and other configuration items in settings.py. >From the README : === LDAP authentication backend for Django. The following

Re: Re: More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
On 15/08/06, Michael van der Westhuizen <[EMAIL PROTECTED]> wrote: > > Do you really need the RE in the query? I think the problem is that > the re call is being evaluated immediately, which the query is lazily > evaluated. Would the "iexact" not work without the regular expression? > > If you do

Re: Strange 'caching' issue

2006-08-15 Thread hernan43
Malcolm, I made a new post and then tried out your curl idea. i got back two different ETAG(I have etgas enabled) values: HTTP/1.1 200 OK Date: Tue, 15 Aug 2006 19:53:38 GMT Server: Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.8b DAV/2 mod_python/3.2.8 Python/2.4.3 PHP/5.1.4 Vary:

upload error | deleting object after it has been uploaded...

2006-08-15 Thread jelle
Hi, Enjoying django while working on my new site. Things is that I'm experiencing a freak error. When finishing an upload, the object generated by the upload action is deleted. Checking out the history in the admin interface gives the following: Aug. 15, 2006, 9:09 p.m.jelle Added

Re: Learning Django

2006-08-15 Thread briantcva
Is there any thought to expanding this help/knowledge in a more wiki-based format? While the comments section at the bottom of each documentation page is a start, it can quickly devolve into a question-reply format where you have to trace things back up to the original question. And while

Re: Django 0.95 on Dreamhost

2006-08-15 Thread Apple
> generally this means that you should put in some url-rewriting... Do you mean url rewriting in my url.py or in my .htacess? I've tried removing the .htacess file and directly accessing the fcgi file. It still generates a 500 Error. At this point I have not a clue what this error implicates

Re: Site-Wide views

2006-08-15 Thread garaged
On 8/15/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > > Is possible to have a view (and correct me if I am using my teminology > wrong) that is accessible site-wide? > > For example: > I have a blog that on the sidebar lists links that I put into the > system when I find them. Is it possible to

How do I store project in subversion?

2006-08-15 Thread [EMAIL PROTECTED]
I was wondering if someone could tell me how they store the django project in subversion. I am moving a php project I have already written to django and I want to open source this project. So I am trying to figure out the best way to store my project in a subversion repository. Anything would

Re: Site-Wide views

2006-08-15 Thread Seth Buntin
Yeah I just want dynamic data on every page, so I guess the custom template tag will do it. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Current *preferred* fcgi setup, lets settle this once for all

2006-08-15 Thread sime
Tim Shaffer wrote: > Just for reference, here is what my django.fcgi looks like if you want > to compare. > > flup-r2028 holds the flup source, django-0.95 holds the django source, > and django_projects holds all my projects. > > [snip] This looks nice, many thanks! Can you *please* post your

Re: Question and a problem about FileField

2006-08-15 Thread Ian Clelland
On 8/14/06, Vizcayno <[EMAIL PROTECTED]> wrote: > When I save a first record including main and additional attachments > and then I verify the results of the saving, all goes well; if I change > the content of some data in the MaeDocs table (nom-doc for example) and > save the changes, when

Re: Site-Wide views

2006-08-15 Thread Adrian Holovaty
On 8/15/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > Is possible to have a view (and correct me if I am using my teminology > wrong) that is accessible site-wide? > > For example: > I have a blog that on the sidebar lists links that I put into the > system when I find them. Is it possible to

Re: Adding to Models without breaking

2006-08-15 Thread Leon
Thanks for the responses guys, that clears alot of things up. On 8/15/06, Derek Anderson <[EMAIL PROTECTED]> wrote: > > hey leon, > > the schema evolution feature i'm working on should cover the vast > majority of model modifications like you mention, without > data-destructive database

Re: Re: VMWare image for running/developing Django

2006-08-15 Thread Michael
Yes, I've got DSL as well. ISO is 50mb after installing it onto HDD size groing to 150-160mb compress image around 80mb ( without python ,django ,svn) DSL also include a lot of tools - so if remove them them -may be possible to get image around 30-40mb haven't tried any other distro but I think it

Re: More complex QuerySets and generic views

2006-08-15 Thread Michael van der Westhuizen
Hi Jon, On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm dabbling with generic views (thanks to wise advice from others on > this list), and I'm trying to convert one of my slightly more > complicated views to use a generic view. The vie itself is a simple > list, but my

Re: Current *preferred* fcgi setup, lets settle this once for all

2006-08-15 Thread Tim Shaffer
I am using Dreamhost and just recently switched from the "old" way to the "new" way that uses flup. I haven't had any problems. It's hard to tell where your problem is occurring without seeing any errors... can you check the server logs and post the error? Just for reference, here is what my

Site-Wide views

2006-08-15 Thread Seth Buntin
Is possible to have a view (and correct me if I am using my teminology wrong) that is accessible site-wide? For example: I have a blog that on the sidebar lists links that I put into the system when I find them. Is it possible to fill that block in the site.html file (base template file)

Re: Re: Learning Django

2006-08-15 Thread Adrian Holovaty
On 8/15/06, Jon Atkinson <[EMAIL PROTECTED]> wrote: > Does Google expose an API for searching Google Groups? It could be a > useful thing to have on the Django site... It doesn't expose an API for Google Groups in particular, but we could use its normal search-engine API and limit the results to

Re: More complex QuerySets and generic views

2006-08-15 Thread Chris Long
You could simplify your urls.py by extending the generic view with another view, e.g. an example from the authorization document: from django.views.generic.date_based import object_detail @login_required def limited_object_detail(*args, **kwargs): return object_detail(*args, **kwargs) It

Re: PythonOptimize flag

2006-08-15 Thread Adrian Holovaty
On 8/15/06, Jakub Labath <[EMAIL PROTECTED]> wrote: > Has anybody tried running the mod_python and django with the > PythonOptimize flag enabled? > Did it make any difference? Anything else interesting came out of it? Hey Jakub, I've never tried this personally but have always wondered about

Re: Re: Learning Django

2006-08-15 Thread Jon Atkinson
On 15/08/06, Karen Tracey <[EMAIL PROTECTED]> wrote: > > At 01:08 PM 8/15/2006, you wrote: > >That, unfortunately, raises the issue of how to find that wisdom when > >you actually need it. > > FWIW, I've had good luck searching the mailing list archive on the > Google groups site. > Does Google

Re: Multiple applications One server Big problem.

2006-08-15 Thread Seth Buntin
Not a problem. --~--~-~--~~~---~--~~ 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

PythonOptimize flag

2006-08-15 Thread Jakub Labath
Hi, Has anybody tried running the mod_python and django with the PythonOptimize flag enabled? Did it make any difference? Anything else interesting came out of it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

More complex QuerySets and generic views

2006-08-15 Thread Jon Atkinson
Hi, I'm dabbling with generic views (thanks to wise advice from others on this list), and I'm trying to convert one of my slightly more complicated views to use a generic view. The vie itself is a simple list, but my queryset is generated as follows:

Current *preferred* fcgi setup, lets settle this once for all

2006-08-15 Thread sime
Hello, I'm on DreamHost, so I have only FastCGI available. But I'm wondering what is the **current preferred way** of running Django in fcgi mode? I followed Jeff Croft's/official DH tutorial and managed to run Django on DH without any problems whatsoever. But I'm always looking for the best

Re: Learning Django

2006-08-15 Thread Karen Tracey
At 01:08 PM 8/15/2006, you wrote: >That, unfortunately, raises the issue of how to find that wisdom when >you actually need it. FWIW, I've had good luck searching the mailing list archive on the Google groups site. Karen --~--~-~--~~~---~--~~ You received this

Re: Django not working with FCGI

2006-08-15 Thread jws
Or you are going through some sort of load-balancer to servers that configured differently. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

  1   2   >