No problem, please pass the link on to your friends.
--~--~-~--~~~---~--~~
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
I've used something like this before (in urls.py), which uses the
runserver to set it up (non-threaded of course, but it's not too much
of a problem for a single user on localhost):
# Serve files
# - if file_server is None, then we get Django to try to do
# it out of /files anyone using this
James Bennett wrote:
> For getting access to the object, I believe that when the 'post_save'
> dispatcher signal is sent after saving, one of the included attributes
> of the signal is the object itself.
>
Thanks for the updated (and very much expanded) documentation on django
signals. I see how
Thanks, that's going to be really useful.
On Oct 5, 10:21 pm, "Noah" <[EMAIL PROTECTED]> wrote:
> I'm always searching the Django docs, so I decided to make a search
> bar plugin for Firefox so that I don't have to go to the Django
> documentation page in order to search the documentation.
>
>
I'm always searching the Django docs, so I decided to make a search
bar plugin for Firefox so that I don't have to go to the Django
documentation page in order to search the documentation.
You can pick it up at:
http://noah.itgoesclick.com/django-docs-search/
On 10/5/06, David Abrahams <[EMAIL PROTECTED]> wrote:
> So the idea is to map certain URLs into that view, have the view parse
> the URL to find the files in the SVN working copy that it should use
> to generate the page, use those files to generate a data structure on
> which the template can
thanksAdrian Holovaty <[EMAIL PROTECTED]> wrote: On 10/5/06, carlwenrich wrote:> in a model definitionHi carlwenrich,A short question deserves a short answer: Add unique=True to your field.Adrian-- Adrian Holovatyholovaty.com | djangoproject.com
On 10/5/06, carlwenrich <[EMAIL PROTECTED]> wrote:
> in a model definition
Hi carlwenrich,
A short question deserves a short answer: Add unique=True to your field.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received
in a model definition
--~--~-~--~~~---~--~~
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 [EMAIL
On Thu, 2006-10-05 at 20:48 +0200, Łukasz Langa wrote:
> Josh Trutwin:
> > On Mon, 02 Oct 2006 21:42:34 -
> > "fabiofz" <[EMAIL PROTECTED]> wrote:
> >
> >
> >> For those interested... Just wanted to post that I've recently
> >> covered a little how-to on configuring pydev to work with
Hey Deryck,
On Thu, 2006-10-05 at 19:00 -0500, Deryck Hodge wrote:
> Hi, Daniel.
>
> > > As you've discovered, the built-in serializers require a Queryset of
> > > model objects.
> > >
> > > You could use the simplejson library directly on your "values"
> > > dictionary.
>
> I submitted
On Fri, 2006-10-06 at 08:32 +0800, Russell Keith-Magee wrote:
> On 10/5/06, dizoriented <[EMAIL PROTECTED]> wrote:
> > Django is shining like a sun! Database API, templates, urlconf is absolutely
> > gorgeous! Now after about 2 week intensive course i can say that it almost
> > ideal tool for all
On Thu, 2006-10-05 at 18:24 +0200, Dirk Eschler wrote:
> Am Donnerstag, 5. Oktober 2006 14:22 schrieb Malcolm Tredinnick:
> > Python has an htmlentitydefs module and you can use that to convert
> > unicode characters into the appropriate HTML entities.
> >
> > Django does not do anything like
Thanks - I'll try this out on a fresh DB. You're right that I'm running
sqlall on an already populated database.
I'll post back if it looks like there was a real bug here.
Thanks again for all of your help,
Greg
Russell Keith-Magee wrote:
> On 10/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
On 4-Oct-06, at 6:45 PM, Andy Dustman wrote:
> Oh, *that's* interesting. It's not really execution of the query
> that's causing the problem but the debug code that retains all
> executed queries. Although the execution could be raising the same
> exception: The part we are seeing above is in a
On 10/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > However, you shouldn't be having any problems with foreign key
> > constraints. The model creation process should be able to identify and
> > avoid any problems with forward declared foreign key constraints.
>
> This is what I would
Hi, Daniel.
> > As you've discovered, the built-in serializers require a Queryset of
> > model objects.
> >
> > You could use the simplejson library directly on your "values"
> > dictionary.
I submitted http://code.djangoproject.org/ticket/2701 which provides a
small patch to limit by field for
[EMAIL PROTECTED] wrote:
> Hello. I'm trying to get Apache to authenticate users using Django's
> user database but I'm getting the above error (the whole apache error
> log is at the bottom of the message).
>
> I've set up my project and created users using the Django development
> server so
It's looking like option #2 might be best for my case...
I'd like make one general method to handle the building of the question
context and depending on the question type render one template snippet
vs another. Since inclusion_tags are tied to a template filename, this
isn't going to work.
I haven't solved the problem. For now it's on the back burner. We'll
need to find a solution to this eventually. As a fall back we can
always wrap up our Django app in an installer (NSIS) and launch it
locally. But it would be super nice if it were as simple as a py2app
or py2exe solution.
Dirk Eschler wrote:
> In theory i can just use utf-8, but what if one participant in the line (os,
> db, browser, whatever) can't handle it?
Talking about client side, only very old browsers can't handle utf-8
(NN4 and IE4 can). Same goes for email clients. And even such simple and
'legacy'
Hi,
Right, the CacheMiddleware does not cache requests that have GET or
POST parameters.
You have two options:
1. Incorporate the page number in your request PATH (what you thought
of as the URL)
2. Use low level caching in your view to cache the Queryset objects by
page number. See:
I agree, this is one aspect of Django that I simply don't understand
even to this day. In my app, I have just manually checked each $POST
or $GET variable that I'm expecting, which is definitely not
Django-esque. A tutorial would be nice, although I realize how busy
you all must be.On 10/5/06,
thanks much.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
Models:
---
class Week(models.Model):
beginning = models.DateField(core=True)
def __str__(self):
return str(self.beginning)
class Admin:
pass
class Day(models.Model):
week = models.ForeignKey(Week, edit_inline=models.TABULAR,
Carlos Yoder wrote:
> I'm really sorry to bug you like this, but I don't know what to do --
> being a newbie to both Python and Django, debugging for me is more
> like 'aha, the problem should be around here', but nothing concrete
> about fixing!
>
hi,
could you also post your view code?
Josh Trutwin:
> On Mon, 02 Oct 2006 21:42:34 -
> "fabiofz" <[EMAIL PROTECTED]> wrote:
>
>
>> For those interested... Just wanted to post that I've recently
>> covered a little how-to on configuring pydev to work with django
>>
On Mon, 02 Oct 2006 21:42:34 -
"fabiofz" <[EMAIL PROTECTED]> wrote:
> For those interested... Just wanted to post that I've recently
> covered a little how-to on configuring pydev to work with django
> http://pydev.blogspot.com/2006/09/configuring-pydev-to-work-with-django.html
Thanks! -
On 10/05/06 17:34, seemant wrote:
> Hi All,
>
> So, on the right column of http://www.djangoproject.com/weblog/ that
> page, we see an index of archived posts, going back 12 months or so.
>
> And so I thought I'd check out the template:
>
Yes, you can have nested loops. To access the self and parent loop
counters see:
http://www.djangoproject.com/documentation/templates/#for
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On 10/4/06, Seemant Kulleen <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Now I'm at ForeignKey funkiness. So I have the Services model which
> has a ForeignKey field to the Sermon model. The funny thing is that
> if I choose a sermon object when I first create a new service object,
> all is well.
I am trying to get the best out of the caching abilities of Django
but I have unusual needs...And the caching is showing unusual
behaviour...
When I added caching... a url like this /x/y/z/ returned results
OK... but I wanted the cache to work for MOST pages but not ones
where some
Hello,
Is there a way to override the automatic manipulators given by:
MyModel.AddManipulator()
MyModel.ChangeManipulator()
I am trying to do something like this: I have the following models:
class EntryType(models.Model):
name = models.CharField()
class Entry(models.Model):
subject =
And if so, how do you refer to the loop counters?
--~--~-~--~~~---~--~~
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
thanks.
Malcolm Tredinnick wrote:
> On Tue, 2006-10-03 at 19:34 -0700, carlwenrich wrote:
> > In other words, is there anything else I need to do to remove a project?
>
> Did you modify the web server configuration file anywhere?
>
> Otherwise, that should be all you need to do.
>
> Regards,
>
Am Donnerstag, 5. Oktober 2006 16:04 schrieb Holger Schurig:
> > ä ->
> > Ö ->
> > ß ->
>
> Do you really need them? Theoretically, you can simply set
>
>
>
> And then you may use those characters literally.
>
> However, I'm not a browser expert and don't know if all modern
> browsers
Hello. I'm trying to get Apache to authenticate users using Django's
user database but I'm getting the above error (the whole apache error
log is at the bottom of the message).
I've set up my project and created users using the Django development
server so the database connection is working from
Hi Seemant,
There's no single construct that would do all that for you. But there
are a few handy ways that you could consider:
1. Pass the distinct list of months in 'extra_context' to the generic
view date_based.archive_index and use that list in your template.
2. The generic view
Hello seemant!
On Thu, 05 Oct 2006 15:34:17 - you wrote:
>
> Hi All,
>
> So, on the right column of http://www.djangoproject.com/weblog/ that
> page, we see an index of archived posts, going back 12 months or so.
>
> And so I thought I'd check out the template:
>
On 10/5/06, seemant <[EMAIL PROTECTED]> wrote:
> but the template (and adrian's commit message) seem to imply that that
> list is generated manually. Is there no construct in Django that will
> auto-gen a link list like that?
You could write a template tag to do it pretty easily, the database
Hi All,
So, on the right column of http://www.djangoproject.com/weblog/ that
page, we see an index of archived posts, going back 12 months or so.
And so I thought I'd check out the template:
http://code.djangoproject.com/browser/djangoproject.com/django_website/templates/base_weblog.html
but
Hey James,
On Thu, 2006-10-05 at 10:12 -0500, James Bennett wrote:
> On 10/5/06, John Melesky <[EMAIL PROTECTED]> wrote:
> > Does that mean it's ready for inclusion in the django docs tree? It
> > would be nice to get topics like this covered in the core documentation.
>
> If one of the
"Adrian Holovaty" <[EMAIL PROTECTED]> writes:
> If you just want to use the HTTP request/response part of Django,
> there's no requirement that you need to use a database.
>
> All Django cares about is that your view functions return an
> HttpResponse. What they do internally -- whether it's
On 10/5/06, John Melesky <[EMAIL PROTECTED]> wrote:
> Does that mean it's ready for inclusion in the django docs tree? It
> would be nice to get topics like this covered in the core documentation.
If one of the committers thinks it's good enough, then by all means.
I'll happily submit it in ReST
Hi Daniel,
As you've discovered, the built-in serializers require a Queryset of
model objects.
You could use the simplejson library directly on your "values"
dictionary.
Basically,
1. import simplejson
2. data = simplejson.dumps(your_dictionary_here)
See the documentation at the top of this
I wrote a daemonize method that can be called by the view to spawn a new process that executes your code.It is part of this thread:http://groups.google.com/group/django-users/browse_frm/thread/b36f4ca10a424161/c5131410e5d548b1?lnk=gst=daemonize=2#c5131410e5d548b1I'm happy to give you any other
On 4 Oct 2006, at 17:09, Andy Dustman wrote:On 10/4/06, Tom Smith <[EMAIL PROTECTED]> wrote: If I am looking for titles like "Anal Sex" or "Being Anal" then howdo I construct this, ahem, query... to not return "Analysis" or"Analog"? Two options: If your database supports it, try a full-text
Tim Chase <[EMAIL PROTECTED]> writes:
>> Django's database-centric approach seems to make certain kinds
>> of mostly-static sites harder to build.
> [cut]
>> Yes, Django is a framework, so I could build components that
>> make this possible, but it seems to me that it should be a
>> fundamental,
Well funnily enough, not that ... :-)It's just a usability thing that if you search for "anal".. you will not have in mind any of these... A Towpath Walks in Oxford: The Canal and River Thames Between Wolvercote and the City El Ventanal / The Wide Window (Series Of Unfortunate Events (Spanish))
Disclaimer: I may be totally off the track here but seeing your
desperate plea, I thought I would share this anyway:
AddManipulator is probably discarding your primary key coming from the
POST. The user field, in your case, serves as a primary key (since it
is defined as a OneToOneField). Try
> ä ->
> Ö ->
> ß ->
Do you really need them? Theoretically, you can simply set
And then you may use those characters literally.
However, I'm not a browser expert and don't know if all modern
browsers under the sun understand this.
James Bennett wrote:
> On 10/4/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>> There is some documentation on how Django's signals system works and how
>> to hook into it here: http://code.djangoproject.com/wiki/Signals
>
> I just went through and completely re-wrote that to cover signals
I'm trying to use the serialization feature to drive a javascript
"selector" popup on my CMS. Basically, what I want to do is this: get
an XML or JSON list of all the article names and headlines in a certain
section. The serialization code is easy:
-- from models.py:
class Section(models.Model):
Thanks for your response, Russell. To follow up on this part of the thread:
Russell Keith-Magee wrote:
>>> I don't believe you can. However, you can use sql or sqlall [1] to
>>> output the table creation sql to a file for editing. For example:
>>>
>>> manage.py sqlall myapp > myapp.sql
>> I
Hello, advanced Djangoers!
I would like to make sure, whether it is possible to override [URL #1]
an admin template and to write such a template code that would show
the fields of the related object in the editing form of the currently
edited object (not in edit_inline mode).
Let's say, if I
I'm really sorry to bug you like this, but I don't know what to do --
being a newbie to both Python and Django, debugging for me is more
like 'aha, the problem should be around here', but nothing concrete
about fixing!
If anyone has the time to read this, please lend me a hand.
I know, I sound
I couldn't quite work out how to do that... there's not enough
guidance... so I created a method in Views.py like this...
def add_defaults(the_dict={}):
the_dict['BASE_URL'] = "/burningahole/"
the_dict['STATIC_URL'] = STATIC_URL
...etc
return the_dict
On 10/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Django's database-centric approach seems to make certain kinds of
> mostly-static sites harder to build. For example, most of what I want
> to put on my site is probably going to come from RestructuredText
> source, but that source isn't
Gábor Farkas wrote:
> in my django app, at some point i have to send out a LOT of emails
> (several thousand).
>
> ...
>
> so, are there any other, more elegant/simpler solutions?
put data into DB table, and then have some script on cron which send
emails on "background"?
hi,
i have the following "problem".
in my django app, at some point i have to send out a LOT of emails
(several thousand).
this sending takes a long time, so an usual web based approach (click
the send-button, send the mail, and show the response to the user) does
not work, because the
[EMAIL PROTECTED] wrote:
> i find this thread from Rob:
> Distribute Django program to run on a local computer
> http://groups.google.com/group/django-users/browse_thread/thread/609f539387ba8296/a3ff0fc87da20bed
>
> i m trying to do the same thing.but the thread end with no result.
Ola,
You
Django is shining like a sun! Database API, templates, urlconf is absolutely gorgeous! Now after about 2 week intensive course i can say that it almost ideal tool for all my needs. Almost, because like a real sun, Django have it's own spots. The most frustrating and unintuitive part of it, IMO, is
[This isn't targeted at anybody in particular and I do not want to
discourage people from adding Wiki content. I was just reminded of it
seeing the YUI Ajax additions go in just now.]
If you write your Wiki page in the first person ("I did this.", etc),
can you please put in your name somewhere.
i find this thread from Rob:
Distribute Django program to run on a local computer
http://groups.google.com/group/django-users/browse_thread/thread/609f539387ba8296/a3ff0fc87da20bed
i m trying to do the same thing.but the thread end with no result.
Rob,have u solved your problem?
Hi,
in PHP *shrug* i used to pipe user input through htmlentities() before i
stored it in a database. Basically to avoid encoding issues with German
special chars.
ä ->
Ö ->
ß ->
etc.
How can i achieve this when defining a model in Django? Or is it a bad pratice
and there's a better way?
John M wrote:
> Curious, does that give you the full user context too?
Yes, all generic views use RequestContext. Which means you have not only
'user' available but everything that your context processors provide.
They are listed in settings as TEMPLATE_CONTEXT_PROCESSORS and you can
use your
Hello djangoers.
This is related to my last post (cry for help would be more proper) on
an AddManipulator 'losing' a primary key's value.
I guess the problem's here (pasted from dynamic trace), on
django/db/models/manipulators.py in save (line 101):
auto_now_addFalse
f
Thanks RajeshD
--~--~-~--~~~---~--~~
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 [EMAIL
68 matches
Mail list logo