Re: time it takes django to read database?

2008-12-09 Thread Jay Parlar
On Tue, Dec 9, 2008 at 3:57 PM, Colin Bean <[EMAIL PROTECTED]> wrote: > Ah, didn't realize that it was showing one part of the page and not > another. Looks like the template tag in the "secondary" section > queries all of the blog post objects, while the main section uses the > "latest"

Re: time it takes django to read database?

2008-12-09 Thread Jay Parlar
On Tue, Dec 9, 2008 at 9:33 AM, garagefan <[EMAIL PROTECTED]> wrote: > > sure thing: > > from django.conf.urls.defaults import * > from mysite.blog.models import Entry > from tagging.views import tagged_object_list > > info_dict = { >'queryset': Entry.objects.filter(status=1), >

Re: time it takes django to read database?

2008-12-08 Thread Jay Parlar
Could you post your urls.py file for your blog app? It's very easy to make a mistake in there that results in confusing time-related errors. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: strategy for deploying to production server

2008-09-23 Thread Jay Parlar
On Tue, Sep 23, 2008 at 1:22 PM, sotirac <[EMAIL PROTECTED]> wrote: > > Just trying to get a feel for what other developers are doing when > deploying to a production server. There are some differences between > my development machine and production server such as the location of > my media

Re: dumb question model-dictionary

2008-09-01 Thread Jay Parlar
On Mon, Sep 1, 2008 at 2:48 PM, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > So I'm finding there are multiple places where I'm needing to iterate > over the properties of a Model and I'm absolutely certain it's got to > be insanely easy to get a dictionary from a model but for the life of > me

Re: Strategies for staying current with django development

2008-08-25 Thread Jay Parlar
Another good idea is to listen to the "This Week in Django" podcast (www.thisweekindjango.com). They cover all the major things that have happened to trunk in the last week, as well as things happening in the community, snippets they've run across, etc. It's put together really well, and fun to

Better way that _meta to alter Admin?

2008-08-25 Thread Jay Parlar
I'm starting to port my projects, from a version of Django before NFA. In the past, I had something like this: User._meta.admin.list_display = User._meta.admin.list_display + ('is_active',) User._meta.get_field('is_staff').help_text = u"Select this if you want this user to be able to log into

Re: Changing 'list_display' for User

2008-06-03 Thread Jay Parlar
On 6/3/08, Tim <[EMAIL PROTECTED]> wrote: > > I'm looking for something similar to this and I ran across this blog: > http://www.amitu.com/blog/2007/july/django-extending-user-model/ > > Perhaps will spark your imagination. Ahh, I had forgotten about ._meta, that let me do what I needed.

Changing 'list_display' for User

2008-06-03 Thread Jay Parlar
Is there a programatic way to modify the 'list_display' value for the User model in django.contrib.auth? I really don't want to patch the Django sources, but I can't immediately see another way. Thanks, Jay P. --~--~-~--~~~---~--~~ You received this message

Re: Row-level permissions, recommendations?

2008-05-06 Thread Jay Parlar
On 5/6/08, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > What's the state of the art for row-level permissions in Django? > I'm working on an application where I need to allow users to edit > their own personal info but nobody else's. What app, hack, patch or > branch should I use in

Re: Pass extra data to a view

2008-05-03 Thread Jay Parlar
On 5/3/08, Mike Chambers <[EMAIL PROTECTED]> wrote: > > Could you just specify the data in the URL that you redirect to? > > mike In my case, it's a variable amount of data, a list of ids from the database. I suppose I could specify it in the URL. I've got it working with sessions now, but

Re: Pass extra data to a view

2008-05-02 Thread Jay Parlar
On 5/2/08, Jay Parlar <[EMAIL PROTECTED]> wrote: > I must be missing something super obvious here, but I can't figure out > how to pass data to a new view, from the old one. > > For example, I have the following in a view: > > categories = [1,2,3] >

Pass extra data to a view

2008-05-02 Thread Jay Parlar
I must be missing something super obvious here, but I can't figure out how to pass data to a new view, from the old one. For example, I have the following in a view: categories = [1,2,3] return HttpResponseRedirect( reverse('question-select',

FormWizard does too much in __call__?

2008-04-09 Thread Jay Parlar
I'm looking at the FormWizard code, and in __call__, we have the following: for i in range(current_step): form = self.get_form(i, request.POST) if request.POST.get("hash_%d" % i, '') != self.security_hash(request, form): return self.render_hash_failure(request, i)

FormWizard and process_step

2008-03-31 Thread Jay Parlar
I'm trying to use process_step() to dynamically add new classes to my form_list, and running into some issues. Essentially, what I want my process_step to look like is: def process_step(self, request, form, step): next_form = build_next_form(step, form) if next_form:

Re: Django Application Without Source?

2007-12-10 Thread Jay Parlar
On Dec 10, 2007 2:43 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Or perhaps I'm reading into this too much. If I distribute the .pyc > files minus the .py files, would that work? Is this machine- > independent (IE: I "compile" the source on an x86, it'll be ok on a 64- > bit or other

Re: Anonymous Users

2007-08-27 Thread Jay Parlar
On 8/27/07, Darrin Thompson <[EMAIL PROTECTED]> wrote: > I'm building a real estate search. I have existing and future > competition. It's to my advantage to track a few preferences and > favorites for anonymous users before they register. > > I'm pretty sure it isn't that hard and I'm not the

Re: django hosting companies

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

Re: pass a template to a genric_view

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

Re: django built-in web server

2007-08-10 Thread Jay Parlar
On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > hi, > > Can I use the django's built in web server in an intranet enviroment > where the maximum users could be not more than 50 users? I am just > asking this for the purpose for easy deployment :). I am very newbie, > and trying to avoid

Re: Why aren't my flatpages working?

2007-08-08 Thread Jay Parlar
On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I dunno. Never had a problem with them before. Lemme try the subdomain > thing. Also, make sure you've got all the correct templates and everything, as described in the documentation. That's caused issues for me as well. Jay P.

Re: Why aren't my flatpages working?

2007-08-08 Thread Jay Parlar
On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Unless it's the subdomain... I've got it set up as test.domain.com, > could that hose it? Should I just have domain.com? Not really sure :) All I know is that I've had 404s with flatpages before, and it's always because I forgot to

Re: Why aren't my flatpages working?

2007-08-08 Thread Jay Parlar
On 8/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > OK, I've looked over this again: > http://www.djangoproject.com/documentation/flatpages/ > > I've got > MIDDLEWARE_CLASSES = ( > 'django.middleware.common.CommonMiddleware', >

Re: latest django version

2007-07-25 Thread Jay Parlar
Often times SVN has trouble getting through corporate firewalls, could that be the issue? Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: zyons GenericForeignKey

2007-06-26 Thread Jay Parlar
On 6/26/07, Carl Karsten <[EMAIL PROTECTED]> wrote: > didn't grep enough: > > django/contrib/contenttypes/generic.py: > class GenericForeignKey() > > How do I 'use' generic.py ? Just change the import. There was a backwards incompatible change made to Generic keys recently, and I guess Ian

Re: Calling System Commands

2007-06-26 Thread Jay Parlar
On 6/26/07, Moses Ting <[EMAIL PROTECTED]> wrote: > > That's what I thought, but running the following command via a web > request returns lines of length 0. > > command = 'c:\path\plink -ssh [EMAIL PROTECTED] -pw password dir' > lines = os.popen(command).readlines() > > The exact command works

Re: Hosting for Django

2007-06-15 Thread Jay Parlar
On 6/15/07, arthur debert <[EMAIL PROTECTED]> wrote: > In the end I've settle of webfaction. They have a very good setup with > you own apache instance + mod_python, and it's very affordable. Great > support as well. I'll second that. I recently deployed a customer site on Webfaction, and the

Re: SlugField

2007-05-06 Thread Jay Parlar
On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote: > > Jay, > I've already added my SlugField. Here is a look at the table I > created > > class news(models.Model): > title = models.CharField(maxlength=200) > theslug = models.SlugField(prepopulate_from=("title")) > body =

Re: SlugField

2007-05-06 Thread Jay Parlar
On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote: > > I have a table called Stories that contains two fields 'Title' and > 'Body'. We'll I want the page to be accessed by a SlugField. I have > added a SlugField to my table. However, I want it so that whenever I > enter a title for a story in my

Re: Newforms Captcha 0.1 release

2007-04-26 Thread Jay Parlar
On 4/26/07, Brandon Low <[EMAIL PROTECTED]> wrote: > > 16 hours ago I posted about my captcha system that was quite rough > around the edges. > > I've done some house cleaning since then and will call it 0.1. > > This is now in "Works on my live site" state. I managed to clean up > most of the

Re: Implementing OpenID in your Django app

2007-04-23 Thread Jay Parlar
On 4/23/07, Simon Willison <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've just released the first version of an OpenID consumer package for > Django. The idea is to make it ridiculously easy to add OpenID > consumer support to any Django application - and hence allow users of > OpenID to sign in

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread Jay Parlar
On 4/21/07, mateo <[EMAIL PROTECTED]> wrote: > > I've found that if I add the 'admin' subclass to the 'choices' class > and remove 'edit_inline=models.TABULAR, num_in_admin=3' from > the Foreign Key I can save new entries just fine. The error only pops > up when I have the 'choices' edited

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread Jay Parlar
On 4/21/07, mateo <[EMAIL PROTECTED]> wrote: > I am on part 2, 'Custominze the Admin Change List'. (http:// > www.djangoproject.com/documentation/tutorial02/#customize-the-admin-change-list) Sorry, I meant, what stage exactly did it break? ie., did you go through tutorial 2 step by step,

Re: Error - 'int' object is unsubscriptable

2007-04-21 Thread Jay Parlar
On 4/21/07, mateo <[EMAIL PROTECTED]> wrote: > > List, > > When following the tutorial I get the below error when attempting a > save from the admin console. I'm new to Django and certainly not a > guru of any sort so I thought I would ask about it here first before > posting a bug report. I am

Re: [OT] Vim (was "Poll tutorial question")

2007-04-19 Thread Jay Parlar
On 4/19/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > >> Well, whitespaces in Python are pretty difficult to keep in > >> line, if you are used to other languages. I personally use > >> Tabs for intending and VIM editor and have it to make Tabs > >> visible like dark blue |--, > > > > Hey, do

Re: selecting a framework ,

2007-04-19 Thread Jay Parlar
On 4/19/07, gops <[EMAIL PROTECTED]> wrote: > > Hey thanks for those coolest links , i think this will be enough for > me getting started , > > i am from hard core c c++ programming background taking babystep in > web development , so my target it to "learn one thing that do it > all" , and after

Re: django comparison

2007-04-19 Thread Jay Parlar
On 4/19/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 4/19/07, Nicola Larosa <[EMAIL PROTECTED]> wrote: > > The next step is doing away with a predefined model altogether. Semantic > > web CMS, anyone? ;-) > > Have you looked at trunk/django/contrib/databrowse yet? :) Is that what Adrian's

Re: Static content in admin?

2007-04-18 Thread Jay Parlar
On 4/17/07, RG <[EMAIL PROTECTED]> wrote: > > Is there any way to manage static blocks of content from the admin > panel? I am converting my companies website into django and many "non- > programmers" will be maintaining the content. > > There are blocks on the home page that will get updated

Re: Navigating the Documentation

2007-04-17 Thread Jay Parlar
On 4/17/07, Nate Finch <[EMAIL PROTECTED]> wrote: > > Hi, thanks for the very reasoned, and thorough response to a somewhat > bitchy post. My apologies, I was tired and frustrated, so the email > came off a bit more edgy than I really intended. > > Those links do help a lot. I'll try to gather

Re: Passing Django Model objects between machines

2007-04-17 Thread Jay Parlar
On 4/17/07, johnny <[EMAIL PROTECTED]> wrote: > > Anyone know, how I can pass Model object from one machine that runs > Django, to another machine that doesn't have Django, but uses > python? This is a dangerous idea. What happens after you pass the Model object to some machine X, and machine X

Re: django comparison

2007-04-17 Thread Jay Parlar
On 4/17/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Run under Apache. The Django server would be slower and would be more > likely to fail once you got any kind of load on the server. The Django server can only handle one request at a time, so "load" would be defined as two people trying to

Re: url template tag with generic views?

2007-04-16 Thread Jay Parlar
On 4/16/07, ltbarcly <[EMAIL PROTECTED]> wrote: > > Is it possible to use the {% url %} tag with generic views? Generic > views get used more than once in an app presumably, so there would > have to be some way to narrow it down. > > I'm guessing that there might not be a way to do it at this

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Jay Parlar
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > serving directly from apache. Well, I'm out of ideas then :) Probably, you should start putting up some of your more relevant config information (Apache config files), because you haven't given too much information to go on. Jay P.

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-16 Thread Jay Parlar
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote: > > Hey Jay, yeah, I noticed somethign similar to that affect as well. It > seems like it does some sort of caching or something, and if it hasn't > cached in a while it takes a while to load. I'm running mod_python, > so I'm often reseting the

Re: Super long response times/load times: Looking for some guidance on alleviating the issue

2007-04-15 Thread Jay Parlar
On 4/15/07, aaloy <[EMAIL PROTECTED]> wrote: > Fasterfox gave me 3.208s for the main page and less than a second for > the others. That's the same behaviour I saw (with Safari instead of Firefox). First access is kinda slow, but every subsequent one is fast. That *includes* reloading the main

Re: Saving an object takes a long time

2007-04-15 Thread Jay Parlar
On 4/15/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > Thanks for the pointer. Any other ideas? There are a few straight Python things you can do to speed up the code a bit, but they won't be huge. First off, how many keys are you usually seeing in address.__dict__.keys()? If it's a lot, and

Re: Updating Django .95 -> .96 on Mac

2007-04-10 Thread Jay Parlar
On 4/10/07, brian mckinney <[EMAIL PROTECTED]> wrote: > > Thanks Jay, this worked perfectly. > > Can anyone shed some light on the purpose of the easy-install.pth > file? Is this just adding django to the system path? Very briefly: There is a large movement in the Python community to move

Re: Updating Django .95 -> .96 on Mac

2007-04-10 Thread Jay Parlar
Which directory does the .egg file and the 'django' directory live? /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/ ? If so, there should also be a file called easy-install.pth in that directory. Open up that file, and you'll see a reference to the .egg file.

Re: upload_to with username

2007-04-03 Thread Jay Parlar
On 4/3/07, Stephen Mizell <[EMAIL PROTECTED]> wrote: > > > That line is executed exactly once, at the time the file is imported. So > > it is not dynamic in any way. > > > > (I seem to be saying that at least every other day here. It's normal > > Python behaviour, people. Please stop hoping it

Re: upload_to with username

2007-04-02 Thread Jay Parlar
On 4/3/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > I remember having some concerns about your approach a while back, but > apparently they weren't significant enough for me to attach a comment to > the ticket. A bit careless on my part. :-( > > I'll try to reconstruct my thinking in the

Re: upload_to with username

2007-04-02 Thread Jay Parlar
On 4/2/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > At the moment, there is no easy way to change the base directory for > file uploads. You can however, change the filename to include > sub-directories, I believe (so change foo.blah to upload/dir/foo.blah). > If you want to try and change

Re: Advanced Search on Django?

2007-03-30 Thread Jay Parlar
On 3/30/07, js <[EMAIL PROTECTED]> wrote: > > Hi, > > Now I'm trying to write a 'Advanced search' function like this. > http://code.djangoproject.com/query > > Because I'm still new to Python and Django > writing flexible query like this is a bit hard. > So I svn checkouted djangoproject.com's

Re: Strange filtering issue

2007-03-15 Thread Jay Parlar
I've got one view where I want the queryset to be a standard objects.all(), but I also want to use a datetime.now() to pass in "upcoming" events. I do this: def get_upcoming(): return Event.objects.filter(end_date__gte=datetime.now()).order_by('end_date') urlpatterns =

Re: django install on mac osx 10.4.8

2007-03-14 Thread Jay Parlar
On 3/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > hope you're all good out there. > > I did a few progress with my install. > i installed python 2.4. > > with this install instead of the latest one i could install django > with the sudo python setup.py install

Re: Where art thou ImageField

2007-03-12 Thread Jay Parlar
You may want to check out the 'stockphoto' app. Even if you don't use it directly, it might give you ideas. It seems to handle thumbnails quite well. http://www.carcosa.net/jason/software/django/stockphoto/ Jay P. --~--~-~--~~~---~--~~ You received this message

Re: django install on mac osx 10.4.8

2007-03-12 Thread Jay Parlar
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > nope i do it from home, never had any problem before, not like i would > really have known anyway got problem all the time :), > problem isntalling this and that, problem installing rails and so on. > shame i really want to give a try

Re: django install on mac osx 10.4.8

2007-03-12 Thread Jay Parlar
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > well i tried with the forewall and offan it return the same error all > the time. Sorry, I misspoke. I didn't mean firewall, the firewall should have no effect. I actually meant proxy. Many corporate environments are behind proxies

Re: django install on mac osx 10.4.8

2007-03-12 Thread Jay Parlar
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > i'm trying to install django, i followe dthe instruction on the django > web site but it doesn't work > been looking around and the only tutorial that i yet understand > ( sorry it's al a bit complicated for me )

Re: Allowing no value for a DateField

2007-03-12 Thread Jay Parlar
On 3/12/07, Roland Hedberg <[EMAIL PROTECTED]> wrote: > > Hi! > > I have designed a model which contains among other things a couple of > DateFields. > > Some, actually one, of these must have a value but the other may not. > > So, I tried to use the construct: > > done_planned =

Re: FileField/ImageUpload saves upload-to path as \...\...\ instead of /.../.../ in database

2007-03-10 Thread Jay Parlar
On 3/10/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Umm ... Jay? He's using django-users already. :-) Heh, silly me. The first two emails *were* sent to django-dev (and django-users), so Gmail automatically tagged them as such. All the subsequent emails showed up in my django-dev folder

Re: FileField/ImageUpload saves upload-to path as \...\...\ instead of /.../.../ in database

2007-03-10 Thread Jay Parlar
django-dev is not the appropriate group for this, you want django-users. Django-dev is for discussion on the development of Django itself, not development "with" Django. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: choosing ajax framework (for my projects) :)

2007-03-09 Thread Jay Parlar
On 3/9/07, ashwoods <[EMAIL PROTECTED]> wrote: > > with so many choices, you dont really know where to start :( > > things like i would like to do. > > 1) update the contents of a div element with the content fading out > and in (news on the first page) > 2) select form elements that populate

Re: Marking a DateField event as "repeating"

2007-03-08 Thread Jay Parlar
On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Sorry, the date_from and date_to are probably superfluous for your > needs. For my system they represent the period that this schedule is > valid for and therefore the absolute extent that rrule can generate > dates for. > > For my

Re: Marking a DateField event as "repeating"

2007-03-08 Thread Jay Parlar
On 3/8/07, Gary Doades <[EMAIL PROTECTED]> wrote: > > > > > So in your Event model (or whatever you're calling it), you're > > essentially storing the keyword arguments to an rrule, depending on > > what's necessary for a particular event? > > > > Then whenever you need to render a calendar, you

Re: Marking a DateField event as "repeating"

2007-03-07 Thread Jay Parlar
On 3/7/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Sorry, I skipped the first step in the reasoning because I thought it > was obvious. My bad. > > Except for events that repeat only yearly, every single one of your > events is going to occur at least once in any given month. The only >

Re: Marking a DateField event as "repeating"

2007-03-07 Thread Jay Parlar
On 3/7/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This shouldn't be too hard to do (it was a fun problem to think about > over lunch). I would create a method on the model that takes a date > (what you are really interested in is the month and year) and returns a > list of the dates in

Marking a DateField event as "repeating"

2007-03-07 Thread Jay Parlar
So I'm working on a calendar application, and trying to come up with an efficient way to mark some event as repeating. The trivial way to create the model would be something like: REPEAT = ( ('D', 'Daily'), ('W', 'Weekly'), ('M', 'Monthly'), ('Y', 'Yearly'), ) class

Re: Python HTML lib_filter

2007-03-07 Thread Jay Parlar
On 3/7/07, Sam <[EMAIL PROTECTED]> wrote: > > I have translated Cal Henderson's lib_filter.php to python. > > If you need to filter your users HTML input, you might like it. > > http://amisphere.com/contrib/python-html-filter/ > Looks good, I'll have to play with it later. One quick thing

Re: iCal like interface in the Admin?

2007-03-06 Thread Jay Parlar
On 3/6/07, Rubic <[EMAIL PROTECTED]> wrote: > > Jay, > > I would think you'd want to do a custom form for something like this. > I'll be doing something similar soon for a scheduling system. You're > familiar with the dateutil module? > > http://labix.org/python-dateutil Hmm, not familiar with

iCal like interface in the Admin?

2007-03-05 Thread Jay Parlar
I'm currently putting together my first calendar view for a website. Initially, I thought that creating a basic "Event" model with a single DateField would be good enough, but after thinking about it, realized that without some basic "Repeat" functionality, it'll become useless pretty quickly.

Re: Users permissions

2007-02-15 Thread Jay Parlar
On 2/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, I'm thinking about create a website using django. One of the > apps would be a news section, where everybody can publish the news > (perhaps after approval) and where the users can edit and delete their > own news, but not the

Re: Per object permissions

2007-02-08 Thread Jay Parlar
On 2/8/07, Ramdas S <[EMAIL PROTECTED]> wrote: > I think Adrian is keeping the trunk upto date. I am using thie updates trunk > right nowand everything seems to be OK Except that the per-object permissions branch hasn't had a trunk merge for over a month. I'd *guess* Adrian is too busy with the

Re: Per object permissions

2007-02-07 Thread Jay Parlar
On 2/7/07, Scanner <[EMAIL PROTECTED]> wrote: > Is someone actively merging in stuff from mainline? > I emailed the address listed on the wiki page at djangoproject.com > for the project but either my spam filter ate the response or I have > not gotten any response. Chris Long was the original

Re: Uploading large files via http FORM

2007-02-02 Thread Jay Parlar
On 1/12/07, Pythoni <[EMAIL PROTECTED]> wrote: > > Hi, > does anyone have an experience with uploading large files in Django > application? > I use mod_python with Django and when I try to upload a file about 100 > MB I received an error. > Thank you for any suggestion. > L. > Even if you

Re: Django Book Add Google or Yahoo Site Search

2007-01-21 Thread Jay Parlar
On 1/20/07, johnny <[EMAIL PROTECTED]> wrote: > > Is it possible to add Google or Yahoo Site Search to Djangobook.com? > > Thank You. > You probably know this, but if you prepend your search with "site:djangobook.com", then it'll just search the djangobook.com domain. So do

Re: Context-sensitive 'upload_to' parameter for FileField

2007-01-20 Thread Jay Parlar
On 1/19/07, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: > > Hi, I was wondering if it is possible, and if so then how, to have a > context-sensitive 'upload_to' parameter set for FileField. > > Let's say, I have the following model concept: > > class MyModel(models.Model): > folder =

Re: Trouble with stockphoto

2007-01-17 Thread Jay Parlar
On 1/17/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > The problem is most likely with your MEDIA_URL. Make sure it ends with a '/' Thank you very much. That seems to be it fixed :-D. First I had MEDIA_URL set to: ' ' then '127.0.0.1:8000', then '127.0.0.1:8000/' then '/', then finally

Re: Trouble with stockphoto

2007-01-17 Thread Jay Parlar
On 1/17/07, Isaac Alston <[EMAIL PROTECTED]> wrote: Ok, I figured this part out. I looked at the stockphoto/models.py code, and discovered it was doing something like STOCKPHOTO_URL[-1], which was obviously causing the error, but I couldn't work out why. Then I realised that if STOCKPHOTO_URL

Re: Trouble with stockphoto

2007-01-16 Thread Jay Parlar
On 1/16/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > Hmm, that MEDIA_URL worries me. Can you try setting that to something > more concrete? Ok, I tried setting it to "127.0.0.1:8000" (was the only thing I could think of) and it didn't do anything, so I decided to do a fresh install of

Re: Trouble with stockphoto

2007-01-16 Thread Jay Parlar
On 1/16/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > Your paste bin links don't seem to be working for me, but I'm going to > guess that your STOCKPHOTO_BASE and STOCKPHOTO_URL aren't right. The > link to the .jpg itself shouldn't have 'admin' in it anywhere, unless > you have your media

Re: Trouble with stockphoto

2007-01-16 Thread Jay Parlar
On 1/16/07, Isaac Alston <[EMAIL PROTECTED]> wrote: > You do have to add to urls.py. I'm using stockphoto on one of my > sites, you can see my site's code here: > http://svn.jayparlar.com/website/trunk/awwca/ Thanks for this. What I meant was the urls.py in the stockphoto directory (sorry I

Re: Permissions at object instance level

2007-01-15 Thread Jay Parlar
On 1/15/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: The Row-Level-Permissions branch was (is) an attempt to implement this sort of functionality. I don't know the current state of this branch (i.e., is it merge ready, fundamentally broken, or somewhere in between?), but at the very

Re: CSS Basics

2006-12-19 Thread Jay Parlar
On 12/19/06, cwurld <[EMAIL PROTECTED]> wrote: Hi, I don't understand why css files are special in django. If I have a template that contains inline style commands, nothing special needs to be done. But if I put those same commands in a separate file, now that file needs to be in a special

Re: Would Django be a good framework for developing and engineering/science application

2006-12-14 Thread Jay Parlar
On 12/14/06, T. Size <[EMAIL PROTECTED]> wrote: > > I would appreaciate any comments about if Django is a good framework of > developing an application like is described below. If it is a good > framework for this I would appreciate pointers to applicable > documentation or examples. > > In the

Re: Installation on Python25

2006-12-14 Thread Jay Parlar
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote: > > I can't ccut and paste from a dos box. Fortunately I just discovered > that I can redirect stderr using '2>' !! > Ahh, I think I see what's happening. Django 0.95 is reasonably old now, and by default, it tries to download setuptools 0.6c1,

Re: Installation on Python25

2006-12-14 Thread Jay Parlar
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote: > > Not that I am aware of. Windows 2000, Sygate personal firewall. Comcast > cable. > Plain vanilla I think. > Could you paste in the full text of the traceback? Jay P. --~--~-~--~~~---~--~~ You received this

Re: Installation on Python25

2006-12-14 Thread Jay Parlar
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote: > > I need some help installing Django. (not a good sign for my ability to > use it!) > I have installed Python25 on Windows2000, and added it to the path. > Its at C:\Python25 > I downloaded and unzipped Django 0.95 to C:\Django-0.95 > I opened a

Re: Looking to hire

2006-12-08 Thread Jay Parlar
On 12/8/06, Jim Fritchman <[EMAIL PROTECTED]> wrote: > > Hi, all. > > Wagdogs is looking to hire one or more developers to work on Django. > We are a new startup located in the suburbs of Philadelphia, > Pennsylvania and we have so much interest in our company that we need > to get our product to

Re: Re: is there a way to combine generic views?

2006-12-07 Thread Jay Parlar
On 12/7/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/7/06, Anton Daneika <[EMAIL PROTECTED]> wrote: > > I want a page which displays both the details of an object and the list of > > the objects. Is there a known way to combine generic views to produce such a > > thing? The problem is

Re: Re: Video stream uploading/playing

2006-12-04 Thread Jay Parlar
On 12/4/06, Pythoni <[EMAIL PROTECTED]> wrote: > > Eric, > Thanks a lot.Very good tutorial for me! > L. > Keep in mind that for larger files (I think over 10 megs), FileField causes very high CPU usage during upload. There is a patch somewhere in Trac that changes Django to store the file on

Re: Question concerning generic views or date based views in general

2006-12-04 Thread Jay Parlar
On 12/3/06, Oliver Andrich <[EMAIL PROTECTED]> wrote: > Hi, > > I am currently developing a small Django application for my personal use. > Now I like to have a date based archive page, and I thought that this > finally is a good thing to look into generic views. My requirements are, > that I can

Re: Extending User

2006-12-01 Thread Jay Parlar
On 12/1/06, scum <[EMAIL PROTECTED]> wrote: > > Trying to extend the user group using this model code: > > class UserProfile(models.Model): > user = models.ForeignKey(User, unique=True, > edit_inline=models.TABULAR, num_in_admin=1,min_num_in_admin=1, >

Re: Re: How should I store credit cards for offline processing

2006-12-01 Thread Jay Parlar
On 12/1/06, Noah <[EMAIL PROTECTED]> wrote: > > I'm not in charge of such decisions. I only write the code. Doesn't remove the moral obligation on your part to do something about it, or refuse the work. Jay P. --~--~-~--~~~---~--~~ You received this message

Re: How to restart Django/FastCGI/Lighttpd?

2006-11-16 Thread Jay Parlar
On 11/16/06, Tom Smith <[EMAIL PROTECTED]> wrote: > I'm sure there are better ways, but that's the way that works for me. > That sounds great and I tried setting up an SVN repos on Textdrive and it > beat me... following the docs, again, it's the concepts that get me, not the > specifics... > >

Re: Automatically adding http:// to a URLField

2006-11-15 Thread Jay Parlar
You could also set a 'default' value for the field, something like default="http://; Then it will be prepopulated, which would help a little. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: syncdb doesn't handle blank=True correctly?

2006-11-15 Thread Jay Parlar
On 11/15/06, Stefan Foulis <[EMAIL PROTECTED]> wrote: > > Hi > > Starting with a empty database and running syncdb does not set the > fields in the resulting tables to allow NULL values on any fields > (not even the ones with blank=True) on my installation. > django correctly allows empty fields

Re: How to restart Django/FastCGI/Lighttpd?

2006-11-15 Thread Jay Parlar
On 11/15/06, Tom Smith <[EMAIL PROTECTED]> wrote: > I tried the touching trick (on main.fcgi and django-fcgi.py) and it doesn't > work... is there another way to "refresh" django without having to kill the > root python process and lightpd? Sorry, no clue, I'm no expert. > Really though, you

Re: Adding a button to admin view?

2006-11-15 Thread Jay Parlar
> On 10/31/06, iain duncan <[EMAIL PROTECTED]> wrote: > > > > Hi folks, I would like to add a custom form button to the admin > > interface somehow and am not sure how to go about it. > > > > I want to add a "download now" button the list view for some file > > entries, so it needs to be a link

Re: Obsoleting by date

2006-11-14 Thread Jay Parlar
On 11/14/06, Gabriel Puliatti <[EMAIL PROTECTED]> wrote: > > Hello, I have a model which is obsoleted after a certain date, so that > I can just retrieve the entries from database which are in the future, > and not those which have already passed. > > Since I can't get into the djangoproject

Re: How to restart Django/FastCGI/Lighttpd?

2006-11-13 Thread Jay Parlar
On 11/13/06, Tom Smith <[EMAIL PROTECTED]> wrote: > > I have been making changes to my code an not seeing the changes > happen... > > How do I restart django under Lighttpd/FastCGI so that changes to my > model etc stick? > If you're on a unix-like system, you should be able to just do a 'touch'

  1   2   3   4   >