Re: Django Core mentorship list

2013-04-03 Thread Jeremy Dunck
Ahem: [1] https://groups.google.com/forum/?fromgroups#!forum/django-core-mentorship :) On Wed, Apr 3, 2013 at 11:44 AM, Jeremy Dunck <jdu...@gmail.com> wrote: > Hey all, > I've just created django-core-mentorship[1] with founding members > including Carl Meyer, Jacob Kap

Django Core mentorship list

2013-04-03 Thread Jeremy Dunck
Hey all, I've just created django-core-mentorship[1] with founding members including Carl Meyer, Jacob Kaplan-Moss, Simon Charette, and Russell Keith-Magee. Modeled after pythonmentors.com, the intention is to help more people make the leap from using django to contributing to it. It is a

Re: Getting tuple of (sql, params) from the ORM.

2012-06-26 Thread Jeremy Dunck
On Tue, Jun 26, 2012 at 11:40 AM, David Novakovic wrote: > Hey all, > > Is it possible to get a tuple of (sql, params) from an ORM queryset? Yep: sql, params = qs.query.get_compiler('default').as_sql() (Fancy meeting you here. :)) -- You received this message

Re: Django (and Python) speakers

2012-02-07 Thread Jeremy Dunck
I'd also like to see Malcolm again, but I fear that'll take a trip to Sydney. :) On Tue, Feb 7, 2012 at 9:29 PM, Jeremy Dunck <jdu...@gmail.com> wrote: > The original musketeers, Jacob, Simon, and Adrian, are all great > speakers, of course. > > I thought Jeff Balough, Mik

Re: Django (and Python) speakers

2012-02-07 Thread Jeremy Dunck
The original musketeers, Jacob, Simon, and Adrian, are all great speakers, of course. I thought Jeff Balough, Mike Malone, and Eric Florenzano did very well on their talks. David Cramer represents Disqus well and has recently released Sentry 2. As a particular pain points for me, I'd like to

Fixture migrations using South?

2011-11-30 Thread Jeremy Dunck
I have some test fixtures with scenarios under test. Later, I need to migrate (with South) the DB schema around, which of cours necessitates changing domain and test code. A common problem I run into, though, is that I also need to migrate the data in my fixtures. It is possible to create a new

Re: cannot import blank value to IntegerField()

2011-08-04 Thread Jeremy Dunck
On Wed, Aug 3, 2011 at 5:08 PM, Didymus wrote: ... > ERROR:  invalid input syntax for integer: "" > CONTEXT:  COPY train_emp, line 1, column phone: "" ... > I have tried the following code in models.py > > phone  = models.IntegerField(blank=True) > phone  =

Re: How to display Scientific Notation for a field on the admin pages?

2011-08-04 Thread Jeremy Dunck
On Tue, Aug 2, 2011 at 12:32 PM, DjangoOfWar wrote: > Right now I have a Decimal field in my model but I'd like it to > display as scientific notation on the admin pages. > > Do I need to make a custom model field, that uses a custom form field > or is there an easier way? >

Django for lean - app recommendation - A/B, cohort, user lifecycle, etc.

2011-05-22 Thread Jeremy Dunck
Hey all, I'm working on a project where I'd like to do user cohort analysis, create user lifecycle events (such as when a user hasn't used the site in X time), and A/B test changes. I know about https://bitbucket.org/akoha/django-lean/ but was wondering if people had any other favorites in

Re: How can I flush my response stream in django?

2010-10-06 Thread Jeremy Dunck
On Wed, Oct 6, 2010 at 3:58 PM, Emil Stenström <e...@kth.se> wrote: > On Aug 24 2007, 8:18 pm, "Jeremy Dunck" <jdu...@gmail.com> wrote: >> >> On 8/24/07, whitesmell <jihua.p...@gmail.com> wrote: >> > One of my  response content was build

Re: New User - Writing your first Django app part 1 crashed

2010-04-12 Thread Jeremy Dunck
On Sat, Mar 27, 2010 at 10:40 PM, Paul Harouff wrote: > On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich > wrote: >> Are you sure that the postgres driver of your jython is installed ? >> > > Yes. But I don't believe Jython is seeing it. > > I might

Re: RV: photos sexy

2010-02-26 Thread Jeremy Dunck
That's enough, folks. Gisela seems to be doing some off-topic work and made a silly mistake using gmail autocomplete. Let's let this one go. There's no need to be crass or misogynist. On Fri, Feb 26, 2010 at 11:22 AM, Juan Hernandez wrote: > Lastima que esa no seas tu

Dallas Django sprint 4/18 - 4/19 at CoHabitat

2009-04-07 Thread Jeremy Dunck
We've firmed up the Dallas Django sprint plans: Django 1.1 is around the corner, but there are lots of bugs left to squash. Come meet the other Django people around Dallas and check out Cohabitat, the great coworking spot in uptown. We'll start Saturday, April 18, 2009 at 9:00am through Sunday,

[OT] python + rrdtool?

2009-03-06 Thread Jeremy Dunck
Does anyone use a python interface to rrdtool? I've looked around, and it seems there are several interfaces, but non have been updated recently. If someone could report success with one, I'd appreciate it. --~--~-~--~~~---~--~~ You received this message because

Re: Django Development Process

2009-01-11 Thread Jeremy Dunck
On Sun, Jan 11, 2009 at 9:03 PM, AlexiPoliski wrote: ... > What I would like to ask is, from more experienced Django developers, > what way do you prefer to create your applications? Models then views > then templates? Models then templates then views? Or models then

Re: Admin Site

2008-12-17 Thread Jeremy Dunck
On Wed, Dec 17, 2008 at 11:34 AM, samira wrote: > > I active admin site for Django 1.0.2, it is correct on my local, but > I > see below error on server: > > emplateSyntaxError at /mywebSite/admin/ > > > Caught an exception while rendering: Tried activateAccount in module

transaction.commit_manually

2008-02-12 Thread Jeremy Dunck
Are people using the transaction.commit_manually decorator? I thought I understood it, but just learned that I don't. I'm using the transaction middleware and that's good for most of my purposes. I have another function called from lots of different views, and within that function, I wanted to

Re: syncdb and postgres problems

2008-01-25 Thread Jeremy Dunck
On Jan 25, 2008 11:55 AM, Martin Ostrovsky <[EMAIL PROTECTED]> wrote: > > I'm trying to run syncdb on a clean database (no other tables etc.) in > postgres. It produces the standard Postgres error: ... > I know there's nothing wrong with my settings file and/or models code > because I'm just

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-27 Thread Jeremy Dunck
On Dec 27, 2007 2:15 AM, Webchemist <[EMAIL PROTECTED]> wrote: > > Jeremy, thanks to reply! > > > What you really want here is to have > > 'django.template.loaders.app_directories.load_template_source' in your > > TEMPLATE_LOADERS. That's really what you want, not add add the admin > > templates

Re: Datetime ordering correct?

2007-12-26 Thread Jeremy Dunck
On Dec 26, 2007 4:04 PM, Ryan K <[EMAIL PROTECTED]> wrote: > def get_sp_from_date_range(start_date, end_date, order=False): > s_products = ScheduledProduct.objects.filter(start__gt=start_date) > s_products = s_products.filter(finish__lt=end_date) > if order: > return

Re: Newform-admin: problem with loading admin templates and templatetags

2007-12-26 Thread Jeremy Dunck
On Dec 26, 2007 3:49 AM, Webchemist <[EMAIL PROTECTED]> wrote: > > Hi, all! > I am trying to switch to the new-form admin branch and created a > simple project in test purposes. > I installed 0.97-newforms-admin-SVN-6977 and created a test project. > When trying to start at 127.0.0.1:8000/admin I

Re: Many2Many Lookup query

2007-12-19 Thread Jeremy Dunck
On Dec 19, 2007 2:20 AM, Julien <[EMAIL PROTECTED]> wrote: ... > So far, my query looks like this: > (Thread.objects.filter(message__sender=request.user) | > Thread.filter(message__recipients=request.user)).distinct() > > I'm not sure about the "message__recipients=request.user". > Do you know

Re: Catching 413 response

2007-12-11 Thread Jeremy Dunck
I think you want tramline. Or you want ticket #2070 Sorry you've received no helpful response in the meantime. On Dec 7, 2007 8:58 AM, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > Did anybody manage to catch in Django 413 response (request entity too > large), thrown by http servers eg. when size

Re: Performance of a django website

2007-12-11 Thread Jeremy Dunck
On Dec 11, 2007 1:39 PM, Richard Coleman <[EMAIL PROTECTED]> wrote: ... > > > I think a large part of my question really comes down to "Is 300 > requests per second reasonable for an uncached django site on a single > machine?". Maybe it is. > > We are looking at using the memcached API in our

Re: Performance of a django website

2007-12-11 Thread Jeremy Dunck
On Dec 11, 2007 1:21 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > Hi again, > > > 3. I'm using prefork MPM on apache with maxclients set to 1000. > > Apart from Joe's excellent profiling suggestion, I would recommend > reducing maxclients to a much lower value (like say 100) and then >

Re: Performance of a django website

2007-12-11 Thread Jeremy Dunck
On Dec 11, 2007 12:18 PM, Joe <[EMAIL PROTECTED]> wrote: > > I've found the largest memory hog to be the native way related tables > are setup. > > Check class definitions with related tables and edit as such: > > class ...(models.Mode): > relatedtable= models.ForeignKey(RelatedTable,

Re: Checking if in query set...

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 8:43 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > On Dec 9, 8:52 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > > > > > > > >

Re: Checking if in query set...

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > parents = students.parents.all() > > And then check if logged in user.id matches against any of the parent > ids. It'd help if you shared your model definitions; any answers given will be guesses as it is. > Is there a query set

Re: static on separate what?

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 3:07 PM, andy baxter <[EMAIL PROTECTED]> wrote: > Does this mean running the django server on a different port to the > static files, or is there a way to do it through virtual hosts? > If you only have one IP, you could run media off a non-standard port. If you have multiple IPs,

Re: Issues trying to Caching a View

2007-12-05 Thread Jeremy Dunck
Try setting your mime type appropriately. HttpResponse(mimetype="application/x-javascript") Notice this in your view-generated-js response: Content-Type: text/html; charset=utf-8 On Dec 5, 2007 3:08 PM, Matt <[EMAIL PROTECTED]> wrote: > > Alright... still haven't figured it out. The Vary:

Re: django on iis

2007-11-29 Thread Jeremy Dunck
Nice. Any chance of getting this page translated to English? http://code.google.com/p/pyisapi-scgi/wiki/howtousepyisapiscgi Unfortunately, I can't help. :( On Nov 29, 2007 10:10 AM, 头太晕 <[EMAIL PROTECTED]> wrote: > > pyISAPI_SCGI is a ISAPI Extension for SCGI. It can run django on iis. > >

Re: 'Context' object has no attribute 'push'

2007-11-28 Thread Jeremy Dunck
On Nov 28, 2007 9:14 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-11-27 at 16:47 -0800, eberg wrote: > > To continue this monolouge I worked around the problem by omitting the > > Context object and render the page with locals() instead. > > This called for unsetting all

Re: INTERNAL_IPS and netmask/CIDR notation

2007-11-23 Thread Jeremy Dunck
On Nov 23, 2007 10:57 AM, Tim Chase <[EMAIL PROTECTED]> wrote: > > Hmm...your code seems to reference an "ipv4" module I don't have > here on either of my Debian boxes, or my Win32 box at work. That > could have been handy to have, rather than trying to reinvent the > wheel. The closest I could

Re: INTERNAL_IPS and netmask/CIDR notation

2007-11-23 Thread Jeremy Dunck
On Nov 23, 2007 10:32 AM, Tim Chase <[EMAIL PROTECTED]> wrote: > > I don't know whether this would be better done by replacing the > INTERNAL_IPS functionality, or adding a second similar means, but > for my app, it's helpful to know if the user is "internal" or > "external" as defined by several

Re: Street address normalisation

2007-11-20 Thread Jeremy Dunck
On Nov 20, 2007 3:26 PM, hajo <[EMAIL PROTECTED]> wrote: > > Thanks a lot; will defintely look into this one! > The other solution I looked at was to send an address to google (We > have a commercial deal with them; I work for a failry large > newspaper); get it geocoded and then go from there...

Re: weird "can't adapt" error

2007-11-20 Thread Jeremy Dunck
"Can't adapt" is quite a vague error that psycopg2 issues. Your issue is (apparently) something to do with encoding, and that's different than Sandro's issue. Please include more information, especially if you do decide to file a ticket. I can't help with the info given so far... On Nov 20,

Re: weird "can't adapt" error

2007-11-20 Thread Jeremy Dunck
On Oct 26, 2007 2:47 AM, sandro dentella <[EMAIL PROTECTED]> wrote: ... > > once again I stumble into this problem. This time I gathered some > more > info so I describe them. http://groups.google.com/group/django-users/browse_thread/thread/091aa6c088f6c090 I understand you're running wsgi

Re: postgresql problem with django api (iregex)

2007-11-20 Thread Jeremy Dunck
On Nov 20, 2007 7:12 AM, cesco <[EMAIL PROTECTED]> wrote: ... > isn't the django API supposed to be portable across different database > platforms? Does iregex make an exception because of SQLite lack of reg- > exp support? It tries, but isn't heroic. The options for total portability would be

Re: Strip Illegal Characters - Django Admin

2007-11-15 Thread Jeremy Dunck
On Nov 15, 2007 1:04 PM, Joel Hooks <[EMAIL PROTECTED]> wrote: > > My users are cutting and pasting descriptions from Word, and this > causes HTTP 500 errors with Django AMF (but not Django more broadly.) > This textbox that I am typing in here on groups.google.com won't allow > me to paste the

Re: Django or Cheetah (why not both)?

2007-11-12 Thread Jeremy Dunck
On Nov 11, 2007 11:51 PM, justquick <[EMAIL PROTECTED]> wrote: > > Now the project is going under the name django_cheetahtemplates to > avoid contrib namespace confusion. Regardless of name, having cheetah > templates is very handy and increases the rendering times of your > templates. We are

Re: Using GeoDjango features with current trunk?

2007-11-05 Thread Jeremy Dunck
On 11/5/07, Karen Tracey <[EMAIL PROTECTED]> wrote: ... >You can check the branch log: > > http://code.djangoproject.com/log/django/branches/gis > > to see how current it is with respect to trunk. Look for the most recent > log message that starts "Merged revisions". In this case gis was

Re: GeoDjango

2007-11-03 Thread Jeremy Dunck
It's still a bit early in GeoDjango's life and functionality. Conversation has been occasional and with a relatively small number of participants. I haven't heard any complaints about the topics for discussion. I agree that GIS stuff may be a bit out of scope for dj-u, but as it pertains to

Re: Caching querysets

2007-11-01 Thread Jeremy Dunck
On 11/1/07, Joe <[EMAIL PROTECTED]> wrote: > Correct me if I'm wrong, but wouldn't this place more load on the > server to to this, as an anonymous user visiting the site for the > first time would start a new session, and therefore bypass the cache? Sessions aren't created unless you modify a

Re: Off Topic: Slug regular expression

2007-11-01 Thread Jeremy Dunck
On 11/1/07, cjl <[EMAIL PROTECTED]> wrote: > > Do I need it if Django is already appending slashes? > No. Writing regular expressions is obviously something that can be done different ways. I think you should write your URLconfs expecting the slashes to be there so that you let Django append

Re: Off Topic: Slug regular expression

2007-10-31 Thread Jeremy Dunck
On 10/31/07, cjl <[EMAIL PROTECTED]> wrote: ... > > > > Welcome to the transition between steps #1 and #2 ;) > > Actually, I think I'm still at step 0.5, the one where I wish someone > would post a library of frequently used Django URLconf regular > expressions, so I could 'borrow' them. > This

Re: ANN: Satchmo 0.6 Released

2007-10-31 Thread Jeremy Dunck
On 10/31/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > There have been some spurious routing issues but it looks fine now. > Are you still not seeing it? Yep, up now. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: ANN: Security fix to i18n framework

2007-10-30 Thread Jeremy Dunck
On 10/31/07, Jason Cui <[EMAIL PROTECTED]> wrote: > 2007/10/31, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > > On Tue, 2007-10-30 at 00:37 -0700, Jason Cui wrote: > > > When I update my site from 0.96 to 0.96.1,my internationalize function > > > won't work for firefox, but fine for IE. > > > I

Re: ANN: Satchmo 0.6 Released

2007-10-30 Thread Jeremy Dunck
On 10/30/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > After a little bit of confusion with my rss feed, I am very pleased to > announce that release 0.6 of Satchmo is really available now. Congratulations. ... > You can learn more by visiting the main satchmo site at - >

Re: serving django project through ssl and without ssl at the same time?!

2007-10-30 Thread Jeremy Dunck
On 10/30/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > On Oct 31, 10:23 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: ... > > This is the current logic: > > return 'HTTPS' in self._req.subprocess_env and > > self._req.subprocess_env['HTTPS']

Re: serving django project through ssl and without ssl at the same time?!

2007-10-30 Thread Jeremy Dunck
On 10/30/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: ... > In mod_wsgi, although the application entry point is defined twice, > mod_wsgi will recognise that they are on 80/443 for the same site and > ensure that only one Django instance runs in each Apache process, but > with both HTTP and

Re: cursor.execute returns LONG

2007-10-29 Thread Jeremy Dunck
On 10/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > So I have a function in views: > # > def getEntries(user): > """Returns unique entries and page views for each of last 30 day > """ > cursor = connection.cursor() > query = cursor.execute('SELECT

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-26 Thread Jeremy Dunck
On 10/26/07, mamcxyz <[EMAIL PROTECTED]> wrote: > > > What's the type and value of "request.content"? What's the type and > > value of "text" ? > > self.response= Err, please give the type and value of request.*content*, not request. :) ... > 'content-type': ('Content-Type', 'text/html;

Re: Lost in why "UnicodeDecodeError" on changeset 6601

2007-10-26 Thread Jeremy Dunck
On 10/26/07, mamcxyz <[EMAIL PROTECTED]> wrote: > > self.assertContains(self.response,u'Buscar:') > File "D:\Programacion\Python\Python24\lib\site-packages\django\test > \testcases.py", line 111, in assertContains > real_count = response.content.count(text) > UnicodeDecodeError: 'ascii'

Re: which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread Jeremy Dunck
wrote: > > Not for the February/March 08 release, but yes, I will need it by the > last quarter of 2008. > > Ashish > On Oct 23, 8:18 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > On 10/23/07, ydjango <[EMAIL PROTECTED]> wrote: > > > > > > >

Re: which Django version to use for live site to be released in end of february 2008

2007-10-23 Thread Jeremy Dunck
On 10/23/07, ydjango <[EMAIL PROTECTED]> wrote: > > I am working on product which will be released end of february. I am > planning to use Django for building the site. I am new to Django > > Which version should I use - SVN or 0.96? > > If I use 0.96, I am worried migration to 1.0 will be very

Re: Does anyone know where I can find cache tag library?

2007-10-23 Thread Jeremy Dunck
On 10/23/07, Karen Tracey <[EMAIL PROTECTED]> wrote: > If you're referring to template fragment caching, it's been in trunk since > rev. 6580 (just a couple of days). Doc is here: > > http://www.djangoproject.com/documentation/cache/#template-fragment-caching > > Does your checkout not have

Re: Does anyone know where I can find cache tag library?

2007-10-23 Thread Jeremy Dunck
On 10/22/07, Nicholas Ding <[EMAIL PROTECTED]> wrote: > Hi, guys: > I've checked out the code from svn, and wanna use cache in the template, but > cache tag library has gone... > Does anyone know where is the tag library? http://www.djangosnippets.org/snippets/223/

Re: RESTful Geodjango

2007-10-20 Thread Jeremy Dunck
On 10/20/07, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > POINT ( 31.00892404 ... > That NoField type, is it ok? Well, it depends what you're going to do with it. :) That 'NoField' comes from django.db.models.fields.Field.get_internal_type. It was originally used during

Re: Custom middleware for logging

2007-10-19 Thread Jeremy Dunck
On 10/19/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > I would like to put together a piece of code that will test the > referer for each request and if it matches a predefined pattern it > would log that request as well as place a cookie on the client. > > Is custom middleware the correct

Re: Customizing Django's Auth System

2007-10-18 Thread Jeremy Dunck
On 10/18/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 10/18/07, Hugh Bien <[EMAIL PROTECTED]> wrote: > > I was wondering if it was possible to customize Django's Auth system to not > > include permissions, groups, or messages. For the app I'm working on, just > > have a User model

Re: What is happening with mod_python

2007-10-17 Thread Jeremy Dunck
On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote: ... > > ImportError: No module named django.core.handlers.modpython > ... > my conf file is a basic: > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE

Re: ***SPAM*** Nested in statements

2007-10-16 Thread Jeremy Dunck
On 10/16/07, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Hi, > > you can use the extra() method of QuerySet: > > Example: Entry.objects.extra(where=['id IN (3, 4, 5, 20)']) > How is this different from __in, and where did that list of numbers come from? :)

Re: Nested in statements

2007-10-16 Thread Jeremy Dunck
On 10/16/07, Rufman <[EMAIL PROTECTED]> wrote: > > in SQL terms this is what i want to do: > SELECT * > FROM `build` > WHERE `iKeyBuildNr` > IN ( > >SELECT `iFKeyBuildNr` >FROM `package` >WHERE `strPackageName` > IN ("denon_AVR4306") >) > > How can i do

Re: OT: How did you handle asynchronous tasks?

2007-10-16 Thread Jeremy Dunck
On 10/16/07, David Larlet <[EMAIL PROTECTED]> wrote: > * Review some parts of the code, for example use queryset.count() > instead of len(queryset), or change this part: FWIW, doing qs.count() creates a new queryset, then executes it. Doing len(queryset), then queryset[0], the second access of

Re: How to define urls

2007-10-16 Thread Jeremy Dunck
On 10/16/07, Pythoni <[EMAIL PROTECTED]> wrote: ... > so I have in urls.py > (r'^Myscript/(?P\w+)/','miproject.apps.mi.views.mi.Myscript'), > > it works only ifNameis one word, e.g. John. You'll see documentation of python's re syntax here: http://docs.python.org/lib/re-syntax.html

Re: Django - Oracle support

2007-10-15 Thread Jeremy Dunck
On 10/15/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 10/15/07, Stefan Bethge <[EMAIL PROTECTED]> wrote: > > Just an addition. I would not recommend using oracle with django if > > you don't have an enterprise version which contains the oracle > > connection manager. Without it you

Re: Multiple app environments on the same machine - settings & more

2007-10-15 Thread Jeremy Dunck
On 10/15/07, RajeshD <[EMAIL PROTECTED]> wrote: > > 1. Don't add myapp_* to site-packages at all. Instead keep them in two > directory roots say /home/apps/prod and /home/apps/preprod. Similarly, > you can have two different settings files for the two environments. > > 2. In your Apache vhost

Re: bug in rendering non ascii characters in admin changelist

2007-10-14 Thread Jeremy Dunck
On 10/14/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: ... > class Sponsorship(models.Model): > """ links child to sponsor, startdate enddate and comments""" > sponsor = models.ForeignKey(Sponsor,verbose_name=_("Sponsor")) > child =

Re: Cab issue

2007-10-14 Thread Jeremy Dunck
On 10/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > This obviously means that i have misunderstood somthing in the > Templates section of the readme. Could someone provide some example > templates or requirements and locations for the templates needed? > >From the ReadMe: "The

Re: Object not callable

2007-10-11 Thread Jeremy Dunck
On 10/11/07, Cat <[EMAIL PROTECTED]> wrote: > Can anyone tell me why when I get to the line - form = > InstanceForm(request.POST) in the following view (stepping through the > code), I get a Type Error SurveyForm object is not callable. My > understanding is that it should be as it subclasses

Re: Using Django's builtin documentation

2007-10-11 Thread Jeremy Dunck
On 10/11/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 10/11/07, Rufman <[EMAIL PROTECTED]> wrote: > > Django uses docutils and restructured text for the documentation of > > the admin. How can i get my own documentation of my views and models > > (restructured text) to show on the

Re: NameError when following tutorial in djangobook.com/en/beta/chapter03/

2007-10-11 Thread Jeremy Dunck
On 10/10/07, drdukk <[EMAIL PROTECTED]> wrote: > > I'm new to python and django and I'm trying to follow the tutorial on > djangobook.com, but when i get to the step (chapter 3) where the first > piece of code should be executed (current_time) i get a NameError > telling me "name

Re: TinyMCE in admin

2007-10-11 Thread Jeremy Dunck
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote: > > I am trying to have tinyMCE for flatpages... Should I be using a model > for that? Ah, sorry, I missed that. Did you follow these steps? http://code.djangoproject.com/wiki/AddWYSIWYGEditor#UsingTinyMCEwithflatpages If so, you've just got your

Re: How to allow a ForeignKey field to be null

2007-10-10 Thread Jeremy Dunck
On 10/11/07, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have the following field in my Orders class > > delivery_method = models.ForeignKey(Delivery) > > I want to be able to add a Order record and not specify a Delivery > option when the order is initially created. > > I've tried > >

Re: TinyMCE in admin

2007-10-10 Thread Jeremy Dunck
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote: > > My admin url ishttp://localhost:8000/admin/flatpages/flatpage/1/ > The url being requested is > [11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/ > tiny_mce/tiny_m > ce.js HTTP/1.1" 404 3644 > [11/Oct/2007 10:21:35] "GET

Re: TinyMCE in admin

2007-10-10 Thread Jeremy Dunck
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote: > > I am trying to follow the method in > http://code.djangoproject.com/wiki/AddWYSIWYGEditor > > . I still can't get django find the files textareas.js and > tiny_mce.js. it's returning 404. Please help. Thank you > What's your admin URL and what

Re: How to delete a table?

2007-10-10 Thread Jeremy Dunck
On 10/11/07, Greg <[EMAIL PROTECTED]> wrote: ... > Do I need to do this with my sqliteman software Yes. > or ca I do something > like Orders.delete() in my djano command prompt. No. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Honestly, I do not know what that means. How do I check this? Apologies-- I assumed that the problem had something to do with unicode and localization.

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Can someone help me with the following error. It occurs when I restart > Apache and try to load the Admin page. When I refresh, the Admin page > comes up, however the Documentation, Change Password, and Log Out > links call

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Can someone help me with the following error. It occurs when I restart > Apache and try to load the Admin page. When I refresh, the Admin page > comes up, however the Documentation, Change Password, and Log Out > links call

Re: middleware introspection

2007-10-05 Thread Jeremy Dunck
On 10/5/07, Robin Becker <[EMAIL PROTECTED]> wrote: > can the middleware determine the template used by V0 so that it can be used > automatically to generate V2? Yes. Have a look at django.test.utils.instrumented_test_render and .setup_test_environment. You'll see a way to monkeypatch

Re: def __str__(self) error in tutorial part 1

2007-10-02 Thread Jeremy Dunck
On 10/2/07, rhett <[EMAIL PROTECTED]> wrote: > > Total newbie here to Django and Python. Thanks for any insight. > > 1) I am working in TextMate and copied/pasted below code. In TextMate > the "def __str__(self)" is not indented from the pub_date line - it's > the same indent. I know indents are

Re: Debugging Django scripts problem

2007-09-28 Thread Jeremy Dunck
On 9/28/07, Jason Witherspoon <[EMAIL PROTECTED]> wrote: > Okay, I'm guessing a Python reload would indeed help, as I've managed to get > the Python debugger to find mysite.drpack.views by forcing the paths into > sys.path: > > >>> sys.path.append('/my/new/path') > > ...rather than via the

Re: elsif in templates?

2007-09-24 Thread Jeremy Dunck
On 9/24/07, Giuseppe Ciotta <[EMAIL PROTECTED]> wrote: > > Is there a real reason behind this or just this is to be implemented > in the future? http://www.djangoproject.com/documentation/design_philosophies/#template-system --~--~-~--~~~---~--~~ You received

Re: Chaining custom manager methods on querysets

2007-09-21 Thread Jeremy Dunck
On 9/21/07, omat <[EMAIL PROTECTED]> wrote: This: > class TagManager(models.Manager) > # ... > def get_query_set(self): > return TagQuerySet Should be this: def get_query_set(self): return TagQuerySet(Tag) And you'll obviously need to implement "my_filter" on

Re: Poll: is anyone still using the old ordering syntax?

2007-09-20 Thread Jeremy Dunck
On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Howdy folks -- > > Quick question: is anyone still actually using the old ordering syntax > in order_by? Thanks, you made me go clean out some dead code. ;-) No for us. --~--~-~--~~~---~--~~ You

Re: unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2007-09-19 Thread Jeremy Dunck
On 9/19/07, Landlord Bulfleet <[EMAIL PROTECTED]> wrote: ... > > sum is property of a model object in our database > (models.DecimalField(max_digits=7, decimal_places=2)) & f_c.rate is a > Decimal constructed using Decimal(string) construction (Decimal is imported > with "from decimal import

Re: ORM / Performance

2007-09-18 Thread Jeremy Dunck
On 9/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have an app (0.96 so no select_related) that had a large initial To be clear, select_related has existed for quite a while in Django -- 0.91 at least. > I got a lot of mileage by caching just in a dictionary > the foreign keys so

Re: Model.py not creating MYSQL tables.

2007-09-04 Thread Jeremy Dunck
On 9/4/07, John <[EMAIL PROTECTED]> wrote: > > Thanks. That works. > > Now I'm only getting partial form (NAME AND PHONE INBOX BOX IS > DISPLAYED) with a bunch of html code. The html code > isn't being rendered properly.The submit button isn't being displayed You'll have to show your form, view,

Re: Model.py not creating MYSQL tables.

2007-09-04 Thread Jeremy Dunck
On 9/4/07, John <[EMAIL PROTECTED]> wrote: > > I've created a forms application. After running syncdb without any > errors I thought database connection with MYSQL was working. Django > tables have been created. Ensure that your contacts app is listed in INSTALLED_APPS.

Re: Django freelance work finder

2007-09-04 Thread Jeremy Dunck
On 9/4/07, Thomas Badran <[EMAIL PROTECTED]> wrote: > > I assume there are some other people on this list that do the occasional > bit of freelance work. Is there anywhere you would recommend to look for > this sort of work, or software development freelance work in general? >

Re: how to avoid blank content

2007-09-04 Thread Jeremy Dunck
On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > i have a class which have two field: > author = models.ForeignKey(User) > body = models.TextField(blank=False,null=False) > i found in admin interface, i cannot save a record with blank content > for body,which will

Re: Signals Question - Firing off an email after a save

2007-09-03 Thread Jeremy Dunck
On 9/3/07, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > save() is method, so it must get at least one parameter - self. > def save( self ): >... Sorry, I was sloppy. :-/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: How to convert a Django model item to the underlying python object

2007-09-03 Thread Jeremy Dunck
On 9/3/07, shabda <[EMAIL PROTECTED]> wrote: > > I need to convert a models.datefield to a python type. How can I do > this. In general what is the way to convert the django model data type > to a pure python data type? I'm not sure what you're asking here. If your model is like this: class

Re: Signals Question - Firing off an email after a save

2007-09-02 Thread Jeremy Dunck
On 9/2/07, Jack E. Wilkinson <[EMAIL PROTECTED]> wrote: ... > I've got a very simple model, two databases and I'm using the admin > interface. What I need is when one of the databases gets a change made > to it, for an email to be sent out to a specific group (the group never > changes, however,

Re: request.path in a context processor

2007-09-01 Thread Jeremy Dunck
On 9/1/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote: > > Hi, > Here I have a context processor --> http://dpaste.com/18402/ Context processors must return a dictionary. Maybe you want this: return {'base_path': list} ? Also, it's bad form to use variables named the same as builtins (both str

Re: django-voting and django-tagging error

2007-08-30 Thread Jeremy Dunck
On 8/30/07, Kelsey Ruger <[EMAIL PROTECTED]> wrote: > > I just checked out the latest versions of django-voting and django- > tagging. When attempting a syncdb I get the following error - tagging: > 'DatabaseWrapper' object has no attribute 'ops' or voting: > 'DatabaseWrapper' object has no

Re: caching and authentication

2007-08-29 Thread Jeremy Dunck
view(request): > > > > > > response = render_to_response('site/whatever/template.html', { > > ... > > }, context_instance=RequestContext(request) ) > > patch_vary_headers(response, ['Cookie']) > > return response > > my_

Re: UnicodeDecodeError with memcache

2007-08-29 Thread Jeremy Dunck
On 8/29/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > > On Wed, Aug 29, patrickk wrote: > > > > > I just changed > > self._cache.set(key, value, timeout or self.default_timeout) > > to > > self._cache.set(smart_str(key), value, timeout or > > self.default_timeout) > > in memcached.py > > and

Re: UnicodeDecodeError with memcache

2007-08-28 Thread Jeremy Dunck
On 8/28/07, patrickk <[EMAIL PROTECTED]> wrote: > > additional information: > I just checked the default encoding > > >>> import sys > >>> sys.getdefaultencoding() > 'ascii' > > should that be something different (like utf-8)? > btw: all our data (database) and scripts are encoded with utf-8.

  1   2   3   4   5   6   7   >