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
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
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
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
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
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
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 =
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?
>
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
>
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,
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:
> >
> >
> >
> > >
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
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,
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:
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.
>
>
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
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
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
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...
"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,
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
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
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
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
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
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
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
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
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
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
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
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 -
>
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']
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
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
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;
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'
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:
> >
> >
> >
>
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
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
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/
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
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
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
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
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? :)
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
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
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
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
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
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 =
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
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
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
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
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
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
>
>
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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,
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.
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?
>
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
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
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
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,
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
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
view(request):
> >
> >
> > response = render_to_response('site/whatever/template.html', {
> > ...
> > }, context_instance=RequestContext(request) )
> > patch_vary_headers(response, ['Cookie'])
> > return response
> > my_
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
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 - 100 of 690 matches
Mail list logo