Back references for inherited models in Django 1.0

2008-11-19 Thread martin
to do this? Regards, Martin from django.db import models class Refered(models.Model): x = models.IntegerField() class Base(models.Model): ref = models.ForeignKey(Refered) class Inherited(Base): pass # Then having run manage.py syncdb: r1 = Refered(x = 1) r1.save() r2 = Refered(x =

Inline edit with the built-in admin (ManyToMany)

2008-09-15 Thread Martin
Hi, I've just started using both python and django, so bear with me if I'm making a newbie mistake. I've done a small example model and want to be able to administer it through the built-in admin interface in django. First I've expanded the user model in django, as described in [1] to add some e

using save() on FormWizard

2008-09-17 Thread Martin
elForm) and at the end, save some fields into model A, some into model B and some in C? I know this questions are little wierd, but i only want some suggestion on how to approach this problem. Thanks, martin --~--~-~--~~~---~--~~ You received this message because you

Template variables in forms

2008-10-19 Thread Martin
ave a solution to this kind of problem? Thanks in advance, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To un

Re: django captcha apps

2009-04-07 Thread Martin
Did you browse google code already? http://code.google.com/p/django-captcha/ I bet there are more apps there... Best regards, Martin 2009/4/8 Joshua Partogi > > Hi all, > > Can anyone recommend me any good django captcha apps? I tried search > on the list but the results that

Accessing value of a Form.Field in templates

2009-05-10 Thread Martin
times hard for me to understand the history. Django Revision 10732 Regards, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@go

Re: Accessing value of a Form.Field in templates

2009-05-10 Thread Martin
On 11 Mai, 02:07, George Song wrote: > > The ticket doesn't appear to be what you're asking for. I think the > easiest way is for you to insert an extra context variable in your view, > since `GET` and `POST` are verbs associated with a request, not a response. > > -- > George Thank you for the

Problems with excluding user-field from form

2009-05-24 Thread Martin
way of thinking wrong? Adding the User-Field as a hidden field to the form and then doing something like form.User=request.user sounds pretty ugly. Especially when I just want to keep the original value. Regards, Martin --~--~-~--~~~---~--~~ You received this messa

Re: Problems with excluding user-field from form

2009-05-26 Thread Martin
> If you intend your form to save changes to an existing object, you > must pass that object in as 'instance' when creating the form. Thank you very much. You were right, I forgot to add the instance object. --~--~-~--~~~---~--~~ You received this message because

Displaying ManyToMany fields inside templates

2008-02-08 Thread Martin
Is this the right syntax? If it's not, how would i display the first video? I really appreciate any help, thanks, martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Displaying ManyToMany fields inside templates

2008-02-09 Thread Martin
In my manager i'm just filtering articles that have videos, like Article.live.filter(video__isnull=False).. and when i add 2 videos to an article, templatetag doesn't return one article with 2 videos, ut 2 same articles with 2 videos.. So my question here is.. what am i doing wrong? I just

filter fields that have a value

2008-02-13 Thread Martin
icle has videos (Article.objects.filter(video__isnull=False))? if this the right way, what is (should i add costum method in my model)? I would appreciate any help, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: filter fields that have a value

2008-02-13 Thread Martin
that didn't work too, because it selects only those articles, that have the first video (video in model Video, with id=1) attached. i have figured it out that i have to use dictinct().. now it works like it's supposed to work ;) thanks anyway, enjoy martin On Feb 13, 3:13 pm, Mich

Sites module best practices

2008-02-16 Thread Martin
is need for extra manager methods? Thanks for your replys, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsu

Index in admin

2007-04-09 Thread Martin
accomplish this, or does Django admin have a clever way to achieve this? Thanks. /Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Index in admin

2007-04-09 Thread Martin
order_with_respect_to might be the solution, but it does not seem to work. /Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Obscure error installing Django

2007-11-05 Thread Martin
Hi, I'm having the same problem on shared hosting (asmallorange). Did anybody find a solution? I have the 1.2.2 version of python-mysql and the latest trunk of django (svn). Thanks, Martin --~--~-~--~~~---~--~~ You received this message because yo

Re: Obscure error installing Django

2007-11-05 Thread Martin
revision 6300 seems to work fine for me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

No module named views

2007-11-15 Thread Martin
(everything is in urls.py)? thanks, martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this gr

Re: No module named views

2007-11-15 Thread Martin
reate_user_profile}), (r'^accounts/', include('registration.urls')), (r'^accounts/profile/$', redirect_to, {'url': '/'}), (r'^accounts/$',direct_to_template, {'template': 'registration

Re: No module named views

2007-11-15 Thread Martin
, because this code works fine on my server. thanks again for quick reply and solved problem! bye, martin On Nov 15, 11:12 pm, RajeshD <[EMAIL PROTECTED]> wrote: > > I'm sorry for this long paste.. i could you dpaste. > > thanks, martin > > Yes, it's probably

generic views and form templates

2007-11-21 Thread Martin
ndif %} my question here is, is this html code right? how should slug fields be presented in html templates? i could find this in django documentation (about slug fields). thanks, martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: generic views and form templates

2007-11-21 Thread Martin
ists in my db. could someone tell me where to look to fix this problem? thanks in advance, martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: generic views and form templates

2007-11-21 Thread Martin
where i have prepopulate slug field. if slug field was required i would always get errors consurning slug. so, slug field should have blank=True, right? but anyway, the code doesn't work.. any help is appreciated! thanks, martin --~--~-~--~~~---~--~~ You receive

Re: generic views and form templates

2007-11-21 Thread Martin
btw, after this change, object gets created, but the slug field is empty.. so i can't view the object, because of (r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(? P[-\w]+)/$',object_detail, dict(komentar_date_dict, slug_field='slug

Request in a template

2007-11-21 Thread Martin
I have an parameter in my querystring which i would like to access in a template, fx: --- --- is this possible? Thanks. Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Request in a template

2007-11-21 Thread Martin
Got it, thanks. I just had to insert this into my settings.py: TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_pr

Re: generic views and form templates

2007-11-21 Thread Martin
object gets created, without it i get an error about duplicate entry in my db. i'll play a little more, but i guess i'll have to use newforms ;) thanks for the help! martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

video in django

2006-11-16 Thread Martin
t - i hope you understand what i'm asking. i have this ideas, but i'm not sure they're right so i thought i'll ask here. thanks in advance, martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: video in django

2006-11-17 Thread Martin
Thanks, James, for the advice. i'll try to do it this way and i hope it works;) i actually wanted to play a video on the site (not to download it), but i think that requires only a little modification of the code. thanks for the help, again. bye,m

Setup django

2006-06-22 Thread Martin
there a way I can use django without the need to alter the apache installation at all? Thanks for any kind of information, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: CGI Setup

2006-07-20 Thread Martin
r my needs. So, if anyone is interested in the code, I could make it available somewhere... Again, thanks for the response, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: CGI Setup

2006-07-21 Thread Martin
at the moment). So, what's the best way to proceed here? Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups

Re: CGI Setup

2006-07-21 Thread Martin
OK, sounds simple enough but guess my code needs some tweaking to match your coding guidelines So, will change it and create the ticket during the weekend, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Tag Definition

2006-07-21 Thread Martin
ing for. But before I go ahead with this solution I would like to see if somebody has a better idea on how the extend the default tags? Is it using the `add_to_builtins` the way to go? Is a middleware the way to go or is there a better solution? Any com

Re: Tag Definition

2006-07-21 Thread Martin
Malcolm, thanks for the suggestion... I tried it and it wokrs like expected. I don't know why, but I had the impression that an application only load templatetags define it it's own namespace. I should have read the documentation a more carefully. Than

Re: CGI Setup

2006-07-23 Thread Martin
OK, I have splitted my file into a handler and `server file` and attached them to a new ticked http://code.djangoproject.com/ticket/2407) (Ignore the first version of CGI.py, I have forgotten to remove my standard file header...) Martin

get-XXX function vs. XXX property

2006-07-23 Thread Martin
reason for this? Thanks, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, sen

Re: ipython 0.11 with django 1.3 /in virtualenv

2012-11-15 Thread Martin
I have the very same problem and can't figure out what's wrong... First I created a profile for ipython and edited the ipython_config.py, which gets executed when I launch 'ipython'. But when I start manage.py shell or shell_plus it's not executed (I still get the Django iPython shell though). W

Re: ipython 0.11 with django 1.3 /in virtualenv

2012-11-20 Thread Martin
This comment explains why it is not loaded: https://code.djangoproject.com/ticket/17078#comment:8 Not sure how to go on from that though. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.

Re: accessing views outside a module

2011-06-04 Thread Martin
I think this depends on how you set your python path. Mine is usually set to a virtualenv AND to /foo/bar/yourproject/ (the path to your project). That means you can do the following imports in any file: from a.views import yourview from b.views import yourview Best regards, Martin On Sun, Jun

Re: Django Development Environments

2011-06-05 Thread Martin
Ubuntu 11.04 Wing IDE virtualenv pip github TDD using the inbuild dev server Production: Hosted on Webfaction nginx for static files Apache with mod_wsgi Best regards, Martin On Sun, Jun 5, 2011 at 11:11 PM, Developr wrote: > Hi! > > I'm currently developing for Django using the

Re: Beginner needing help with a TemplateDoesNotExist exception, when the file does exist.

2011-06-05 Thread Martin
ut project inside your project folder. Otherwise you would have to create several repositories (one for your apps and views and one for your templates) which doesn't really make sense. But in the end that is probably up to you. Best regards, Martin On Mon, Jun 6, 2011 at 9:47 AM, Christopher

Re: Django Admin Login - Redirecting back to login page

2011-06-06 Thread Martin
means your static / media files are not served correctly) - Refresh your browers cache, restart the browser and try again - delete your database and run a fresh syncdb --all Best regards, Martin On Mon, Jun 6, 2011 at 6:57 PM, Aidan wrote: > I'm having trouble with the Django A

Re: Django Admin Login - Redirecting back to login page

2011-06-06 Thread Martin
Oh and: - delete all *.pyc files from your project and restart the development server <-- this is a nice one that often solves mysterious problems that seem to be impossible and drive you insane Best regards, Martin On Mon, Jun 6, 2011 at 7:13 PM, Martin wrote: > I faced this

Re: When next part of Django Tutorial?

2011-06-06 Thread Martin
What is listed under Coming Soon makes sense. In that order. Best regards, Martin On Tue, Jun 7, 2011 at 8:01 AM, David wrote: > Let's start with a more concrete question: what do users think should > be in tutorial 5 and beyond? > > On Jun 6, 1:20 pm, Paweł wrote: >

Re: Custom select_related()

2011-06-07 Thread Martin
Why not create a Manager? Give it a method foo1_related() which then returns something like self.foo1_set.filter( your filters ) and a similar method foo2_related (if needed). You can then call A.foo1_related() and get what you need. Best regards, Martin On Tue, Jun 7, 2011 at 4:08 PM, mhulse

Re: Making a login/create user interface

2011-06-07 Thread Martin
all the work for you. Best regards, Martin On Wed, Jun 8, 2011 at 7:23 AM, raj wrote: > I got completely lost when looking at that. I don't even know how to > describe my confusion. I guess my issue is that I'm not seeing the big > picture when reading to the tutorial. And

Re: Updating static files: Still in browser cache

2011-06-09 Thread Martin
Use django-compressor. On Thu, Jun 9, 2011 at 9:21 PM, DrBloodmoney wrote: > On Thu, Jun 9, 2011 at 9:16 AM, Malcolm Box wrote: > > On 9 June 2011 08:09, Thomas Guettler wrote: > >> > >> My static files (JS/CSS) are cached in the browser. But if there is a > bug > >> in a file, an update won't

Re: Need help getting this snippet to work in Django 1.2...

2011-06-10 Thread Martin
IntegerField. This form field basically just makes sure, that people don't enter anything stupid, but what is being saved will just be a normal integer, I guess. Sorry, don't have enough time to give a better hint. Best regards, Martin On Sat, Jun 11, 2011 at 9:53 AM, mhulse wrote: > I f

Re: Alternate user fields

2011-06-18 Thread Martin
Do you know that every time you ask questions on mailing lists without googling, a kitten dies? And a pony! http://stackoverflow.com/questions/44109/extending-the-user-model-with-custom-fields-in-django https://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users h

Replace URLResolver?

2010-12-28 Thread Martin
Hi. I would like to use subdomains in my URL-dispatch. Thats not supported by Django. Is it possible to replace Django URLResolver with my own? Must this be done as a Middleware class? (Why is Django URL resolver not implemented as a Middleware class?) Input appreciated. Thanks. /Martin

Re: Replace URLResolver?

2010-12-28 Thread Martin
Maybe, but it would be nice to unplug it and plug in your own. /Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email

Cant locate problem with trunk: 'ModelForm' object has no attribute '_meta'

2011-01-01 Thread Martin
alls. So I don't really know how to locate the issue. This is all I get when I load my site: http://dpaste.com/293197/ Tried to reproduce it in the shell by importing all models, views, urls, etc. but nothing. Could someone point out where I should look at? Thank you for your time! :) Be

Re: Cant locate problem with trunk: 'ModelForm' object has no attribute '_meta'

2011-01-03 Thread Martin
', (r'^account/', include('foo.pluggables.userprofile.urls')), userprofile/urls.py: urlpatterns = patterns('', url(r'^profile/$', overview, name='profile_overview'), The function overview can be empty, doesn't affect the erro

Re: Cant locate problem with trunk: 'ModelForm' object has no attribute '_meta'

2011-01-06 Thread Martin
I added my case to this Django ticket. As far as I can tell its related to the changes mentioned there. http://code.djangoproject.com/ticket/15025 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@

Re: Extend admin template without copying the whole template

2011-02-27 Thread Martin
Hi Alex, many thanks for your suggestion but I think {{ block.super }} will not help. In order to have a parent template I would first have to write something like {% extends "admin/base.html" %} but this already is not possible because it would mean inheriting itself. Best regards,

Re: apache and django

2008-11-10 Thread Brandon Martin
I would just like to note here that when I first installed django with apache and mod_python most of the problem I had was on the apache side with vhosts not django. Each operating system handles apache configs a little different. The guide on django's web site is great for the base informatio

Re: apache and django

2008-11-10 Thread Brandon Martin
erstand that mysite.settings is supposed to be the location of my > settings.py, but is it just supposed to be the path of that file? Try removing the mysite part so it is juat SetEnv DJANGO_SETTINGS_MODULE settings -- Brandon Martin --~--~-~--~~~---~--~

Re: django not reading css after switch to apache

2008-11-11 Thread Brandon Martin
I have this is my apache virtualhost: SetHandler None Brandon On Tue, 11 Nov 2008 15:09:22 -0500, "Keith Eberle" wrote:Alias /media /home/dev//Django-1.0/django/contrib/admin/media ^ could be that extra slash. i assume you reloaded

Re: 404 Error HTTP_FORBIDDEN

2008-11-12 Thread Brandon Martin
> -- Raja > > On Nov 12, 11:57 pm, Brandon Martin <[EMAIL PROTECTED]> wrote: >> I had everything running fine with my django setup and apache vhost. >> My project root dir was: >> >> /home/user/public_html/django/project >> >> I wanted to change th

404 Error HTTP_FORBIDDEN

2008-11-12 Thread Brandon Martin
I had everything running fine with my django setup and apache vhost. My project root dir was: /home/user/public_html/django/project I wanted to change the dir so I moved everything to: /srv/django/project I went into my vhost and changed the paths so they correspond to the new ro

Re: Back references for inherited models in Django 1.0

2008-11-19 Thread Martin Green
print Refered.objects.get(base=b).x 1 >>> print Refered.objects.get(base=i).x 2 Martin On Wed, Nov 19, 2008 at 3:33 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > Hi Martin, > >> I have been trying to use inherited models and back references for >> filter queries,

Putting tests in a tests folder

2008-12-19 Thread Martin Lundberg
oject/app2/tests/module2_tests.py Thanks in advance! -Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To u

Re: Great work with newforms-admin

2008-07-19 Thread Martin Diers
Beat me to it. I suppose someone should file a bug to update these: http://www.djangoproject.com/documentation/ http://www.djangoproject.com/documentation/add_ons/ and add a link to the admin doc. On Jul 19, 2008, at 7:54 PM, Karen Tracey wrote: > On Sat, Jul 19, 2008 at 8:50 PM, Rodrigo Culag

Re: Adding and removing template dirs on the fly

2008-07-20 Thread Martin Diers
Couldn't you just create a dummy file in /channel_a for part2.html, and in /channel_b for part1.html, such that the dummy files do nothing but include the content of the corresponding parent? On Jul 17, 2008, at 8:04 AM, 3xM wrote: > > > > On Jul 17, 1:59 pm, Arien <[EMAIL PROTECTED]> wrote:

Re: S3 tutorial for File Storage Refactor?

2008-08-20 Thread Martin Diers
I would suspect that #2 is a mime-type problem, which is just an S3 property. Presuming the ImageField translates to a basic href into S3, the mime-type property of the file would need to be set or else it is going to come across as a Binary file. Some browsers are ok with this non-standa

Running individual tests

2008-08-29 Thread Martin Gilday
Python but I don't seem to be able to run just the test file as it complains about my Django settings module being undefined etc, as well as my actual app not existing if I try and use the full module name. I know that manage.py is adjusting my Python path for me. Thanks, M

Re: how to get {% url %} working with {% blocktrans %}?

2008-08-29 Thread Martin Diers
There is a currently a discussion an even newer discussion on Dev, where Jacob has proposed a new syntax, and has a patch that would allow this: {% url django-admindocs-docroot as docroot %} Then docroot becomes a variable, containing the url, that can be used in a {% blocktrans %}, obvi

Re: admin widgetry in myapp

2008-08-29 Thread Martin Diers
I would suggest that first you learn about forms and widgets apart from the admin. Once that is done, it's pretty trivial to crate your own ModelForm and assign it to your admin. As to a tutorial, there's the newforms-admin HOWTO, that may be of use: http://code.djangoproject.com/wiki/Newform

Re: Getting things into entries

2008-08-29 Thread Martin Diers
On Aug 29, 2008, at 2:22 PM, Benjamin Buch wrote: > > Clumsy subject, I know... > > I know there was a recent discussion about this, but I lost it, so > sorry for asking again. > So here's the question: > > How can you allow your users to add something like pictures into > something like blog pos

Re: Getting things into entries

2008-08-30 Thread Martin Diers
>> > That's a really bad idea. Users can bring the whole site down with > malformed content if you do it like that. > > At least you should do something like that: > > try: >usercontent = render_to_string('whatever.html', {...}) > except TemplateSynatxError: # maybe other exceptions? >user

Re: Handy tip for Mac OS X Django users

2008-09-03 Thread Martin Diers
On Aug 31, 2008, at 4:10 PM, Leaf wrote: > > I've recently discovered how incredibly customizable Mac OS 10.5's > Terminal can be. For example, I created a custom setup that is useful > for Django developers. Whenever it opens, it automatically starts my > Django server, and instead of using Ctrl

Re: django-mptt and fixtures

2008-09-03 Thread Martin Diers
The problem with fixtures in documented on the django-mptt page on Google code. There is a patch you need to apply to get them to work. The patch is not necessary for Trunk, however django-mptt does not work on trunk, as too much has changed - in particular, signals. I would really caution

Re: django-mptt

2008-09-05 Thread Martin Diers
On Sep 4, 2008, at 6:35 AM, peter_g wrote: > > > Hi! > > Playing with the wonderful mptt code: > http://code.google.com/p/django-mptt/ > > I would like to ask if someone knows how to do this: > (I play with some kind of navigation for websites) > > I have a tree where some nodes are marked "inact

Re: new ModelAdmin set up

2008-09-08 Thread Martin Zimmerman
You need to add: admin.autodiscover() in your urls.py Regards, Martin On Sep 8, 9:14 pm, KillaBee <[EMAIL PROTECTED]> wrote: > I am editing my Admin.py to use the new ModelAdmin.  All my change has > no effect.  I wanted it to come up with all my app automaticlly. > >

How to use search/filter capabilities from the admin?

2008-09-08 Thread Martin Zimmerman
something like django-sphinx? I would also like to filter on dates just as it works in the admin. Thanks in advance! Regards, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: MySQLdb + AMD64

2008-09-08 Thread Martin Diers
Perhaps you should direct this to a MySQL list somewhere? This in not a Django question. On Sep 6, 2008, at 2:43 PM, TheIvIaxx wrote: > > After searching around for a bit for a build of MySQLdb, i have found > that i will probably need to build the module for AMD64 on windows. > Is there a gu

Re: view.py and base.html problem

2008-09-08 Thread Martin Diers
It's rather hard to help you when we don't know what is not working for you. What is the error? What doesn't work? On Sep 8, 2008, at 9:12 PM, TameR wrote: > settings.py http://dpaste.com/76851/ > admin.py http://dpaste.com/76852/ > view.pyhttp://dpaste.com/76853/ > models.py ht

Re: help using django templates for site translation

2008-09-11 Thread Martin Sagastume
In some way.. it seems to, does anybody knows if its posible to add mod_python to XAMPP ??? I dont like the risky only for development way to show media ! On Thu, Sep 11, 2008 at 6:01 AM, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > > Hi, > > On Thu, Sep 11, 2008 at 9:41 AM, msagas <[EMAI

Re: ORM vs SQL vs HBase

2008-09-13 Thread Martin Diers
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 would be no possible way to integrate in into the current ORM. In fact, the on

Re: ORM vs SQL vs HBase

2008-09-14 Thread Martin Diers
On Sep 13, 2008, at 7:11 PM, Russell Keith-Magee wrote: > > 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

Re: Internal server error upgarding from 0.97 to 1.0

2008-09-14 Thread Martin Diers
On Sep 9, 2008, at 10:39 AM, Haku wrote: > > Hello, i'm quite frustrated by this problem. > Today i had the idea to update my svn from the old 0.97 to the 1.0 > release, and now nothing is working anymore. > > I always get an anonymous "Internal Server Error" > Maybe because my project included

Re: Strange URL behavoir/problem

2008-09-14 Thread Martin Diers
On Sep 14, 2008, at 5:16 PM, djandrow wrote: > > I have the folling urls: > > (r'^(?P\d{4})/$', > 'django.views.generic.date_based.archive_year', archive_info), > (r'^(?P\d{4})/(?P[a-z]{3})/$', > 'django.views.generic.date_based.archive_month', archive_info), > > and archive_info is: > > archive_

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-14 Thread Martin Diers
On Sep 14, 2008, at 12:59 PM, n00m wrote: > > What is the http://www.thomas-guettler.de/? > > Remove from your sig this link to your f**king spam-like site. > > On Sep 12, 4:36 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: >> Thomas Guettler,http://www.thomas-guettler.de/ > Chill out. It's a pe

Re: uses_case_insensitive_names = True

2008-09-14 Thread Martin Diers
On Sep 14, 2008, at 4:22 PM, sal wrote: > > Have looked extensively but cannot find a solution :( > > While trying to follow tutorial in a django book, I get the following > error when running manage.py a second time: > > _mysql_exceptions.OperationalError: (1050, "Table 'people_person' > already

Re: ModelForm vs CheckboxSelectMultiple

2008-09-20 Thread Martin Ostrovsky
When creating your widget, you need to set empty_label = None, this will supress the '' choice. Also, I think you want to use forms.ModelMultipleChoiceField in conjunction with the widget forms.CheckboxSelectMultiple. On Sep 20, 6:26 pm, "Vance Dubberly" <[EMAIL PROTECTED]> wrote: > End resu

Re: filter queryset in admin

2008-09-21 Thread Martin Ostrovsky
Assuming you're using Django v1.0 ... you could override the queryset method in your class that defines the admin properties for your class. For example: class MyAdminClass(admin.ModelAdmin): def queryset(self, request): # Limit the queryset to some subset based on the value of reque

Re: Grouping a list of entries by month name

2009-02-20 Thread Martin Lundberg
:"F Y" }}{% endifchanged %} {{ entry.title }} on {{ entry.pub_date|date:"l jS \o\f F Y" }} {% endfor %} but that added for every post. -Martin 2009/2/19 Malcolm Tredinnick > > On Wed, 2009-02-18 at 23:35 -0800, Marlun wrot

Forms with dynamic *fields*

2009-03-02 Thread Martin Winkler
= forms.CharField(...) 5 super(MyForm, self).__init__(*args, **kw) What is the correct syntax for line 4? Is this even possible? Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: psycopyg setup error: no build_ext

2009-06-23 Thread James Martin
I was never able to get psycopg2 to compile on osx I recommend using sqlite for development or another database. If you must use psycopg2, you may want to try to get it through something like darwinports. On Tue, Jun 23, 2009 at 1:19 PM, Chris Haynes wrote: > > Using what I believe is the la

AUTH_PROFILE_MODULE in "Definitive Guide" Second Edition?

2009-08-11 Thread Watts Martin
I've noticed with some mild consternation that there's absolutely no documentation for using AUTH_PROFILE_MODULE in the new edition of _Definitive Guide to Django,_ nor is there any indication of something else I should be using instead of that if this is being deprecated. So is this safe to use?

Re: AUTH_PROFILE_MODULE in "Definitive Guide" Second Edition?

2009-08-11 Thread Watts Martin
On Aug 11, 5:30 pm, James Bennett wrote: > Seeing as how Django's documentation still covers everything you need > to know about it, it's unlikely there's something newer you're > missing. I didn't *think* so, but I am very good at making assumptions that prove to be wrong in practice! > It's t

Re: Django wont display images on my CSS file

2009-03-27 Thread Martin Ostrovsky
is means Django can't find the image, probably for the reasons I stated above. If it says 200 (or 304) next to the filename in the terminal window, then Django has found the image, but your CSS/HTML is the problem. Hope that helps. - Martin On Mar 27, 8:33 am, Gath wrote: > Guys, >

Re: Django wont display images on my CSS file

2009-03-27 Thread Martin Ostrovsky
I spoke too soon. Re-reading your comment, it does seem to be entirely a CSS/HTML issue - not Django related. Since the inlined style works, Django is finding the image. Sorry about that misleading response. On Mar 27, 9:07 am, Martin Ostrovsky wrote: > Without seeing your settings.py file

Re: Testing form posting

2009-03-29 Thread Martin Ostrovsky
You're POSTing the form instance, rather than the postedData. So: response = self.client.post('/myApp/post', form) should be: response = self.client.post('/myApp/post/', postedData) More info here: http://docs.djangoproject.com/en/dev/topics/testing/#making-requests On Mar 28, 9:14 pm, tsme

Re: Curious Error

2009-03-29 Thread Martin Ostrovsky
You're passing your template variable `classcolors` to the template filter `random`. Looking at the code for random.py: File "/usr/lib/python2.5/random.py", line 248, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: string index out of range

Re: Running django on a web hosting account

2009-04-10 Thread Konrad Martin
Hi Sergio > - Google App Engine[1] - you will need adapt somethings in your code. There is the project appEnginePatch to deploy django on Google appEngine out of the box. http://code.google.com/p/app-engine-patch/wiki/Documentation The app-engine-patch has got a ready made sample. Download http

Re: 1 django project, 2 targets (fastcgi and GAE) - best practices?

2009-04-10 Thread Konrad Martin
Hi cgarvey there is the appEnginePatch project too. Dedicated to deploy existing Django on appEngine. http://code.google.com/p/app-engine-patch/wiki/Documentation It has got a ready made app-engine-patch sample. Download http://app-engine-patch.googlecode.com/files/app-engine-patch-sample-1.0.zi

Re: 1 django project, 2 targets (fastcgi and GAE) - best practices?

2009-04-10 Thread Konrad Martin
Hi cgarvey On 10 Apr., 15:25, cgarvey wrote: > It (migrating Django to appEngine via appEnginePatch) required changes to the > models, You are right, model changes are unevitable when migrating from a relational database, MySQL for example to Google's big table. Google doesn't use a relationa

  1   2   3   4   5   6   >