Woah! In response to Adrian's "make us proud" comment I whipped up a
django shirt to wear during the hackday. Check it here
http://flickr.com/photos/untorn/254672411/
I'm going to try to get photographed as much as possible with this
thing on!
--~--~-~--~~~---~--~---
Thanks, again, to everyone who has been looking in to this issue.
Russ' checkin (r3830) fixes the admin interface crash (w00t) and I am
now able to add my Event objects with no problems.
However, I am still getting the "iteration over non-sequence" error
with the same model:
Full Model: ht
On Thu, 2006-09-28 at 02:38 +, Gary Wilson wrote:
> Malcolm Tredinnick wrote:
> > You also need to have the model in the __all__ export of
> > models/__init__.py, otherwise it doesn't get imported into the
> > appropriate namespace as part of "import myapp.models".
>
> Well, adding the model
On Thu, 2006-09-28 at 02:42 +, Gary Wilson wrote:
> Gacha wrote:
> > I have two model files, the first is:
> > ---
> > from proj.base.models import Choice
> >
> > class User(meta.Model):
> > ...
> > param = model.Forei
May be max to 5 was sufficient for most of cases.-- Shaun Li
--~--~-~--~~~---~--~~
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 fro
Gacha wrote:
> I have two model files, the first is:
> ---
> from proj.base.models import Choice
>
> class User(meta.Model):
> ...
> param = model.ForeignKey(Choice)
>
>
Malcolm Tredinnick wrote:
> You also need to have the model in the __all__ export of
> models/__init__.py, otherwise it doesn't get imported into the
> appropriate namespace as part of "import myapp.models".
Well, adding the model modules to __all__ doesn't work either (isn't
this for when you do
Any idea? Is not clear the question?
--~--~-~--~~~---~--~~
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 emai
... and feel free to email me any specific questions about my patch.
--~--~-~--~~~---~--~~
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 unsubs
Hi Tom,
You've described about 14 things in this email, so it's not really clear
what problem you are trying to debug.
On Wed, 2006-09-27 at 17:50 +0100, Tom Smith wrote:
> My service provider requires it for SMTP... I have set the EMAIL_PORT
> but the email doesn't seem to go...
Do you mean
On Wed, 2006-09-27 at 16:20 +, rp wrote:
> Does anyone have an example of using
> the mod_python profiling support:
>
> "django.core.handlers.profiler-hotshot"
>
> It's mentioned on this page:
> (http://code.djangoproject.com/wiki/ProfilingDjango)
>
Never used it (yet), but from reading th
On Wed, 2006-09-27 at 14:06 +, Gary Wilson wrote:
> Malcolm Tredinnick wrote:
> > When you have models in a deeper structure like this, you need to
> > explicitly tell the model what the app name is. You do this as follows:
> >
> > class SimpleTest(models.Model):
> > ...
> >
On 28 Sep 2006, at 00:56, Steven Armstrong wrote:
>
> On 09/27/06 23:49, Tom Smith wrote:
>> Thanks, it all seems to work except for when I store a list of
>> objects in the database and try to get it out I get a string (that
>> looks like a list of objects)
>>
> products = Product.objects.f
On 28-Sep-06, at 2:52 AM, [EMAIL PROTECTED] wrote:
> I am a total Noob when It comes to Django and was wondering if
> there is
> any way that I can get it running on my XP machine with relative ease
> or if its better for me to install UBUNTU or some other Linux flav?
easier on yourself if yo
On 27-Sep-06, at 7:24 PM, Marco Amato wrote:
> $ django-admin.py createsuperuser name [EMAIL PROTECTED]
you cant have '@' in the user name
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~---~--~~
You received this mes
This was answered here last month:http://groups.google.com/group/django-users/browse_frm/thread/f0e7d503401a7186/1d378aa769159983?#1d378aa769159983As Jay mentioned, you need to use the object value, not the formfield. The date filter requires a datetime instance, which the formfield is not and so
On 09/27/06 23:49, Tom Smith wrote:
> Thanks, it all seems to work except for when I store a list of
> objects in the database and try to get it out I get a string (that
> looks like a list of objects)
>
> >>> products = Product.objects.filter(title__contains='Dog')[:10]
> >>> sub = Subscr
I actually just got python and django running on my Windows XP box no
problem. I kept notes of my setup, here they are, hopefully you find
them helpful.
1. Install Python 2.4
http://www.python.org/ftp/python/2.4.3/python-2.4.3.msi
I put it in the default location of c:\Python24. If you don't
> Using the 'date' filter, you can format the output however you want,
> within templates.
>
> For example, to format a date as "September 17, 2006", you would do
> the following in a template:
>
> {{ object.pub_date|date:"F d, Y" }}
thanks for reply, but will it work on forms?
Right now I get:
On 9/27/06, viestards <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
>
> As far as I know date format is hardcoded into Django as -MM-DD.
> Is there any way to change it globally?
> If not what is best way to change date format in forms to other? For
> now, I change date format in view from dd.mm
Hi everyone!
As far as I know date format is hardcoded into Django as -MM-DD.
Is there any way to change it globally?
If not what is best way to change date format in forms to other? For
now, I change date format in view from dd.mm. but I doubt it's the
best way to do such things.
Viesta
Thanks, it all seems to work except for when I store a list of
objects in the database and try to get it out I get a string (that
looks like a list of objects)
>>> products = Product.objects.filter(title__contains='Dog')[:10]
>>> sub = Subscription(email="[EMAIL PROTECTED]", name="Tom Smit
you're right, that's better. thank you!!!
--~--~-~--~~~---~--~~
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
I am a total Noob when It comes to Django and was wondering if there is
any way that I can get it running on my XP machine with relative ease
or if its better for me to install UBUNTU or some other Linux flav?
I am looking for a CMS to learn and I have decided that Django is the
one because it of
I am a total Noob when It comes to Django and was wondering if there is
any way that I can get it running on my XP machine with relative ease
or if its better for me to install UBUNTU or some other Linux flav?
I am looking for a CMS to learn and I have decided that Django is the
one because it of
On 9/26/06, Gábor Farkas <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i many times use the object's content-type's "model" attribute,
> when generating URLs for certain actions.
>
> and i many times need to get the given object's content-type
> in the template.
>
> unfortunately i haven't found any way
Of course you have to "import os.path"On Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thum
See belowOn Sep 25, 2006, at 7:03 PM, zenx wrote:I needed to make this and I hope it helps some people there. Features:- Generate thumbs from ImageFields when creating the models(file.jpg -> thumbnail saved as: file.thumbnail.jpg)- Showing thumbs in admin- Deleting thumbs when deleting the objectIn
Nope, it didn't work :( but thx for a try
--~--~-~--~~~---~--~~
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
In delete function use:
super(MyClass, self).delete() instead of super(Artista, self).delete().
I think everything else is ok.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
My service provider requires it for SMTP... I have set the EMAIL_PORT
but the email doesn't seem to go...
My message content is HTML (is this ok?)
My last error is... Connection unexpectedly closed, but I've also
had...SMTP AUTH extension not supported by server (for gmail)... (60,
'Operat
On 09/27/06 16:45, Tom Smith wrote:
> Hello
>
> currently I am storing a list of python instances in the
> request.session but would like to make a persistent copy of this list
> and store it permanently...
>
> I don't want to just make the timeout of the session a long time in
> the futu
On 09/27/06 16:03, Gacha wrote:
> I have two model files, the first is:
> ---
> from proj.base.models import Choice
>
> class User(meta.Model):
> ...
> param = model.ForeignKey(Choice)
>
> ---
Does anyone have an example of using
the mod_python profiling support:
"django.core.handlers.profiler-hotshot"
It's mentioned on this page:
(http://code.djangoproject.com/wiki/ProfilingDjango)
Thanks!
Raman
--~--~-~--~~~---~--~~
You received this message becau
I like your forum design.
I only have reservations because I've seen the same thing happen in a
number of projects -- splitting and distributing information across too
many sites. Django has a central Web site, with comment mechanism, and
Django-related RSS aggregation, and a number of (pretty ac
On 9/27/06, Enrico <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I got a little confused about the auth docs.
> Both is_staff and is_active designates that a user can log into the
> admin, so... what's the real difference?
My (limited) understanding is that a User who `is_active` is a user in
the sy
I noticed the same problem some time ago. I modified the
build_doucmentation.py script. I added the following method to class
DjangoHTMLTranslator(html4css1.HTMLTranslator to get it working
properly:
def visit_section(self, node):
self.section_level += 1
if node['ids']:
I had the same reaction at first... "this has to be a transaction
issue", but I decided to give it a try.
I'm working from trunk, and here's what I did to recreate the problem:
==
{{ In manage.py shell }}
>>> a = Foo.objects.all()
>>> a
[< Foo: Foo 5>, < Foo: Foo 6>, < Foo: Foo 7>, < Foo
I think it asks you if you want to create a superuser if you type -
manage.py syncdb
--~--~-~--~~~---~--~~
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@googlegro
Thanks to everyone for the replies here.
Just to be clear: I don't think that this is a transactions issue. The
Django-side part of this problem doesn't have transactions enabled, and
the MySQL-side is just a direct transactionless operation on the DB that
can be seen immediately by other cl
Yes, I already know that :)
--~--~-~--~~~---~--~~
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 email to [EMA
Hello
currently I am storing a list of python instances in the
request.session but would like to make a persistent copy of this list
and store it permanently...
I don't want to just make the timeout of the session a long time in
the future, because each user could have multiple lists of o
I needed to make this and I hope it helps some people there. Features:
- Generate thumbs from ImageFields when creating the models
(file.jpg -> thumbnail saved as: file.thumbnail.jpg)
- Showing thumbs in admin
- Deleting thumbs when deleting the object
In your models.py:
=
Evening all,
I was looking at filterspecs last night because I was trying to see if
RelatedFilterSpec could display the field's verbose name and not the
relation's meta verbose_name (ala f.rel.to._meta.verbose_name). So
poking around in the source for a while I came up with the following
solution
[EMAIL PROTECTED] wrote:
> You need to pass the model name as a string:
> user = model.ForeignKey("User")
Actually i'm seeing you knew that already, yes to use the technique
above you need to have all models in the same file.
Lorenzo
--~--~-~--~~~---~--~~
You r
Gacha wrote:
> user = model.ForeignKey(User)
You need to pass the model name as a string:
user = model.ForeignKey("User")
Lorenzo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
On 9/26/06, Sandro <[EMAIL PROTECTED]> wrote:
> Any fellow djangonauts going to be at the hackday? I'm going, hope to
> see some of you there!
I was wanting to go, but I've got a previous engagement for that
weekend. Have a good time, and make us proud!
Adrian
--
Adrian Holovaty
holovaty.com
Malcolm Tredinnick wrote:
> When you have models in a deeper structure like this, you need to
> explicitly tell the model what the app name is. You do this as follows:
>
> class SimpleTest(models.Model):
> ...
> class Meta:
> app_label="appfolder"
>
> This
I have two model files, the first is:
---
from proj.base.models import Choice
class User(meta.Model):
...
param = model.ForeignKey(Choice)
---
and the
nope - it is what you gave when you did createsuperuser - you *did*create the superuser?
No, I doest find the createsuperuser comand ..$ django-admin.py createsuperuser name [EMAIL PROTECTED] passwordError: Your action, 'createsuperuser', was invalid.
Run "/usr/bin/django-admin.py --help" for help.
Hi all,
I got a little confused about the auth docs.
Both is_staff and is_active designates that a user can log into the
admin, so... what's the real difference?
I've made some tests combining active, staff and superuser:
- Only active: no login
- Only staff: login but no default permissions
-
the problem is corrected using:
editable=False in created_by and updated_by,
i have also updated the wiki.
cheers,
Ganesh.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
On 27-Sep-06, at 6:36 PM, Marco Amato wrote:
> The password and the user is tha same of the mysql databases, right ?
nope - it is what you gave when you did createsuperuser - you *did*
create the superuser?
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~-
HI !I am a newbie , my roblem is that I can login in the admin panel http://127.0.0.1:8000/admin/The password and the user is tha same of the mysql databases, right ?
The same that in setting.py are DATABASE_USER and DATABASE_PASSWORD !Thanks and sorry for the stupid question
Bye
--~--~
Gábor Farkas wrote:
> hi,
>
> i've just checked and SlugField does not imply unique=True.
>
> i somehow always assumed that it does.
>
> so before i go and add the unique=True to all my SlugFields,
>
> is there any reason to have non-unique SlugFields?
>
> as far as i understand, SlugFields are mo
Luke Plant wrote:
> On Wednesday 27 September 2006 08:09, Gábor Farkas wrote:
>
>> i have the following problem:
>>
>>
>> in a page-template, i have to display the first 100 characters of
>> some html content.
>>
>> the problem is, that if i simply slice the html-content as if it were
>> plaintex
Hi, i am using http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser to automatically add updated_by and created_by info,
class Entry(models.Model): name = models.CharField('name', maxlength=100)
content = models.TextField('content')
created_by = models.ForeignKey(User, relat
Thanks James.
On 9/27/06, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 9/27/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:
> > Well for the first category it doesn't. Has anyone come across this
> > before? If so how did you solve it? Thanks for your time.
>
> http://www.djangoproject.com/doc
On Wed, 2006-09-27 at 09:09 +0200, Gábor Farkas wrote:
> hi,
>
> i have the following problem:
>
>
> in a page-template, i have to display the first 100 characters of some
> html content.
>
> the problem is, that if i simply slice the html-content as if it were
> plaintext, then sometimes so
On Wed, 2006-09-27 at 09:18 +0200, Gábor Farkas wrote:
> hi,
>
> i've just checked and SlugField does not imply unique=True.
>
> i somehow always assumed that it does.
>
> so before i go and add the unique=True to all my SlugFields,
>
> is there any reason to have non-unique SlugFields?
>
> a
I found a way.
Using the extra() directive, I create another field, e.g. is_new.
I then can use this as a sort criteria. There's no need to
output this field:
list = Device.objects
.extra(select={'is_new': 'name LIKE "New Device%%"'})
.order_by('-is_new', 'parent', 'name')
-
Greg Plesur schrieb:
> Hi all,
>
> I'm a new subscriber to this list, and am having an issue that I'm
> hoping you can help me with (I also posted this as a trouble-ticket,
> because I'm not seeing any references to this issue anywhere and it
> seems buggy):
>
> It looks like my models are ca
Filipe schrieb:
> works perfectly. Haven't detected any side effect yet.
> thanks.
Good to know! Perhaps you should file a ticket that
context_processors.auth should behave better when there's no
session. If you do, please include a link to this thread.
Michael
--~--~-~--~~-
On Wednesday 27 September 2006 08:09, Gábor Farkas wrote:
> i have the following problem:
>
>
> in a page-template, i have to display the first 100 characters of
> some html content.
>
> the problem is, that if i simply slice the html-content as if it were
> plaintext, then sometimes some tags ge
Holger Schurig schrieb:
> I have a list that looks like this:
>
>list = Device.objects.all().order_by('parent', 'name')
>
> and I use this list in a view. Works fine. However, I want to
> have the items with a special name at the top of the generated
> list. I can easily create two lists,
On Thursday 21 September 2006 21:56, Kr0n wrote:
> ibson wrote:
> > Apologiz for saying it worked!!! It doesn't work after some times
> > even after restarting apache every 15 minutes!!!
> > So the question is always there. And it seems I am not the only to
> > hav this problem
>
> Yep. I've also
On 9/27/06, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:
> Well for the first category it doesn't. Has anyone come across this
> before? If so how did you solve it? Thanks for your time.
http://www.djangoproject.com/documentation/models/m2o_recursive/
--
"May the forces of evil become confused o
I am trying to create a class I call "Category" that will contain
Items, these Categories can be nested within each other (much like
eBay or Amazon). I tried to use the following menthod to do that but
the administration interface wont let me create entries because the
ForeignKey must have a value
Greg Plesur wrote:
> But I would _not_ expect to see this:
>>>> x=SomeModel.objects.all() # This gets a QuerySet into x
>>>> value = x[0] # Some operation to actually fill x's cache
>>>> print len(x) # Verify that there are some entries in the table
>2
>
>>>> y=SomeMode
James Bennett wrote:
> Default values are *only* filled in when the field is displayed on an
> end-user form. If you don't want to display a field, but still
> automatically fill it in, you have two options:
>
> 1) Have your view code fill it in before doing manipulator validation
> 2) Set 'blank
Michael Radziej wrote:
> You need to copy the specific settings from
> django.conf.global_settings to your settings module, it is:
>
> TEMPLATE_CONTEXT_PROCESSORS = (
> 'django.core.context_processors.auth',
> 'django.core.context_processors.debug',
> 'django.core.context_processors
Hi Gábor,
I think it's just for making it more flexibile, but in the most cases
you will use unique=True in your SlugFields.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
I use build_documentation.py(
http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/docs/parts/build_documentation.py )
to build django docs. It's no error, but when I view html,I found :
21 22 Installation 23 Authentication support is bundled as a Django applic
I have a list that looks like this:
list = Device.objects.all().order_by('parent', 'name')
and I use this list in a view. Works fine. However, I want to
have the items with a special name at the top of the generated
list. I can easily create two lists, which have the two items in
it:
li
hi,
i've just checked and SlugField does not imply unique=True.
i somehow always assumed that it does.
so before i go and add the unique=True to all my SlugFields,
is there any reason to have non-unique SlugFields?
as far as i understand, SlugFields are mostly used in URLs which
imho imp
hi,
i have the following problem:
in a page-template, i have to display the first 100 characters of some
html content.
the problem is, that if i simply slice the html-content as if it were
plaintext, then sometimes some tags get cut in the half etc...
so, is there a way to do this slicing w
76 matches
Mail list logo