Re: Need help selecting a Django hosting provider

2007-10-17 Thread Adam Fast
I would also recommend WebFaction. If you really want to be your own admin, SliceHost is good too -but you have to know how to run your own server. >From the managed perspective, WebFaction is the best. --~--~-~--~~~---~--~~ You received this message because you

Re: Django rearranges query strings?

2007-10-24 Thread Samuel Adam
It may have something to do with the CommonMiddleware: http://www.djangoproject.com/documentation/middleware/#django-middleware-common-commonmiddleware It doesn't see the trailing slash on your query : /app? and redirects to /app/? Your redirect is strange, it could be a misuse of a regexp in

Re: Query on Instant Messaging

2007-10-24 Thread Samuel Adam
http://www.jabber.org/about/overview.shtml On Oct 24, 10:06 am, Subramanyam <[EMAIL PROTECTED]> wrote: > Hi > > Do we have any libraries in django to provide instant messaging or are > there any open source project that we can integrate it into our web > server (Django-server ) and provide

Setting up your django project outside the document root

2007-10-27 Thread Adam D.
I am a newbie. Everywhere I read about django, it suggests to put your django project outside of your servers document root. My question is if my document root is '/var/www/vhosts/domain.com/ doc_root' and I put my project outside of that root, at '/var/www/ vhosts/domain.com/django_site' how

Re: Setting up your django project outside the document root

2007-10-27 Thread Adam D.
it... > I recently did exactly this and wrote up the procedure > here:http://ianlawrence.info/random-stuff/set-up-django-apache-and-postgre... > > hope this helps > Ian > > On 10/27/07, Adam D. <[EMAIL PROTECTED]> wrote: > > > > > > > I am a newbie

More of an apache question...

2007-10-29 Thread Adam D.
...But I can't get it answered anywhere else. I recently installed django, and am storing my projects in... /home/web/django_projects/ I need to set up an ftp user to have access to /home/web/django_projects/ How would I go about doing that? And what address would I put in my ftp explorer? My

Re: More of an apache question...

2007-10-29 Thread Adam D.
thanks, got it working by creating a directory just outside my doc_root On Oct 29, 11:36 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-10-29 at 20:22 -0700, Adam D. wrote: > > ...But I can't get it answered anywhere else. > > > I recently installed d

Looking for a developer

2007-10-31 Thread Adam Jenkins
350 N. La Salle St. Chicago, IL 60610 If interested, please contact me at [EMAIL PROTECTED] Phone: 312.595.4949 -- --- Adam Jenkins [EMAIL PROTECTED] --- --~--~-~--~~~---~--~~ You received

Re: django and s3

2007-11-10 Thread Adam Fast
to upload your files to Amazon and let them be your web host - that is not possible. With Amazon's EC2 you can configure it to run Django since it is a Linux virtual machine - but not S3. Adam On Nov 10, 2007 5:18 PM, sebastian stephenson <[EMAIL PROTECTED]> wrote: > > I am considering

Re: django and s3

2007-11-11 Thread Adam Fast
ECTED]> wrote: > > ok so I will have a look at EC2 thanks very much for that anything > else I may encounter useing amazon elastic computing service > > On Nov 11, 1:01 am, "Adam Fast" <[EMAIL PROTECTED]> wrote: > > Sebastian, > > > > S3 is simply a sto

Re: Looking for an example on how to use us.forms.USZipCodeField

2008-09-30 Thread Adam Stein
agee wrote: > On Fri, Sep 26, 2008 at 9:11 PM, Adam Stein <[EMAIL PROTECTED]> wrote: > > > > While there is are phone number and US state model fields, there doesn't > > seem to be the equivalent zip code field, even though there is a zip > > code form element.

Re: Django book says MSSQL works with 1.0...?

2008-10-09 Thread Adam V.
I'm the django-mssql maintainer; please do post in bugs or weirdness you run into to http://code.google.com/p/django-mssql/ and I'll try to get the fixed. Thanks, -Adam V. (For what it's worth, at work we're using Apache + mod_python for our internal development; haven't gone to production yet

Re: Django book says MSSQL works with 1.0...?

2008-10-10 Thread Adam V.
> OT: I respect your position but, why you use mssql? Our IT systems at work are already Windows / SQL Server based, so it made sense to do our new web development against the same database. --~--~-~--~~~---~--~~ You received this message because you are

Re: Which IDE do you choose with django?

2008-10-13 Thread Adam Schmitz
for > > django? > > > > thank your > > > > > Abdel Bolaños Martínez > Ing. Infórmatico > Telf. 266-8562 > 5to piso, oficina 526, Edificio Beijing, Miramar Trade Center. ETECSA > > > -- Adam "Do one thing, and do it well." -- The UNIX

Streaming Video

2008-10-13 Thread Adam Schmitz
Does anyone know of any Django Apps that you can plug into your site to stream video content like YouTube (but the video file is hosted yourself, not by YouTube)? -- Adam "Do one thing, and do it well." -- The UNIX Philosophy --~--~-~--~~~---~--

Re: Setting up Django on CentOS5 with flup and fastcgi

2008-10-21 Thread Adam Nelson
-fastcgiwsgi-django-deployment I haven't put any real load on this stuff yet but it sounds like wsgi is a champ and it's certainly been great for me so far. -Adam On Oct 21, 1:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > yes i have read that.. > > it seems

Re: Django Suitability

2008-10-23 Thread Adam Nelson
systems - which says alot about how solid it is and how it's here to stay. -Adam On Oct 23, 6:21 am, "Matthew Talbert" <[EMAIL PROTECTED]> wrote: > Thanks, Dj, that is helpful. > > > A project I worked on over the summer used a Database that was 130 > > tables, and g

Re: why not django's default server?

2008-10-25 Thread Adam Fast
It's worth mentioning as well that the Django "built-in" dev server is single-threaded the last time I heard, and with transferring large files / the application itself, I see a lot of your users getting "busy signals" so to speak from the server when they request pages. A few thousand pageviews

Per-Test Caching?

2008-11-08 Thread Adam Seering
put it s.t. it runs before (and, ideally, after, for cleanup purposes) all test cases? Adam --~--~-~--~~~---~--~~ 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

ChicagoLug Code review

2008-11-13 Thread Adam Jenkins
We would like to announce that this Saturday November 15th from 3 to 6pm is the Chicago Lug code review meeting. If you're stuck on a piece of code, looking to learn a few tricks, or just wanna hang out with some nerds, then come by. We will have people with knowledge in C, Python, Django,

djangobook ch3, can't see the view current_datetime

2008-11-16 Thread Adam Yee
I'm a new user to Django, hi everyone. My system: Windows XP Python 2.5 Apache 2.2 >>configured for mod_wsgi MySQL, MySQLdb #Irrelevant at this point My issue: Having trouble getting the through the first example. Basically, when directing the browser to '.../time/' I'm still at the 'It

Re: djangobook ch3, can't see the view current_datetime

2008-11-16 Thread Adam Yee
008-11-16 at 17:41 -0800, Adam Yee wrote: > > [...] > > Good debugging info snipped. > > > When enteringhttp://localhost:8080/testproject/timeI'm reading this > > in the Apache error log: > > > [Sun Nov 16 17:27:37 2008] [info] mod_wsgi (pid=1768): Create &g

Re: automatically save latitude and longitude of the address.

2008-11-17 Thread Adam Fast
is more useful if other models in your system will require geocoding. I'd definitely rename the function though because it's doing more than just returning latitude at that point.) Code at: http://dpaste.com/91483/ Adam On Mon, Nov 17, 2008 at 3:19 AM, please smile <[EMAIL PROTECTED]> wrote: &g

change/edit list not showing in admin interface

2008-12-03 Thread Adam Yee
Hi, Going through chapter 6 in the djangobook. Using 1.1 SVN-9368. I think this chapter might be missing a step or two, or there's something I'm overlooking. In both the django development server and my apache server I can't seem to show the created models 'Publiser, Author and Books'. All

Re: Combining multiple Django applications.

2008-12-13 Thread Adam Fast
into one with no intermediate (make sure you read the comments, there is additional helpful discussion on performance and other methods there) Adam http://ryanberg.net/blog/2008/jun/24/basics-creating-tumblelog-django/ http://lazypython.blogspot.com/2008/11/timeline-view-in-django.html 2008

TextMate Django Bundle

2008-12-17 Thread Adam Nelson
Does anybody have this working in TextMate? "Python Django Templates.tmbundle" >From http://macromates.com/svn/Bundles/trunk/Bundles/ I've installed other bundles and the Python Django.tmbundle, but the Templates one simply doesn't appear in the Bundles menu.

typing in django

2008-06-20 Thread Adam Fraser
.__dict__[field] after loading it here p=Project.objects.filter(id=self.id)[0]... I think this would be preferable to comparing all values as strings. Many thanks, Adam def record_project_modifications(self, old_project): '''Creates and stores ProjectModifications that differ betwee

FlatPageSitemap broken?

2008-06-23 Thread Adam Woodbeck
" is referenced is in the FlatPageSitemap class in django/contrib/sitemaps/ __init__.py. Am I missing something here or is this a bug? BTW, I'm using the latest django source. Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: FlatPageSitemap broken?

2008-06-23 Thread Adam Woodbeck
I apologize. The problem is solved. On Jun 23, 3:09 pm, Adam Woodbeck <[EMAIL PROTECTED]> wrote: > I'm in the process of setting up a sitemap for our website.  I've > successfully used GenericSitemap to add our blog posts to the > sitemap.  However, I'm running into p

elusive Post error

2008-07-08 Thread Adam Fraser
applications, so I'm not sure where to start here. We're running on Apache and using SSL for authentication, but I disabled SSL and the problem persists. Here's my settings file anyway... any ideas? -Adam # Django settings for ProjectProfiler project. import posix # for getuid import pwd

Re: connection.queries - show improper SQL?

2008-07-08 Thread Adam V.
>From the source for QuerySet.__str__: Returns the query as a string of SQL with the parameter values substituted in. Parameter values won't necessarily be quoted correctly, since that is done by the database interface at execution time. The __str__ method just does a naive Python % operation,

Re: Autoupdate field?

2008-07-13 Thread Adam Fast
in the docs to look up all persons in that family, update their respective phone numbers (saving after each one) then save the family object. Again, that is not the best-practices way to store data. If it's always the same, don't keep it scattered around. Adam On Sat, Jul 12, 2008 at 12:20 PM, Xan

Re: Creating a Scheduled Task

2008-07-13 Thread Adam Fast
I'm not sure about admin integration but there are two apps out there that handle task scheduling. http://code.google.com/p/django-cron/ http://code.google.com/p/django-jits/ On Sat, Jul 12, 2008 at 9:53 AM, Chris <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm a newbie to Django, and I'm trying to

Site wide date format

2008-07-15 Thread Adam Peacock
I'm looking for a consistent way to format dates across my site, without having to put the format into every template. Is it possible to set a default date format for the "date" filter? For example, I want {{ var.date|date }} to format to {{ var.date|date:"l, F j Y" }} unless I specify

Re: Site wide date format

2008-07-15 Thread Adam Peacock
Thank you for the quick response - I think I'm going to go with the custom filter for maximum flexability On Jul 15, 9:25 am, "Brett Hoerner" <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > > Is this possible

Re: What do you use as a build tool (like Ant or make)

2008-09-09 Thread Adam Stein
ts. > * transfer distribution > > Perhaps you just hand build python scripts to do it. Or do you use > Ant or make? I'm coming over from Java, and used to use Ant, but I'm > migrating over to Python and would like to use what is generally > considered the Pythonic way. >

django-locationtracking Reusable App

2008-09-18 Thread Adam Fast
personal site to be generic) and multi-user support baked in, but if you're interested in using it it's ready to go with the InstaMapper iPhone/other phone handsets backend. Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: django google-app-engine appengine backend

2008-09-18 Thread Adam Fast
, but if that's there then the app isn't being picked up for that reason. Adam On Thu, Sep 18, 2008 at 10:29 PM, bfrederi <[EMAIL PROTECTED]> wrote: > > I am trying to get django1.0 running with the google-app-engine SDK. I > am using the "Google App Engine Helper fo

Updates not working

2008-09-22 Thread Adam Findley
reason this fails in the view, but doesn't fail in the shell... I'm at such a loss here. Any ideas here? Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

[OT] Looking for developers: platform for fast and effective learning

2008-09-25 Thread Adam Dziendziel
changing tools. Best regards, Adam Dziendziel adam (dot) dziendziel (at) gmail (dot) com PS. Sorry for OT, it is hard to find a good place to ask. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Looking for an example on how to use us.forms.USZipCodeField

2008-09-26 Thread Adam Stein
. Thanks for any links, pointers, examples, etc. -- Adam Stein @ Xerox Corporation Email: [EMAIL PROTECTED] Disclaimer: Any/All views expressed here have been proven to be my own. [http://www.csh.rit.edu/~adam/] --~--~-~--~~~---~--~~ You received

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-03-12 Thread Adam Yee
c[key] = value response = HttpResponse(t.render(c), mimetype=mimetype) populate_xheaders(request, response, model, getattr(obj, obj._meta.pk.name)) return response > > On Jan 19, 7:17 am, Adam Yee <adamj...@gmail.com> wrote: > > > > > Success.  I

Re: : msiexec and Python 2.6.1 on Windows

2009-03-12 Thread Adam V.
There is a bug in Python 2.6.1 (introduced in that version, it wasn't there in 2.6) which is that the CRT manifests aren't set up correctly. This prevents, for instance, compiling and using mod_python 2.6.1 against Apache without giving httpd.exe a manifest file. http://bugs.python.org/issue4566

Getting multiple values from a QuerySet

2009-03-13 Thread Adam Nelson
do this frequently and it seems wasteful Something like o1.employees.all() would be ideal but if o1 is a QuerySet, that won't work. Thanks for any help, even if I can just get a definitive 'no - that's the best way to do it'. -Adam --~--~-~--~~~---~--~~ You received this m

need a multiselect list box for a static list of options

2009-03-23 Thread Adam Fraser
at a time. It looks like models.CommaSeparatedIntegerField would be good for this, but how can I get a multi-selection list box as an input? -adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: need a multiselect list box for a static list of options

2009-03-23 Thread Adam Fraser
going for, but seems to complicate things, requiring me to make a whole separate model class and add the corresponding tables and columns to my database when all I want are a few static choices. Thanks for taking the time to respond! Any other ideas? -Adam On Mar 23, 3:09 pm, Briel <to

Can I limit the choices in a ContentType field in admin?

2009-03-23 Thread Adam Stein
sly, if I don't use choices, it works but then I have a very long list of model choices. -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com Disclaimer: Any/All views expressed here have been proven to be my own. [http://www.csh.rit.edu/~adam/] --~--~-~--~~

Re: need a multiselect list box for a static list of options

2009-03-23 Thread Adam Fraser
I found the SelectMultiple widget here: http://docs.djangoproject.com/en/dev/ref/forms/widgets/ But I still don't know how to hook that up to a model like CommaSeparatedIntegerField. help? On Mar 23, 3:25 pm, Adam Fraser <adam.n.fra...@gmail.com> wrote: > I don't see anythi

Having trouble authenticating/validating

2009-03-23 Thread Adam Yee
I'm using Django's builtin AuthenticationForm Here's my login view: http://dpaste.com/18110/ Form submittal (not empty or empty fields) takes me back to the login page with 'Did not login'. My debugging print statement isn't showing up in the terminal, so is_valid is somehow returning false.

Re: need a multiselect list box for a static list of options

2009-03-24 Thread Adam Fraser
in the admin pages on the site... they are just automatic. What confuses me to death is how all I need to do is add "from django import forms" to the above code to make it break. -Adam Brian Neal wrote: > On Mar 23, 3:36 pm, Adam Fraser <adam.n.fra...@gmail.com>

Re: Having trouble authenticating/validating

2009-03-24 Thread Adam Yee
On Mar 23, 8:30 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee <adamj...@gmail.com> wrote: > > > I'm using Django's builtin AuthenticationForm > > > Here's my login view:http://dpaste.com/18110/ > > > Form subm

Re: What's the most scalable Django deployment out there currently?

2009-03-24 Thread Adam V.
Curse (http://www.curse.com/) manages to stay up on WoW patch day, so that's a pretty good sign. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Having trouble authenticating/validating

2009-03-25 Thread Adam Yee
On Mar 23, 8:30 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee <adamj...@gmail.com> wrote: > > > I'm using Django's builtin AuthenticationForm > > > Here's my login view:http://dpaste.com/18110/ > > > Form subm

Re: need a multiselect list box for a static list of options

2009-03-26 Thread Adam Fraser
? You suggested something like this earlier only referred to forms.CommaSeparatedIntegerField rather than models.CommaSeparatedIntegerField. hrm On Mar 24, 10:59 am, Brian Neal <bgn...@gmail.com> wrote: > On Mar 24, 8:55 am, Adam Fraser <adam.n.fra...@gmail.com> wrote: > >

Re: Having trouble authenticating/validating

2009-03-26 Thread Adam Yee
On Mar 25, 6:27 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Tue, Mar 24, 2009 at 2:11 PM, Adam Yee <adamj...@gmail.com> wrote: > > So, I now pass the bound form, but still no validation error messages > > show up.  More importantly, is_valid is still returnin

Re: need a multiselect list box for a static list of options

2009-03-26 Thread Adam Fraser
or at line 28 28{% trans 'Change password' %} ...I can't figure out what the password_change view as to do with the commaseparatedintegerfield. Thanks again :] Adam On Mar 26, 11:39 am, Brian Neal <bgn...@gmail.com> wrote: > On Mar 26, 9:59 am, Adam Fraser <adam.n.fra...@gmail.co

Re: Can I limit the choices in a ContentType field in admin?

2009-04-01 Thread Adam Stein
et_for_model(My_Model), "Model 1"), > (ContentType.objects.get_for_model(My_Other_Model), "Model > 2"), > ) > > Obviously, make sure you import your model before you try to use it. > > On Mar 23, 3:26 pm, Adam Stein <a...@eng.mc.xerox.com> w

Re: Can I limit the choices in a ContentType field in admin?

2009-04-01 Thread Adam Stein
> > So it should be > > CHOICES = ( > > (ContentType.objects.get_for_model(My_Model), "Model 1"), > > (ContentType.objects.get_for_model(My_Other_Model), "Model > > 2"), > > ) > > > > Obviously, make sure you import your model befo

Fixtures for django.contrib.sites.Site

2009-04-01 Thread Adam Nelson
}, ] And I get this error: ... File "/Library/Python/2.5/site-packages/django/utils/simplejson/decoder.py", line 221, in JSONArray raise ValueError(errmsg("Expecting object", s, end)) ValueError: Expecting object: line 10 column 1 (char 124) Any ideas for the correct model

Re: Mod_wsgi and mod_python

2009-04-02 Thread Adam N
You should definitely consider Nginx with FastCGI. Something like this: http://wiki.nginx.org/NginxDjangoFastCGI On Apr 2, 2:20 am, Pythoni wrote: > I am using Django with mod_python and it works but during peak times > ( heavy loads about 50 Apache jobs), the system is almost

Re: Fixtures for django.contrib.sites.Site

2009-04-02 Thread Adam N
Thanks a ton - that's exactly what the issue was. On Apr 1, 8:28 pm, Russell Keith-Magee wrote: > On Thu, Apr 2, 2009 at 5:49 AM,AdamNelson wrote: > > How do I do a fixture for the Site model?  I've tried all sorts of different > > model names > > [ > >  

Re: Error creating test database

2009-04-02 Thread Adam N
the existing table intact. This will duplicate data though - are these highly accessed tables? I think. -Adam On Apr 2, 9:23 am, "Andrew G." <agross...@gmail.com> wrote: > I have a django app that is built against an existing database.  In > the database, there are a couple t

Re: django.contrib.auth user password decryption

2009-04-05 Thread Adam N
really is for your own good. Two way encryption of passwords is unsafe both because somebody can get and use them without the owner even knowing that they've been compromised and because anybody with the decryption key (often anybody with access to the codebase) can get passwords. -Adam On Apr 5

Re: need a multiselect list box for a static list of options

2009-04-06 Thread Adam Fraser
m): class Meta: model = Project stains = forms.CommaSeparatedIntegerField (widget=forms.SelectMultiple(choices=STAINS_CHOICES)) but I can't figure out what I'm doing wrong. -Adam On Mar 26, 2:08 pm, Adam Fraser <adam.n.fra...@gmail.com> wrote: > First, I want to tha

Re: need a multiselect list box for a static list of options

2009-04-06 Thread Adam Fraser
Yeah, I just realized I'm running django 0.97 On Apr 6, 1:32 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Apr 6, 2009 at 11:57 AM, Adam Fraser <adam.n.fra...@gmail.com>wrote: > > > > > Does anyone have a clue why I can't access ModelAdmin in > >

Re: need a multiselect list box for a static list of options

2009-04-07 Thread Adam Fraser
Yup: >>> django.get_version() u'0.97-pre-SVN-unknown' On Apr 6, 1:45 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Mon, Apr 6, 2009 at 1:40 PM, Adam Fraser <adam.n.fra...@gmail.com> wrote: > > > Yeah, I just realized I'm running django 0.97 > > &

Best Practices - Model Changes on Production servers

2009-04-07 Thread Adam Nelson
found Fabric (http://www.nongnu.org/fab/) which is geared more towards large deployments where scripting is more time-efficient than just doing things 'in real time'. My biggest need right now is to get an ALTER TABLE generator. Please let me know if one exists. Thanks, Adam

Ignore Fixtures or Skip Fixtures

2009-04-08 Thread Adam Nelson
Is there any way to ignore fixtures when running syncdb? I'm using django-command-extensions and when using runscript from a previous datadump, I get a unique index violation. I'd like to be able to ignore fixture imports. Thanks for any help, Adam

Re: Ignore Fixtures or Skip Fixtures

2009-04-08 Thread Adam N
On Apr 8, 11:13 am, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Wed, Apr 8, 2009 at 10:27 PM, Adam Nelson <a...@varud.com> wrote: > > > Is there any way to ignore fixtures when running syncdb?  I'm using > > django-command-extensions and when u

Aggregates with multiple (conflicting) conditions?

2009-04-08 Thread Adam Seering
around this without using custom SQL? Adam --~--~-~--~~~---~--~~ 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 g

Re: Running Django admin site using Lighttpd

2009-04-09 Thread Adam N
-1ubuntu1 on my Ubuntu Intrepid > > machine. > You can also try nginx. The path for nginx seems to be more well trod by the Django community. Here is my nginx.conf. With that nginx, Django needs to ru

rendering values from ManyToMany fields

2009-04-10 Thread Adam Fraser
Hello, I'm using a ManyToManyField to model a relationship where a "Project" object may have many different "Stain" objects. The code is working successfully and looks like this class Stain(models.Model): def __unicode__(self): return unicode(self.name) name =

Re: rendering values from ManyToMany fields

2009-04-13 Thread Adam Fraser
wrote: > On Fri, 2009-04-10 at 12:16 -0700, Adam Fraser wrote: > > [...] > > > The problem I'm running into is that the value that comes into render > > for the ManyToManyField is a list of the id's for the selected stains > > and not the stains themselves.  I assume

Re: rendering values from ManyToMany fields

2009-04-13 Thread Adam Fraser
, field_name).get_query_set()]) except: display_value = None # -- self.fields[field_name].widget = ReadOnlyWidget(getattr (obj, field_name, ''), display_value) On Apr 13, 9:54 am, Adam Fraser <adam.n.

RadioSelect widget not rendering

2009-04-15 Thread Adam Yee
Can't get the forms.RadioSelect widget to render. I'm using svn 10559, I've looked over forms/widgets.py, but I don't know... I'm able to use forms.CheckboxSelect just fine. Is it Firefox giving me issues? What's going on here? #forms.py class PollForm(forms.Form): def make_fields(self,

Adding a "View" Link (similar to add and change links) to the admin

2009-04-15 Thread Adam Olsen
ot; icon I stole from Tango. Has anyone found a better (and better looking) way to do something like this? Thanks in advance, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Adding a "View" Link (similar to add and change links) to the admin

2009-04-15 Thread Adam Olsen
p with a better looking method. A better icon? Also, the template override is kind of ugly, see: http://rafb.net/p/qtVGDI52.html -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you

Dynamic Form - polls

2009-04-18 Thread Adam Yee
I've been struggling with dynamically creating and validating forms. So far I've been able to create the forms using a ModelChoiceField. see below - models, forms, views, template http://dpaste.com/hold/35292/ After submitting the votes, in the if request.method=="POST" hook, I can't figure out

Re: Dynamic Form - polls

2009-04-19 Thread Adam Yee
On Apr 18, 3:23 pm, google torp wrote: > Hi. > Normally, what you are doing would work, initializing the form > with request.POST. However the way you have constructed > your form, you need have a poll object as well. Not only that > but it should of cause be the poll that

Overriding save() method on models to automatically add ManyToMany relationship

2009-04-27 Thread Adam Olsen
to make this work? -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Overriding save() method on models to automatically add ManyToMany relationship

2009-04-27 Thread Adam Olsen
Even with the proper syntax, it doesn't save the ManyToMany relationship. -- Adam Olsen SendOutCards.com http://www.vimtips.org http://last.fm/user/synic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Can not get Django admin page

2009-05-05 Thread Adam Stein
gt; > > > 2. Run python manage.py syncdb. Since you have added a new > > > > application to INSTALLED_APPS, the database tables need to be > > > > updated. > > > > 3. Edit your mysite/urls.py file and uncomment the lines below the > > > > “Uncomment th

Recursive ManyToMany field question

2009-05-19 Thread Adam Olsen
] >>> automobile.related.all() [] How do I make it so that if I add a relation of 'automobile' to 'car', it doesn't automatically add a reverse relation like that? -- Adam Olsen http://www.vimtips.org --~--~-~--~~~---~--~~ You received this message becaus

Re: Recursive ManyToMany field question

2009-05-19 Thread Adam Olsen
On Tue, May 19, 2009 at 11:12 PM, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > You're looking for a non-symmetrical m2m relation: > > http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.symmetrical > Exactly what I was looking for,

ValidationError exception message not coming through

2009-05-28 Thread Adam Stein
ror message to the form if I don't receive it in the first place. When the field is blank, I get the correct error message that I expect to see: Errors = [ PDF_FileThis field is required. ] Any thoughts on what else I might try or look at? -- Adam Stein @ Xerox Corporation Email: a..

Re: ValidationError exception message not coming through

2009-05-28 Thread Adam Stein
ore reaching the > clean_PDF_File method, that is it fails at the FileField's clean > method. Perhaps, you haven't supplied a file. :) > > On May 28, 3:02 pm, Adam Stein <a...@eng.mc.xerox.com> wrote: > > Running Django v1.0.2. > > > > I have a form with a file fie

Re: Using the django orm outside a web system

2009-06-03 Thread Adam Stein
set in order to > easily use the ORM automatically for me to be able to work with those > files over the web interface later?? in other words, what settings are > loded everytime I execute python manage.py shell? > > Thanks a lot > jhv > > > -- Adam Stein @ Xerox Corporatio

Re: LDAP support in Django?

2009-06-05 Thread Adam Stein
d up with a > certain other Python web framework's poor documentation and unhelpful > community. > > Thanks, > > Mike > -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com Disclaimer: Any/All views expressed here have been pro

Using Django authentication for web pages outside Django?

2009-06-05 Thread Adam Stein
if necessary. -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com Disclaimer: Any/All views expressed here have been proven to be my own. [http://www.csh.rit.edu/~adam/] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Using Django authentication for web pages outside Django?

2009-06-08 Thread Adam Stein
/django/old app) > > On Jun 5, 1:26 pm, Adam Stein <a...@eng.mc.xerox.com> wrote: > > I'm trying to figure out a way to use Django authentication to control > > access to web pages (on the same web server) that are NOT under Django. > > > > I have found som

Re: Using Django authentication for web pages outside Django?

2009-06-08 Thread Adam Stein
Thanks for the link. The description sounds like just what I need. On Fri, 2009-06-05 at 20:46 -0700, Graham Dumpleton wrote: > Have a look at: > > http://www.openfusion.com.au/labs/mod_auth_tkt/ > > Graham > > On Jun 6, 6:26 am, Adam Stein <a...@eng.mc.xerox.co

Re: problem using ajax in django

2009-06-10 Thread Adam Stein
// alert($("#id_state").val()); > // getdistricts($("#id_state").val()); > > $("#id_state").change(function(){ > getdistricts($("#id_state").val()); > }); > > //

Re: Error loading MySQLdb module: libmysqlclient_r.so.16 - Help please

2009-06-15 Thread Adam Stein
import MySQLdb' statement work, is that the correct environment variable? > > > > As a note, I installed mysql from the .tar.gz files and MySQLpython from > > the .tar.gz files as well. I can't use any sort of package manager to > > instal

Re: django nginx fastcgi and flup

2009-06-16 Thread Adam N
pages is greatly appreciated. -Adam On Jun 12, 1:41 pm, Matt Davies <tonm...@gmail.com> wrote: > Hello Dhruv > I've been using this configurement for ages, and we recently updated our > django code.  The app runs almost %100, but there's a certain part that > calls a number of tags o

Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
When enabling bulk edit mode for an Admin list view, is it possible to control the widgets used? For the normal editor you can of course specify a custom form, but I'm not seeing a way to customize the fields in the list view. Basically, I want to specify that some text fields fields in the list

Re: Customzing form fields in Admin in list_editable mode?

2009-06-18 Thread Adam V.
Alex, thanks; that's what I was afraid of. If no one else has, I'd be willing to take a stab at a patch for 1.2. On Jun 18, 12:40 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Thu, Jun 18, 2009 at 2:38 PM, Adam V. <fla...@gmail.com> wrote: > > > When enabling bul

Re: Using pluralize with floats?

2009-06-23 Thread Adam V.
Float is an inexact numeric type, so this sort of thing gets problematic. For a "number of bathrooms" field, why not use a CharField with a limited set of choices or custom validation? On Jun 23, 12:19 pm, Peter Schroeder wrote: > Hello, > > Has anyone tried to use

Re: Django Server performance

2009-07-07 Thread Adam Jenkins
On Tue, Jul 7, 2009 at 1:16 PM, Ramdas S wrote: > Hi, > > We have a web server where we are hosting around 12-15 django web sites > most of them attracting modest traffic, except a couple which sees spiikes > on and off. Together we estimate just about 20,000-40,000 page views.

Re: edit form not working with imagefield

2009-07-07 Thread Adam Jenkins
On Tue, Jul 7, 2009 at 3:19 PM, geraldcor wrote: > > Oh. That's a problem. Ok. Thanks. Am I going to have to scrap the ajax > idea if I want to edit the image? Any other workarounds? I know that Dojo allows one to upload files with Ajax. It uses an iframe as a work around.

Any way to save the output of a template filter to another variable?

2009-07-08 Thread Adam Stein
it (which is what it looks like), anybody know of any tags that can do this? -- Adam Stein @ Xerox Corporation Email: a...@eng.mc.xerox.com Disclaimer: Any/All views expressed here have been proven to be my own. [http://www.csh.rit.edu/~adam

<    1   2   3   4   5   6   >