# core/models.py
from django.db import models
from django.contrib.auth.models import User
import ridgemoor.msg.models
from time import strftime
class Message(models.Model):
to = models.ForeignKey(User, related_name = "messages_received")
sender = models.ForeignKey(User, related_name =
On Jan 22, 6:18 pm, Carl Karsten <[EMAIL PROTECTED]> wrote:
> Carl Karsten wrote:
> > symlinks. I use them. I bet the default is for Apache not to follow them.
> > that
> > could be my problem. or at least one of them.
>
> > That is enough to start a wiki page.
>
> > I am going to divide it in
I'd like to be able access the individual radio buttons of a
ChoiceField using the RadioSelect widget directly from a template.
After quite a bit of searching, I don't think this is currently
possible with newforms but I was wondering if anyone knows of
something I missed.
An earlier workaround (
> 2. file uploads are the most vital part of freesound. While I have used
> tramline successfully with splice, it still feels like a relatively ugly
> solution to me (especially as you need to patch mod_python in order for
> it to work). As far as I know streaming file uploads have been on the
> t
Am Dienstag, 22. Januar 2008 07:31 schrieb Chris:
> Hello I just opened a new project on google code and I was wondering
> if there was anyone that would be willing to help me work on this
> project in their free time. Check it out. http://code.google.com/p/megal/
> Please give me feed back too. H
Hi all,
I have a model with a date field. When I try to filter based on its
months like:
q1 = Event.objects.filter(start_date__month__in=[1, 2, 3])
I get an "unable to resolve field 'start_date__month'" error.
Is this usage not supported or is this a bug?
Any ideas?
Thanks,
oMat
--~--~
Correct me if I'm wrong, but can't jinja be pretty much used as a direct
drop in for django?
Ben
On 22/01/2008, Jeff Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I stress again that I don't know a ton about the django template system,
> (or any for that matter)
> That being said, I will proc
Hello all,
James Bennett wrote:
> The fix has been in Django since the day it was publicly released:
> 'raw_id_admin=True'. You think World Online runs sites with tens of
> thousands of users and hundreds of thousands of stories without
> running into that? ;)
Ah... Those details one tends to sk
You have two underscores after start_date in start_date__month,
probably that is the problem. Change this to start_date_month, (one
underscore) and see if it works.
On Jan 22, 2:15 pm, omat <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a model with a date field. When I try to filter based on it
Right now model inheritance doesn't work properly in Django. It's a
goal for the future, but right now it's unsupported. Considering all
you have to do is add an IntegerField() and an 'ordering' property to
the inner Meta class, I don't think it's worth attempting to hack
together a MixIn anyway
Hi All!
All my sources are in the /home/sector119/devel/eps_src/eps
All applications are in /home/sector119/devel/eps_src/eps/apps
And all my templates are in /home/sector119/devel/eps_src/templates
dir which contains app_name dir which contains templates for that
application!
Where I have to pu
ok, I finally got open-flash-chart to work.
1. create an xhtml-file and insert (something like) this:
http://fpdownload.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=8,0,0,0"
width="600"
height="400"
id="graph-2"
align="middle">
On 22-Jan-08, at 4:11 PM, sector119 wrote:
> All my sources are in the /home/sector119/devel/eps_src/eps
> All applications are in /home/sector119/devel/eps_src/eps/apps
> And all my templates are in /home/sector119/devel/eps_src/templates
> dir which contains app_name dir which contains templat
omat wrote:
> Hi all,
>
> I have a model with a date field. When I try to filter based on its
> months like:
>
> q1 = Event.objects.filter(start_date__month__in=[1, 2, 3])
>
> I get an "unable to resolve field 'start_date__month'" error.
>
> Is this usage not supported or is this a bug?
afaik
I want to have the one of the field for my form have a specific css
class. But if I do something like,
widget = forms.TextInput(attrs = {'size':60, 'class':'main'}
The textInput, and not its associated label gets the class. How can I
specify the class for label?
--~--~-~--~~---
yes, "start_date" is the date field.
shabda, I want to filter by the month attribute of a date field and it
works for exact match. In a filter, a date field's year, month and day
attributes can be used like filter(start_date__month=1).
I think filter(start_date__month__in=[1, 2, 3]) format shoul
On 22-Jan-08, at 5:45 PM, shabda wrote:
> I want to have the one of the field for my form have a specific css
> class. But if I do something like,
> widget = forms.TextInput(attrs = {'size':60, 'class':'main'}
> The textInput, and not its associated label gets the class. How can I
> specify the
I never got it working back then. I was thinking of bringing up a test Apache
box right from the start, but it seemed more important to get a prototype site
functioning. Now I am ready to actually use Apache, so here we are.
Thanks for your efforts - and like my page says: rumors. I will not
My template is
{% for field in form %}
{{ field.label_tag }}
{{field}}
{% if field.help_text
%}{{ field.help_text }}{% endif %}
{% if field.errors %}{{ field.errors }}{% endif %}
{% endfor %}
How can I check the name of the current field?
On Jan
On 22-Jan-08, at 6:35 PM, shabda wrote:
> My template is
>
> {% for field in form %}
>
> {{ field.label_tag }}
> {{field}}
> {% if field.help_text
> %}{{ field.help_text }}{% endif %}
> {% if field.errors %} class="myerrors">{{ field.errors }}{% endif %}
On Jan 21, 4:22 pm, Bram - Smartelectronix <[EMAIL PROTECTED]>
wrote:
> 2. file uploads are the most vital part of freesound. While I have used
> tramline successfully with splice, it still feels like a relatively ugly
> solution to me (especially as you need to patch mod_python in order for
> it
Graham Dumpleton wrote:
> On Jan 22, 6:18 pm, Carl Karsten <[EMAIL PROTECTED]> wrote:
>> Carl Karsten wrote:
>>> symlinks. I use them. I bet the default is for Apache not to follow them.
>>> that
>>> could be my problem. or at least one of them.
>>> That is enough to start a wiki page.
>>> I a
I have field in a form like,
foo = forms.DateField(required = False, input_formats = '%m/%d/%Y')
Now when I try to enter a date like 10/25/2006 I am getting an error
string index out of range . Full stack trace,
Traceback:
File "C:\Python24\lib\site-packages\django\core\handlers\base.py" in
get_r
theres line of code in tutorial:
Poll.objects.all().order_by('-pub_date')[:5]
this gives 5 Poll objects. I wonder if this is efficient way of
getting them? Does django get all rows first and then sort it and then
slice it to get only 5? Or is it optimized somehow. The question is if
its simplifi
This is the right way to do so. Querysets are lazy. Only the rows
needed will be fetched in this example.
code_berzerker wrote:
> theres line of code in tutorial:
>
> Poll.objects.all().order_by('-pub_date')[:5]
>
> this gives 5 Poll objects. I wonder if this is efficient way of
> getting them? D
On Tuesday 22 January 2008 16:16:34 code_berzerker wrote:
> theres line of code in tutorial:
>
> Poll.objects.all().order_by('-pub_date')[:5]
>
> this gives 5 Poll objects. I wonder if this is efficient way of
> getting them? Does django get all rows first and then sort it and then
> slice it to g
On Jan 22, 2008 8:16 AM, code_berzerker <[EMAIL PROTECTED]> wrote:
> this gives 5 Poll objects. I wonder if this is efficient way of
> getting them? Does django get all rows first and then sort it and then
> slice it to get only 5? Or is it optimized somehow. The question is if
> its simplified fo
Hi All,
I'm running into a situation that completely baffles me. I am
writing unit tests for my Django view that accepts JSON and returns
JSON back to the client. Right now, the client is the Django unit
test client. What I've done is in my test, I create a Django model
object, let's call i
> Server-side code
> -
> .
> json_data = serializers.deserialize("json", request.POST['data'])
> print "\n" + str(sjson_data)
> .
Typo above. Should be:
print "\n" + str(json_data)
--~--~-~--~~~---~--~~
You received this message be
On Jan 22, 2008 3:00 AM, Carl Karsten <[EMAIL PROTECTED]> wrote:
> # core/models.py
> from django.db import models
> from django.contrib.auth.models import User
> import ridgemoor.msg.models
> from time import strftime
>
> class Message(models.Model):
> to = models.ForeignKey(User, related_nam
On Jan 21, 2008 8:30 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote:
> i wonder if there is any way to have Macros in django templates
> similar to what Jinja has (http://jinja.pocoo.org/)?
No.
The Jinja project was started specifically to add additional
programming constructs that the Django tem
thanks, karen
i didnt know the dynamic intial values yet. django surprises me over
and over again :-)
lowshoe
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email t
I have been setting up a site with LiteSpeed serving Django. the
basics work, but I end up with an error when requesting http://mysite.com/.
TypeError at 'NoneType' object is not iterable at django/django/core/
handlers/base.py in get_response, line 73.
It seems very related to the ticket 3414,
This works. Thank you.
On Jan 20, 11:33 am, Jonathan Buchanan <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> > To support testing (using Selenium), I would like to invoke fixtures
> > from regular Django views. More generally, I want to be able to
> > perform test setup and teardown o
Thank you, Alex. Your response was very helpful.
On Jan 20, 12:21 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Try this code:
>
> from django.core.management.commands.loaddata import Command
>
> def my_view( request, fixture_label1, fixture_label2 )
> Command().handle( fixture_label1, fixt
I have an agreement model that can be "amended" using a relationship
to itself. I need to get a queryset of the active agreements for a
certain time period but the following query does not work i believe
because of the way the Django orm handles joins. Can this query be
expressed using the Django
Thanx all for explanations :)
--~--~-~--~~~---~--~~
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
hi all,
I am a user from china, nice to meet u all.
I have a question, hope you can help me out.
and the question is about how to load my pages into template.
my pages are all encoded in form gb2312/gbk.
but when i load it to Template, it raise exceptions.
can i solve this without change the encod
Hi,
As others have aptly told you, Querysets are executed in a lazy
fashion. I would like to add that Django resolves the array slicing
syntax (e.g. queryset[:5]) to the LIMIT clause in SQL. So, when your
Poll Queryset is executed (lazily, of course), your DB will send only
the 5 rows of data ove
On Jan 20, 2008 11:58 PM, Dennis <[EMAIL PROTECTED]> wrote:
>
> This works from the standpoint of getting back to the "process.html"
> template with the new Context object selected on the original form.
> However, since this is using render_to_response instead of a redirect,
> the URL on the user'
Karen Tracey wrote:
> On Jan 22, 2008 3:00 AM, Carl Karsten <[EMAIL PROTECTED]> wrote:
>
>> # core/models.py
>> from django.db import models
>> from django.contrib.auth.models import User
>> import ridgemoor.msg.models
>> from time import strftime
>>
>> class Message(models.Model):
>> to = mo
On Jan 21, 8:28 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 21-Jan-08, at 10:32 PM, LRP wrote:
> this is an unsafe default for you to get things working. Now
> experiment with using password or md5 or ident for authentication
>
Thanks, Kenneth,
I've got it working with md5.
One of t
2008/1/22 calidion <[EMAIL PROTECTED]>:
> hi all,
> I am a user from china, nice to meet u all.
> I have a question, hope you can help me out.
>
> and the question is about how to load my pages into template.
> my pages are all encoded in form gb2312/gbk.
> but when i load it to Template, it rais
Let's say I have a model with an integer value. I'd like to increment
that value.
Multiple processes would like to increment that value.
Does the transaction middleware properly protect against this?
Example:
Processes P1, P2, model instance m, with m.val
- P1 grabs the object : m = MyModel.ob
I need InnoDB for MySQL to do row locking in hopes of this working
efficiently.
Is InnoDB on by default in MySQL 5.0?
How can I tell?
I need to create a my.cnf to set it up as the engine to use if it
isn't active, right? Any good resources on that?
Thanks,
Ivan
--~--~-~--~~
Hello,
As far as I know, InnoDB is only the default storage engine for MySQL
on Windows. For UNIX/Linux, it is still MyISAM. Changing that should
be as simple as adding the following line to you my.cnf on the
[mysqld] and/or [mysqld_safe] sections:
default-storage-engine=innodb
Also, make sure
I am trying to use Jquery's form plugin with django to submit a form
with ajax. When i submit the form the data is posted and the server
responds but the results are not showing up on my form. I can see
from the console output of Firebug that the data is being returned,
but its just not showin
You can create an intermediate base class that extends your base class
and includes elements like:
{% if actions %}
... show action table ...
{% endif %}
{% if element %}
... show edit element form ...
{% else %}
... show add element form ...
{% endif %}
and so forth and so on. Now your page ap
Hi Tim ; )
thanks ... that should work. I will test it at the weekend.
I just thought there might be a version without any sql strings..
thank you all for your support
bg
tim
On Jan 21, 5:14 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > You get my problem right. I'm searching for a way to app
Django doesn't handle the transactions directly. It just has support for
taking advantage of the transaction capabilities included in the
database of your choice.
It depends on your database system. Read up on transactions with
database x to see how it will behave.
With my understanding of trans
Hi,
> Let's say I have a model with an integer value. I'd like to increment
> that value.
>
> Multiple processes would like to increment that value.
>
> Does the transaction middleware properly protect against this?
>
> Example:
> Processes P1, P2, model instance m, with m.val
>
> - P1 grabs the
Hi,
Le Tue, 22 Jan 2008 11:07:45 -0800 (PST), "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> a écrit :
> Example:
> Processes P1, P2, model instance m, with m.val
>
> - P1 grabs the object : m = MyModel.objects.filter(get the m i want)
> [0]
> - P2 grabs the object : m = MyModel.objects.filter(get the
Hi,
I'm using the attach_alternative command to send html emails.
But when I use this command, I always get a "Content-Type: text/html;
charset=utf-8" heading in all my emails.
Is it possible to get rid of it?
Thank you
Francis
--~--~-~--~~~---~--~~
You receiv
Hi,
Le Tue, 22 Jan 2008 11:08:41 -0800 (PST), "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> a écrit :
>
> I need InnoDB for MySQL to do row locking in hopes of this working
> efficiently.
>
> Is InnoDB on by default in MySQL 5.0?
>
> How can I tell?
Look at the "SHOW ENGINES" SQL query
http://dev.
It might help to share the view that this Ajax call hits. If it's
long, you can post it at dpaste so it's easier for folks to read:
http://www.dpaste.com
I suspect the issue lies in the view, not so much in the JS.
/alex
On Jan 22, 2008 1:49 PM, mike <[EMAIL PROTECTED]> wrote:
>
> I am trying
Hello,
I am working on a small app, based on Malcolm Tredinnick's "complex
forms" article, located at
http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/.
I have a few quiz questions, where each displays its available
answers. The end result is that there are multiple Django (
Russ,
Thanks for the solution you suggested, I am about to implement it, but
something came to my mind: how would I know if the fixture loading was
successful or failed? I know it writes to the standard error output the
result if I set verbosity higher, but it would be nicer if an exception was
ra
I'd start by looking at the HTML that results, particularly the "input name"
parts. From your symptoms, it sounds like you may have two (or more) with the
same name.
Chris
> -Original Message-
> From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of Tim
> Sent: 22
> Or you could possibly have a lock management table/model in your database.
I had that idea.
I could have:
class ModelLock(models.Model):
name = models.CharField(max_length=100)
isLocked = models.BooleanField()
This is an ok solution -- pretty much the only one i have. But there
is a H
> But, I guess you can add a method (or override the save() method maybe), to
> send the correct SQL query.
Writing my own SQL for each time I'd like to maintain data integrity
is something I'm not really interested in. I'm using Django to avoid
writing SQL.
Also, the cases are much more compli
Thanks!
This worked great:
mysql> SHOW ENGINES\G
here are the results for a default installation on OS X Leopard and
Ubuntu 7.10 server. Both use MyISAM
=== OS X
Server version: 5.0.45 MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
Sorry, this code is supposed to be
while
ModelLock.objects.filter(name=name).filter(isLocked=True).count()>0:
pass
lock = ModelLock.objects.filter(name=name)[0]
lock.isLocked=True
lock.save()
On Jan 22, 1:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> > Or you could possibly have a
On Jan 23, 2008 4:08 AM, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On Jan 21, 2008 8:30 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote:
> > i wonder if there is any way to have Macros in django templates
> > similar to what Jinja has (http://jinja.pocoo.org/)?
>
> No.
>
> The Jinja project was s
> Also, the cases are much more complicated than val+=1. They are
> multiple lines of python operations on models.
> I just used that as an example to illustrate the problem.
>
> A lock is the real solution, but I have no idea how to implement it
> properly.
If you go with the memcached idea I p
On Jan 22, 2008 4:15 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote:
> what's the reasoning behind not having and not planning to have macros
> in django templates? they look like a very useful construct compliant
> with DRY to me.
Django's template system is meant to be a means of expressing
pres
Karen -
I agree - this was very strange - that's why I was confused. I've not
yet upgraded to 0.96.1, so I guess that's the next step.
Thanks,
Bob
On Jan 18, 1:01 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 18, 2008 10:51 AM, Robert Swerdlow <[EMAIL PROTECTED]> wrote:
>
>
>
> > I po
Le Tue, 22 Jan 2008 14:18:53 -0800 (PST), Rajesh Dhawan
<[EMAIL PROTECTED]> a écrit :
> - Before you execute lines of code that need to be synchronized
> between processes, read mylock from memcached and set it to the
> current timestamp if it's null.
... and bam, another process access the lock
On Jan 22, 2008 5:15 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote:
>
> On Jan 23, 2008 4:08 AM, James Bennett <[EMAIL PROTECTED]> wrote:
> >
> > On Jan 21, 2008 8:30 PM, Papalagi Pakeha <[EMAIL PROTECTED]>
> wrote:
> > > i wonder if there is any way to have Macros in django templates
> > > simila
Hi Papa
> i wonder if there is any way to have Macros in django templates
> similar to what Jinja has (http://jinja.pocoo.org/)?
Have a look at "Support for {% macro %} tags in templates" at
http://www.djangosnippets.org/snippets/363/
I bet it's exactly what you're after. It lets you define ma
On Jan 23, 2008 11:32 AM, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On Jan 22, 2008 4:15 PM, Papalagi Pakeha <[EMAIL PROTECTED]> wrote:
> > what's the reasoning behind not having and not planning to have macros
> > in django templates? they look like a very useful construct compliant
> > with D
On Jan 22, 3:45 pm, Chris Brand <[EMAIL PROTECTED]> wrote:
> I'd start by looking at the HTML that results, particularly the "input name"
> parts. From your symptoms, it sounds like you may have two (or more) with the
> same name.
>
> Chris
Thanks, Chris.
Here's some example output. As you c
Ugh... sorry about the formatting, BTW. I'll have to figure that
out...
--~--~-~--~~~---~--~~
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 uns
On Jan 23, 2008 6:39 AM, Ariel Mauricio Nunez Gomez
<[EMAIL PROTECTED]> wrote:
> Russ,
>
> Thanks for the solution you suggested, I am about to implement it, but
> something came to my mind: how would I know if the fixture loading was
> successful or failed? I know it writes to the standard error
On Jan 22, 2008 5:54 PM, Tim <[EMAIL PROTECTED]> wrote:
>
>
>
> On Jan 22, 3:45pm, Chris Brand <[EMAIL PROTECTED]> wrote:
> > I'd start by looking at the HTML that results, particularly the "input
> name" parts. From your symptoms, it sounds like you may have two (or more)
> with the same name.
>
YES
There was a problem with atomic operations. But the add from memcached
looks to be atomic: "adds to the cache, only if it doesn't already
exist".
P1 and P2 both try to add "thisModelInstance_lock", only one will make
it. Busy loop (or sleep for a minimal amount of time), trying to add
it.
W
On Jan 22, 5:41 pm, Jonathan Ballet <[EMAIL PROTECTED]> wrote:
> Le Tue, 22 Jan 2008 14:18:53 -0800 (PST), Rajesh Dhawan
> <[EMAIL PROTECTED]> a écrit :
>
> > - Before you execute lines of code that need to be synchronized
> > between processes, read mylock from memcached and set it to the
> > c
We are having problems deploying a Flex+DjangoAMF+Django app on an
apache server. The result event coming back from DjangoAMF indicates
success, yet contains no data. Wondering if you encountered any of
this with your django musings.
--~--~-~--~~~---~--~~
You receiv
Is it possible to change the python interpreter to treat a single tab
character the same as 4 space characters (rather than 8)?
On Jan 6, 7:40 pm, Darryl Ross <[EMAIL PROTECTED]> wrote:
> >> I was having problems with my text editor. For some reason Python
> >> didn't like the way it handled
Hello,
Regarding tabs...
quoting http://www.python.org/dev/peps/pep-0008/
Tabs or Spaces?
Never mix tabs and spaces.
The most popular way of indenting Python is with spaces only. The
second-most popular way is with tabs only. Code indented with a mixture
of tabs and spaces shoul
I've created a form that allows a user to edit a datum in a model.
However, when a user performs an edit, django adds that value as a new
datum rather than editing the existing datum in the database. Any idea
what's wrong?
#Model
#
c
Hi folks--
I've got the following code in a view:
from django.shortcuts import get_object_or_404, render_to_response
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from mysite.officemeetingpoll.models import Meetingtime
from django.contrib.auth.decorato
well, one way to do this is through a middleware class, like this:
class SetEmptyPathInfo(object):
def process_request(self, request):
if not request.path:
request.META['PATH_INFO'] = '/'
request.path = '/'
seems to be working for now.
On Jan 22, 9:45 am, Dan
On Jan 22, 2008 10:16 PM, Jason Witherspoon <[EMAIL PROTECTED]>
wrote:
> Hi folks--
>
> I've got the following code in a view:
>
> from django.shortcuts import get_object_or_404, render_to_response
> from django.http import HttpResponseRedirect
> from django.core.urlresolvers import reverse
> from
Does anybody have a code snippet for getting striped tables with
django? Basically I would need to apply alternating classes to the the
rows returned by the rowset. I do not want to do this from javascript,
but from server side.
--~--~-~--~~~---~--~~
You received th
On Jan 23, 2008 4:55 PM, shabda <[EMAIL PROTECTED]> wrote:
>
> Does anybody have a code snippet for getting striped tables with
> django? Basically I would need to apply alternating classes to the the
> rows returned by the rowset. I do not want to do this from javascript,
> but from server side.
Let me try and answer your questions.
Do you need to receive SMS? If you need to receive SMS, you will need
to host your own GSM device or modem so that people can send you SMS.
If not, you can just use internet SMS gateways like clickatell to do
the work, and post to them by HTTP, XML or email.
On Jan 22, 5:22 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> What level of Django are you running? I recall seeing reports of behavior
> like this, but it has been fixed. See for example:
>
> http://code.djangoproject.com/ticket/5665
Hm. It's 0.96, but I haven't tried it on a newer version j
New to django and python. Just trying some basics here.I have the
following model:
class Author(models.Model):
name = models.ForeignKey(User)
def __str__(self):
return self.name.username
class Entry(models.Model):
body_text = models.TextField()
On Jan 23, 2008 5:01 PM, John <[EMAIL PROTECTED]> wrote:
>
> Let me try and answer your questions.
>
> Do you need to receive SMS? If you need to receive SMS, you will need
> to host your own GSM device or modem so that people can send you SMS.
afaik clickatell can receive sms messages on your be
Look up the "cycle" template tag. It will do exactly what you want.
--~--~-~--~~~---~--~~
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 unsubscr
> Question: In python, how do I access name attribute in Author? That
> is, I'd like to know how to find out author of each entry.?
Hi Nick,
The relevant documentation is here:
http://www.djangoproject.com/documentation/db-api/#related-objects
Basically, since entries have a many-to-many relati
I recently deployed my dear Django on winows + apache +mod_python..
following DjangoBook step by step everything is fine but one thing
the static file(css particularly) .
I need press F5 constantly to refresh my no-bug page to get the css
file down to show that page properly.
I tried views.st
92 matches
Mail list logo