On Wed, Sep 16, 2009 at 9:36 AM, Brent Hagany wrote:
>
> I'm having some trouble getting F() expressions to obey my parentheses
> when I don't want the default order of operations. For example, given
> the model:
>
> class MyModel(models.Model):
> wins = models.DecimalField(max_digits=1, deci
On Wed, Sep 16, 2009 at 7:32 PM, Russell Keith-Magee
wrote:
> On Wed, Sep 16, 2009 at 9:36 AM, Brent Hagany wrote:
>>
>> I'm having some trouble getting F() expressions to obey my parentheses
>> when I don't want the default order of operations. For example,
On Thu, Sep 17, 2009 at 4:53 AM, neri...@gmail.com wrote:
>
> Is there any benefit to using {% url %} other than retrieving data
> from the same view? I was looking for a better way to make a
> breadcrumb menu than hard wiring the urls into every page and came
> across the {% url %} tag and this
On Wed, Sep 23, 2009 at 10:38 PM, Chris Withers wrote:
>
> Hi All,
>
> Where can I find docs on the actual serialisation formats used by
> Django's serialisation support?
>
> http://docs.djangoproject.com/en/dev/topics/serialization/#id1
>
> ...lists them, but doesn't actually describe them :-S
On Fri, Sep 25, 2009 at 3:25 AM, skunkwerk wrote:
>
> Hi,
> I created a database dump using the 'dumpdata' command, and when I
> but am getting this error when I add the line:
> fixtures = ['test_fixture-24.09.09.json'] to my TestCase class:
>
> Problem installing fixture '//ites/bdl/match/trun
On Mon, Sep 28, 2009 at 6:58 PM, Thomas Steinmaurer
wrote:
>
> Hello,
>
> I'm using Django with Firebird and Oracle as backends. When integrating
> with a legacy Firebird database using the inspectdb command, I guess I
> hit a bug in inspectdb.py (although I'm not entirely sure), which does
> af
On Tue, Sep 29, 2009 at 5:34 PM, Jonas Obrist wrote:
>
> Hi django-users
>
> I have a question about the license Django is released under (BSD). Or
> to be more precise about:
>
> 3. Neither the name of Django nor the names of its contributors may
> be used
> to endorse or promote produc
On Wed, Sep 30, 2009 at 7:03 PM, nabucosound wrote:
>
> Does anybody know where to apply or send or whatever has to be done to
> have the feed for my django blog http://nomadblue.com/ listed in the
> official Django Community http://www.djangoproject.com/community/ ???
> At the bottom right of th
On Thu, Oct 1, 2009 at 5:14 PM, Geobase Isoscale wrote:
> Hi Everyone,
>
> I would like to know how to Add a new Collumn to an already created table in
> Django.
As noted by Rama - the answer here is either to use raw ALTER
statements, or to use a tool like South or Django Evolution to
automate
Hi all,
Here's something that might be of interest to the Django crowd -
especially those based in Australia (or people who know someone that
lives in Australia).
On Wednesday, Australia's Government 2.0 Taskforce announced a mashup
competition. This competition is open to everyone, as long as e
On Fri, Oct 2, 2009 at 9:28 PM, Geobase Isoscale wrote:
> Hi Everyone,
> Is it possible to use UML and OCL or others like WebML modelling tools with
> Django. Because I find the conceptual design , logical design and physical
> design tend to be more comphrensive rather than just using the mod
On Sat, Oct 3, 2009 at 2:55 AM, Tiago Samahá wrote:
>
> Hello All,
>
> i'm trying generate a single form with two models.
>
> class Contact(models.Model):
> phone = models.CharField(max_length=8)
> email = models.CharField(max_length=50)
>
> class Client(models.Model):
> name = models.Ch
On Mon, Oct 5, 2009 at 6:31 PM, anentropic wrote:
>
> So I just have to hard-code the feed urls in my templates?
In short, yes.
The feeds framework predates the introduction of named URLs in Django,
and as a result the original implementation didn't include named urls.
The feeds framework is ba
On Tue, Oct 6, 2009 at 6:55 PM, veasna bunhor wrote:
> Do you know how to use unit testing in django ? Could you please give me an
> example?
There's a link to docs labled "Testing: Overview" on the homepage of
the documentation.
http://docs.djangoproject.com/en/dev/topics/testing/#topics-testi
On Wed, Oct 7, 2009 at 1:13 PM, Paddy Joy wrote:
>
> Can anyone help out with the following aggregation clause? I have an
> invoice and invoice_item models as shown.
>
> class Invoice(models.Model):
>
> customer = models.ForeignKey(Customer)
> payments_received = models.FloatField(default=
On Wed, Oct 7, 2009 at 5:30 PM, Geobase Isoscale wrote:
> Hi Everyone,
> I intend to write ORM code that will create views and triggers in the
> database? Which parts of the source code should I alter?
This is the third time you've asked the same question in less than a
week. I answered the fir
On Thu, Oct 8, 2009 at 1:43 AM, Emily Rodgers
wrote:
>
> Hello,
>
> I am a bit stuck on something that I think ought to be really easy (so
> I am probably being really stupid!).
>
> I am trying to write a view for a model such that I can pass the view
> (via post data) a (or an unknown) number of
On Sat, Oct 10, 2009 at 6:29 AM, Daniel Rhoden wrote:
>
> Can you direct me to the documentation for creating my own 3rd-party
> database driver?
>
> I'm wanting to create a sibling to the concept of a SQLite, MySQL, ...
> Driver. Where's API documentation that says "You must respond to a
> mini
On Sat, Oct 10, 2009 at 11:41 PM, Tim Chase
wrote:
>
> Currently, I use
>
> t...@rubbish:~/django/trunk/tests$ python runtests.py
> --settings=settings
>
> to execute the core set of tests. However, it takes quite a
> while (on the order of hours) on my old box. Is there a way to
> just run tes
On Sun, Oct 11, 2009 at 11:33 PM, Chhouk Voeun wrote:
> mother fucker so many sending mail i' m bored don't send
That kind of language is *completely* uncalled for.
Please refrain from posting messages with this tone to the Django mailing lists.
Yours,
Russ Magee %-)
> On Sat, Oct 10, 2009 at
On Mon, Oct 12, 2009 at 8:05 AM, Wayne Koorts wrote:
>
>>> Please refrain from posting messages with this tone to the Django mailing
>>> lists.
>>>
>> I wholeheartedly agree.
>> The Django community has a good reputation.
>> Don't screw it up with your foul verbal attacks.
>
> Surely it should be
On Mon, Oct 12, 2009 at 1:35 PM, Denis Bahati wrote:
> Hi all,
> I have a problem with __unicode__(self) function it doesn't give any changes
> to the display of poll list it just display the Poll object when i code like
> below:
Ok - you need to do two things.
1) Stop posting the same question
On Mon, Oct 12, 2009 at 1:44 PM, Kenneth Gonsalves
wrote:
>
> On Monday 12 Oct 2009 11:05:38 am Denis Bahati wrote:
>> class Poll(models.Model):
>> question = models.CharField(max_length=200)
>> pub_date = models.DateTimeField('date published')
>> def __unicode__(self):
>> return self.que
On Mon, Oct 12, 2009 at 2:41 PM, chris wrote:
>
> Hello,
>
> I am trying to work my way through Practical Django Projects (a book
> by James Bennett 1st edition 2008). I'm on chapter 3 page 28 where a
> search function is being added to the 'cms' project. The
> results=FlatPage.objects.filter(c
On Mon, Oct 12, 2009 at 4:14 PM, Tim Chase
wrote:
>
> Got the following while testing latest trunk and haven't touched
> this file (runtests.py).
>
> t...@rubbish:~/code/django/trunk/tests$ python runtests.py
> --settings=settings
>
On Mon, Oct 12, 2009 at 11:18 PM, Tim Chase
wrote:
>
> I'm not sure why I
> still only get 866 tests (my patch adds one test, bringing it to
> 867) where you get 917, but at least the core passes now.
This isn't necessarily an issue to be concerned about - there are some
conditional tests in the
On Tue, Oct 13, 2009 at 10:43 PM, fsaintma
wrote:
>
> hello
>
> I have a model.py like this :
>
> class secondaryGroup(models.Model):
> id = models.AutoField(primary_key = True)
> idGroup = models.ForeignKey(Group,db_column =
> 'idGroup',verbose_name = 'Groupe',limit_choices_to = Q(state='val
On Wed, Oct 14, 2009 at 7:09 PM, Chris Withers wrote:
>
> Hi All,
>
> I have a function that looks like:
>
> def get_or_create(model,**kw):
> try:
> obj = model.objects.get(**kw)
> except model.DoesNotExist:
> obj = model(**kw)
> return model
>
> Does something like th
On Thu, Oct 15, 2009 at 12:39 AM, ringemup wrote:
>
> Is there ever a reason to pass a plain Context rather than a
> RequestContext when rendering a template?
Sure. Any time you don't have a request.
There are any number of reasons you might not have a request. One
obvious example is in a stand
On Thu, Oct 15, 2009 at 3:08 AM, Jeff Bell wrote:
>
> Hi all,
>
> Am I wasting my time trying to figure out multi-db functionality. I
> know that Alex Gaynor is working on a GSOC project that is slatted for
> Django 1.2 release that deals with this, but I can't imagine that
> being released anyt
On Thu, Oct 15, 2009 at 9:01 PM, wiswaud wrote:
>
> If i'm not mistaken, RequestContext, through context_processors.auth,
> will call request.user.get_and_delete_messages() and put in the
> messages to the user in the context. That's fine and dandy, except
> that in most modern applications, you
On Sun, Oct 18, 2009 at 11:49 AM, Jeff wrote:
>
> Hi,
>
> I'm fairly new to Django and unittest and I seem to be having a
> problem getting manage.py to execute all of my tests. I can only get
> it to execute one test at a time by specifying the test method. When I
> just specify the TestCase cla
On Mon, Oct 19, 2009 at 6:52 PM, mt wrote:
>
> Hi All,
> I recently upgraded a high traffic site from django 1.0 to django
> 1.1.1 and noticed that the load on the server went through the roof,
> so I had to revert to django 1.0.
> I've done some testing and noticed that the caching behaviour bet
On Tue, Oct 20, 2009 at 7:24 PM, Михаил Лукин
wrote:
> burn in hell
Ok - this may border on spam, but that sort of sentiment entirely
uncalled for. Please refrain from posting messages like this to Django
mailing lists in the future.
Yours,
Russ Magee %-)
--~--~-~--~~~-
On Tue, Oct 20, 2009 at 8:21 PM, Михаил Лукин
wrote:
> There is three ways to select NULL records from table with Django ORM:
>
> 1. Model.objects.filter(field=None)
> 2. Model.objects.filter(field__exact=None)
> 3. Model.objects.filter(field__isnull=True)
>
> They all seem to work.
> Which is th
On Tue, Oct 20, 2009 at 9:09 PM, Михаил Лукин
wrote:
> For some reason, __exact and __isnull are described in documentation [1],
> while =None is not. So which of them are historical?
As I said, __exact and __isnull are historical.
The documentation you reference points out that __exact=X and =
On Tue, Oct 20, 2009 at 9:51 PM, Michael P. Jung wrote:
>
> You're right in one thing. The whole foo=value thing is not documented.
>From the "exact" subsection in
http://docs.djangoproject.com/en/dev/topics/db/queries/#field-lookups
"""
For example, the following two statements are equivalent:
On Thu, Oct 22, 2009 at 4:38 PM, mt wrote:
>
>
>
> On Oct 19, 1:08 pm, Russell Keith-Magee
> wrote:
>> On Mon, Oct 19, 2009 at 6:52 PM, mt wrote:
>>
>> > Hi All,
>> > I recently upgraded a high traffic site from django 1.0 to django
>> &
On Fri, Oct 23, 2009 at 11:03 AM, Brian Neal wrote:
>
> Currently I am keeping an eye on SQL queries by displaying at the
> bottom of my base template sql_queries. I'm seeing some queries that
> look kind of strange to me, and I was wondering if there was a way to
> somehow correlate the queries
On Wed, Oct 28, 2009 at 8:39 AM, HARRY POTTRER wrote:
>
> I was looking around the trac for the django project and came across
> this ticket:
>
> http://code.djangoproject.com/ticket/6385
>
> It seemed like a pretty cool idea, and I hoped it would get to be
> added to the 1.2 release. Then I saw
On Thu, Oct 29, 2009 at 7:41 PM, Karen Tracey wrote:
> On Thu, Oct 29, 2009 at 7:32 AM, Russell Keith-Magee
> wrote:
>>
>> On Wed, Oct 28, 2009 at 8:39 AM, HARRY POTTRER wrote:
>> >
>> > I was looking around the trac for the django project and came acr
On Fri, Oct 30, 2009 at 6:03 PM, Continuation wrote:
>
> I'm new to Django. Having a great time learning from the doc.
>
> Normally the doc explains the topics in hand very clearly. But on 1
> subject I'm still confused after going over the doc: URL Namespaces.
>
> Can someone explain to me what
On Fri, Oct 30, 2009 at 6:18 PM, Crispin Wellington
wrote:
>
> In my book, posting this kind of thing to a mailing list not about
> religion constitutes a one way ticket to hell.
FYI - django-users is a moderated mailing list, but Google Groups is
currently suffering from a publicized exploit (o
On Sat, Oct 31, 2009 at 12:34 AM, Gustavo Henrique wrote:
>
> Hi!
> I have a project using mysql and it have to access a firebird BD for
> get data.
> What the better way to use 2 databases in django? What you recommend
> me to do? Maybe SQLAlchemy?
Right now, Django doesn't have an easily acces
On Sat, Oct 31, 2009 at 1:18 PM, Gustavo Henrique wrote:
>
> Thanks Russ!
> How I create a combobox in ModelForm contains data from other database?
Like I said - Django doesn't do this out of the box. If there was a
documented solution for this problem, I would have pointed you at this
reference
On Mon, Nov 2, 2009 at 6:19 PM, Kenneth Gonsalves wrote:
>
> On Monday 02 Nov 2009 3:37:38 pm Chris Withers wrote:
>> Kenneth Gonsalves wrote:
>> > On Monday 02 Nov 2009 1:17:01 pm Kashif Azeem wrote:
>> >> I am interested. If you can write a little bit about yourself, type of
>> >> work, how to
On Tue, Nov 3, 2009 at 12:19 PM, Christophe Pettus wrote:
>
>
> On Nov 2, 2009, at 2:14 PM, Bill Freeman wrote:
>> My presumption is that the older PostgreSQL, expecting to have to
>> decide whether unquoted things are strings (e.g.; "status" in the
>> query samples above), used to look at the co
2009/11/4 Georg Göttlich :
>
> Hi everybody,
>
> I have a problem with denormalizing a m2m field. For several reasons I
> want to save a CSV string of all the authors of a text. The authors
> are manage in an m2m field to auth.user. The changes are made with the
> admin.
>
> First I tried to overr
On Wed, Nov 4, 2009 at 3:05 AM, Bill Freeman wrote:
>
> On Tue, Nov 3, 2009 at 9:14 AM, Bill Freeman wrote:
>> On Tue, Nov 3, 2009 at 7:05 AM, Russell Keith-Magee
>> wrote:
>>>
>>> On Tue, Nov 3, 2009 at 12:19 PM, Christophe Pettus
>>> wrote:
&g
On Wed, Nov 4, 2009 at 10:50 PM, DavodM wrote:
>
> Hello,
>
> I have a many to many relationship between 'Projects' and 'Tags' in my
> app.
>
> In the admin screen I would like to be able to use the
> filter_horizontal interface for adding/editing from both sides of the
> relationship but I can o
On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckel wrote:
>
> I am developing a django site that has a RESTful API, and allows for
> json representations of the resources.
>
> I have hit a bit of a hitch with respect to the data that I need to
> PUT, to do with the inbuilt test client.
>
> If I use c
2009/11/14 Tomasz Zieliński :
> Hello
>
> I have a problem with when trying to test app that is using unmanaged
> models:
>
> (...)
> Creating table sometable
> Traceback (most recent call last):
> File "H:\myproject\manage.py", line 11, in
> execute_manager(settings)
> File "C:\Python26\lib\
On Sat, Nov 14, 2009 at 2:39 PM, Phlip wrote:
> The answer:
>
> While all tests should use the transaction-rollback trick, and it
> seems the sqlite3 handlers don't use it...
>
> ...the primary culprit turned out to be this:
>
> fixtures = ['countries']
>
> Even though the tests run in an app wit
On Tue, Nov 17, 2009 at 6:29 AM, Brandon wrote:
> How do I request a feature from Django?
http://docs.djangoproject.com/en/dev/internals/contributing/#requesting-features
It's also worth keeping in mind the release cycle:
http://docs.djangoproject.com/en/dev/internals/release-process/#release-c
On Thu, Nov 19, 2009 at 10:07 PM, Dawei Shen wrote:
> Hi, all,
>
> I have been developing a website, where I use the same postgresql
> database server for both development and production. Now that I have
> had many users and a significant amount of data, I am trying to use
> sqlite3 engine when I
On Thu, Nov 19, 2009 at 9:59 AM, Sachi wrote:
> Hi, all,
>
> I have been developing a website, where I use the same postgresql
> database server for both development and production. Now that I have
> had many users and a significant amount of data, I am trying to use
> sqlite3 engine when I do dev
On Mon, Nov 23, 2009 at 1:59 AM, Hanne Moa wrote:
> I have models M, N, which both have a foreignkey to User. When in the
> shell/runserver, User has attributes for both M and N, but in a
> batchfile ($ DJANGO_SETTINGS_MODULE=settings python batch.py) only M
> is reachable from User while trying t
On Tue, Nov 24, 2009 at 11:53 AM, Mark H. Nichols wrote:
> All -
>
> Working on Mac OS X I have my Terminal background color set to a dark blue.
> I've already added color settings to my .profile to provide enough contrast
> to view man page output, like so:
>
> # Color man pages:
> export LESS_
On Tue, Nov 24, 2009 at 11:16 PM, rebus_ wrote:
> 2009/11/24 nek4life :
>> You should look into django-authority. I'm pretty sure that has per-
>> object-permissions.
>>
>> http://packages.python.org/django-authority/index.html
>>
>> On Nov 24, 7:00 am, gamliel roi wrote:
>>> Hello all,
>>>
>>>
On Wed, Nov 25, 2009 at 4:10 PM, Alex Dong wrote:
> Hi all,
>
> During the `manage.py test` process, django will automatically change
> the database from `hivemind` to `test_hivemind`, For similar reason,
> I'd like to change a file path from `sphinx.conf` to
> `sphinx_test.conf` but unfortunatel
On Mon, Nov 30, 2009 at 1:45 AM, Joshua Kramer wrote:
> Hello,
>
> What document or example code should I consult to learn how to tap
> into admin.py to output specific data based on a model? For example,
> if I have an application and a handful of models, if I do "admin.py
> sqlall" then I get o
On Tue, Dec 1, 2009 at 9:53 AM, ~km wrote:
> Hello,
>
> I'm a Python enthusiast and Django newbie. I'm trying to develop a
> website with an "Ask and Get an Answer"-Interface, with the goal to
> get a strong community; see http://stackoverflow.com to get an idea.
> For more information on stackove
On Thu, Dec 3, 2009 at 6:29 PM, Dave Fowler wrote:
> My Django tests have started to print out the results instead of
> registering them for the test results. You can see here, as the tests
> are run it prints out the True and False results (where normally it
> just prints out a list of periods)
On Thu, Dec 3, 2009 at 7:01 PM, Dave Fowler wrote:
> Russell, thanks for the help but I beleive we're talking about a
> different issue here.
>
> My issue is that if I do something like this
>
g = 5
g
> 5
>
> It will run the test and print out the 5 while running...
>
> .
> 5
> .
On Fri, Dec 4, 2009 at 6:23 AM, Margie Roginski
wrote:
> In forms/models.py I see this:
>
> def save_m2m():
> opts = instance._meta
> cleaned_data = form.cleaned_data
> for f in opts.many_to_many:
> if fields and f.name not in fields:
> continue
>
On Fri, Dec 4, 2009 at 3:29 AM, Todd Blanchard wrote:
> From the deafening silence, I'm going to take this as a "no".
Ok - your "defening silence" lasted all of 2 hours. Seriously - I've
only just woken up from 7 hours of sleep, in which time you have asked
a question, and decided that was no ans
On Fri, Dec 4, 2009 at 10:01 AM, John Wang wrote:
> Hi all,
>
> let me express my question more simple and easy to understand.As we
> know we can access the manager B through A as the following:
>
manager_of_b = a.b_set # get the manager of B
queryset_b = manager_of_b.all()
On Wed, Dec 9, 2009 at 5:07 AM, spool wrote:
> Hi I've got the same problem.
>
> Here's what I'd like to do: I'm trying to create a generic
> "time_series" app, which has models which are inherited by other apps
> but are not functional by themselves. I would like to create test
> models in tests.
On Wed, Dec 9, 2009 at 8:28 AM, Phlip wrote:
> Djangoids:
>
> Does the data fixture support automatically generated primary keys?
>
> We need to add a tiny stretch of new data to an existing website. A
> fixture, such as new_data.json, would work great for both the new data
> and for their new fea
On Wed, Dec 9, 2009 at 11:50 PM, David Koblas wrote:
> I'm trying to get a better understanding of django performance in a
> production setting.
>
> Specifically I've seen notes that say that operations like sending mail will
> block all production traffic to your server for the duration of the se
On Thu, Dec 10, 2009 at 1:23 AM, Phlip wrote:
> On Dec 8, 5:13 pm, Russell Keith-Magee wrote:
>
>> fixture)? As always, suggestions are welcome.
>
> The suggestion is
>
> - template the json
I'm not sure how this helps. We already have a 100% reliable method
for
On Thu, Dec 10, 2009 at 2:06 AM, Phlip wrote:
> On Aug 14 2008, 5:39 am, "Hajo Smulders"
> wrote:
>
>> I need to set the HTTP_REFERER in the request.META data of a test client so
>> that i can unit test a view.
>> How do I do this? ie: How do i fake an HTTP header on a test client?
>
> Bump? I ju
On Thu, Dec 10, 2009 at 7:59 AM, Phlip wrote:
> On Dec 9, 3:10 pm, Russell Keith-Magee wrote:
>
>> Ok; using some non-pk value for PK references is certainly one way to
>> handle this. There is an issue around how to resolve a hash into an
>> actual pk value, but that
On Thu, Dec 10, 2009 at 8:24 AM, Phlip wrote:
> Djangoes:
>
> Here's a sketch of an XmlTestRunner.
>
> http://pypi.python.org/pypi/XmlTestRunner/0.16654
>
> The point is to decorate all the test names (and asserts?), and show
> them off, probably with XSLT to HTML to a web page.
>
> To plug a new
On Thu, Dec 10, 2009 at 9:02 AM, Phlip wrote:
> On Dec 9, 4:52 pm, Russell Keith-Magee wrote:
>
>> If you want to use an XML test runner instead of the default
>> Text-based runner, take a copy of django.test.simple.run_tests() and
>> modify to suit your requirements.
On Mon, Dec 14, 2009 at 12:15 PM, Vitaly Babiy wrote:
> Hey Guys,
> Is there anything in the works to do some refactoring of django auth.
> Because if you are using a custom user object all the django auth test
> break.
There aren't any specific plans at the moment - which is to say, there
aren't
On Tue, Dec 15, 2009 at 11:34 AM, Christopher Bird
wrote:
> has anyone else had trouble with creating a password with the
> manage.py createsuperuser
>
> I ran the command, then asks for my email and user name,
> then it when it gets the password it wont let me type anything.
Define "won't let me
On Thu, Dec 17, 2009 at 6:42 PM, Daniel Roseman wrote:
> On Dec 17, 10:10 am, gganesh wrote:
>> hi group,
>> How to compare date field types in a template ,a have field due_on
>> taking DateField type .I have to compare to present date .I have tried
>> the following in vain ,please help
>> In a
On Sun, Dec 20, 2009 at 12:22 PM, Todd Blanchard wrote:
> I think what i actually want is a form set, but I don't find that all that
> well done either.
I would like to point out that so far, you haven't actually told us
what your problem *is*. You've asked how Django does something that
Rails ca
On Tue, Dec 22, 2009 at 5:46 PM, Amine wrote:
> Hi,
> I'm new in django and i'm searching a book :
> django 1.0 web site development PDF
>
> can u help me please !
> in http://my.softarchive.net/search/?q=django&x=0&y=0 I could not
> download it.
>
> Is there another way ?
Sure. You go to one
On Fri, Apr 16, 2010 at 5:26 PM, h-k-ii wrote:
> I find dumpdata output in XML format quite strange for natural keys.
> Each character in a key reference is wrapped in a .
>
> Is this a bug to be reported or a feature?
It certainly doesn't look right; so there is a bug somewhere.
However, it mig
On Fri, Apr 16, 2010 at 8:40 PM, h-k-ii wrote:
> You are correct.
>
> Based on my experience with natural keys, I would propose improvements
> for the documentation [1] - but perhaps these are matters of personal
> opinion:
We're always open to suggestions on how to improve documentation. The
bes
On Sun, Apr 18, 2010 at 8:53 AM, Jerry Stratton wrote:
> It looks like {% if %} with OR or AND no longer short circuits under
> 1.2-beta-1.
>
> class Page(models.Model):
> ...
>
> def beTrue(self):
> print "BEING TRUE"
> return True
>
> def beFals
On Tue, Apr 20, 2010 at 10:51 AM, Brian McKeever wrote:
> I fixed it by uninstalling Python 2.6.5 and installing 2.6.4 instead.
Ah - then I think I know the problem.
Python 2.6.5 made a change to the way cookies are stored which is
subtly incompatible with the test client. This problem has been
On Tue, Apr 20, 2010 at 3:48 PM, Jonatan Heyman wrote:
> Hi!
>
> I wonder how to go about to get your blog included in the Django
> community aggregator? I've written one Django post so far, and have
> two other posts laying in the pipeline to be posted. I've sent an e-
> mail to jacob at jacobian
On Tue, Apr 20, 2010 at 9:21 PM, Russell Keith-Magee
wrote:
> On Tue, Apr 20, 2010 at 3:48 PM, Jonatan Heyman wrote:
>> Hi!
>>
>> I wonder how to go about to get your blog included in the Django
>> community aggregator? I've written one Django post so far, and h
On Tue, Apr 20, 2010 at 10:26 PM, Atamert Ölçgen wrote:
> On Tuesday 20 April 2010 16:22:58 Russell Keith-Magee wrote:
>> Apologies if your mail has gone unanswered. I've just added your blog
>> to the aggregator.
> I, also, have sent two e-mails to Jacob regarding comm
On Wed, Apr 21, 2010 at 4:28 PM, Daniel Roseman wrote:
> On Apr 20, 3:36 pm, Russell Keith-Magee
> wrote:
>> Obviously this isn't an isolated problem - I'll see what I can do
>> about changing the advice on the community page so that Jacob's inbox
>> d
On Fri, Apr 23, 2010 at 6:27 PM, Vasil Vangelovski
wrote:
> Is there a way to run unit tests in such a way that email will be sent
> via the SMTP email backend when there's a call to send_mail in the
> unit test?
In 1.1; no. In 1.1, Django has a single mail API, and the test setup
code replaces t
On Wed, Apr 28, 2010 at 3:49 AM, Rob wrote:
> By strange coincidence, I sent an email to Jacob earlier today
> requesting that my blog be included in the Django community
> aggregator.
>
> I had a suspicion that this type of situation might arise, as I expect
> many are doing the same.
>
> My blog
On Wed, Apr 28, 2010 at 9:50 PM, Gustavo Narea
wrote:
> Hello, Russell et al.
>
> We also have a relatively new blog where we talk about Django and the
> extensions we write for Django, and one of my fellow developers
> contacted Jacob a few months ago but he never replied.
>
> Here's the feed for
On Thu, Apr 29, 2010 at 8:32 AM, Brandon Belew wrote:
> Hello,
>
> I am attempting to use a database router to move django.contrib.auth
> off to its own database. Reasoning behind this - I want to share
> just a few tables ( Auth and a custom app called AdminAccess ) across
> multiple sites whi
On Thu, Apr 29, 2010 at 12:59 AM, idle sign wrote:
> I think I spotted something weird. May be someone could explain that?
>
> 1. In Django 1.2 define two DBs (let it be sqlite), one of which name
> 'test'.
> 2. Define DB router for 'testapp' so that it always uses 'test' DB.
> 3. Use 'commit_manu
On Thu, Apr 29, 2010 at 11:04 AM, idle sign wrote:
> I thought so, have tried so, but got "This code isn't under
> transaction management", and opened this thread :)
I get that error if I *omit* the using= argument to commit (which is
what I'd expect to see).
What version of trunk are you using?
On Thu, Apr 29, 2010 at 12:20 PM, idle sign wrote:
> I'm using the latest trunk from http://github.com/django/django.
> A complete test project you can grab at
> http://idlesign.narod.ru/django/django-tests.tar.gz
> There is a little bootstrap.sh to run to create DBs.
>
> Thank you, Russ.
Ok - u
On Fri, Apr 30, 2010 at 5:03 AM, Felippe Bueno wrote:
> django-1.2 will support this.
I'm sorry - what is this based on? There haven't been any substantive
changes to contrib.auth in 1.2. It's not on the official "new
features" list. There have been some discussions about some potential
changes,
On Fri, Apr 30, 2010 at 9:30 PM, Felippe Bueno wrote:
>
>
> On Fri, Apr 30, 2010 at 12:08 AM, Russell Keith-Magee
> wrote:
>>
>> I'm sorry - what is this based on? There haven't been any substantive
>> changes to contrib.auth in 1.2. It's not on th
On Sun, May 2, 2010 at 2:52 AM, Continuation wrote:
> Hi,
>
> I read the doc on the multi-database feature in 1.2. It seems it's
> mostly geared towards vertical partitioning of databases.
>
> Any way to use it for horizontal sharding?
>
> For example, say I have a Message class. I want to use a h
On Mon, May 3, 2010 at 11:32 AM, Wiiboy wrote:
> Hi guys,
> I'm trying to use the form wizard for a model. The problem is, I have
> an ImageField in the last step, but I keep getting a "This field is
> required" on it. request.FILES contains the uploaded file, however.
>
> Can I use ImageField's
On Mon, May 3, 2010 at 11:49 AM, Wiiboy wrote:
> Is that in trunk (i.e. could I revert to an older SVN revision and
> have it work)?
Technically, yes, but you'd have to revert to a pre-1.0 revision. The
FileField refactoring occurred over 2 years ago.
Yours,
Russ Magee %-)
--
You received this
401 - 500 of 2540 matches
Mail list logo