On Fri, Aug 28, 2009 at 8:13 PM, Eric Montgomery wrote:
>
> I'm experiencing a really odd problem with the archive_week generic
> view.
>
> I am trying to call it like I do a bunch of other generic views
> throughout my app, but archive_week seem to not like the arguments I'm
> giving it.
> Here
On Fri, Aug 28, 2009 at 10:34 PM, MIL wrote:
>
> Hi :o)
>
> I am attempting to create a simpler way to create my links. and I
> developed this template tag:
>
>
> class LinkNode(Node):
>def __init__(self, object):
>self.object = object
>
>def render(self, context):
On Fri, Aug 28, 2009 at 10:35 PM, hao he wrote:
> hi.
>
> this following code show what I want to do,but 'red' line is incorrect,
>
> if request.method == "POST":
> form = MyForm(request.POST)
> c = form.data["a"] + form.data["b"]
> form.data["c"] = c
> return render_to_r
2009/8/29 hao he
> thanks for your reply。
>
> yes,i want to display the form again with some field being modified.
>
> how to set the new value to a field of fhe old form to render ?
>
> for example :
> in site signup case.
> when there are some errors, we hope to display the signup again ,but th
On Sun, Aug 30, 2009 at 5:15 PM, Zico wrote:
> I am facing problem with this error: *ImportError: No module named
> stdimage* while i tries to run the command:
>
> *python manage.py runserver
> *
> this is a http://www.fixmystreet.com/ server. The server runs ok... as you
> can see the server st
On Mon, Aug 31, 2009 at 9:26 AM, Lokesh wrote:
>
> Hi,
>
> I am trying to check the check boxes while serve of a page.
>
> I will be passing the elements/indexes of an element(checkbox) as a
> list from FORM.
>
> Here is the sample code that I am trying to implement
>
> sampleForm():
> check = [
On Mon, Aug 31, 2009 at 2:13 AM, Zico wrote:
>
>
> On Mon, Aug 31, 2009 at 7:04 AM, Karen Tracey wrote:
>
>> File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line
>> 214, in _resolve_special
>>>
>>>
>>>
>>&
On Mon, Aug 31, 2009 at 9:03 AM, gentlestone wrote:
>
> is recursion allowed in templates?
>
> for example can the "xy_template.html" file contain {% include
> "xy_template.html" %}?
>
It's "allowed" in the sense that it's not caught as an error. But it will
lead to infinite recursion...
>
>
On Mon, Aug 31, 2009 at 10:30 AM, wallenfe wrote:
>
> I'm trying to understand why a LEFT OUTER JOIN is being used in
> queries that filter on a NULL foreign key. It seems that the same
> result can be achieved without the LEFT OUTER JOIN.
>
> Here is an example:
> [snip]
Why is the LEFT OUTER
On Mon, Aug 31, 2009 at 1:15 PM, Zico wrote:
>
>
> On Mon, Aug 31, 2009 at 7:43 PM, Karen Tracey wrote:
>
>> You seem to have been following the doc for downloading/installing
>> stdimage, which says to put it somewhere in a directory included in your
>> PYTHONPA
On Mon, Aug 31, 2009 at 1:49 PM, Zico wrote:
> Hi, may be you have seen my previous email regarding stdimage. The previous
> error was:
> *"ImportError: No module named stdimage"
> *
> I have solve this problem by this way:
>
> 1. I have created a "contrib" directory in my /opt/fixmystreet/
> 2.
On Mon, Aug 31, 2009 at 2:40 PM, Zico wrote:
>
> Yes, I did it. Now my transmeta is in:
>
> /opt/fixmystreet/contrib/transmeta/__init__.py
>
> And, my stdimage is in:
>
> /opt/fixmystreet/contrib/stdimage/__init__.py
>
> But, nothing changed yet!!! Same error is coming:
>
> *No module named trans
On Mon, Aug 31, 2009 at 3:48 PM, efege wrote:
>
> Hi,
>
> According to the docs,
>
> "... when the template system encounters a dot in a variable name, it
> tries the following lookups, in this order:
>
>* Dictionary lookup. Example: foo["bar"]
>* Attribute lookup. Example: foo.bar
>*
On Mon, Aug 31, 2009 at 4:29 PM, Zico wrote:
> Now, the transmeta is gone!! and... new one just appeared!!
>
> ImportError at /
>
> cannot import name GIcon
>
> Request Method: GET Request URL: http://localhost:8000/ Exception Type:
> ImportError Exception Value:
>
> cannot import name GIcon
On Mon, Aug 31, 2009 at 4:55 PM, Zico wrote:
>
>
> On Tue, Sep 1, 2009 at 2:48 AM, Karen Tracey wrote:
>
>>
>> What version of Django are you using?
>>
>
> 1.0.3
>
Yes, I see that now right in the subject. You'll need to upgrade to 1.1 if
you want
On Mon, Aug 31, 2009 at 6:27 PM, aa56280 wrote:
>
> I can't find an answer to this, so I'm hoping folks here can help: why
> is it that Django catches IntegrityError for a field with unique=True
> in the Admin tool but requires you to catch it yourself in your app?
> That is, why isn't it handled
On Tue, Sep 1, 2009 at 1:20 AM, aa56280 wrote:
>
> ### Model ###
> class School(models.Model):
>url = models.SlugField(max_length=50, unique=True)
>name = models.CharField(max_length=255)
>...
>
>
> ### Form ###
> class SchoolForm(ModelForm):
>
>class Meta:
>model = School
On Tue, Sep 1, 2009 at 10:54 AM, NMarcu wrote:
>
> Hello all,
>
> I'm very new in python, Django... I have a Django project. If I run
> it like: python manage.py runserver, everything is OK. When I run it
> in Apache2 I got this error:
> OperationalError at /login
>
> FATAL: Ident authenticati
On Tue, Sep 1, 2009 at 12:02 PM, Alessandro Ronchi <
alessandro.ron...@soasi.com> wrote:
> When I return a 500 error I need to have my context_processor, in which I
> store some important vars used in my template. Is it possible?
>
Your subject line says 404 errors but your text says 500. Which
On Tue, Sep 1, 2009 at 12:51 PM, aa56280 wrote:
>
> You're right, I did leave out something - the clean() method. Nothing
> unusual there. In fact, if I take out everything from the method and
> leave the shell:
>
> def clean(self):
> return self.cleaned_data
>
> It still craps out. However, if
On Tue, Sep 1, 2009 at 2:26 PM, Katja wrote:
>
> I have the following settings:
> EMAIL_HOST = "smtp.gmail.com"
> EMAIL_PORT = 465
> EMAIL_HOST_USER = MYLOGIN
> EMAIL_HOST_PASSWORD = MYPASSWORD
> EMAIL_USE_TLS = True
>
> And the mailing part:
> subject = "New data outputs are available"
> recip
On Tue, Sep 1, 2009 at 4:18 PM, Ozymandias wrote:
>
> Greetings,
>
> I admit to being very confused at the moment. I'm simply wanting to
> change the style sheets on the Admin Site. I'm mostly just wanting to
> change the color scheme. Nothing terribly complicated. I'm using
> Django 1.1 runn
On Wed, Sep 2, 2009 at 7:53 AM, Ozymandias wrote:
>
> Karen,
>
> Thank you. I will give that a shot a little later this afternoon.
>
> The MEDIA_ROOT change really does break the sites CSS though. Not
> sure why.
>
> Was I doing the changes correctly if I were going to be hosting this
> on an a
On Wed, Sep 2, 2009 at 10:14 AM, Spoksss wrote:
>
> Hi,
>
> I have very strange problem with simple QuerySet.
> I get error just on one of servers, and I realy don't know why.
>
> When I use very simple code like:
>
> Model.objects.filter(is_published=True)
>
> I get stupid error:
>
> "Cannot reso
On Thu, Sep 3, 2009 at 4:27 AM, Alessandro wrote:
> 2009/9/1 Karen Tracey
>
>> On Tue, Sep 1, 2009 at 12:02 PM, Alessandro Ronchi <
>> alessandro.ron...@soasi.com> wrote:
>>
>>> When I return a 500 error I need to have my context_processor, in which I
&
On Fri, Sep 4, 2009 at 7:24 PM, weiwei wrote:
>
> 1)why sometimes i got 'fuzzy' item in django.po language file .
> Actually i have checked in my project the 'fuzzy' string item is
> totally unique.
>
> #: .\users\views.py:81 .\users\views.py:101
> #, fuzzy
> msgid "username or email"
> msgstr "9
On Sat, Sep 5, 2009 at 1:52 PM, eli wrote:
>
> Hi,
>
> I have problem with Django Forms and field with set attrs to
> disabled="disabled"
>
> [snip]
> And now, Django remove values form field with attrs 'disabled':
> 'disabled' ("readonly" without "disabled" works fine, but I need
> disabled opti
On Sat, Sep 5, 2009 at 4:52 PM, Michael Ralan wrote:
>
> Hi,
>
> Apologies if this question has been asked before but I was not able to
> find a satisfactory answer.
>
> In the django admin app there is a capability to have a pagination
> object that lists the number of pages that can be paged.
>
On Sat, Sep 5, 2009 at 7:37 PM, A. Rossi wrote:
>
> I am suffering a similar problem, but I think the problem is that my
> URLConf is improperly configured to display the images.
> Could somebody direct me to the proper documentation for displaying
> static images with the dev server?
>
>
http://
On Sat, Sep 5, 2009 at 11:32 PM, Jim Myers wrote:
>
> Hi, I'm using this regex in urls.py:
>
> r'^portal/student/(?P\S+)/profile_edit$'
>
> There's no trailing slash on this regex, but there is an end of string
marker ($). So a match will have to end with 'profile_edit', no trailing
slash.
> to
x27;^portal/student/(?P\S+)/profile_edit/$',
'portal/student/xx.yy/profile_edit/').groupdict()
{'userid': 'xx.yy'}
>>>
I don't know what to tell you. The regex now matches the url you specified.
url mapping isn't fundamentally broken in Dja
On Sun, Sep 6, 2009 at 6:21 AM, Joshua Partogi wrote:
>
> On Sun, Sep 6, 2009 at 6:20 PM, Daniel Roseman wrote:
>
>> Define a custom method on the FooAdmin class which returns the HTML of
>> a link to the Bar changelist with the relevant filter applied:
>>
>>def bar_link(self, obj):
>>
On Sun, Sep 6, 2009 at 7:25 AM, paulh wrote:
>
> When using one of these fields in Add mode you make a choice of the
> object from a popup window and the js returns the id into the field.
> It would be very useful if it also tacked the unicode (that you see
> whilst making the choice) correspondi
On Mon, Sep 7, 2009 at 1:51 AM, Jim Myers wrote:
>
> I've look all over docs and Google to find a way to do this with no
> real luck.
>
> I'm using a legacy PostGreSQL database which already has user and
> permissions tables defined, and I don't want to have to create
> parallel Django User table
On Mon, Sep 7, 2009 at 5:45 AM, andreas schmid wrote:
>
> hi list,
>
> im experiencing problems with the rating functionality described in the
> code sharing site in the practical django projects book:
>
> if i try to get the score of a snippet with {{ object.get_score }} in
> the template i get
On Mon, Sep 7, 2009 at 6:21 AM, Sven Richter wrote:
> Hi all,
>
> i must have a simple error somewhere in my code, everytime i try to import
> a certain method i get the following error:
> cannot import name send_entry_created
>
> This is my code:
> entry.models:
> from entry.signals import send_
On Mon, Sep 7, 2009 at 6:24 AM, Oleg Oltar wrote:
> Hi!
>
> I am trying to run unitests for one of my application.
>
> Here is the code of the test (it doesn't do anything yet)
>
> [snip]
> When I run those tests I get an error:
>
> Installing index for goserver.Game model
> .
> -
On Mon, Sep 7, 2009 at 8:11 AM, andreas schmid wrote:
> the model class described in the book looks like this for the Rating model:
>
>class Rating(models.Model):
>RATING_UP = 1
>RATING_DOWN = -1
>RATING_CHOICES = ((RATING_UP, 'useful'),
> (RAT
On Mon, Sep 7, 2009 at 12:53 PM, Miklos wrote:
>
> Hi,
>
> I have models with verbose names translated into Hungarian. The
> verbose names contain non-ascii characters. I have trouble adding,
> editing, or deleting related objects through an admin inline. The
> error I get is below. I can add, ed
On Mon, Sep 7, 2009 at 12:33 PM, GuyBowden wrote:
>
> Hi,
>
> I'm trying to use __range=(then, now) to filter my queryset
>
> However the SQL that is being generated is missing the quotes around
> the dates - it looks like this:
>
> .. x BETWEEN 2009-09-01 and 2009-09-07
>
> but it sh
On Mon, Sep 7, 2009 at 5:03 AM, Tracy Reed wrote:
> I have a Django app which processes emails. It is often handed emails
> with unicode characters in them. My understanding is that Python and
> Django handle unicode just fine and somewhat transparently. I was,
> however, told that I need to set
On Wed, Sep 9, 2009 at 4:08 AM, Daniel Roseman wrote:
>
> As regards updating, Django will only update the fields that have
> changed in any case.
>
I don't believe this is true. Only updating the fields that have changed
would require keeping track of what fields in the Python model instance ha
On Wed, Sep 9, 2009 at 4:58 AM, goobee wrote:
>
> hi there
> django's features for handling data from a database are great.
> Unfortunately I work with a legacy database which does not quite fit
> into djangos requirements:
>
> Class Member(models.Model)
>mnum = models.ForeignKey(, primar
On Wed, Sep 9, 2009 at 5:06 AM, Oleg Oltar wrote:
> Hi!
>
> One of my tests returned following text ()
>
> The test:
> from django.test.client import Client
> c = Client()
> resp = c.get("/")
> resp.content
>
> In [25]: resp.content
> Out[25]: '\r\n\r\n\r\n Strict//EN"
[snip]
>
> Is there a way
On Wed, Sep 9, 2009 at 7:23 AM, Simon Lee wrote:
>
> Hi All,
>
> I am following the tutorial in the Django website (writing your first
> django app) and get it to work on the development server. However,
> when I port to Apache, the admin template is not loaded and thus I
> could not get the nice
On Wed, Sep 9, 2009 at 9:14 AM, Jan Ostrochovsky wrote:
>
> Hello,
>
> I have the exact need, as author of this question:
>
> http://stackoverflow.com/questions/454436/unique-fields-that-allow-nulls-in-django
> .
>
>
I answered on that question because the answer that was there was incorrect.
>
On Wed, Sep 9, 2009 at 12:37 PM, Jan Ostrochovsky <
jan.ostrochov...@gmail.com> wrote:
>
>
> But I see as an ultimate solution to distinguish between NULL and
> empty string for CharField and TextField, as I see it, here is reason
> to have it.
>
> NULL means undefined (or unknown) value, and its
On Tue, Mar 24, 2009 at 8:15 PM, Michael Glassford wrote:
> Django can be patched to do this automatically. There may be a better
> way to do it, but I've figured out that in db/backends/mysql/base.py,
> inside the DatabaseWrapper._cursor function, adding the line
> "cursor.execute('SET sql_auto_i
2009/3/25 João Olavo Baião de Vasconcelos
> 2009/3/25 João Olavo Baião de Vasconcelos
>
>> But such button stills appearing in the app page.
>
> when I access http://mysite/myproject/admin/myapp, the "Add" button
>> appears next to every model.
>
>
> Just to complete the problem description: eve
On Wed, Mar 25, 2009 at 5:39 PM, Darren Mansell wrote:
> I'm just trying to do a bit of home development on Ubuntu 9.04 which has
> Python 2.6.
>
> When trying to populate the database from the models it's randomly ignoring
> model definitions. I have no idea what's going on but the deprecation
>
On Tue, Mar 24, 2009 at 2:11 PM, Adam Yee wrote:
> So, I now pass the bound form, but still no validation error messages
> show up. More importantly, is_valid is still returning false even
> when I try logging in as a super user. I also removed checking for
> is_active since the AuthenticationF
On Thu, Mar 26, 2009 at 3:56 AM, Phonethics wrote:
>
> Coming from a PHP background, I am starting to dive into Django.
> Im using Ubuntu 8.10 and I didnt install Django via apt-get.
>
> I downloaded Django-1.1-beta-1.tar.gz
> Unzipped to /home/username/code/django
> sudo python setup.py install
On Thu, Mar 26, 2009 at 12:26 PM, Adam Yee wrote:
>
> {{ error }}
>
> {{ form.as_p }}
>
>
>
form.as_p ought to be showing the errors on the form. So I'm puzzled by how
is_valid could be returning False but no errors are being displayed.
> Guessing is sometimes all one can do after analyzin
On Thu, Mar 26, 2009 at 12:33 PM, Alessandro wrote:
> On Thu, Mar 26, 2009 at 4:44 PM, Alessandro
> wrote:
>
>>
>> Is it possible to get a list of function names inside a module?
>
>
> I need to know the names of the functions in a module. is it possible ?
>
That's pretty much a pure python ques
On Thu, Mar 26, 2009 at 12:53 PM, David Lindquist wrote:
>
> I am noticing some odd SQL being generated for certain queries. For
> example, if I type the following in the shell:
>
> >>> TroubleCode.objects.all()[:5]
>
> and then I look at the db queries:
>
> >>> from django.db import connection
On Thu, Mar 26, 2009 at 7:06 AM, TeenSpirit83
wrote:
>
> I can't find nothing similar on this group! Can you please help me?
> I get this error trace in the django 1.0.2 admin when updating a char
> primary key in a regex field.
> Thank you in advance!
>
I think there's a bit more going on here t
On Fri, Mar 27, 2009 at 8:10 AM, Stephan John wrote:
>
> Hi all,
>
> I have some trouble with my Admin-URLs. When I set DEBUG=False (in the
> settings.py) I become this error (I've changed some lines in the file
> ../django/core/handlers/base.py to see the error in no-debug-mode):
>
> Using the U
Please see my reply in the other thread with this same question.
Karen
--~--~-~--~~~---~--~~
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 unsub
On Fri, Mar 27, 2009 at 9:25 AM, Robert Chan wrote:
>
> Hey is this possible?
>
> I'm getting angry 500s back
>
> class TeamBulletin(models.Model):
>team = models.ForeignKey(Team)
>author = models.ForeignKey(User)
>title = models.CharField(max_length = 500, blank = False)
On Fri, Mar 27, 2009 at 9:19 AM, Stephan John wrote:
> I registered the models with:
> admin.site.register(Beitrag, BeitragAdmin)
> admin.site.register(Container, ContainerAdmin)
>
> It works fine in debug-mode. I have problems only if debug is false.
>
And those lines are actually executed when
On Fri, Mar 27, 2009 at 9:44 AM, Stephan John wrote:
>
> Am Freitag, 27. März 2009 14:28:28 schrieb Karen Tracey:
> > On Fri, Mar 27, 2009 at 9:19 AM, Stephan John
> wrote:
> > > I registered the models with:
> > > admin.site.register(Beitrag, BeitragAdmin)
&g
On Sat, Mar 28, 2009 at 5:44 PM, nick wrote:
>
> I am a django newbie.
> The first example I tried from django's tutorial "mysite", ran python
> manage.py runserver.
> Server runs with no errors but my web browser (firefox) get "Firefox
> offline mode error" and not django 404 errors.
> I tried d
On Sun, Mar 29, 2009 at 11:18 AM, Rob Hudson wrote:
>
> This is a stumper...
>
> I have a very simple view that is a wrapper around the generic view
> direct_to_template. The loader finds the template as indicated in the
> output "(File exists)", but yet I still get a TemplateDoesNotExist
> erro
On Mon, Mar 30, 2009 at 2:23 PM, Robocop wrote:
>
> So the fun continues. I realized that i did not need to use the
> login_required decorator on this function since it's just tossed
> around in the backend, so i took that out thinking it would prevent
> decorators.py from being called.
Did yo
On Mon, Mar 30, 2009 at 5:20 PM, famousactress wrote:
>
> Hello folks. I'm new to python, new to Django, but very old to ORMs
> (via Java's Hibernate, mostly)...
>
> I naively assumed that QuerySet.filter() would return me None, if
> there were no results. Instead it returns an empty list. That's
On Mon, Mar 30, 2009 at 7:24 PM, Mitch wrote:
>
> With django 1.0.2 and Python 2.5, when I use the keyword
> DateField.input_formats, I get the error that __init__() got an
> unexpected keyword argument 'input_formats'. When I look in the
> __init__ definition, I don't see input_formats as one of
On Mon, Mar 30, 2009 at 7:40 PM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:
> Presumably you are talking about calling the constructor of
> forms.DateField here, since you don't mention what __init__ method you
> are calling. Support for the input_formats argument to
> DateField.__init_
On Tue, Mar 31, 2009 at 9:27 AM, knight wrote:
>
> Hi,
>
> I'm trying to install my django application on CentOS 5 and I'm
> getting the following error:
>
> ImportError: Could not import settings 'mx30.settings' (Is it on
> sys.path? Does it have syntax errors?): No module named mx30.settings
>
On Tue, Mar 31, 2009 at 9:52 AM, Miguel wrote:
> hi,
>
> I have found an optimizing problem. I have a model which i would like to
> edit, when I call my method I do something like this:
>
>
> def method_modify(request, method_id):
>
> try:
>manipulator = Pattern_method.ChangeManipula
On Tue, Mar 31, 2009 at 11:17 AM, Miguel wrote:
>
> where should I put "raw_id_admin=True" ? in the foreing key declaration?
>
> forma_parte_de =
> models.ForeignKey('Plantilla_bloque',related_name='dentro_de',blank=True,null=True)
>
> and what implications does it have?
>
Sorry, I meant to inc
On Tue, Mar 31, 2009 at 10:55 AM, Matias Surdi wrote:
>
> I have the following model:
>
> class Document(BaseModel):
> name = models.CharField(max_length=150,blank=True)
> type = models.ForeignKey(DocumentType)
> description = models.TextField(blank=True)
> file =
>
> models.FileFi
On Wed, Apr 1, 2009 at 5:12 AM, 夏恺 wrote:
>
> Hi all!
>
> I wrote a model to hold files uploaded by users, it goes like this:
>
> [snip]
> and when I try to add an mp3 file with chinese filename through the
> admin interface, the files are not saved correctly, their names are
> changed to somethi
2009/4/1 Filip Gruszczyński
>
> I am creating my own admin for a model and I would to add a collapsed
> inline.
>
> [snip]
> But I have no idea how to achieve this with an inline. Is it possible
> in DJango (possibly in 1.0, because this is at the production server,
> but I can also live with 1.1
On Wed, Apr 1, 2009 at 7:14 AM, gganesh wrote:
>
> hi group,
> my application needs to send SMS occasionally to all the clients .Is
> there any library in python that supports in sending SMS.
> [snip]
>
This question really has nothing to do with Django, so you'll likely get
better responses if
On Wed, Apr 1, 2009 at 7:40 AM, Sams wrote:
>
> anyone knows?...
>
If someone knew, they likely would have answered. You might be looking for
the solution in ticket #5833, but I'm not really sure. The patch for that
ticket is lacking docs to describe the solution provided, and honestly I
don't
2009/4/1 TTear1943 <1943@gmail.com>
>
> I seems it doesnot work when update an ImageField.
>
Certainly ImageFields can be updated.
You've omitted from the code you posted what exactly is done by the function
user.handle_upload_user_avatar(), which is my first guess as to where the
problem is
On Wed, Apr 1, 2009 at 10:30 AM, jeremias.kangas
wrote:
>
> Hi,
>
> I want to modify contrib.auth so that "username" validates as an email
> field and can be longer than 30 characters. Is the only way to do this
> to make my own version of contrib.auth (contrib.myauth) or is there
> some handier w
On Wed, Apr 1, 2009 at 10:52 AM, Miguel wrote:
> I don really understand the raw_id_admin issue. I have read the api but it
> is still not clear.
>
> You meant I could improve the behaviour by adding this paramter?
>
> forma_parte_de =
> models.ForeignKey('Plantilla_bloque',related_name='dentro_
On Wed, Apr 1, 2009 at 1:03 PM, Miguel wrote:
> umm, raw_id_admin takes no effect. I think I have found the problem. As you
> said it may be in the model:
>
> Pattern_method model has this entry definition:
>
> metodos_embebidos =
> models.ManyToManyField('Plantilla_metodo_embebido',blank=Tru
On Wed, Apr 1, 2009 at 1:04 PM, laird18 wrote:
>
> Hello all,
>
> I'm trying to follow the "example custom comments app" exercise as
> documented here:
>
> http://docs.findjango.com/ref/contrib/comments/custom.html#ref-contrib-comments-custom
>
> It looks simple enough but I've hit a complete dea
On Wed, Apr 1, 2009 at 1:35 PM, Miguel wrote:
> sorry karen. I have tried both. First I put in teh forma_parte_de foreing
> key field but it has no discernible effect on performance. I even execute it
> via python console and you can see clearly that it takes long time to
> response.
>
> Then I t
On Wed, Apr 1, 2009 at 2:52 PM, Dan Jewett wrote:
>
> I'm using the following settings:
>
> MEDIA_ROOT = '/Users/dan/projects/some_project/files/'
>
> # static files
>(r'^files/(?P.*)$', 'django.views.static.serve',
> {'document_root': '/Users/dan/projects/some_project/files'}),
>
> In an
On Wed, Apr 1, 2009 at 3:05 PM, Michel Thadeu Sabchuk wrote:
> I created a custom comments app to make use of captcha. I didn't
> change the mode, I just change the form to make use of django-simple-
> captcha [1].
>
> To make all magic works I need to do some hacks in django comments
> framework.
On Wed, Apr 1, 2009 at 5:34 PM, Miguel wrote:
> Hi Karen,
> i didn't want to bother you too much (because of that I dindnt send too
> much code).
>
But without specifics on the model involved here there's nothing more I can
think to tell you that might help. raw_id_admin on any (all) related ob
On Thu, Apr 2, 2009 at 1:15 PM, laird18 wrote:
>
> Hi Karen, thanks for the reply, and sorry for not being clearer in my
> original message.
>
> I've done a bit more debugging and I've found that whenever I put any
> form of import line, such as
> "from django.db import models" or
> "from interna
On Fri, Apr 3, 2009 at 3:08 AM, mjlissner wrote:
>
> Thanks to IRC, the fix is in.
>
> The line for admin/doc must be BEFORE the line for admin.
>
> Furthermore, this post seems to be wrong:
>
> http://groups.google.com/group/django-users/browse_thread/thread/a202105e3e6731fd?fwc=1
>
>
You are po
On Fri, Apr 3, 2009 at 12:07 PM, Simon Greenwood wrote:
>
> On Apr 3, 4:05 pm, Ayaz Ahmed Khan wrote:
> > On 03-Apr-09, at 7:43 PM, simong wrote:
> >
> > > if request.method == 'POST':
> > > productform = ProductForm(request.POST, instance=product)
> > > productform.user = user
> >
On Fri, Apr 3, 2009 at 4:25 PM, Andrew G. wrote:
>
> The following code in a fresh project/app will cause the database
> creation to fail.
>
> class Position(models.Model):
>description = models.CharField(max_length=20, blank=True,
> null=True)
>parts = models.ManyToManyField('Part', db_t
On Sat, Apr 4, 2009 at 10:57 AM, pault wrote:
>
> I have one version 1.02 installed in /var/lib/python-support/
> python2.5/django/ (i am on a debian machine)
> and one version 0.96 in the folder of my project.
Specifics of exactly where you have Django 0.96 installed would have been
helpful
On Sun, Apr 5, 2009 at 4:08 AM, EagerToUnderstand wrote:
>
> With regards to the history log on models in the admin view.
>
> I am adding instances of models via the db api (model.save())
> method. When such a model is opened (but not edited) and then saved
> for the first time in the admin mod
On Sun, Apr 5, 2009 at 9:40 AM, Dan Tallis wrote:
>
> In my application I have a formset with can_delete. Some custom
> validation is performed on submit, to determine whether the forms
> selected by the user for deletion can be deleted -- i.e. I have a
> custom clean() method on the form to dec
Forgot the link to that other ticket [1]:
http://code.djangoproject.com/ticket/10711
Karen
--~--~-~--~~~---~--~~
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@goog
On Mon, Apr 6, 2009 at 11:13 AM, Andrew Grossman wrote:
>
> I am trying to specify multiple columns for Django to order row in the
> admin change list by, but it seems to only be interested in ordering
> by the first column. Am I doing something wrong here?
>
The admin only orders by one column.
On Mon, Apr 6, 2009 at 11:57 AM, Adam Fraser wrote:
>
> Does anyone have a clue why I can't access ModelAdmin in
> django.contrib.admin?
>
> >>> from django.contrib import admin
> >>> dir(admin)
> ['__builtins__', '__doc__', '__file__', '__name__', '__path__',
> 'models']
>
> ???
>
That's the res
On Mon, Apr 6, 2009 at 5:35 PM, skunkwerk wrote:
>
> Hi,
> i've been trying to figure out why i'm getting this error (i
> removed the 500.html template to view the traceback, but am not sure
> what's causing the unhandled exception in the first place). any
> ideas?
>
Removing the 500.html tem
On Mon, Apr 6, 2009 at 5:22 PM, Jacolyte wrote:
>
> Right after logging into the admin interface, I receive the following
> traceback:
>
> http://dpaste.com/25126/
>
So, it's running into trouble on:
{% get_admin_log 10 as admin_log for_user user %}
and the extent of the exception information
On Tue, Apr 7, 2009 at 1:29 PM, CrabbyPete wrote:
>
> I am trying to save a message that has a registered trademark
> character in it, like Coke is a registered trademark.
> I get a DjangoDecodeError. How do I prevent this from happening?
Wild guess: a decode error sounds like you are passing
On Tue, Apr 7, 2009 at 5:15 PM, CrabbyPete wrote:
>
> I keep getting this message when I try to save a record to my database
> DjangoDecodeError: 'utf8' codec can't decode byte 0xae in position 268
>
> I have __unicode__ defined in my models. I changed mysql to use utf8.
> I don't know what else
On Tue, Apr 7, 2009 at 8:39 PM, George wrote:
>
> Hi-
>
> I'm pretty sure this shouldn't happen; but the error is no doubt my
> fault. Maybe something about the doc doesn't apply to my system? I
> have pkgsrc python2.5 and Django 1.0.2
>
What sort of a system is this? I'm not familiar with pkgs
On Wed, Apr 8, 2009 at 5:14 PM, James wrote:
>
> I'm a bit new to all this.
>
> I was trying to implement the UserProfile feature described here:
>
> http://www.thenestedfloat.com/articles/displaying-custom-user-profile-fields-in-djangos-admin
>
> But when it comes time to add that to the admin s
901 - 1000 of 2586 matches
Mail list logo