On Mon, Jul 13, 2009 at 8:22 PM, David wrote:
>
> Before I posted my code, I formatted them carefully on wordpad.
> However, they became so messy after I posted them.
>
> Is it possible to do anything to clear such a problem? just wondering
> this.
>
For short snippets, as this was, just cut an
On Tue, Jul 14, 2009 at 1:52 AM, djangonoob wrote:
>
> Hi, I have developed a simple application on my desktop computer
> successfully using django 1.02, Ubuntu 9.04, python version 2.6.2
>
> I copied my files over to my laptop computer and did the following:
> 1) ran the django-admin.py startpro
On Tue, Jul 14, 2009 at 7:42 AM, Kip Parker wrote:
>
> I noticed whilst researching which payment gateway to use that Protx
> has become Sagepay. Anyone know if they've just changed the name (so
> that the Protx payment module still works OK) or if they've changed
> the product at all (so the Pro
On Tue, Jul 14, 2009 at 8:21 AM, Robert wrote:
>
> Hi,
>
> My web hosting company get the curious error message above when
> configuring httpd.conf.
>
> [snip]
>
> admin/media">
> SetHandler None
>
I don't believe you can put the on the same line as the
SetHandler. If that is literally what
On Wed, Jul 15, 2009 at 4:18 AM, pho...@gmail.com wrote:
>
> Hi, all
>
> i have used the command 'manage.py inspectdb' to generate code of
> models.
> then i want to use the code to create dbtable in mysql, and i got
> errormessage:
>Traceback (most recent call last):
> [snip]
> File "C:\Pyt
On Thu, Jul 16, 2009 at 7:04 AM, onoxo wrote:
>
> Hi!
> i'm having problem with raw_id_admin argument in aplication from the
> djangoproject tutorial. only difference from orginal app is in the
> raw_id_admin in Choice model
>
raw_id_admin was a model field argument in Django pre-1.0 time. It i
On Thu, Jul 16, 2009 at 7:09 AM, Phil wrote:
>
> Hi All,
>
> noticed an interesting behaviour in model save:
>
> class Page(models.Model):
>title = models.CharField(_(u"Title"), max_length=50)
>fulltitle = models.CharField(_(u"Full Title"), max_length=50)
> ...
>
>def save():
>
On Thu, Jul 16, 2009 at 4:59 AM, jfergon wrote:
>
> Hi,
>
> I'm working on Django-postgreSQL, and I can't solve a problem. This is
> my models.py:
>
> from django.db import models
> from datetime import datetime
>
> class Event(models.Model):
>title = models.TextField(max_length=50,null=False
On Thu, Jul 16, 2009 at 8:53 AM, Vitaly Babiy wrote:
> Hello everyone,
> [snip]
> Now lets try it with a ModelForm
>
> class UserForm(forms.ModelForm):
> class Meta:
> model=User
> fields= ('first_name',)
>
> >>> form = UserForm()
> >>> form.is_bound
> False # this is good
> >
On Thu, Jul 16, 2009 at 8:22 AM, Earl Lapus wrote:
> hi all,
>
> This is a silly newbie question, so please bear with me :D
>
> Example:
> ...
> def DoSomethingAwful(request):
> if __debug__:
> DoDebugStuff()
> ProcessRequest()
> ...
>
> In the example above, I want django to call DoDebug
On Thu, Jul 16, 2009 at 5:06 PM, Some Guy wrote:
>
> Hi Group,
> I found a bug that was causing my issue (ref:
>
> http://groups.google.com/group/django-users/browse_thread/thread/130f36db5e95bd81
> )
>
> In my urls.py I have a line ...
>
>(r'^diamond/(?P\d+)/$', 'object_detail', info_dict,
>
On Tue, Jul 21, 2009 at 7:53 PM, Vasil Vangelovski
wrote:
>
> I've posted a question about this a few days ago and I thought I was
> confused about something, but it was probably some problem with the
> django revision at the time or I'm even more confused now. So... I
> have an application called
On Fri, Jul 24, 2009 at 9:02 AM, Haestan wrote:
>
> Hi,
>
> let's assume the following simple model:
>
> class Child(models.Model):
>father = models.ForeignKey(Adult, related_name="father")
>mother = models.ForeignKey(Adult, related_name="mother")
>
> class Adult(models.Model):
>name
On Mon, Jul 27, 2009 at 4:04 AM, Tom wrote:
>
> Hi,
>
> Thanks for the tip...
>
> But I've got a similar problem that needs the data from the linked
> model:
>
> (simple example)
>
> for school in SCHOOL.objects.all():
> print school.student.name
>
> When I run this in Django it makes a separat
On Mon, Jul 27, 2009 at 4:52 AM, veasna bunhor wrote:
> Dear all,
>
> I am working on generating file to PDF. The problem is that it does not
> support the Khmer Unicode font. Does any one know why ? and how can i solve
> with this?
>
What is the "it" that "does not support the Khmer Unicode fon
On Mon, Jul 27, 2009 at 6:01 PM, irishsteve wrote:
>
> Hi
>
> I'm new to Django, so thanks in advance for taking the time to help
> me! I can't work out how to reference a foreignKey in the list_filter
> method.
>
> Here are the two relevant objects from my model:
>
> [snip]
Everything is workin
On Tue, Jul 28, 2009 at 9:11 AM, vijay kumar wrote:
>
> Hi,
>
> I am running testcase from django when I run them from models.py it
> run.
>
> But when I put the same in test.py in the same directory where
> models is define it not even getting called.
>
Name the file tests.py, not test.py.
On Tue, Jul 28, 2009 at 11:07 AM, blumenkraft wrote:
>
> Hi,
>
> I have sophisticated model:
>
> class UserEditions(SophisticatedModel):
>user = models.ForeignKey(User)
>editions = models.ManyToManyField(Edition)
>
> and simple function:
>
> def simple_function(user):
> return UserEditio
2009/7/28 Daybreaker
>
> I've solved this problem.
>
> The solution: JUST FOLLOW THE DOCUMENTATION.
>
> ...I have used Django from 0.96, so my convention was different from
> the recent Django docs.
> I used to put admin.site.register() and ModelAdmin classes in
> models.py (and I moved those cla
d. Choices are: model>"
>
> Also I have nondeterministic behavior: I press button "reload page"
> and sometimes everything works.
>
> On Jul 28, 8:54 pm, Karen Tracey wrote:
> > On Tue, Jul 28, 2009 at 11:07 AM, blumenkraft wrote:
> >
> > > Hi
On Tue, Jul 28, 2009 at 4:14 PM, Dave MacFarlane <
dave.macfarl...@ecometrica.ca> wrote:
>
> Hello,
>
> I'm experiencing an unusual problem with django where it's sometimes
> throwing a TypeError exception with the exception value "unsupported
> operand type(s) for *: 'Decimal' and 'Decimal'" when
2009/7/28 Daybreaker
>
> I meant, the phenomenon that mod_wsgi behaves differently with my old
> conventions.
>
No, that's not a bug. Do you have DEBUG set to True when you run under dev
server and False under mod_wsgi? There's validation code that is run only
when DEBUG is True that could exp
2009/7/29 Daybreaker
>
> Um My old convention worked well in the testing environment which
> has DEBUG off. (./manage.py test)
>
I tried to say that even if your DEBUG settings are consistent, there may
still be differences in the order in which modules are loaded in different
environments.
On Thu, Jul 30, 2009 at 12:06 AM, mviamari wrote:
>
> I'm trying to use the test client to verify my views, but when I check
> the templates and contexts I get 'None' returned instead of the
> context dict or the template. I do get the correct content and status
> code however. I was hoping som
On Thu, Jul 30, 2009 at 3:30 AM, rekha wrote:
>
> Hi, i have started using django for the past 5 days..i want my
> applicaion to access database(mysql). i tried the steps given in the
> django book. when i try to do that im getting the following error..
> how to fix this? or suggest me the entir
On Thu, Jul 30, 2009 at 8:40 AM, prabhu S wrote:
>
> Hi All,
>
> I am not noticing a weird issue in django 1.1. When DEBUG is true in
> settings and if I try a non-existent url, django shows me a friendly
> 404 page. Now I create 404.html and 500.html and place this in
> templates directory. Then
On Thu, Jul 30, 2009 at 9:10 AM, Fleg wrote:
>
> Nobody knows ?
>
Simply re-get the instance from the DB?
Karen
>
> On Jul 29, 6:12 pm, Fleg wrote:
> > Hi,
> > I have a model mapping tables in a database with several foreign keys.
> >
> > class Scheduler(models.Model):
> > id_schedu
On Thu, Jul 30, 2009 at 9:59 AM, monkut wrote:
>
> Hmmm... I'm having the same error.
> I just installed 1.1 with python 2.6.2, on Windows vista.
>
> I set up a new project using django-admin.py and a new app to throw
> together a new project.
> All in all that took under an hour from download.
>
On Thu, Jul 30, 2009 at 4:02 PM, Martje wrote:
>
> Hey,
>
> I've got the following code in my models.py:
>
> from django import forms
> class Foto(models.Model):
>omschrijving = models.CharField(max_length=100)
>afbeelding = models.ImageField(upload_to='media/afbeeldingen/
> header/fotos'
On Fri, Jul 31, 2009 at 5:51 AM, Fleg wrote:
>
> Thanks for your suggestion, but I cannot... I need to do that from a
> method of the model itself.
> Basically, I need to use some stored procedures to modify datas in the
> database (and these stored procs can also modify some other tables),
> thu
docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-custom-validation-to-the-admin
Karen
>
> On 31 jul, 01:45, Karen Tracey wrote:
> > On Thu, Jul 30, 2009 at 4:02 PM, Martje
> wrote:
> >
> > > Hey,
> >
> > > I've got the following cod
On Fri, Jul 31, 2009 at 8:36 AM, Michael Ralan wrote:
>
> Hi,
>
> I've searched the internet and come across a couple of pages
> ostensibly showing how this is done, but even the django documentation
> itself (sans being xampp-specific) has not met me with success.
>
> I got to the point where I'
On Fri, Jul 31, 2009 at 8:53 AM, Michael Ralan wrote:
>
>
> I get an (unhelpful) xampp error message that reads
>
>
> Microsoft Visual C++ Runtime Library
> ---
> Runtime Error!
>
> Program: C:\xampp\apache\bin\httpd.exe
>
> R6034
>
> An application has made an attempt to
On Fri, Jul 31, 2009 at 8:53 AM, Fleg wrote:
>
> Yes, I saw this case and that's what I need...
> The point is that the proposed fix implies to patch the django core
> which I would prefer to avoid.
> The other solution need to add as many lines of code as you have
> associated objects (and for a
On Sun, Aug 2, 2009 at 9:16 PM, mdsmoker wrote:
>
> when running python manage.py syncdb I got the following errors...
>
> C:\DJANGO~1\mysite>python manage.py syncdb
> Traceback (most recent call last):
> [snip]
super(Connection, self).__init__(*args, **kwargs2)
> _mysql_exceptions.Operational
On Sun, Aug 2, 2009 at 7:06 PM, Carol Hatcher wrote:
>
> Hi,
>
> I'm using Django 1.0 and 1.1, pysqlite2 (latest version), sqlite3
> (latest version) and FTS3 (latest
> version).
> I'm creating some Django models where I recreate the database tables
> as virtual tables using
> FTS3 so that we can
On Mon, Aug 3, 2009 at 3:20 AM, chexov wrote:
>
> On Aug 3, 2:46 am, joep wrote:
> > Hi all,
> >
> > I have both a project and an app I just created (using django-admin).
> > I modified the __init.py__ file in the app to execute a print
> > statement on import. But it gets executed twice when I
On Mon, Aug 3, 2009 at 2:08 PM, zayatzz wrote:
>
> Hello.
>
> I have this in my form (modelform) for birth_date field:
> birth_date = forms.DateField(('%d/%m/%Y',), label='Birth Date',
> required=False ), which overrides this in model:
>
> birth_date = models.DateField(help_text="birth date",
> v
On Mon, Aug 3, 2009 at 11:31 AM, chexov wrote:
> Clear. Thanks for the answer.
> What cause the autoreloader to reload the modules?
> Is it reacts only when source code files was changed?
>
Yes, it reloads when it detects that a source file has changed on disk, to
make development easier so you
On Mon, Aug 3, 2009 at 5:09 PM, sjol wrote:
>
> Hi,
>
> I've started to migrate my site from django 0.96.3 to 1.1 and have
> encountered a few snags but one seems particularly odd as it only
> happens in the admin and for the user-tools in "admin/templates/
> base.html" . I get a template syn
On Tue, Aug 4, 2009 at 12:26 PM, palmeida wrote:
>
> Hi,
>
> I'm running a test that fails when using Django's TestCase class, but
> not when running TestCase from unittest. This is my test class:
>
> class LoggedInUser(TestCase):
>fixtures = ['myflow']
Note fixtures will not be loaded when
On Tue, Aug 4, 2009 at 1:33 PM, Paulo Almeida
wrote:
> Hi Karen,
>
> You're right, I had some unnecessary lines that I used only for unittest. I
> commented them out now. Printing response['location'] gives me this:
>
> http://testserver/myflow/experiment/1/
>
> You're also right that there is no
On Tue, Aug 4, 2009 at 2:05 PM, zayatzz wrote:
>
> Thanks everybody.
>
> I changed this :
> birth_date = forms.DateField(('%d/%m/%Y',), label='Birth Date',
> required=False ),
>
> for this :
> birth_date = forms.DateField(('%d/%m/%Y',), label='Birth Date',
> required=False, widget=forms.D
On Aug 6, 1:56 am, Mac wrote:
> Hi,
>
> I'm new to django. When I try to upload image files, I get runtime
> errors. Here's my model:
> models.py
>
> class Images(models.Model):
> pk = models.IntegerField(primary_key=True, db_column='PK') # Field
> name made lowercase.
Unless you are going t
On Thu, Aug 6, 2009 at 5:41 PM, ristretto.rb wrote:
>
> Hello,
>
> I'm working on some unit tests using the Client that comes with
> subclassing django.test.TestCase.
>
> When run code like this
>
> response = self.client.get("/project/usecase")
>
> The object response.context is a list type obj
On Fri, Aug 7, 2009 at 6:57 AM, Shuge Lee wrote:
>
> For user could login with email or username,
> I did as what this page
> http://www.djangosnippets.org/snippets/74/
> said
>
> [snip]
>
> Then I found somthing wrong,
>
> first, admin view doesn't work well,
> http://127.0.0.1:8000/admin/logout
On Fri, Aug 7, 2009 at 8:26 AM, Asinox wrote:
>
> No body? :(
>
Just a tip -- posts like this, which essentially translate to "!!ANSWER
ME NOW!!", sent just six hours after the original question, are going to
make some people less inclined to try to help you. If you are in that much
of
On Fri, Aug 7, 2009 at 10:06 AM, Jo wrote:
>
> Ok, after a bit of tinkering I think I might have found the culprit.
>
> Seems fine in Opera, and much better in Firefox when I disable Adblock
> Plus (the only add-on I've got installed!)
>
> Still a little sluggish in Firefox, but they are big page
On Fri, Aug 7, 2009 at 2:57 PM, Daniel Roseman wrote:
>
> On Aug 7, 7:33 pm, Bobby Roberts wrote:
> > hi. does anyone have any ideas why this is not working... we are
> > using django 0.96 on this particular server.
>
> label_from_instance was added after that version. For now the only
> thing y
On Sat, Aug 8, 2009 at 7:41 PM, dmpeters63 wrote:
>
> I get the following error when accessing my MySQL database with Django
> on my localhost:
>
>/var/lib/python-support/python2.6/MySQLdb/__init__.py:34:
> DeprecationWarning: the sets module is deprecated from sets imports
> ImmutableSet
>
>
On Sun, Aug 9, 2009 at 8:16 PM, neri...@gmail.com wrote:
>
> Hello,
>
> I'm having trouble overriding save() to change the upload_to attribute
> of a FileField object. I would like the upload_to attribute to change
> depending on which user is selected from the select menu i.e., if user
> testuse
On Sun, Aug 9, 2009 at 10:23 PM, neridaj wrote:
>
> It was suggested to me in an earlier post, to override save, and
> though I've read the documentation for upload_to before I guess I
> don't quite know how to implement it without an example. Due to my
> lack of experience I don't know how to ad
On Mon, Aug 10, 2009 at 6:09 AM, nostradamnit wrote:
>
> I have a form that inherits from ModelForm, and in my view,
> form.is_valid returns true, then save() bombs out with validation
> errors?!?
>
is_valid is a method. If you are checking it "if form.is_valid:" that is
always going to return T
2009/8/10 Filip Gruszczyński
>
> Hi!
>
> I would like to run django source code tests, but as soon as I do it
> (after specifying the settings file), I get all kinds of exceptions.
> Any idea, what am I doing wrong? I post the exceptions below.
>
> grusz...@gruszczy-laptop:~/django/tests# PYTHONP
On Mon, Aug 10, 2009 at 12:00 PM, Bdfy wrote:
>
> How to add a phrase "SET DATESTYLE =" bla-bla-bla "" for everyone SQL
> query ?
>
Why do you think you want to do that? The Django ORM takes the date(time)
values coming from the database and converts them do Python date(time)
objects. You can
On Mon, Aug 10, 2009 at 1:59 PM, AG wrote:
>
> I have a field:
> revision = models.IntegerField(default=0)
> on a model.
>
> I assumed that if I set a default value for a field, I am free to
> create an object that does not set 'revision', and save it.
> However, this produces an IntegrityError:
On Mon, Aug 10, 2009 at 2:13 PM, ankit rai wrote:
> check ur db table ,is null=true present.And in ur model write
> revision = models.IntegerField(default=0,balnk=true,null=true)
> and if u donont want to change the value from 0 at all then there is no
> need to diplay it in fields
>
null=True s
On Mon, Aug 10, 2009 at 3:07 PM, neridaj wrote:
>
> when I do this it just creates a unix executable file of the same name
> selected from the drop down menu of users, i.e., if a user named
> testuser24 is selected from the user menu and there is a folder named
> testuser24 a unix executable is c
On Mon, Aug 10, 2009 at 3:52 PM, physicsnick wrote:
>
> Hello,
>
> I'm trying to use ForeignKey on a specific indexed column using the
> to_field attribute. Unfortunately syncdb seems to be outputting the
> ADD CONSTRAINT statement before the CREATE INDEX on the to_field, so
> mysql refuses to ad
On Tue, Aug 11, 2009 at 8:37 AM, dongua wrote:
>
> /django/core/servers/basehttp.py
> code:
> from django.utils._os import safe_join
>
> but there does not has any _os.py in pacakge, and after install 0.96.4
> will can't runserver
>
Ugh, indeed this is broken. Fix is being looked into.
Karen
On Tue, Aug 11, 2009 at 10:40 AM, Alex Gaynor wrote:
>
> On Tue, Aug 11, 2009 at 8:25 AM, gentlestone
> wrote:
> >
> > On 11. Aug, 15:01 h., Gustavo Henrique wrote:
> >> Try also: null=True, blank=True
> >>
> >> --
> >> Gustavo Henriquehttp://www.gustavohenrique.nethttp://
> blog.gustavohenrique
On Tue, Aug 11, 2009 at 4:14 PM, bfrederi wrote:
>
> I was browsing contrib/admin templates for the "Change User" template
> that allows you to change the user's permissions and such. I can't
> seem to find it though. Can anyone point me in the right direction?
Admin doesn't have special templa
On Tue, Aug 11, 2009 at 7:49 PM, Chris Curvey wrote:
>
> So, is there a way for me to get a form field out of a form from
> within the templating language? I'd like to do something like this:
>
> {% for field_name in field_names %}
>
> {{ field_name }}
> {% for form in formset %}
> {{ form[f
On Tue, Aug 11, 2009 at 11:57 PM, Russell Keith-Magee <
freakboy3...@gmail.com> wrote:
>
> On Wed, Aug 12, 2009 at 10:24 AM, Karen Tracey wrote:
> > On Tue, Aug 11, 2009 at 4:14 PM, bfrederi
> wrote:
> >>
> >> I was browsing contrib/admin templates for the
On Wed, Aug 12, 2009 at 7:50 AM, rekha wrote:
>
> Hi all,
> im a newbie, developing a django online address book application.
> using mod_python, apache2, postgresql for database.
>
> i have two tables in my database viz login_table and contact_table..
> login_table stores username and password..
On Wed, Aug 12, 2009 at 8:03 AM, rekha wrote:
>
> Hi all,
> im a newbie, developing online address book application using django,
> mod_python, apache2, postgresql.
>
> i have two tables in my database viz login_table and contact_table..
> login_table stores username and password.. contact table
On Wed, Aug 12, 2009 at 9:58 AM, Lokesh wrote:
>
> Hi,
>
> Need help in understanding the relation between models and delete
> operations.
> Here is my model
>
> class UserBasicDetails(models.Model):
>user_id = models.OneToOneField(User, primary_key=True,
> to_field='username', parent_lin
On Wed, Aug 12, 2009 at 10:44 AM, Lokesh wrote:
>
> Hi Karen,
>
> Provided the details below.
> Here is the Traceback and Django version is 1.2
I assume you mean SVN trunk? 1.2 is in early "what might go in it" stage,
it's far from being a released version.
>
>
> Traceback (most recent call
On Wed, Aug 12, 2009 at 12:05 PM, diogobaeder wrote:
>
> Oops, sorry... it's version 1.1 final.
>
> I'll try to create the Media subclass with the media, then, although
> it's not specified in the django-tinymce use documentation.
>
> About dpaste, I'm confused, because in another post I pasted e
On Thu, Aug 13, 2009 at 9:49 AM, Alexandru-Emil Lupu
wrote:
> HI!
> the doc is updated for the 1.1 version ..
> try this
>
> urlpatterns = patterns('',
>(r'^admin/',admin.site.root),
> )
>
> see more here: http://code.djangoproject.com/ticket/10050
>
Indeed, since the Django version shown on
On Thu, Aug 13, 2009 at 4:08 PM, Peter2108 wrote:
>
> I just ran into bug #6138 which is two years old now. There is a patch
> supplied but it has not made it into the version I am using (1.1 rc1,
> 11,332). Is there anyway to tell the Django Trace to notify me by
> email when this bug is updated
On Thu, Aug 13, 2009 at 5:01 PM, neri...@gmail.com wrote:
>
> Hello,
>
> Do I need t convert the value returned from Max() to an int, or am I
> using it incorrectly? I'm getting this template error:
>
> Caught an exception while rendering: (1064, "You have an error in your
> SQL syntax; check the
On Thu, Aug 13, 2009 at 8:25 PM, Nicolas Aggelidis wrote:
>
> hi to all, i am a real newbie when it comes to django(4days).
> I have the following question:
>
> Let's say i have the following files
>
> #views.py
> from django.contrib.auth.models import User
>
>
> def aview(request):
>a_user =
On Fri, Aug 14, 2009 at 4:15 AM, quant wrote:
>
> hi
>
> so i read and tryed all your idears here, but nothing of these is
> working... i'am running Django version 1.0.2 final
>
> and my settings.py is looking like this:
>
> http://dpaste.com/80427
>
> and my urls.py ist this:
>
> http://dpaste.c
On Sat, Aug 15, 2009 at 4:02 AM, Peter2108 wrote:
> >
> > As for why the patch has not been checked in -- the person who supplied
> the
> > patch subsequently marked the ticket as "patch needs improvement" noting
> > that the patch addressed only one aspect of the reported problem.
>
> True - but
On Sun, Aug 16, 2009 at 12:24 PM, bobhaugen wrote:
>
> 1, I ran into this anomaly in updating a decimal field:
>
> The field:
>
>remaining = models.DecimalField(max_digits=8, decimal_places=2,
> default=Decimal("0"))
>
> The code that failed:
>
> 658 self.remaining -= qty
> 659
On Sun, Aug 16, 2009 at 1:28 PM, rmschne wrote:
>
> I'm extracting data from a database and then cross-tabbing the data
> (with some Python) code to create a list of dictionary data. Because
> the key names are derived from data in the database, and the database
> is composed of unicode text, th
On Sun, Aug 16, 2009 at 9:33 PM, Mike Dewhirst wrote:
>
> There's something here I'm not seeing. If anyone can point out the docco
> which refers I would be most grateful ... I'm using py2.6 and Django
> from svn head.
>
> The template below displays the title correctly but claims "No meta
> dicti
On Mon, Aug 17, 2009 at 11:10 AM, Marek Wawrzyczek wrote:
>
> Hi,
>
>
> I've got an application called myapp
>
> In the main folder of django project there is initial_data.json file
> containing initial data for the application
> I also have file "simplefix.json" situated in myapp/fixtures
> conta
On Wed, Aug 19, 2009 at 6:47 PM, A Melé wrote:
>
> Is there any way to perform an accent insensitive match when you are
> filtering a queryset? I'm looking for something like iexact (http://
> docs.djangoproject.com/en/dev/ref/models/querysets/#iexact) but accent-
> insensitive. Is there any simp
On Wed, Aug 19, 2009 at 1:06 AM, Jonathan wrote:
>
> I am trying to write a view that will take a file uploaded via form,
> pass it to an ftp method and save it on an ftp server. However I am
> running into problems when with the file object that gets passed to
> the ftp method.
>
> This is my v
2009/8/19 Nikola Smiljanić
>
> Django-1.1.tar.gz
> MD5: b2d75b4457a39c405fa2b36bf826bf6b
>
> Same thing. File __init__ in django/utils starts exactly like
> traceback says:
>
> Django-1.1/Django was originally created in late 2003 at World Online,
> the Web division
> of the Lawrence Journal-Worl
On Thu, Aug 20, 2009 at 2:19 PM, ringemup wrote:
>
> I'm running the test listed below, and the test client is submitting a
> request to /test2/ despite the follow=False parameter in
> self.client.get() -- am I doing something stupid?
>
>def test_child_redirect(self):
>re
On Mon, Aug 24, 2009 at 2:46 AM, Mikoskay wrote:
>
> Hi,
>
> Is there any equivalent of C++ union construction for my Django
> models? I know I can do it at low-level, but I hope it's not
> necessary. For example: there's a model Transaction with attribute
> Client pointing to model IndividualCli
On Mon, Aug 24, 2009 at 8:17 AM, Gungor wrote:
>
> I have register() takes at most 3 arguments (4 given) error with these
> codes.
>
> from randevu.rts.models import Randevu
> from django.contrib import admin
> from datetime import datetime
>
> class Admin_Panel(admin.ModelAdmin):
>list_d
On Mon, Aug 24, 2009 at 7:01 PM, MIL wrote:Since I had
the pleasure of getting help in here once I will try
> again :o)
>
> I have read about the mark_safe, and I would like to use it, but it
> just returns the value "False"
>
> What am I doing wrong?
>
> i my view:
> from django.utils.safestring
jOn Tue, Aug 25, 2009 at 12:30 AM, Fergus wrote:
>
> Running Django 1.1, and I get funny results in testing which indicate
> ordering.
>
> Two applications: A and B.
>
> A requires that you set settings.A_SETTING in your project's
> settings.py, which refers to an interface. It has a test case th
On Tue, Aug 25, 2009 at 7:37 PM, Sonal Breed wrote:
>
> Hello all,
>
> I am trying to have enchant package on server machine. Just using easy-
> install PyEnchant did not work as I get following errors when I try to
> import enchant package in python interactive window:
> [snip]
> For that, it se
2009/8/26 Georg Göttlich
>
> Hello everybody,
>
> I'm not sure if this is a bug in django or if it works as designed.
> That's why I'm asking here first, before filing a bug.
>
> When using annote() on a model, it's date values become unicode
> values.
>
> Is this normal behavior and if so, is th
On Wed, Aug 26, 2009 at 5:47 AM, Arul wrote:
>
> But i need to use it with the django using the "manage.pt dbshell"
> command.
> I tried adding the sqlite.exe path to the windows system path. It
> didnt work.
>
That's how to do it. Note that changing the system path via the GUI does
not affect
On Wed, Aug 26, 2009 at 6:49 AM, Peter2108 wrote:
>
> I'm trying to help fix but #6138. I've done a patch for the code and a
> separate test.py module. But someone ('Alex') added a request to
> "Please put the tests in the same diff as the patch itself, it is
> possible to use svn add locally". I
On Wed, Aug 26, 2009 at 9:11 AM, Arul wrote:
>
> I tried with reopening the command prompt after setting the path via
> GUI and
> also I tried with setting the path in the active command prompt, but
> it didnt work.
> Anyway if i give "sqlite3" in the command prompt, it gives me the
> sqlite prom
On Wed, Aug 26, 2009 at 3:33 PM, Ryan K wrote:
>
> This is where it says the problem is in the template:
>
> Template error
>
> In template /usr/local/lib/python2.6/dist-packages/django/contrib/
> admin/templates/admin/base.html, error at line 30
> Caught an exception while rendering: unsupported
On Thu, Aug 27, 2009 at 2:21 PM, Gregor Müllegger wrote:
>
> Hi,
>
> i have an issue with the standard test runner of django. If i try to
> run the testsuite of an app everything gets executed in the right
> fashion. While all executed tests pass without errors, the test method
> "test_string_rege
On Fri, Aug 28, 2009 at 4:34 AM, Phil wrote:
>
> Guys,
>
> I have this error in my template when rendering my view: "Caught an
> exception while rendering: Reverse for 'entry_archive_month' with
> arguments '()' and keyword arguments '{'month': 8, 'year': 2009}' not
> found."
Your urlpattern fo
On Fri, Aug 28, 2009 at 2:49 AM, Léon Dignòn wrote:
>
> Hi,
>
> I don't exactly understand the difference between ugettext() and
> ugettext_lazy(). I read the documentation and I've read that
> ugettext_lazy translates a string on access. Sounds more efficient.
> But why do I get this error on th
On Fri, Aug 28, 2009 at 7:01 AM, Tracy Reed wrote:
> Do I
> have to give django an smtp server address or anything else to enable
> it to report errors and tracebacks somewhere?
>
Yes, unless you are running an SMTP server on the same machine you need to
set EMAIL_HOST to point to one, and set w
On Aug 28, 3:19 am, Jigar wrote:
> Hi All,
>
> I am trying to add the '%d-%m-%Y' format in DateTimefield. As django
> does not support this format so when I add different date formats, it
> gives "invalid date/time" error in django console.This error occurs
> because the form is not valid(form.is
On Aug 28, 7:57 am, "s.molinari" wrote:
> Hiya!
> I tried to access the django admin page and I got that error. How do i
> fix it? I am stuck...
> I am new at using django as well... just to let you know ;)
>
> [snip]
> Exception Type: TemplateSyntaxError at /admin/
> Exception Value: Caught an e
On Fri, Aug 28, 2009 at 10:20 AM, Bryan wrote:
>
> So, my "solution" was to duplicate this logic in my admin class, and
> it works just fine now. Anyone have any better ideas?
Base your admin class on the UserAdmin class. Inherit whatever you need from
it and override whatever you want to cust
801 - 900 of 2586 matches
Mail list logo