Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Jason
http://virtualboxes.org/images/debian/ Download a ready to use Debian image here. Make sure you know how to use VirtualBox. On Jan 21, 8:08 am, Mike Ramirez wrote: > On Friday, January 21, 2011 07:00:51 am Steven Elliott Jr wrote: > > > > he is not doing dual boot - he is running linux under wi

Re: Pinax: worth installing?

2011-01-19 Thread Jason
I've found the current state of Pinax to be a bit hard to use. Yes, it offers these 'ready-to-use' projects but they do not work out of the box. There are CSRF problems, they don't load the initial sample data properly, and sometimes they just don't load at all. This is the case at least when I u

Re: newbie admin question

2010-11-25 Thread Jason Mayfield
the other 8 or 9 models, with appropriate fields. > > Since I'm still working through the tutorial, I created the Inline/ > Admin classes after my first attempt at registering the class-so, it > used to simply be: > > from pages.models import Character,Other,Classe

Re: newbie admin question

2010-11-24 Thread Jason Mayfield
Can you provide your admin.py file? - Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-user

Re: absolute url in template and url name

2010-11-24 Thread Jason Mayfield
'new_email' : 'm...@mail.com', 'current_site': current_site}) Documented here: http://docs.djangoproject.com/en/1.2/ref/contrib/sites/#getting-the-current-domain-for-full-urls - Jason -- You received this message because you are su

Re: absolute url in template and url name

2010-11-24 Thread Jason Mayfield
is group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > - Jason -- You received this message be

Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread Jason Mayfield
>>>>> examplehttp://127.0.0.1:8000/home/andhttp://127.0.0.1:8000/blog/ >> >>>>> I'm catching my flatpages with >>>>> urlpatterns += patterns('', >>>>> (r'', include('darren_web.flatpages.urls')),

Re: App for the index?

2010-11-17 Thread Jason Mayfield
...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > - Jason -- You received this message because you are subscri

Re: Sidebar blocks

2010-11-13 Thread Jason Mayfield
the docs here: http://docs.djangoproject.com/en/1.2/howto/custom-template-tags/#inclusion-tags - Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from th

Re: Problems doing a query with __count=0 for a related foreignkey

2010-11-10 Thread Jason Mayfield
Sorry, my first response isn't what you wanted. I completely misread your post. One option would be something like: Profile.objects.exclude(id__in=Service.objects.values_list('creator_id', flat=True)) Though that looks clunky. - Jason -- You received this message because you

Re: Problems doing a query with __count=0 for a related foreignkey

2010-11-10 Thread Jason Mayfield
On Nov 10, 2010, at 4:24 PM, Eduardo Robles Elvira wrote: > I'm trying to do this: > > . > from user.models import Profile > Profile.objects.filter(services__count=0) > . http://docs.djangoproject.com/en/1.2/topics/db/aggregation/#filtering-on-annotations -

Re: my first (public) app: django-requires_js_css

2010-10-25 Thread Jason Persampieri
ead if the templatetags aren't used at all. I've recently added same-server absolute path requirements and am considering re-working to the SETTINGS dict to be less stupid. Anything else that would be useful right off the bat? On Oct 24, 3:30 pm, Sam Lai wrote: > On 21 October 2010

Re: my first (public) app: django-requires_js_css

2010-10-24 Thread Jason Persampieri
Just a quick note, I changed the name to django-requires_assets. I could imagine a future where this is used to pre-load images or other assets. The name seemed a bit more future-proof. http://github.com/pappy74/django-require_assets On Oct 20, 10:01 pm, Jason Persampieri wrote: > h

my first (public) app: django-requires_js_css

2010-10-20 Thread Jason Persampieri
http://github.com/pappy74/django-requires_js_css Howdy folks, I was hoping to get some feedback on my first public app, django- requires_js_css. The app's purpose is to allow 'sane' JavaScript and CSS requirements. That is, require from within templates, but still load using 'best practices'.

Creating a document library App...

2010-10-14 Thread Jason
Django makes it pretty straight forward to create a simple document library - especially if all of the "docs" are stored as text in the database. Searching for information seems to be the hard part here. Django-Sphynx looks like an awesome solution for searching database text. The problem I hav

Re: unique constraint

2010-10-05 Thread mark jason
thanks for the reply Shawn, the reason why I am not using ModelForm is in the clean_url() I am using this validation url=self.cleaned_data['url'] user_given_urls=[x.url for x in MyModel.objects.filter(creator_of_entry=self.instance.creator_of_entry)] if url in user_given_urls: raise forms.Vali

Re: unique constraint

2010-10-05 Thread mark jason
I tried this by making a separate form and adding clean_field() method. class MyDataForm(forms.Form): url=forms.URLField() def __init__(self,formdata,request,*args,**kwargs): forms.Form.__init__(self,formdata, *args, **kwargs) self.user=request.user def clean_url(self)

Re: unique constraint

2010-10-04 Thread mark jason
thanks Shawn.. I set the meta option and now it correctly throws an IntegrityError when I try to enter the duplicate value for the url. Now should I catch this in clean() method of the model and raise an error message when user enters the duplicate value? mark On Oct 5, 1:19 am, Shawn Milochik wr

Re: unique constraint

2010-10-04 Thread mark jason
thanks Shawn.. I set the meta option and now it correctly throws an IntegrityError when I try to enter the duplicate value for the url. Now should I catch this in clean() method of the model and raise an error message when user enters the duplicate value? mark On Oct 5, 1:19 am, Shawn Milochik wr

Re: unique constraint

2010-10-04 Thread mark jason
thanks Shawn.. I set the meta option and now it correctly throws an IntegrityError when I try to enter the duplicate value for the url. Now should I catch this in clean() method of the model and raise an error message when user enters the duplicate value? mark On Oct 5, 1:19 am, Shawn Milochik wr

Re: unique constraint

2010-10-04 Thread mark jason
thanks Shawn.. I set the meta option and now it correctly throws an IntegrityError when I try to enter the duplicate value for the url. Now should I catch this in clean() method of the model and raise an error message when user enters the duplicate value? mark On Oct 5, 1:19 am, Shawn Milochik wr

unique constraint

2010-10-04 Thread mark jason
hi, I am using a form to capture user entered values of urls to websites.I need to create a model with fields 1.url-charfield 2.creator_of_entry-foreignkey(User) I am taking the creator as the logged in user,and can get his name. I need to restrict the user from entering the same url again.How d

Re: newbie question

2010-10-04 Thread mark jason
thanks guys mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, vis

newbie question

2010-10-04 Thread mark jason
hi I am quite new to django ..I have written a web app that takes user input and adds customer details to db. I store customer name,email ,a datetime value for each customer. When the application starts ,I want a utility program to check the db and if system datetime matches the datetime value

Re: IDE for Python/django

2010-09-27 Thread Jason
PyCharm is pretty amazing but it costs $ after its out of beta. Best code completion I've seen for Django. My ONLY complaint is you can't open up a python console during debug. It has a pretty good debugger but seeing as other IDEs have no problem here I don't know why they left it out. Still, I

Re: subclassing UserCreationForm

2010-09-24 Thread Jason
> Well, first I can to "if X == Student: ...", and I know the fields will be > there. > Second, User will have no additional properties (as I understand), but once > I do "Model --> User" relations ALL users will have that property. So each > user might have the .course property, AND the .subject p

Re: subclassing UserCreationForm

2010-09-24 Thread Jason
Don't get me wrong - I'm not saying my way is right and I'm not saying anyone is doing anything necessarily wrong. I'm still a Django noob in a lot of ways. Just things to keep in mind - if you do have multiple types of users subclassing might be a bad idea if there are possibilities of being clas

Re: subclassing UserCreationForm

2010-09-24 Thread Jason
I'm not sure how to solve your exact problem but I would recommend NOT extending the user class here. You'll probably want to create a manytomany field on your Course model that contains users. And if you're going to have many different types of users you'll want to create groups. Put students in

Re: Querying Exact Foreign Key Sets

2010-09-15 Thread Jason
x27;Exact1' and > 'Exact2' > bad_categories = Category.objects.exclude(category_name__in=['Exact1', > 'Exact2']) > # Filter your exact categories, then exclude the bad ones > Article.objects.filter(category__name='Exact1').filter(category__name='Exac

Re: can't get m2m_changed signal working

2010-09-14 Thread Jason
led in models.py, and no, it's not indented and neither > is the handler function. > > On Sep 14, 4:28 pm, Jason wrote: > > > Is the m2m_changed() call in the models.py? > > > Also, it looks indented - if it is, it shouldn't be - in other words - > > it doe

Querying Exact Foreign Key Sets

2010-09-14 Thread Jason
Say for example you have two models: Article Category Articles can have multiple categories. How would you go about finding the Articles that contain only a certain set of Categories? The 'in' operator doesn't do me any good. Excludes look like they are needed... I'm in a situation where qui

Re: can't get m2m_changed signal working

2010-09-14 Thread Jason
Is the m2m_changed() call in the models.py? Also, it looks indented - if it is, it shouldn't be - in other words - it doesn't belong to the model. On Sep 13, 1:27 pm, allyb wrote: > I'm finding it difficult to denormalise a field in a django model. I > have: > >     class AnswerSet(models.Model)

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-09-01 Thread Jason
; receives (namely, in this case, the 'widget' argument) to > Field.formfield(): > > def create_formfield(f, **kwargs): >     return f.formfield(**kwargs) > > ArticleFormSet = modelformset_factory(Article, >   form = ArticleForm, >   formfield_callback=create_formf

Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jason
Actually - make that change to the rest of the field options too. The word wrap threw me off there at the end. On Jul 30, 8:16 am, Jason wrote: > Looks like you are generating the fields in two different cases. > Here's the second one: > >                 self.fields[config.

Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jason
>                     else: >                         startdatetime = '%s' % stationconfigrec.ExpireDate >                         datelist = startdatetime.split(' ') >                         self.fields[fieldname] = forms.SplitDateTimeField( >                        

Re: field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jason
if there was a way to > ignore the conversion. > > On Thu, Jul 29, 2010 at 5:02 PM, Jason wrote: > > I think Django's been doing that for a long time (not just 1.2.1). > > > Probably the quick and easy way to change case would be to use just > > fie

Re: field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jason
I think Django's been doing that for a long time (not just 1.2.1). Probably the quick and easy way to change case would be to use just field.label and pump it into whatever format you want: {{ field.label|upper }} You'll have to manually create the rest of the html for the label using field.html

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-07-29 Thread Jason
on't quite understand. If anyone else has this problem I'll go ahead and submit a bug report. On Jul 28, 12:50 pm, Jason wrote: > Traceback: > File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in > get_response >   100.                     res

Re: Django has incorrect time

2010-07-29 Thread Jason
Try changing time zones in your settings.py For example: TIME_ZONE = 'America/Los_Angeles' And make sure if you're running on Windows it matches your system's time zone. Regardless, you should see some kind of change when you do this. If you don't perhaps the settings.py isn't loading properly.

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-07-28 Thread Jason
te-packages\django\forms\models.py" in fields_for_model 178. formfield = formfield_callback(f, **kwargs) Exception Type: TypeError at /newsmail/manage/ Exception Value: () got an unexpected keyword argument 'widget' On Jul 28, 12:00 pm, Daniel Roseman wrote: > On Jul

Django 1.2 modelformset_factory fails with meta: widgets

2010-07-28 Thread Jason
For example: class ArticleForm(ModelForm): class Meta: model = Article widgets = { 'pub_date': SplitSelectDateTimeWidget(), 'expire_date': CalendarWidget(attrs={'class':'date- pick'}) } And in a view function: ... ArticleFormSet = modelfo

Re: Autologin after activation in django-registration

2010-06-28 Thread Jason Mayfield
pinion about? > > Regards, > Álex González > > > > > > On Mon, Jun 28, 2010 at 14:42, Jason Mayfield wrote: > > As noted in the comments for the snippet you reference, the version of > > django-registration available via easy_install or pip does not emit

Re: Autologin after activation in django-registration

2010-06-28 Thread Jason Mayfield
As noted in the comments for the snippet you reference, the version of django-registration available via easy_install or pip does not emit signals. You need to grab the latest unreleased code from bitbucket: http://bitbucket.org/ubernostrum/django-registration/ On Jun 27, 10:34 pm, Alexandre Gon

list_editable and save changes to individual row/cell

2010-06-25 Thread Jason Wang
Hi all, Does anyone know if there is a way to save changes on a per row/cell basis for forms with list_editable in django admin? I would like to have a button for each row and each cell to do that. Thanks a lot! Jason -- You received this message because you are subscribed to the Google

Re: Model inheritance and simple access

2010-06-08 Thread Jason Beaudoin
sounds like magic, though django usually handles magic well :) On Tue, Jun 8, 2010 at 7:18 PM, John M wrote: > I was hoping to avoid that type of code, but instead have put a field > in the linked parent to indicate what type the child is and then have > a method in the parent as a property whic

Re: design question - forms as meta-data to a model

2010-06-05 Thread Jason Beaudoin
On Fri, Jun 4, 2010 at 2:42 AM, Russell Keith-Magee wrote: > On Fri, Jun 4, 2010 at 12:03 PM, Jason Beaudoin > wrote: >> Silence usually implies some key piece of documentation was missed, or >> was this just lost amongst more interesting posts? :) > > You've miss

Re: design question - forms as meta-data to a model

2010-06-03 Thread Jason Beaudoin
Silence usually implies some key piece of documentation was missed, or was this just lost amongst more interesting posts? :) On Tue, Jun 1, 2010 at 9:54 PM, Jason Beaudoin wrote: > Hi, > > I've a situation where the following functionality is desirable.. > >  - one centr

design question - forms as meta-data to a model

2010-06-01 Thread Jason Beaudoin
ese forms, the model, and the connection between the two. Thoughts? thanks! ~Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this grou

templatetag processing order

2010-05-25 Thread Jason Persampieri
(cross-posted to StackOverflow) I am trying to write a set of template tags that allow you to easily specify js and css files from within the template files themselves. Something along the lines of {% requires global.css %}, and later in the request, {% get_required_css %}. I have this mostly wor

Re: how to display an image inside Django

2010-05-11 Thread Jason Leveille
On May 11, 7:10 am, ravi krishna wrote: > Hi, > I am a beginner in Django . > Can somebody tel me how to display an image in django... > if anyone has the right tutorial for beginners, please share with me.. > -- > Regards, > Rav! > > -- > You received this message because you are subscribed to th

Re: django takes all my toys

2010-05-10 Thread Jason R. Leveille
On May 10, 9:31 pm, "ah...@cs.ucla.edu" wrote: > Hi, > > I don't know very much about django, except that a piece of software > that one of my colleagues developed requires it to function properly. > > My problem is as follows : I have inherited responsibility for > installing the aforementioned s

|title filter selectively not functioning

2010-04-17 Thread Jason
Hey everyone-- This is driving me a little crazy. Here's my complete template code for the following page: http://www.rainbow.coop/products/sundries.html {% if sundries %} The following products are currently on sale in the Sundri

Re: A Query question about Many-to-many relationships

2010-02-22 Thread Jason
Hi Atamert, Thank you so much! The following statement works! This is really simple but fantastic!!! Publication.objects.filter(article__in = article_qs).annotate(Count('article')) Sincerely, Jason -- You received this message because you are subscribed to the Google Groups &qu

A Query question about Many-to-many relationships

2010-02-21 Thread Jason
) If I already had a QuerySet of Article named articles, how to get a QuerySet of Publication by these articles, and count the articles by the Publication? Thanks a lot! Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

CheddarGetter module for Django/Python - easy recurring billing

2010-02-01 Thread Jason Ford
get the latest version (currently 0.9). Hope others can benefit from it! - Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, se

Re: Design Question - Extending a model

2010-01-12 Thread Jason Beaudoin
On Mon, Jan 11, 2010 at 12:00 PM, Igor wrote: > Thanks a lot - I didn't know about generic relations, and will > definitely look at them - right now :). I start thinking about extending models (and other DRY mode/db methods) when I see myself repetitively typing out too many fields. ~J -- You r

IntegrityErrors after Postgres database restore attempt

2009-12-30 Thread Jason
Hi folks-- I recently hosed my django database, & attempted to do a restore using Navicat for Postgresql. Seems like this was not the thing to try, as django now throws these: IntegrityError: duplicate key violates unique constraint "django_content_type_pkey" (for instance, after adding a new ap

Re: how do you get recordcount?

2009-12-21 Thread Jason Beaudoin
On Mon, Dec 21, 2009 at 9:02 AM, Bobby Roberts wrote: >    Looking at this code: > >    newsqlcmd="select title,author from booklist" >    cursor=connection.cursor() >    cursor.execute (newsqlcmd) >    tms=cursor.fetchall()  #this is the actual recordset being pushed > back to the template > > >

Re: FeedMagnet: New Django-powered website just launched

2009-12-17 Thread Jason Ford
ve it, we're keeping resource requirements at a minimum. We do plan to upgrade to the cloud at some point, but for now we are on SliceHost, monitoring performance to determine when to upgrade. - Jason On Dec 17, 8:43 am, pabloi wrote: > Hi Jason, the site looks very nice. > > I a

Re: FeedMagnet: New Django-powered website just launched

2009-12-17 Thread Jason Ford
rks I had dabbled in previously. Not only was it quicker to build in Django, but I feel like our code is much more maintainable too. - Jason On Dec 17, 2:21 am, OkaMthembo wrote: > Look great, Jason. If i may ask, how long did it take from nought to finish? > > Lloyd > > > >

FeedMagnet: New Django-powered website just launched

2009-12-16 Thread Jason Ford
our custom CouchDB/Python integration code as an open source module soon. Thanks to the Django community for the excellent framework, documentation, and user groups. We're glad to be a part of the community! - Jason -- You received this message because you are subscribed to the Google Groups

Using Sass with Django makes CSS so much easier to maintain

2009-11-16 Thread Jason
y block element in the site. I thought I'd share how we were doing things in hopes that others can benefit. Here's the link to the post: http://budurl.com/sass - Jason -- You received this message because you are subscribed to the Google Groups "Django users" gro

Another Django vs. Rails comparison

2009-11-09 Thread Jason
This is my first post to this group, but I've benefited from reading other's posts and I'm looking forward to getting more involved. I just picked Django/Python as the framework for a new company I just started: FeedMagnet (http://feedmagnet.com). We want to get more involved in the community - w

Re: Problem on deploying multi-projects on multi-ports with Apache/mod_python

2009-11-05 Thread Jason
Dear Graham, Thank you for your time! The problem is solved after I add a ServerName directive to each VirtualHost section. Thanks, Jason On Nov 5, 5:42 pm, Graham Dumpleton wrote: > On Nov 5, 5:49 pm, Jason wrote: > > > I have 2 projects, and I want to visit project1 at:http

Re: Interesting code abstraction Challenge

2009-10-25 Thread Jason Beaudoin
iations with specific backend partners defined in the database and processed as part of the request, so the branching will be tied into this. > I assume you've looked at django-piston I had not seen it, so thank you for pointing me in this direction! ~Jason --~--~-~--~~-

Re: Interesting code abstraction Challenge

2009-10-24 Thread Jason Beaudoin
Anyone else have thoughts on this, with respect to design considerations, implementing in python versus using some of django's tools.. ? On Fri, Oct 23, 2009 at 8:22 AM, Jason Beaudoin wrote: > 2009/10/23 kmike : >> >> Maybe you don't have enough information to

Re: Interesting code abstraction Challenge

2009-10-23 Thread Jason Beaudoin
e), I'm really interested in what has been done / known solutions to the general problem / do I have the right idea / any source folks can suggest / etc.. Thanks for taking the time to read about my situation! ~Jason --~--~-~--~~~---~--~~ You received this message be

Interesting code abstraction Challenge

2009-10-22 Thread Jason Beaudoin
his differently? How do I tie these translations into a generic process, with generic code, leaving the specifics to these translation functions? How the hell would you set this up? Even if I'm on the right path here, I'm having difficulty envisioning the python cod

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-09 Thread Jason Beaudoin
> > > @Jason - I think that's the number one reason I'm going to PostgreSQL. I > don't use everything all the time but I really like to have the widest array > of query syntax options. MySQL is just too limiting, especially when > PostgreSQL is available. > &g

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-07 Thread Jason Beaudoin
either, the main issue I have against MySQL is it's adherence (lack, that is) to the SQL standard. Moving a MySQL dB--> postgreSQL needn't be so messy. I'm also a bit weary of MySQL having been bought up. Cheers, ~Jason --~--~-~--~~~---~--~~ You

Re: Restricting database permissions

2009-09-07 Thread Jason Beaudoin
> We have a modified manage.py which let syncdb run with > the admin-account (interactive password prompt). > > Sounds fantastic! Might you be interested in posting your work? ~ Jason -- let's end our suffering, and let go of the debts we hold over the heads of others. let's rejo

Django Comments

2009-09-06 Thread Jason
Well, thanks to a old post on DjangoBot, I've got the new Django Comments framework installed w/o breaking my urls.py (had to go into django.contrib.comments & delete the "url" directory-- was that mentioned in any of the "migrating to 1.0" docs?) Now I'd like to test it out by simply having it s

easy way of display an user bar?

2009-07-27 Thread Jason Wang
Hi all, I have a base.html from which almost all of my templates are derived, and i would like to place a "user bar" on top of every page, so that the user have easy access to their profiles and such. Would i need to pass request.user along to every view in context to be able to include say user.

Re: pre-fetch one-to-many and many-to-many relationships

2009-07-20 Thread Jason Beaudoin
Miriam, If you do take this to django-developers, please post a link here, at least.. this would be greatly appreciated. Thanks :) ~Jason On Mon, Jul 20, 2009 at 7:39 PM, Russell Keith-Magee wrote: > > On Mon, Jul 20, 2009 at 11:21 PM, Miriam wrote: > > > > Hi Russ -- >

Re: Query Help: "Get Blogs where last Entry.title='foo'"

2009-06-16 Thread Jason
ntation/models/get_latest/ > > Then in the Blog Model define something like: > > def last_is_foo(self): >     if Entry.objects.latest().title == 'foo' >         return True >     return False > > Adding a CustomManager to that would easily give you back

Re: Query Help: "Get Blogs where last Entry.title='foo'"

2009-06-15 Thread Jason
hat covers > this exact situation that may help at > > http://docs.djangoproject.com/en/dev/topics/db/queries/#lookups-that-... > > I believe it could come out to something like this: > > e = Entry.objects.filter(title__exact='foo') > > blog = e.blog > > On J

Query Help: "Get Blogs where last Entry.title='foo'"

2009-06-15 Thread Jason
I'm new to django and attempting to leverage the query functionality. I'm not sure if what I'm attempting requires custom sql or if I"m just missing something. I'm spending alot of time with the docs but haven't found guidance for this issue. Just using blogs as an easy example, assume the model

Re: How do you handle scheduled downtime?

2009-06-14 Thread Jason Emerick
whatever I need to. Jason Emerick The information transmitted (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is intended only for the person(s) or entity/entities to which it is addressed and may contain confidential and/or privileged material

Re: IFEQUAL takes two arguments error on Django 0.91

2009-06-11 Thread Jason Beaudoin
On Wed, Jun 10, 2009 at 5:43 PM, Frank Peterson wrote: > > I'm on Django 0.91 (unfortunately we are stuck with that and cannot > upgrade). > I have a really hard time believe you truly are stuck. Migration may not be the simplest in the short-run, but certainly sensible in the long-term. Who want

Re: Bad snafu with attempted field add to Postgres

2009-05-25 Thread Jason
a) to artist_format, & all is well. So-- I like Navicat, anyone have any other favorite postgres admin software that doesn't suck? On May 25, 6:59 pm, Jason wrote: > Hey folks-- hope someone can possibly provide some insight here. > > I needed to add a field to a model. Djang

Bad snafu with attempted field add to Postgres

2009-05-25 Thread Jason
Hey folks-- hope someone can possibly provide some insight here. I needed to add a field to a model. Django (0.96)/mod_python (3.3.1)/ Python (2.5). Not sure which version of Postgres we're running. So I added the field to the model. Ran manage.py sqlall & got the (very simple) SQL to add the

FILE_UPLOAD_PERMISSIONS setting for directories?

2009-05-08 Thread Jason Geiger
hat is one part of my problem that may be particular to me. Maybe I should just be ensuring that I'm always setting a proper umask in my scripts and with Apache (or does Django set it using the wsgi handler?). If a separate setting is in order I can submit a patch though.

Re: Validation error when uploading jpeg via admin

2009-05-01 Thread Jason Sypolt
I completely removed pil from my system and rebuilt it with --force and now it seems to be working. Thanks for the help! On May 1, 10:23 am, George Song wrote: > Can you try the same operation using the Django development server and > see what happens? > > On 5/1/2009 7:19 AM,

Re: Validation error when uploading jpeg via admin

2009-05-01 Thread Jason Sypolt
Also, I'm going through wsgi and not mod_python. Not sure if that makes a difference.. On May 1, 10:12 am, George Song wrote: > On 5/1/2009 6:56 AM, Jason Sypolt wrote: > > > I have pil 1.1.6 installed - it can find a jpeg decoder and all tests > > pass. I'm using

Re: Validation error when uploading jpeg via admin

2009-05-01 Thread Jason Sypolt
Yes, and everything looks to be installed correctly under site- packages. I guess django can find everything ok too, otherwise I'd probably get an import error. On May 1, 10:12 am, George Song wrote: > On 5/1/2009 6:56 AM, Jason Sypolt wrote: > > > I have pil 1.1.6 installe

Validation error when uploading jpeg via admin

2009-05-01 Thread Jason Sypolt
I have pil 1.1.6 installed - it can find a jpeg decoder and all tests pass. I'm using django 1.0.2 and python 2.5 on centos 5.3. Whenever I try to upload a jpeg via the admin (ImageField), I get the following validation error. "Upload a valid image. The file you uploaded was either not an image o

Re: database user vs schema owner

2009-04-30 Thread Jason
I'm running 1.0.2 unfortunately. I'll run the idea of synonyms by our DBAs. Thanks! Jason On Apr 30, 11:53 am, Ian Kelly wrote: > On Apr 30, 12:30 pm, Jason Geiger wrote: > > > Hello. I'm using Oracle and I would like to have a restricted user for > > Django

database user vs schema owner

2009-04-30 Thread Jason Geiger
ing like that, I think an alter session should do the trick: alter session set current_schema=my_schema But I'm not sure where I should put something like that. Thanks, Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: how to use several different querysets in one single template(for a single url)?

2009-04-13 Thread jason
using the common view function(render_to_response) would solve the problems. i should have checked the django documentation more carefully. On Apr 13, 7:48 pm, jason wrote: > hi guys, > > i want to create a page includes several querysets to display several > boards of different st

how to use several different querysets in one single template(for a single url)?

2009-04-13 Thread jason
hi guys, i want to create a page includes several querysets to display several boards of different staffs. i used the generic.list_detail to do this, but the object_list seemed to accept only one dictionary argument to go. so how can i use several querysets in the single template to display diffe

question about template system

2009-03-18 Thread Jason Wang
Hi all, I have a problem where i have a list which stores a bunch of relevant key to another dictionary. I want to loop through the list and print out the information contained in the keys to output. Apparently it doesn't work. So for example i have the following: lst = ["a", "b"] dic = {"a":1

Re: problem about "You appear not to have the 'sqlite3' program installed or on your path."

2009-03-02 Thread jason
another question, but where should i put the 'sqlite3.exe' in order to use the 'python manage.py dbshell' command? On Mar 3, 10:48 am, jason wrote: > understood. thanks very much:-) > > On Feb 26, 8:03 pm, Ramiro Morales wrote: > > > > > On Thu,

Re: problem about "You appear not to have the 'sqlite3' program installed or on your path."

2009-03-02 Thread jason
understood. thanks very much:-) On Feb 26, 8:03 pm, Ramiro Morales wrote: > On Thu, Feb 26, 2009 at 9:51 AM, jason zones wrote: > > hello, all. > > i have a problem when i type "python manage.py dbshell" in the commandline > > within the mysite folder. i use

Re: Queryset Caching

2009-02-26 Thread Jason Broyles
Thanks for the reply. I was talking about using memcache to cache the view. If a search changes, will it get the cache or hit the database? On Feb 26, 6:11 pm, Alex Gaynor wrote: > On Thu, Feb 26, 2009 at 6:08 PM, Jason Broyles wrote: > > > I have a question about per view caching

Queryset Caching

2009-02-26 Thread Jason Broyles
I have a question about per view caching. Say I have a search form and someone performs a query that returns all of the results, then those results are cached. If they then did a new search with criteria in the search, will it use the cache or hit the database again? Or if they just sorted those r

problem about "You appear not to have the 'sqlite3' program installed or on your path."

2009-02-26 Thread jason zones
hello, all. i have a problem when i type "python manage.py dbshell" in the commandline within the mysite folder. i used sqlite3 as the db. when i typed the command, it showed the error "You appear not to have the 'sqlite3' program installed or on your path." my installed python version is 2.6 and i

Re: 'AdminSite' object has no attribute 'urls' issue

2009-02-04 Thread jason zones
; now it works. >>> thanks a lot. >>> >>> On Thu, Feb 5, 2009 at 12:10 PM, Alex Gaynor wrote: >>> >>>> >>>> >>>> On Wed, Feb 4, 2009 at 11:05 PM, jason wrote: >>>> >>>>> >>>>> hell

'AdminSite' object has no attribute 'urls' issue

2009-02-04 Thread jason
hello all. i followed the django tutorial, to the second part ,when activate the admin site, typing url 'http://localhost:8000/admin/' in the browser's address bar, this error showed up. my django version is 1.0.2, and python version is 2.6, using sqlite3. are there any configurations wrong with t

guidance on serialization

2009-01-29 Thread Jason Geiger
t so I still have limited knowledge the framework. :) I'm using 1.0.2. Thanks! Jason [1] http://groups.google.com/group/django-users/browse_thread/thread/c930cf920e726bbd/4faa358b8c91365d --~--~-~--~~~---~--~~ You received this message because you are s

Re: QuerySet.create(**kw) and force_insert

2009-01-28 Thread Jason Geiger
ne extra line isn't too onerous. Maybe I was trying to regain that giddy feeling you get when you find that you can reduce your code to a one-liner. :) Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

<    2   3   4   5   6   7   8   9   >