Re: Reverse error in contrib.comments

2008-10-22 Thread Russell Keith-Magee
On Wed, Oct 22, 2008 at 12:30 PM, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > The error is: > Reverse for '' with arguments '()' > and keyword arguments '{}' not found. ... > I see there is an closed ticket: http://code.djangoproject.com/ticket/8571. > I have cleared out all of my .pyc files as

Re: Mercurial or Git

2008-10-23 Thread Russell Keith-Magee
On Thu, Oct 23, 2008 at 3:54 AM, Rit Lim <[EMAIL PROTECTED]> wrote: > > which one is the Django community moving toward to, mercurial or git? > if Django is to be moved... Several of the core developers are already using distributed version control systems to manage their activities. Git, for exa

Re: Ordering M2M field?

2008-10-24 Thread Russell Keith-Magee
On Fri, Oct 24, 2008 at 10:16 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > OK, I have a model with a many to many relationship.. pretty > straightforward pre-1.0 code: > > class SpecialEvent(models.Model): >sponsors = models.ManyToManyField(Advertiser, related_name="event > sponsors",

Re: database API from external tools?

2008-10-25 Thread Russell Keith-Magee
On Sat, Oct 25, 2008 at 3:55 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > Very much a Django newbie here, I'm trying to evaluate a few things > before diving right in. > > I was all set to write something in Ruby Rails, but the reason for > looking at Django is because I also

Re: database API from external tools?

2008-10-26 Thread Russell Keith-Magee
On Mon, Oct 27, 2008 at 6:05 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee wrote: >> On Sat, Oct 25, 2008 at 3:55 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: >> >>> My question is how to package up and deploy the Django python co

Re: How to run testcases of %Django_Home%/tests/* ?

2008-10-30 Thread Russell Keith-Magee
On Thu, Oct 30, 2008 at 5:37 PM, GAEFans <[EMAIL PROTECTED]> wrote: > > How to run testcases of %Django_Home%/tests/* ? By following the instructions: http://docs.djangoproject.com/en/dev/internals/contributing/#running-the-unit-tests Yours, Russ Magee %-) --~--~-~--~~~

Re: Query subset

2008-10-31 Thread Russell Keith-Magee
On Fri, Oct 31, 2008 at 4:08 PM, Tonne <[EMAIL PROTECTED]> wrote: > > So, what I've done is use Model.objects.values() to limit the returned > values, which is not ideal as I'm losing the objectness of the > queryset. > > I've worked around the loss Queryset.get_absolute_url by using a less > than

Re: Confused about unittests and fixtures

2008-11-06 Thread Russell Keith-Magee
On Fri, Nov 7, 2008 at 1:00 AM, AndyH <[EMAIL PROTECTED]> wrote: > > Hello, > > I have the following simple test which demonstrates the confusing > behaviour I'm seeing: > > class AvailabilityTestCase(django.test.TestCase): >fixtures = FIXTURE_LIST >def setUp(self): >response = sel

Re: Confused about unittests and fixtures

2008-11-06 Thread Russell Keith-Magee
On Fri, Nov 7, 2008 at 8:17 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > GenericForeignKey and content type application itself look very doubtful for > me. If you have a ForeignKey to the ContentType model then you depends on > order with ContentType objects creates on syncdb. Because ContentTyp

Re: Fixtures erase data?

2008-11-07 Thread Russell Keith-Magee
On Sat, Nov 8, 2008 at 5:13 AM, Dana <[EMAIL PROTECTED]> wrote: > > Hey everyone, > > I just set up a few fixtures for some of my models and realized that > every time I syncdb it changes the existing data in my database. I > assume this is normal behavior, but I was wondering if it is possible >

Re: Easy way to serialize objects

2008-11-07 Thread Russell Keith-Magee
On Sat, Nov 8, 2008 at 1:35 AM, Ivan Tarradellas <[EMAIL PROTECTED]> wrote: > > Hi all, > > With Django, what is the easy and best way to serialize/deserialize > objects that are no Django objects? > > django.core.serializers only works with Django objects. But what > happens if we have other obje

Re: Fixtures erase data?

2008-11-07 Thread Russell Keith-Magee
On Sat, Nov 8, 2008 at 1:19 PM, Dana Woodman <[EMAIL PROTECTED]> wrote: > >> Having an option to add data in the way you describe isn't really a >> good idea. If the syncdb behaviour was changed to add rather than >> overwrite initial data, you would have a different (and IMHO much >> worse) conse

Re: loading initial data with yml

2008-11-10 Thread Russell Keith-Magee
On Mon, Nov 10, 2008 at 6:30 PM, Adda Badda <[EMAIL PROTECTED]> wrote: > > Hi all, > > Im having a problem loading initial data into my app with yaml. I have > installed yaml for python using macports and placed the package in my > site-packages directory. From the shell the yaml package loads whe

Re: How can I create a new table without primary key filed?

2008-11-10 Thread Russell Keith-Magee
On Mon, Nov 10, 2008 at 7:59 PM, K*K <[EMAIL PROTECTED]> wrote: > > Hi, all. > > How can I create a new table without primary key in Django modeling. ? > > I'm porting a old program to Django web framework. After inspect > database to modules.py and then syncdb, It create the id filed with > prima

Re: Django Forums

2008-11-12 Thread Russell Keith-Magee
On Thu, Nov 13, 2008 at 3:37 AM, IMTheNachoMan <[EMAIL PROTECTED]> wrote: > > I realize that Django uses google groups for discussions and what not > but I was wondering how people felt about a Forum? Something with a > little better UI and better organization. Search the archives. This has come

Re: Django newbie observation

2008-11-12 Thread Russell Keith-Magee
On Thu, Nov 13, 2008 at 4:12 AM, ayayalar <[EMAIL PROTECTED]> wrote: > > I know Django is new and improving. I just wanted to point out these > issues a newbie is might be facing. Thanks for taking the time to give us this feedback. However, I would point out that while you have told us what is w

Re: Testing system and alternate template languages

2008-11-12 Thread Russell Keith-Magee
On Thu, Nov 13, 2008 at 9:58 AM, Erik <[EMAIL PROTECTED]> wrote: > > I am involved in a project that's using django with the mako_django > package for template rendering. I'm working on the unit tests, but > I'm running into the problem that the context and template are not > returned after a que

Re: Django Forums

2008-11-12 Thread Russell Keith-Magee
On Thu, Nov 13, 2008 at 10:13 AM, joshuajenkins <[EMAIL PROTECTED]> wrote: > > Personally, I detest the mail list format. There are forums out there > that aren't all about signatures and annoying avatars, Vanilla is > something that comes to mind. It's all about the presentation. I can't do anyt

Re: Book or documentation first

2008-11-13 Thread Russell Keith-Magee
On Fri, Nov 14, 2008 at 7:18 AM, waltbrad <[EMAIL PROTECTED]> wrote: > > Which is best to read the Django book, or to read the documentation/ > tutorial? > > I know someone is likely to say both, but which is best to read > first? Will one get you and going faster than the other? At this point,

Re: Testing system and alternate template languages

2008-11-13 Thread Russell Keith-Magee
On Fri, Nov 14, 2008 at 12:13 PM, Erik <[EMAIL PROTECTED]> wrote: > > In case there are others following this topic, I have the test system > working. I ended up putting a couple of functions in the contrib > folder of my django installation under the mako_django folder. The > functions emulate

Re: Web 2.0 app in django - the admin does everything I need (It seems)

2008-11-22 Thread Russell Keith-Magee
On Sat, Nov 22, 2008 at 10:27 PM, dash86no <[EMAIL PROTECTED]> wrote: > > So my question is, can I expect building forms using the templates/ > views to be as simple as getting things up in the admin. Will using views, forms and templates be as simple as configuring the built-in admin site - of c

Re: Weird error when doing loaddata

2008-11-22 Thread Russell Keith-Magee
On Sun, Nov 23, 2008 at 8:09 AM, Erik Allik <[EMAIL PROTECTED]> wrote: > > I'm doing django-admin.py loaddata with a JSON file containing just > [], i.e. an empty fixture, to rule out any possibility of invalid data > being in the fixture, but still getting the following traceback: > > http://dpas

Re: Weird error when doing loaddata

2008-11-22 Thread Russell Keith-Magee
On Sun, Nov 23, 2008 at 10:07 AM, Erik Allik <[EMAIL PROTECTED]> wrote: > > Thanks, your suggestion to very carefully check the fixture path led > me to realizing the problem. I wanted to load the service.json file > located in the working directory but loaddata was actually using the > one in the

Re: debug view and list of GET or POST parameters

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 7:21 PM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Hi, > > If GET or POST contain a list, I only see the last value in the debug view. > > What do you see on an uncaught excepion with e.g. "?foo=1&foo=2" as > query string? It depends on how you try to access the value

Re: Best IDE for Django and python?

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 5:42 PM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Tuesday 25 November 2008 01:57:09 pm DragonSlayre wrote: >> How do you develop your django projects, and where do you go when you >> need to find documentation? > > why do you not check the archives of this list?

Re: Best IDE for Django and python?

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 5:27 PM, DragonSlayre <[EMAIL PROTECTED]> wrote: > > Hey, I'm getting started with a friend in developing a site with > Django, and we're both new to this, so I am wondering what people use > to manage all their files, and for looking at documentation etc. While I must apo

Re: Testing dynamic templates

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got a view which uses a different template depending on an input > parameter. For example: > > def my_view(request, theme): >... >return render_to_response('my_app/%s/page.html' %s theme, {...}) > >

Re: Testing dynamic templates

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 9:05 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > On Nov 25, 11:01 pm, Julien Phalip <[EMAIL PROTECTED]> wrote: >> On Nov 25, 10:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> >> wrote: >> >> >> >> &g

Re: Testing dynamic templates

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 9:18 PM, Tim Chase <[EMAIL PROTECTED]> wrote: > >> Check out django.contrib.auth.tests.views.py. > > Is there some master index of documentation for "if you want to > test X, see Y.py or http://Z for an example of how to do it"? > where X is any of a number of Django featur

Re: Testing dynamic apps

2008-11-26 Thread Russell Keith-Magee
On Thu, Nov 27, 2008 at 8:33 AM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > So, all this works pretty well. The 'fakeapp' app is loaded > dynamically, tables are created and the FakeItem model can be use in > my tests. > > But it feels dirty. The dynamically created tables can potentially > clas

Re: Testing dynamic apps

2008-11-27 Thread Russell Keith-Magee
On Thu, Nov 27, 2008 at 11:21 AM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > I'm keen to try to find some proper ways to fix this, but before I go > too deep into the bowels of Django's testing framework, I was > wondering what would be the criticisms you'd have about the "solution" > I came up

Re: Raw SQL and model instances

2008-11-28 Thread Russell Keith-Magee
On Fri, Nov 28, 2008 at 6:42 PM, Georg Göttlich <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > this question has probably been ask quite often already, but I > couldn't find anything proper on it. So here it is: > > Is there a way to feed the result cursor of a custom sql query back > into th

Re: Django revision for ORM aggregation patch

2008-11-30 Thread Russell Keith-Magee
On Mon, Dec 1, 2008 at 2:04 AM, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > Does anybody know which revision of django works with the latest patch in > the ticket #3566 > http://code.djangoproject.com/ticket/3566 The patch on the ticket was constructed against a trunk revision just pr

Re: Django revision for ORM aggregation patch

2008-11-30 Thread Russell Keith-Magee
On Mon, Dec 1, 2008 at 9:13 AM, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > >> I should be in a position to publish a git repository with my work in >> progress in the next day or so, which will remove the need for anyone >> to apply the patch manually. When I push the repository, I'll

Re: djangobook.com, chapter 5, __init__() got an unexpected keyword argument 'maxlength'

2008-11-30 Thread Russell Keith-Magee
On Mon, Dec 1, 2008 at 2:04 PM, djan <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm following along with djangobook.com, and I have a problem in > chapter 5 that I cannot resolve. I am using OpenSuSE-11.0, Python > 2.5.2, sqlite3-3.5.7-17.1 (and incidentally, this same error occurs > with MySQL).

Re: How to use Fixtures and/or Initial SQL for project auth_user data?

2008-12-05 Thread Russell Keith-Magee
On Sat, Dec 6, 2008 at 1:54 AM, Jeff Kowalczyk <[EMAIL PROTECTED]> wrote: > > During early prototyping, I'm relying on specific auth_user content in > the project admin, as my app model use User as a ForeignKeyField. > > Project layout is:myproject/myapp > > Initial SQL myproject/myapp/mymodel/sql

Re: custom distinct() method

2008-12-09 Thread Russell Keith-Magee
On Tue, Dec 9, 2008 at 7:05 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > please, maybe anyone now how to perform distinct() filtering for > certain attribute(column), not the whole objects(rows)? :) First off - patience. Only 10 hours passed between your original request and your repeat.

Re: custom distinct() method

2008-12-11 Thread Russell Keith-Magee
On Wed, Dec 10, 2008 at 7:58 PM, jamesjacksonn...@gmail.com wrote: > > One example is worth thousand explanations, so, let's say the > situation is as follows: > > class example(models.Model): >artist = models.CharField(max_length=765, blank=True) >song_name = models.CharField(max_length=

Re: order by field length?

2008-12-16 Thread Russell Keith-Magee
On Wed, Dec 17, 2008 at 9:04 AM, David Lindquist wrote: > > I encountered a scenario where I need to query the database for a > list of names sorted by length. In SQL this is easy: > > SELECT name from distributors_distributor ORDER BY LENGTH(name) > > Instead of writing raw SQL in my view, I am

Re: SyncDB failure

2008-12-17 Thread Russell Keith-Magee
On Wed, Dec 17, 2008 at 9:30 PM, James PIC wrote: > > Is it worth reporting the bug? It isn't entirely clear what "the bug" is. All that you have given us is an error message, and a solution that you have worked out. What you haven't given us is enough detail to reproduce the problem for ourself

Re: FTP'ing without locking

2008-12-17 Thread Russell Keith-Magee
On Thu, Dec 18, 2008 at 6:15 AM, Greg Taylor wrote: > > This is somewhat of a core Python question with a Django twist. I'm > running mod_wsgi and am trying to figure out how to FTP a file from my > Django app to a remote host without locking the thread up. I've tried > something like: > > from s

Re: TextMate Django Bundle

2008-12-17 Thread Russell Keith-Magee
On Thu, Dec 18, 2008 at 7:11 AM, Adam Nelson wrote: > > Does anybody have this working in TextMate? > > "Python Django Templates.tmbundle" > > From http://macromates.com/svn/Bundles/trunk/Bundles/ > > I've installed other bundles and the Python Django.tmbundle, but the > Templates one simply does

Re: FTP'ing without locking

2008-12-17 Thread Russell Keith-Magee
On Thu, Dec 18, 2008 at 7:55 AM, Greg Taylor wrote: > > Yeah, I was afraid this would be the case. The interval polling script > was something I really wanted to avoid. > > I can't believe this isn't possible, though. I assume this is a Django > limitation of some sort? Ok, then. How would you d

Re: double logging in unittest

2008-12-18 Thread Russell Keith-Magee
On Thu, Dec 18, 2008 at 5:05 PM, knight wrote: > > Hi, > > I have unittests in my django applications and I have a strange > behavior: > When I run the tests, I am getting each print-out to log from my > application twice. > I am using the standard python logging libraries. > Does anyone know thi

Re: Using Content Types With Test Databases

2008-12-18 Thread Russell Keith-Magee
On Mon, Dec 15, 2008 at 11:24 AM, Mark wrote: > > Hello, > > Are there any comments on the issue I describe below? > Aside from issue 7052 in the tracker: > > http://code.djangoproject.com/ticket/7052 > > I'm a new user of Django so I may be doing something > wrong. You're not doing anything wro

Re: Putting tests in a tests folder

2008-12-19 Thread Russell Keith-Magee
On Fri, Dec 19, 2008 at 11:32 PM, Martin Lundberg wrote: > Hello everyone! > > What do I need to do to be able to put my tests in a folder (called "tests") > inside my application folders and make django run them? > > I want something like: > > /project/app1/tests/module_tests.py > /project/app1/

Re: django deserialize and save new model object from xml

2008-12-26 Thread Russell Keith-Magee
On Wed, Dec 24, 2008 at 6:33 AM, dick...@gmail.com wrote: > > looking at the serialization serializers, is is possible to save "new" > instance of a model object represented in xml? > > i'm getting an error: > > node is missing the 'pk' attribute, but basically, there > isn't one, because i don'

Re: Fastest way to import datas into a database

2008-12-26 Thread Russell Keith-Magee
On Thu, Dec 25, 2008 at 9:02 AM, bsergean wrote: > > Hi all, > > I'm populating my database manually using a script that create ORM > objects and save them... I have a lot of datas and it's fairly slow. > I'm wondering what is the best way to speed this up. > > From > http://docs.djangoproject.c

Re: Is there any possibility that one project connect with more than one databases?

2008-12-26 Thread Russell Keith-Magee
On Thu, Dec 25, 2008 at 5:41 PM, David wrote: > > Dear all, > > I am a newbie in Django and python, now trying to construct a website > with more than one databases on the backend. > > My question here is, if there any possibility that using 2 different > databases inside one project(website)? >

Re: How do I make Django evaluate a ForeignKey for json serialization?

2008-12-27 Thread Russell Keith-Magee
On Sat, Dec 27, 2008 at 2:11 PM, adambossy wrote: > > I have a model that refers to a ForeignKey, e.g.: > > class Template(models.Model): > type = models.ForeignKey(Type) > ... > > class Type(models.Model) > name = models.CharField(max_length=32) > ... > > I can fetch these objects fine using t

Re: Calculate and store the average rating

2008-12-27 Thread Russell Keith-Magee
On Sat, Dec 27, 2008 at 7:48 AM, eldonp2 wrote: > > Is there a way to calculate and store the average rating in this > example: It's not entirely clear which part of this problem you want help with. - Computing the average rating. The brute force approach would be to iterate over the relevant

Re: Traceback in the ``runserver`` console

2008-12-27 Thread Russell Keith-Magee
On Sat, Dec 27, 2008 at 2:32 AM, Fridrik Mar Jonsson wrote: > > Hi Djangonians, > > I recently had an instance where it would have been really convenient > to see the error and a traceback in the ``runserver`` console instead > of just a single line telling me that the request returned a 500 > er

Re: Invalid block tag: 'get_comment_count'

2008-12-27 Thread Russell Keith-Magee
On Sun, Dec 28, 2008 at 12:27 AM, Florian Lindner wrote: > > Hello, > > I'm trying to use the comment framework from Django 1.0.2. > > I've followed all the steps in > http://docs.djangoproject.com/en/dev/ref/contrib/comments/ > > (added it to installed apps, added to urls.py and loaded in the

Re: How do I make Django evaluate a ForeignKey for json serialization?

2008-12-27 Thread Russell Keith-Magee
On Sun, Dec 28, 2008 at 5:32 AM, adambossy wrote: > > Russ, > > Thanks for the reply. Specifically, I am wondering if there is some > feature of the Models API that allows me to retrieve the foreign key > object so that it is included in the serialized string. That is, > without writing my own se

Re: Django serializers and local/inherited model fields

2008-12-30 Thread Russell Keith-Magee
On Wed, Dec 31, 2008 at 4:27 AM, psj wrote: > > Django's base serializers only serialize a model's local fields, not > inherited ones, which seems odd at first blush (if an Employee is a > Person, and a Person has a name, wouldn't I be likely to want to see > the Employees' names by default?) > >

Re: Getting SQL from QuerySet

2008-12-30 Thread Russell Keith-Magee
On Wed, Dec 31, 2008 at 5:11 AM, Info Cascade wrote: > > Hi -- > > I am getting intermittent errors on certain database queries on our > production server. > I am having a hard time duplicating them (most of the time they run > okay, only sometimes on the production server am I receiving exceptio

Re: specify alternative settings.py file at startup

2008-12-31 Thread Russell Keith-Magee
On Wed, Dec 31, 2008 at 11:45 AM, dick...@gmail.com wrote: > > i'm confused on the --settings option on manage.py. > > if i have a project call foo, i'd have in ./foo/settings.py > > to run: python manage.py runserver 8080 > > let's say i have a bar.settings.py which contains different values > (

Re: about templatetags

2008-12-31 Thread Russell Keith-Magee
On Thu, Jan 1, 2009 at 8:18 AM, Alan wrote: > Happy new year List! > So, I have in a project several apps and they basically use the same > templatetags. I found out by luck that I just need to define it in one > application, something like: > app1/ > models.py > ... > app2/ > templatetags/mytags

Re: SimpleDB Support

2008-12-31 Thread Russell Keith-Magee
On Thu, Jan 1, 2009 at 3:21 AM, Travis Reeder wrote: > > I've read some old threads discussing this, but I'm wondering if any > progress has been made? There certainly isn't anything official to report. Adding support for SimpleDB, CouchDB, Google AppEngine, HBase, or any other non-SQL data sour

Re: manage.py test without using a database?

2008-12-31 Thread Russell Keith-Magee
On Wed, Dec 31, 2008 at 7:08 AM, Bo Shi wrote: > > Hi, > > One of our django applications does not use django's ORM. Is there a > way to run > > ./manage.py test my_app > > Such that it does not perform test database setup? There are two ways that you could do this. The first would be to defin

Re: about templatetags

2009-01-01 Thread Russell Keith-Magee
On Fri, Jan 2, 2009 at 1:01 AM, Alan wrote: > Hi Russell > Thank you very much for your explanation. > I understand that being an apps reusable, should it be so its templatetags > and so, probably, the best place is in apps folder. > However, in my case, where all my apps needs the same templatet

Re: is it possible to provide initial data for a model with a foreign key to User model?

2009-01-03 Thread Russell Keith-Magee
On Sat, Jan 3, 2009 at 3:01 AM, adrian wrote: > > > I happen to have a bunch of models that all have foreign keys, but > there is an order in which they could all be initialized. I have > figured out how to initialize the built-in User model using Json data, > but I can't initialize any models

Re: Why Django doesn't force testing?

2009-01-05 Thread Russell Keith-Magee
On Mon, Jan 5, 2009 at 9:04 PM, HB wrote: > > Sure, I mean encourage not force :) Ok, then - what could we do to encourage testing? We have a test framework; it is documented, there are plenty of blog entries around that discuss how to use it, and there are some utilities in the community (such

Re: django and database views

2009-01-05 Thread Russell Keith-Magee
On Mon, Jan 5, 2009 at 11:31 PM, drakkan wrote: > > Hi all, > > I mapped a database view in django model as a normal database table, ... > there is a know workaround for this? any way to declare read only the > model? In short, no. Django doesn't currently provide any support for database views.

Re: django and database views

2009-01-05 Thread Russell Keith-Magee
On Tue, Jan 6, 2009 at 8:11 AM, drakkan wrote: > > > > On 6 Gen, 00:06, "Russell Keith-Magee" wrote: >> On Mon, Jan 5, 2009 at 11:31 PM, drakkan wrote: >> >> > Hi all, >> >> > I mapped a database view in django model as a normal datab

Re: license problem

2009-01-05 Thread Russell Keith-Magee
On Tue, Jan 6, 2009 at 7:46 AM, Sebastian Bauer wrote: > > Hello, i want to release some code, but i have one problem: > > how impel peoples to send me back patches? > > Any suggestions are welcome :) First, participate in the dark arts until to ascend to the level of minor god. Then, use your n

Re: Permissions: is something wrong with them?

2009-01-06 Thread Russell Keith-Magee
On Tue, Jan 6, 2009 at 4:26 AM, Artem Skvira wrote: > On Jan 2, 6:26 pm, Artem Skvira wrote: >> Would anyone be able to comment on the issues raised? > Can I get Russell's comment on that? I'm not entirely sure why I've been flagged personally on this. In addition, it's hard to comment, because

Re: Speeding up the tests, what am I missing?

2009-01-06 Thread Russell Keith-Magee
On Wed, Jan 7, 2009 at 4:51 AM, Todd O'Bryan wrote: > > So, I've been trying to speed up tests. Surprise. I came across a > fairly easy solution, so I'm sure I must be missing something. If > someone could tell me what I'm missing, I'd really appreciate it. ... > MyTestCaseSubclass.dirties_db = T

Re: Related articles based on keywords.

2009-01-10 Thread Russell Keith-Magee
On Sat, Jan 10, 2009 at 6:27 AM, Ariel Mauricio Nunez Gomez wrote: >>> In the view for a single article, I would like to be able to pull up >>> related articles based on shared keywords. Just pulling up all the >>> articles that share at least one keyword would be to imprecise. What >>> I'd like

Re: Forcing content_types.json to be loaded before any other fixtures

2009-01-13 Thread Russell Keith-Magee
On Wed, Jan 14, 2009 at 9:34 AM, Giovannetti, Mark wrote: > > Is there a way to force a fixture to be loaded first > when running manage.py test? > > I'd like to load a content_types.json fixture immediately > before any other fixtures are loaded. > > This might fix some of the vexing problems wi

Re: writing unit tests for views?

2008-07-14 Thread Russell Keith-Magee
On Tue, Jul 15, 2008 at 8:28 AM, bshaurette <[EMAIL PROTECTED]> wrote: > > Writing tests for models has been a snap, but I'm having a lot harder > time with the views. ... > I'm not new to writing tests, just to unit testing in Django/Python - > what would *really* help is if I could see some othe

Re: Unique Case Sensitivity

2008-07-15 Thread Russell Keith-Magee
On Wed, Jul 16, 2008 at 8:59 AM, Chris <[EMAIL PROTECTED]> wrote: > > I've run into a strange situation. I have a MySQL database with a > table called Feature, with a unique column called text. > > Given some text, I want to save a new record if hasn't been entered, > or retrieve the existing reco

Re: Django on Windows Mobile 6 (Standard)

2008-07-17 Thread Russell Keith-Magee
On Thu, Jul 17, 2008 at 7:04 PM, warsng <[EMAIL PROTECTED]> wrote: > > After taking a look at the blogpost where someone got django running > on WM, i thought i would give it a try. however, i am not having much > success. Has anyone got this working recently? I am not using Pocket > PC unlike the

Re: Model Inheritance in new-forms admin

2008-07-18 Thread Russell Keith-Magee
On Fri, Jul 18, 2008 at 7:00 PM, cschand <[EMAIL PROTECTED]> wrote: > > When I tried model inheritance in new-forms admin, I faced some > problems ... > What is wrong with me? You haven't checked the tickets: http://code.djangoproject.com/ticket/6755 Yours, Russ Magee %-) --~--~-~--~---

Re: Model Inheritance in new-forms admin

2008-07-18 Thread Russell Keith-Magee
On Fri, Jul 18, 2008 at 7:41 PM, cschand <[EMAIL PROTECTED]> wrote: > > Hi Russ >The problem is not solved in the ticket No - that's because it's a bug report. When the bug is fixed, the ticket will be closed. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You r

Re: Must Have Python resources

2008-07-21 Thread Russell Keith-Magee
On Tue, Jul 22, 2008 at 2:21 AM, eka <[EMAIL PROTECTED]> wrote: > > On Jul 21, 6:11 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: >> On 21-Jul-08, at 1:53 PM, Hussein B wrote: >> >> > Well, I know this question isn't related to Django but I hope it is ok >> > to ask. >> > What are your favourit

Re: Can't Send Password With Test Client

2008-07-22 Thread Russell Keith-Magee
On Tue, Jul 22, 2008 at 5:05 AM, James <[EMAIL PROTECTED]> wrote: > > It appears that the password value isn't printed for security reasons. > The problem remains that the form will not validate. Are you sure you have a test user? Remember, when you run the test suite, you're not using the standa

Re: email not being sent from within unit tests

2008-08-19 Thread Russell Keith-Magee
On Wed, Aug 20, 2008 at 7:21 AM, Andrew D. Ball <[EMAIL PROTECTED]> wrote: > > I've noticed that email isn't being sent during unit tests > in Django 1.0 beta 1. The django.core.mail.EmailMessage.send > method returns '1' as if it had sent 1 message successfully, > but the SMTP server doesn't get

Re: Renaming of mailing lists to avoid user confusion

2008-08-19 Thread Russell Keith-Magee
On Wed, Aug 20, 2008 at 10:59 AM, Mike Scott <[EMAIL PROTECTED]> wrote: > > So the fact that you say we have to force nearly 15000 people to > change is a rather void argument. I'm pretty sure the people who use > django-users mainly do it through the web interface I'd be interested to know how

Re: psycopg2 error with syncdb (but not with sqlite)

2008-08-20 Thread Russell Keith-Magee
On Wed, Aug 20, 2008 at 11:26 AM, Chris Moffitt <[EMAIL PROTECTED]> wrote: > I am seeing this error - http://dpaste.com/72596/ with django trunk (rev > 8445) when I try to run syncdb using psycopg2 but it works just fine if I > use sqlite. > > Basically I'm getting an error when doing the table in

Re: another problem with M2M through intermediary

2008-08-20 Thread Russell Keith-Magee
On Wed, Aug 20, 2008 at 12:30 PM, akonsu <[EMAIL PROTECTED]> wrote: > > > consider the code below. it has two print statements at the end. their > output should be identical, but it is not. i think there is a bug. ... > print [p.x for p in Pair.objects.filter(y = y0, name = 'd')] > print y0.xs.fil

Re: Noob: form class location

2008-08-23 Thread Russell Keith-Magee
On Sat, Aug 23, 2008 at 8:59 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > Hi, > > In Django there are no 'standard' as such. You'd talk more about > 'conventions'. > One common way is to put all your forms in forms.py. But that's just > for cleanliness. While this is a common convention, I wo

Re: Testing framework observations

2008-08-26 Thread Russell Keith-Magee
On Tue, Aug 26, 2008 at 11:18 PM, dchandek <[EMAIL PROTECTED]> wrote: > > After several iterations of running tests on an application (manage.py > test myapp), I have these observations which are not really clear in > the documentation: > > 1. All initial_data fixtures (not just those for the test

Re: ManyToMany + through + using add, d

2008-08-29 Thread Russell Keith-Magee
On Fri, Aug 29, 2008 at 8:09 PM, Richard Ward <[EMAIL PROTECTED]> wrote: > > It looks like the solution to this is in the newest release. Ref. > http://code.djangoproject.com/changeset/8136 Richard - Gergo, Antti, and I are well aware of the m2m intermediate change in [8136]. What we are discuss

Re: Schema Evolution Choices?

2008-09-01 Thread Russell Keith-Magee
On Tue, Sep 2, 2008 at 12:37 AM, Jon Loyens <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I have a small project coming up that I think having some sort of > schema evolution facilities will be handy on. I was wondering what > the current and best project choices for schema evolution are? I was >

Re: Discover tests in forms.py

2008-09-04 Thread Russell Keith-Magee
On Thu, Sep 4, 2008 at 11:13 PM, Peter Bengtsson <[EMAIL PROTECTED]> wrote: > > From http://www.djangoproject.com/documentation/testing/ > "4. Looking for unit tests and doctests in the models.py and tests.py > files in each installed application." > > Next to models.py I have forms.py which does

Re: Django on non relational DBs

2008-09-05 Thread Russell Keith-Magee
On Sat, Sep 6, 2008 at 10:03 AM, Posi <[EMAIL PROTECTED]> wrote: > > Now that 1.0 was released, how hard or desirable would it be to > consider column based DBs like HBase, hypertable, etc for Django > backends? Desirable - certainly. Hard - yes. This isn't going to be a simple 'just implement

Re: Ordering by ManyToManyField length

2008-09-07 Thread Russell Keith-Magee
On Sun, Sep 7, 2008 at 1:04 PM, Jarred Bishop <[EMAIL PROTECTED]> wrote: > > Hello. How would I do this? > > Say I have a model 'Tag' that has a ManyToManyField called 'entries', > can I order a query by total entries? > > something like this is how I imagine it would work: > Tag.objects.all().ord

Re: Django Evolution

2008-09-09 Thread Russell Keith-Magee
On Tue, Sep 9, 2008 at 6:25 PM, Greig Rapley <[EMAIL PROTECTED]> wrote: > > After upgrading to Django 1.0 I am having trouble getting django > evolution (svn) to work. I have looked on their site, and applied one > of the patches made available (for ImageField), but still no luck. I > found a po

Re: Creating an Archive

2008-09-11 Thread Russell Keith-Magee
On Wed, Sep 10, 2008 at 4:31 AM, djandrow <[EMAIL PROTECTED]> wrote: > I just get 2008-01-01, i guess thats cos I only have entries in 2008 > and the date is formatted wrongly, so my question is how can i get a > list of months, like you find on any archive links; September 2008, > October 2008 e

Re: TestClient with no Django Database

2008-09-11 Thread Russell Keith-Magee
On Fri, Sep 12, 2008 at 7:35 AM, Denali Lumma <[EMAIL PROTECTED]> wrote: > > Hi There, > > I am trying to use the TestClient class to validate some of our > pages. It seems to work OK for pages which don't require > authentication. It should work fine for pages _with_ authentication, too; you j

Re: Displaying a list of lists?

2008-09-11 Thread Russell Keith-Magee
On Fri, Sep 12, 2008 at 2:36 AM, Lance F. Squire <[EMAIL PROTECTED]> wrote: > > Currently using Django version 0.96.3, on a Fedora 8 system. > > I've currently set-up models for 'Manufacturer' and 'System'. System > has a Foreignkey to Manufacturer. > > I'd like to display a list like so: > > Manu

Re: ORM vs SQL vs HBase

2008-09-13 Thread Russell Keith-Magee
On Sun, Sep 14, 2008 at 7:24 AM, Martin Diers <[EMAIL PROTECTED]> wrote: > > On Sep 6, 2008, at 11:36 AM, Posi wrote: >> >> Still though, how tied are we to a true relational model and how does >> that tie to a column based DB. > > So utterly and completely, that if you wished to use HBase, there

Re: maxlength or max_length?

2008-09-14 Thread Russell Keith-Magee
On Sun, Sep 14, 2008 at 8:31 PM, djandrow <[EMAIL PROTECTED]> wrote: > > I'm currently using django Version: 1.0-final-SVN-9020 and python > Version: 2.4.4, a few weeks ago (maybe a bit longer) I had to change > all my maxlengths to max_length, as I believe that was a change in > Django. > > Anywa

Re: working with yaml fixtures

2008-09-14 Thread Russell Keith-Magee
On Mon, Sep 15, 2008 at 10:27 AM, sotirac <[EMAIL PROTECTED]> wrote: > > I'm trying to initialize my database using yaml fixtures. > I've created a yaml fixtures directory (src/fixtures). Within the > yaml fixtures directory, I created a yaml fixtures file title > websites.yaml. ... > Now when I

Re: Get times of day with most entries

2008-09-15 Thread Russell Keith-Magee
On Mon, Sep 15, 2008 at 8:33 PM, Henrik Lied <[EMAIL PROTECTED]> wrote: > > Hi there! > > I'm working on a very interesting pet project where I monitor the > traffic outside a house. ... > This adds up to quite a lot of traffic in a day, and I want to be able > to filter out which time of day the

Re: 1.0 branch

2008-09-15 Thread Russell Keith-Magee
On Tue, Sep 16, 2008 at 1:53 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > > J. Pablo Fernández wrote: >> Hello, >> >> Which one is the 1.0 branch on the SVN repo? >> >> Thanks. >> >> > Erm, that would be the one tagged "1.0" I guess. But I haven't actually > checked, because the best way to get 1

Re: Is this group censored, or is the archive just buggy?

2008-09-15 Thread Russell Keith-Magee
On Tue, Sep 16, 2008 at 4:10 AM, catsclaw <[EMAIL PROTECTED]> wrote: > > Hi -- > > I've been having major problems with the url configurations, and I > posted a summary of the problems on this list last night. I received > a reply, and responded to that. Now, however, the list has no record >

Re: manage.py reset auth fails

2008-09-15 Thread Russell Keith-Magee
On Tue, Sep 16, 2008 at 11:03 AM, akonsu <[EMAIL PROTECTED]> wrote: > > hello, > > on pgsql 'reset auth' fails with an error saying that it cannot drop > one of the tables (i do not remember which though) because other > objects depend on it. on sqlite it works fine. i did not try it on > mysql.

Re: Many-To-Many with extra fields

2008-09-19 Thread Russell Keith-Magee
On Sat, Sep 20, 2008 at 8:37 AM, Nate Thelen <[EMAIL PROTECTED]> wrote: > > Looking at the docs here: > > http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships > > I cannot find any reference to how to access the data in the > "Membership" table. For ex

  1   2   3   4   5   6   7   8   9   10   >