On Tue, Aug 24, 2010 at 2:29 PM, wally wrote:
> I'm getting some strange errors when trying to use the aggregate
> functions. My model looks like...
>
> class test(models.Model):
> a = models.IntegerField()
>
> After creating a few records, I try the following:
>
test.objects.all().aggreg
On Wed, Aug 25, 2010 at 3:57 AM, Waldemar Kornewald
wrote:
> On Aug 24, 9:30 pm, mack the finger wrote:
>> I'm considering starting a project, and am leaning towards using
>> google app engine instead of the traditional LAMP stack. The problem
>> is that with app engine, you can't use django mode
On Wed, Aug 25, 2010 at 4:00 PM, Waldemar Kornewald
wrote:
> On Wed, Aug 25, 2010 at 2:04 AM, Russell Keith-Magee
> wrote:
>> Firstly -- Nobody has ever committed to getting Alex's query-refactor
>> branch merged in for Django 1.3. In fact, I'm on record in at least
On Wed, Aug 25, 2010 at 10:21 PM, Waldemar Kornewald
wrote:
> On Wed, Aug 25, 2010 at 2:36 PM, Russell Keith-Magee
> wrote:
>> On Wed, Aug 25, 2010 at 4:00 PM, Waldemar Kornewald
>> wrote:
>>> As Alex' MongoDB backend demonstrates, all nonrel backends can
On Fri, Aug 27, 2010 at 1:43 AM, Elf_Sternberg wrote:
> Is anyone seeing this? I have this function at the top of my
> unittest:
>
> def create_user(name):
> username = name.replace(' ', '').lower()
> return User.objects.create_user(username, username + '@a.com',
> 'password')
>
> And then
On Fri, Aug 27, 2010 at 7:35 AM, Kenneth Gonsalves wrote:
> On Thu, 2010-08-26 at 22:17 -0100, Joshua Russo wrote:
>> There are a lot of PostgreSQL drivers listed on the Python Wiki
>> http://wiki.python.org/moin/PostgreSQL
>>
>> Has anyone found one to be better or even that different from
>> ano
On Sat, Aug 28, 2010 at 7:27 AM, Jesse wrote:
> Do I not need it to run Apache on Windows with Django? Or what is the
> alternative? This is the 5th server I've set up and I've always used
> mod_python until now. How do I get past this mod_python step?
Seriously - the answer is to stop using m
On Sun, Aug 29, 2010 at 8:26 PM, dave b wrote:
>> Anyway, since you have done your civic duty there's a good chance that a
>> fix will find its way into some future version. Thanks for being a good
>> citizen.
>
> Django is an awesome project and. However, a bug is a bug. I don't
> care if it is a
On Mon, Aug 30, 2010 at 11:09 PM, dave b wrote:
>> I don't actually use Django so not 100% sure, but yes there possibly
>> isn't an equivalent of LimitRequestBody definable within Django unless
>> can be done with middleware.
>
> Ok so you don't even use django, ok...
> You know I think I missed y
On Tue, Aug 31, 2010 at 9:09 AM, dave b wrote:
>>> Secure by default please!
>>
>> That's an easy epithet to throw around, but I disagree that it is
>> appropriate here. "Security" doesn't mean "stops the user from making
>> mistakes".
>
> Look like wsgi, apache2 and django all on ubuntu PLACE no
> On 8/30/2010 9:09 PM, dave b wrote:
>> Do not pass go do not collect profit!
...
>> Put your hands up in the air like you just don't care!
...
>> blahblahblalbha sssh listen.
...
On Tue, Aug 31, 2010 at 9:42 AM, Steve Holden wrote:
> Frankly, at this stage you can stick it up your ass and set
On Tue, Aug 31, 2010 at 10:01 AM, dave b wrote:
>> And, for the record, the fact that Ubuntu or Debian have chosen these
>> defaults doesn't make Apache insecure either. System defaults exist to
>> make it easy and obvious to get something started. A responsible
>> sysadmin for a public-facing web
On Fri, Sep 3, 2010 at 6:03 AM, HiTekElvis wrote:
> Have a db that was generated under 1.0. Hence, foreign keys in MySQL
> have been named [tablename]_[fieldname]_id.
A slight correction - foreign key *indexes* will be named like that;
the fields themselves don't include the table name.
> Howev
On Sat, Sep 4, 2010 at 7:17 AM, Brendon wrote:
> I have a project where we have an existing database which uses
> composite (multiple) primary keys for some of the tables. I want to
> move everything over from PHP into DJango without changing the DB.
> Reading the DJango docs though, it seems comp
On Sat, Sep 4, 2010 at 4:45 PM, Andy wrote:
> What are the downsides of just importing & using SQLAlchemy (which
> supports composite PK) in a Django program?
Essentially you lose integration of models with the rest of Django.
Most importantly, this means ModelForms and Admin. It may also limit
y
On Wed, Sep 8, 2010 at 12:51 AM, Don wrote:
> I need to create a query that aggregates values by the year of a date
> field. I have not been able to discover a way to do this yet, perhaps
> someone can help. I can issue the following raw query, which gives the
> results I want:
>
> cursor.execute(
On Thu, Sep 9, 2010 at 8:48 AM, qMax wrote:
> Hi.
>
> Being quite new in django,
> I have a task to integrate data from multiple databases.
> And I wonder if django-1.2 multibase capabilities can help me in that.
>
> The idea is like that:
> class PersonModel(Model):
> id = AutoKey(prim
On Fri, Sep 10, 2010 at 7:47 PM, naoy.teruh wrote:
> Hello,
>
> I would like to implement multicolumns primary keys in django.
...
> Did I miss something ?
Yes - Multicolumn primary keys aren't currently supported in Django.
It's a long-standing feature request, logged as ticket #373.
Yours,
Rus
On Tue, Sep 14, 2010 at 3:09 AM, Cindy wrote:
> OK, I have figured this out myself -- is there somewhere I should put
> in a bug report?
Almost certainly yes -- but based on the details you provide, it isn't
clear that the right place is Django's Trac instance. Django doesn't
provide an LDAP auth
On Thu, Sep 16, 2010 at 11:18 PM, keith wrote:
> I have an app that accesses two different databases which are defined
> in settings.py
> one of them is read-only and its models all have managed=False, when i
> run 'manage.py test', unsurprisingly i guess, i get an insufficient
> privileges error
On Fri, Sep 17, 2010 at 12:24 AM, Carl Karsten wrote:
> Is there a better way to do:
>
> {% url admin:main_episode_changelist %}?show__id__exact={{show.id}}
Django doesn't include the GET arguments as part of the URL dispatch
process, so the {% url %} tag matches the body of the URL; if you want
On Fri, Sep 17, 2010 at 6:15 AM, Jim D. wrote:
> I have some code that calls a third-party API in a Django application
> I'm working on, which could be triggered at various points throughout
> a project. I would like to ensure that the API itself doesn't actually
> get called at all during test mo
On Wed, Sep 22, 2010 at 4:26 AM, klaasvanschel...@gmail.com
wrote:
> tl;dr
> * Django Apps Suck. Your reply explaining why they don't is expected.
> * Reuse of a lot of things doesn't suck. But the specific unit app,
> meaning a bunch of models that can be modified and presented with
> their model
On Wed, Sep 22, 2010 at 11:53 AM, Ramdas S wrote:
>
>
> On Wed, Sep 22, 2010 at 2:48 AM, Klaas van Schelven
> wrote:
>>
>> Shawn: thanks
>> Just started watching the video and I'm noticing my complaints are not
>> unique.
>>
>> > Wow! I guess your definition of an app and expectation of re-usuab
On Wed, Sep 22, 2010 at 11:31 PM, Klaas van Schelven
wrote:
>> I'm yet to see a genuine case of (a) -- every time I've seen (a), it's
>> really masked version of (b), (c) or (d).
>
> I disagree. I think there are very specific problems, that has not
> been adressed by any of the responses above.
>
On Thu, Sep 23, 2010 at 2:41 PM, Joel Klabo wrote:
> I keep getting this import error and I can't figure out why? Any ideas
> would be greatly appreciated: http://dpaste.org/BgtI/
It's a circular import problem. signals.py imports objects from
models.py, and models.py imports objects from signals
On Thu, Sep 23, 2010 at 5:55 PM, Klaas van Schelven
wrote:
> On Sep 23, 2:01 am, Russell Keith-Magee
> wrote:
>
> So, we run into a few problems:
> * How do we extend the models from the original extendible
> application?
> For this to work, we need to provide hooks i
On Fri, Sep 24, 2010 at 1:41 AM, Yo-Yo Ma wrote:
> Hey Russell,
>
> Do you think a round table discussion in a real person context with
> whiteboards and the best of the bunch (ie, at Django con or similar
> event) would be a good time/place to re architecture of the
> abstraction layers, perhaps
On Fri, Sep 24, 2010 at 4:51 AM, Peter Bengtsson wrote:
> When not using SQLite for running my tests it takes a aweful long time
> to install all the indexes.
> Considering that indexes are there for speeding up selects when the
> number of rows is very high I realise I don't need them during a te
On Sat, Sep 25, 2010 at 10:50 AM, Yo-Yo Ma wrote:
> Anyone have any thoughts.
Yes. My thought is that you should settle down.
This is a mailing list, populated by an international audience.
You've waited less than *2 hours* before pinging the list for a
response. This is the third time in recen
On Mon, Sep 27, 2010 at 12:18 AM, Joakim Hove wrote:
> Hello,
>
> I have a simple form which has method POST. When I view the form in
> the browser and fill it normally everything works fine. However; the
> plan is to submit this form automagically from a client program - I
> have currently tried
On Tue, Sep 28, 2010 at 10:51 AM, Steve Holden wrote:
> I'd just like to briefly report back on the inquiries Nancy and I have
> been making into East coast venues for DjangoCon 2011. This is not a
> final answer, simply reassurance that things have actually been happening.
>
> Sadly, New York is
On Wed, Sep 29, 2010 at 2:20 PM, Saad Sharif
wrote:
> Thanks for your help :) Yup, I already did that, added {% csrf_token %} just
> after tag..still the same error comes up :(
The error page that comes up comes with a list of three possible
sources of error.
Have you ruled out those?
Yours,
R
On Fri, Oct 1, 2010 at 2:57 AM, orokusaki wrote:
> I'm looking to do the opposite of what Django's proxy model does. I
> want to subclass Model, add some extra methods to it, add behavior to
> save(), set a default manager that adds some my-application-specific
> methods, and then subclass that to
On Thu, Sep 30, 2010 at 8:01 PM, Jyrki Pulliainen wrote:
> Hi!
>
> We encountered a possible backwards incompatibility with change 12950
> [1]. This was noticed when upgrading from 1.1.1 to 1.1.2.
>
> If I understand correctly the change 12950 removes squelching of
> ImportErrors from AppCache. Ap
On Sun, Oct 3, 2010 at 10:47 AM, diogobaeder wrote:
> Never mind, must be something with my Firefox version (I'm using from
> the launchpad repos, nightly builds). Tested on Chrome and Opera, both
> are fine.
>
> Thanks and sorry for the silly report!
We have had some reports in the past that the
On Sun, Oct 3, 2010 at 10:44 PM, xy zz wrote:
> Hello,
>
> A couple of questions regarding nosql. I am interested in MongoDB in
> particular, but general answers are also ok.
>
> * Is there any work going on in Django to support nosql databases? I
> am aware of django-nonrel but will nosql suppo
On Mon, Oct 4, 2010 at 2:50 AM, diogobaeder wrote:
> Hi, Russ,
>
> I just added a reply there with the headers sent from my browser. Hope
> it helps to find the source of the problem.
Yeah - it looks like you've been bitten by the same problem. You have
an Accept-Language header that includes
"ch
10 at 3:36 PM, Jyrki Pulliainen wrote:
> Sorry for bump up, but anything to say about this? Should I create a
> ticket about the problem?
>
> - Jyrki
>
> On Oct 1, 9:41 am, Jyrki Pulliainen wrote:
>> On Oct 1, 3:30 am, Russell Keith-Magee
>> wrote:
>> > Not
On Thu, Oct 7, 2010 at 1:32 PM, girish shabadimath
wrote:
> Hi all,
>
> im using django 1.2
>
> i dont want django to create test_db for testing, instead should use the
> main database
>
> i have override run_tests method to do unit tests,,,
> here is the run_tests code:
>
> class Custom_TestSuit
On Fri, Oct 8, 2010 at 1:34 PM, girish shabadimath
wrote:
> Hi all,
> i looked into the setup_databases() code, here it basically checks for
> MIRROR,,if db is a mirror ,then it simply points to it or else creates test
> db,,,where dis SUPPORTS_TRANSACTIONS check is happening..?
>
> trace-out sho
On Sun, Oct 10, 2010 at 12:00 AM, NoviceSortOf wrote:
> I'm using the following in a form to allow the user to input choices
> on field named frequency.
>
> sub_freq = forms.ChoiceField(choices=SUB_FREQ,
> widget=forms.CheckboxSelectMultiple)
>
> This gives me a list of checkboxes and I check al
On Sunday, October 10, 2010, Dirk wrote:
> If I use
>
> id = models.AutoField(primary_key=True)
>
> can I be sure that if an object is removed from the db by calling
> its .delete() method, the respective id will not be used for any
> subsequent .save() on a new object?
>
> My application relies o
On Sun, Oct 10, 2010 at 5:53 PM, retzzz wrote:
> Anybody know what's wrong with django official website www.djangoproject.com?
> I can't open it by several days. Is it down or just my access request
> was blocked?
By any chance, have you installed (or just recently uninstalled) the
Weave extensio
On Wed, Oct 13, 2010 at 3:31 AM, Jorge Vargas wrote:
> Hello,
>
> I recently inherited a project that uses a lot of model validations
> and is mainly just a model (we have two django apps that use it as
> their backend).
>
> The test suite currently returns
>
> Ran 460 tests in 980.347s
> That is
2010/10/13 Jonathan Barratt :
> On 13 ?.?. 2010, at 2:31, Jorge Vargas wrote:
> A database migration might not be the sort of effort you were looking for,
> but I can only imagine that moving from SQLite to Postgres or MySQL would
> offer you the largest possible performance gains...
Unlikely.
On Wed, Oct 13, 2010 at 11:59 PM, Matt_313 wrote:
> Hi,
>
> I have a Django site that gets on average 6,000 visits a day. We use a
> white listed e-mail server to send out e-mails to our customers (order
> notifications, password resets etc.)
> This costs a fraction of a cent per e-mail - so all t
On Thu, Oct 14, 2010 at 5:58 PM, Sithembewena Lloyd Dube
wrote:
> Hi all,
>
> I just installed django-forum (http://code.google.com/p/django-forum/) in my
> Django 1.2.3. project and all went well (admin) until I got CSRF errors
> while trying to load a new forum I created in the admin.
> I added
On Tue, Oct 12, 2010 at 11:42 PM, Stodge wrote:
> Short of creating my own custom FileField class, is there anyway to
> pass an optional "delete" flag to a custom file system storage? I have
> a case where I want to delete the FileField record, but not the file.
This was discussed at DjangoCon; t
2010/10/20 Łukasz Rekucki :
> On 19 October 2010 19:06, Valentin Golev wrote:
>> Hello,
>>
> 2) decorate the dispatch method. You need to turn login_required into
> a method decorator first (Django should probably provide a tool for
> this).
Django does :-) It's called method_decorator.
from dja
On Wed, Oct 20, 2010 at 10:33 PM, Miguel Araujo wrote:
> Hi everyone,
> Is there any way to force sqlite3 to use a file instead of RAM when running
> tests? I would like to access the DB somehow to check some fields. This is
> the only DB engine I have in this machine.
Yes - set the TEST_NAME (or
On Fri, Oct 22, 2010 at 12:37 PM, Phlip wrote:
> I just tried it:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> # TODO restore 'NAME': ':memory:',
> 'NAME': '/home/phlip/fun.db',
> 'USER': '',
> 'PASSWORD': '',
> 'HOST':
On Saturday, October 23, 2010, Paul Winkler wrote:
> Tried it out. Interestingly, natural keys are currently used only for
> foreign key references,
> the dump still contains primary keys.
> Looks like there's a patch for leaving out PK's when natural keys are
> used:
> http://code.djangoproject.c
On Saturday, October 23, 2010, Phlip wrote:
> Djangoists:
>
> My last project got into trouble because the .json test fixtures took
> so bloody long to run. (I fussed about that here at the time...)
>
> So I started my current, blue-sky project with an absolutely clean new
> codebase, and Django 1
On Sun, Oct 24, 2010 at 11:47 PM, Joakim Hove wrote:
> Hello,
>
> to assist those responsible for the content of "my" site I would like
> to embed the file-system path to the template in the rendered
> template, so that when they find something they are dissatisfied with
> on a page they can do "V
On Tue, Oct 26, 2010 at 1:05 AM, Joakim Hove wrote:
>
>> However, if you just want to know the top-level template that started
>> the rendering process, you could obtain this by writing a custom
>> render_to_template() shortcut that inserts the loaded template name
>> into the context.
>
> Thank y
On Wed, Oct 27, 2010 at 1:13 AM, Stodge wrote:
> I have two PostgreSQL (postgresql_psycopg2) databases defined in my
> settings; default and scenes.
>
> If I perform a filter using the 'scenes' DB I get the expected
> results:
>
> Scene.objects.filter(name__contains='ME').using('scenes')
> [, ]
>
On Sat, Oct 30, 2010 at 2:01 AM, Michael wrote:
> Hi,
>
> Do you think it is relevant to rewrite databrowse to use the new class-
> based generic views ?
> I'm motivate to work around this and submit a patch, but want first to
> discuss about what to do..
> IMHO, contrib.databrowse (using class-ba
On Mon, Nov 1, 2010 at 9:43 PM, Sithembewena Lloyd Dube
wrote:
>
> Could somebody please take care of this idiot?? Spammed me after my response
> to a thread post.
>
I've just banned the account.
Interestingly, he was mailing list members directly, not spamming the
list. This is an approach tha
On Tue, Nov 2, 2010 at 9:15 AM, Vitaly Babiy wrote:
> Hey guys,
> I know there has been work done with nosql I was wondering if the admin
> works with mongo yet?
Yes, with an if; no, with a but :-)
In trunk/stable, the answer is no. The ORM doesn't work with MongoDB
yet, so there's no chance tha
On Thu, Nov 4, 2010 at 10:32 PM, octopusgrabbus
wrote:
> I have a simple form:
>
> {% extends "base.html" %}
> {% block title %}Take Snapshot of Billing Reads{% endblock %}
> {% block head %}Take Snapshot of Billing Read{% endblock %}
>
> {% block content %}
> {% if user.username %}
>
>
On Thu, Nov 4, 2010 at 10:46 PM, Michael P. Soulier
wrote:
> Hi,
>
> I'm templating some javascript which is at times rather picky in parsing
> depending on one's browser. It would be nice in some cases to suppress the
> newline caused by the insertion of a template tag, like in jsp and erb.
> Per
On Fri, Nov 5, 2010 at 11:59 AM, jt wrote:
> Hi,
> I'm just starting out. Things ran fine until I uncomment out:
> (r'^admin/', include(admin.site.urls))
> in my urls.py file. When I access my local site from the development
> server. I get:
> * Exception Type: TypeError
> * Exception Value: 'tu
On Fri, Nov 5, 2010 at 6:28 AM, Cindy Moore wrote:
> Hi, all. I'm trying to figure out how to do this. I have two django
> projects, on different servers (though I have control over each).
>
> On one of the projects (call this the primary project), I would like
> to *read* the info from the othe
On Thu, Nov 11, 2010 at 4:15 PM, Baurzhan Ismagulov wrote:
> On Thu, Nov 11, 2010 at 01:34:43AM -0600, James Bennett wrote:
>> The first alpha preview package for Django 1.3 is now available.
>
> Great!
>
>
>> * Release notes: http://docs.djangoproject.com/en/dev/releases/1.3-alpha-1/
>
> Is the f
On Fri, Nov 12, 2010 at 8:16 AM, hcarvalhoalves
wrote:
> What about having an official 1.3 feedback thread at django-developers
> list? ;)
Why is a single catch-all thread needed? Those sorts of threads
rapidly descend into an unmaintainable mess. It's better to open a new
thread for any issue yo
On Fri, Nov 12, 2010 at 9:17 AM, Steve Holden wrote:
> On 11/11/2010 5:04 PM, Russell Keith-Magee wrote:
>> It won't be 100% frozen until the final release
>
> Shouldn't that be "first beta"?
Let me clarify:
The absolute hard deadline for changes to API is the
On Fri, Nov 12, 2010 at 9:09 AM, hcarvalhoalves
wrote:
> To be fair, I only had one small pet peeve with the current views API
> after trying the alpha: the use of self.args / self.kwargs.
>
> There's added value on being able to see which parameters a view
> expects by seeing it's method signatur
2010/11/12 Łukasz Rekucki :
> On 12 November 2010 01:45, Ian Lewis wrote:
>> 2010/11/12 Łukasz Rekucki
>>>
>>> On 12 November 2010 01:16, hcarvalhoalves
>>> wrote:
>>> > What about having an official 1.3 feedback thread at django-developers
>>> > list? ;)
>>> >
>>> > I'm liking the pack of small
On Mon, Nov 15, 2010 at 6:16 AM, churris wrote:
> Hi Ramiro,
>
> I've tried that, but those notes are just to flush the second db, but
> in this case, the issue is that the database is not even getting
> created at all.
Multi-db is supported under testing, and Django's own test suite validates th
On Wed, Nov 17, 2010 at 2:59 AM, Cek wrote:
> Hello all!
>
> I'm quite new to Django, and this is my first post to this group, so
> pls excuse and correct me if it's the wrong place or something like
> that.
You've got the right place. Welcome!
> I am trying to use eav-django (http://pypi.python
Hi all,
The DjangoCon organizing committee, led by Steve Holden, has just
announced that DjangoCon US 2011 will be held in Portland, Oregon,
from September 6-8 2011. This will be followed by a couple of days of
sprints. We are also exploring the possibility of running tutorials on
the day before (
On Tue, Nov 23, 2010 at 5:18 PM, Derek wrote:
> In the last Django advent, Zain Memon said:
>
> "A lot of implemented features missed the cut for Django 1.2, like
> drag-and-drop reordering of inlines for models with an ordering field, and
> an autocomplete widget for Foreign Key and M2M relation
On Thu, Dec 2, 2010 at 4:43 AM, fahhem wrote:
> According to some pages in the dev documentation, the settings are
> STATIC_ROOT and STATIC_URL:
>
> http://docs.djangoproject.com/en/dev/ref/settings/
> http://docs.djangoproject.com/en/dev/howto/static-files/
>
> But according to this page and to t
On Fri, Dec 10, 2010 at 9:17 PM, TomPH wrote:
> What is the best practise to migrate the data from sqllite to
> postgres? All tries I had till now failed with DB key errors!
>
> What I did:
>
> 1) python manage.py dumpdata --indent 3 -n >../dev_data.json (dev.
> system)
> 2) python manage.py flush
On Sat, Dec 26, 2009 at 3:06 AM, Hanne Moa wrote:
> A site using django-tagging will break hard on 1.2 as of today. See
> issue http://code.google.com/p/django-tagging/issues/detail?id=233 .
>
> How is one to use as_sql() now with multi-db in?
as_sql() is (and has always been) an internal functio
On Wed, Dec 30, 2009 at 6:13 AM, CB wrote:
> Hello.
>
> I've been developing on the multdb branch for awhile now (most recent
> version just before the dropping of the 'using' meta attribute), and
> everything has been going well. Recently though, with multidb landing
> in the trunk, I wanted to s
On Thu, Dec 31, 2009 at 12:25 PM, CB wrote:
>> In short, you can't (or shouldn't).
>>
>> What you're asking the database to do is keep a foreign key value that
>> is not valid on the database on which it is stored.
>
> Yes, this is true.
>
>
>> The multi-db branch had checks for this sort of refer
On Fri, Jan 1, 2010 at 5:26 AM, Continuation wrote:
> From reading several posts here, it looks like it's not a good idea to
> try to have ForeignKey pointing from 1 DB to another DB.
>
> The problem for me is that pretty much every single model of mine has
> a link to User. And I suspect that's a
On Fri, Jan 1, 2010 at 5:46 AM, CB wrote:
Apologies for taking so long to get back to you on this - the silly
season has been consuming a lot of my time.
> Yes, and I think this is a somewhat common use case. If we could
> convince the related managers not to call .using() on the returned
> quer
On Sun, Jan 3, 2010 at 4:06 PM, CB wrote:
>> The
>> default implementation would essentially be:
>>
>> def db_from_related_object(self, instance):
>> return instance._state.db
>
> I'm not familiar with ._state and not sure if you're referencing
> existing attributes on the manager, bu
Hi all,
If you have been using the new email backend feature in trunk, you
should be aware that SVN revision 12084 introduces a small, but
backwards-incompatible change.
If you are using Django 1.1 (i.e., Django stable), or you haven't
manually specified EMAIL_BACKEND in your settings file, you w
On Tue, Jan 5, 2010 at 4:12 PM, Marc Aymerich wrote:
>
>
> On Tue, Jan 5, 2010 at 8:38 AM, harijay wrote:
>>
>> Hi I just started using the subversion build of django and mysql-
>> python with python 2.6.3
>> Both django (svn 12103) and _mysql (MySQLdb rev 635) work fine and can
>> be imported fr
On Tue, Jan 5, 2010 at 3:38 PM, harijay wrote:
> Hi I just started using the subversion build of django and mysql-
> python with python 2.6.3
> Both django (svn 12103) and _mysql (MySQLdb rev 635) work fine and can
> be imported from the command line python without any error messages.
> I created
On Tue, Jan 5, 2010 at 5:52 PM, Aristotle Miternan wrote:
> Hello everyone,
>
> The latest update to django 1.2 broke my code and I'm hesitant to
> post it as a bug when I'm not sure if there's a core concept that
> changed that I don't get.
>
> I noticed that I am no longer able to do this:
>
On Wed, Jan 6, 2010 at 11:13 AM, Aristotle Miternan
wrote:
> Hello Karen,
>
> Here is a minimal example of what I am trying to do. I am trying to
> have a save/load functionality before a user posts their information.
> This gives me an UnresolvableValidationError because the id of the
> model is
On Thu, Jan 7, 2010 at 6:51 PM, cschand wrote:
> When I run syncdb command it creates tables for default (dbtest1
> database) only. How can I create tables for db2? Is it possible to
> create at runtime?
syncdb (and all the other database-related management commands) now
takes a --database argume
On Fri, Jan 8, 2010 at 7:58 AM, Zbigniew Braniecki
wrote:
> I'm experimenting with multi-db and it fits perfectly some major
> projects I'm working on. Man, I wish it was in django 1.1! :)
Glad you're enjoying it :-)
> Anyway, one issue I found that limits the scope of multi-db use is the
> Fore
On Fri, Jan 8, 2010 at 10:06 AM, Zbigniew Braniecki
wrote:
> On Jan 8, 1:33 am, Russell Keith-Magee wrote:
>
>> This is a known limitation, and there are plans to add this - or at
>> least, to provide a workaround - for 1.2 final. There have been some
>> recent djang
On Fri, Jan 8, 2010 at 12:50 PM, Eric Abrahamsen wrote:
>
> On Jan 8, 2010, at 12:28 PM, neridaj wrote:
>
>> Can anyone tell me why this less than symbol is causing this if
>> statement to fail?
>>
>> {% if page_obj.number|add:"4" < paginator.count %}
>>
>> {% endif %}
>>
>
> Because t
On Fri, Jan 8, 2010 at 1:10 PM, neridaj wrote:
> I'm using 1.2:
>
django.VERSION
> (1, 2, 0, 'alpha', 0)
In which case you're going to need to give us some debug information.
"It doesn't work" isn't especially helpful. Django has a very healthy
test suite, if comparisons are covered by that
On Fri, Jan 8, 2010 at 2:13 PM, neridaj wrote:
> Yeah, I guess an error would help, oops. I just get 'if' statement
> improperly formatted. This is the only if statement that has failed.
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
We need *all* the details, not just the select few that
On Fri, Jan 8, 2010 at 9:36 PM, tom wrote:
> Hi,
>
> i use postgres and want to use partitioning for tables (see
> http://www.postgresql.org/docs/8.3/interactive/ddl-partitioning.html )
>
> My Model looks like this:
>
> class Measurand(models.Model):
> project = models.ForeignKey(Project)
>
On Thu, Jan 14, 2010 at 7:56 AM, Bw. wrote:
> Hi guys,
>
> I'm trying to realize a simple sql query in django for hours and I
> don't get it.
>
> Description:
> We have 'salesman' and 'disposals'.
> 1 salesman has N disposals.
> Now I need the average discount every salesman has given.
> In mysql
On Thu, Jan 14, 2010 at 4:43 PM, Piotr Czachur wrote:
> Guys,
> I was really unhappy to see how slow fixtures are loaded before every
> test. I'm not talking about initial_data stuff that is loaded just in
> beginning, and then reset by rollback. Fixtures used for unit tests
> are loaded on demand
On Sat, Jan 16, 2010 at 1:38 AM, apramanik wrote:
> I turned autocommit on for our Django project and our unittests fail
> unless we put "transaction.rollback" in our tearDown. Any idea why?
> After fixing that I also noticed that our unittests are *much* slower.
> Is it because they're mainly doi
On Sat, Jan 16, 2010 at 6:32 AM, Malcolm Box wrote:
> Hi,
>
> I'm working on a REST-full API that allows an uploaded file to be PUT to a
> URL. I also need to support the X-Http-Method-Override header to turn a
> POST request into a PUT for clients (Flash, mobile etc) that can't do PUT.
>
> At th
On Mon, Jan 18, 2010 at 8:14 AM, Malcolm Box wrote:
> On Sat, Jan 16, 2010 at 4:58 AM, Russell Keith-Magee
> wrote:
>>
>> On Sat, Jan 16, 2010 at 6:32 AM, Malcolm Box
>> wrote:
>>
>> > It seems to me that Django should process POST and PUT requests the
On Mon, Jan 18, 2010 at 5:23 PM, Masklinn wrote:
> On 18 Jan 2010, at 03:04 , Russell Keith-Magee wrote:
>>
>> On Mon, Jan 18, 2010 at 8:14 AM, Malcolm Box wrote:
>>> On Sat, Jan 16, 2010 at 4:58 AM, Russell Keith-Magee
>>> wrote:
>>>>
>
On Sun, Jan 3, 2010 at 10:52 PM, Russell Keith-Magee
wrote:
> On Sun, Jan 3, 2010 at 4:06 PM, CB wrote:
>
>>> The
>>> default implementation would essentially be:
>>>
>>> def db_from_related_object(self, instance):
>>> return instanc
601 - 700 of 2540 matches
Mail list logo