when assigning permissions, there´s a list of installed apps/models,
like:
posting | can add posting
posting | can change posting
...
the problem is, if I have several models with the same name (e.g.
category) within different apps, there´s currently no way to tell
which one to choose.
is i
It has a lot of stuff... but the core is simple enough, like this...
class Product(models.Model):
title = models.CharField(maxlength=200, db_index=True)
url = models.URLField(maxlength=250, db_index=True, unique=True)
class Word(models.Model):
va
On Wed, 2006-10-11 at 09:52 +0100, Tom Smith wrote:
> It has a lot of stuff... but the core is simple enough, like this...
>
> class Product(models.Model):
> title = models.CharField(maxlength=200, db_index=True)
> url = models.URLField(maxlength=250, db_index=True, unique=True)
>
Serg Kovrov wrote:
> Hello everybody, sorry if it may sounds a bit of off-topic, but
> still...
>
> I'd like to know what editor/IDE Django users (and developers) uses on
> daily basis, to boost development process. And why exactly - what
> features you find useful, how it helps you to save time
There is a web platform contest coming up at http://www.plat-forms.org/
which aims itself "...at comparing different technological platforms
for developing web-based applications: Java EE, .NET, PHP, Python,
Ruby-on-Rails."
Maybe this is interesting for some Djangoers out there?
Regards,
Juergen
Great, thanks for the help.
I was thinking that I would have to take the complete comments system
but if I can just define my views then that is excellent. I think I
can see how to make it degrade nicely so thats no problem.
Thanks again for the help.
--~--~-~--~~~
Oops... replied to wrong thread...
here it is...
It has a lot of stuff... but the core is simple enough, like this...
class Product(models.Model):
title = models.CharField(maxlength=200, db_index=True)
url = models.URLField(maxlength=250, db_index=True, unique=True)
Use gedit with snippets plugin (pt-br: trechos), its very nice :D
--~--~-~--~~~---~--~~
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 unsubscri
On Oct 11, 9:59 am, Tom Smith <[EMAIL PROTECTED]> wrote:
> Oops... replied to wrong thread...
>
> here it is...
>
> It has a lot of stuff... but the core is simple enough, like this...
>
I just whipped up something based on your model definition excerpts and
it works perfectly with:
Product.ob
On 10/11/06, patrickk <[EMAIL PROTECTED]> wrote:
>
> when assigning permissions, there´s a list of installed apps/models,
> like:
> posting | can add posting
> posting | can change posting
> ...
>
> the problem is, if I have several models with the same name (e.g.
> category) within different apps
Juergen Barth wrote:
> Maybe this is interesting for some Djangoers out there?
I wanted to ask but you beat me ;)
So, anyone else wants to participate ?
kindly regards
Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
So I've made some progress on using Points in Django.
In postgres, I added a filter (using Database.register_type) to
automatically convert points to a tuple. That worked really well for
reading the data out.
To store, for example, the tuple (30, 30) as a point I have to call
GeometryFromText('P
Following this thread:
http://groups.google.com/group/django-users/browse_frm/thread/f11c67142c7dd71a/2bdeb945f7bf2232?lnk=gst&q=visitors&rnum=2#2bdeb945f7bf2232
It is mentioned that to display a list of visitors (anonymous and
logged in) I have to use the session framework.
However, in the doc
Hello, I have a model of EnglishWords and GreekWords. EnglishWords are
referenced as a ForeignKey in GreekWords, ie one EnglishWord may have
more than one GreekWords referencing it.
I would like when going in admin to edit an EnglishWord to see what
Greek words are referencing it, and be able to
On Oct 11, 2006, at 8:06 AM, orestis wrote:
> So I ask: How can access from the session object ALL visitors so I can
> display in my site:
Django sessions are stored in the database. I did this quick test
using the django shell, should be enough to get you started:
>>> from django.contrib.se
Note that Adrian posted a message some time ago about how he uses
geometry fields in Postgres and Django for his chicagocrime.org site.
His post is in this thread:
http://groups.google.com/group/django-users/browse_thread/thread/
1fbbaf710996a8aa/8b322b5b68b29fbb?
lnk=gst&q=postgis&rnum=1#8
Hi Don. Yeah, I'm actually following Adrian's approach in some code
now. What I want to do, though, is be able to include geometry fields
directly in the model
--B
On Oct 11, 11:52 am, Don Arbow <[EMAIL PROTECTED]> wrote:
> Note that Adrian posted a message some time ago about how he uses
> geom
Malcolm Tredinnick wrote:
> The development server is only single threaded. So one request at a
> time. Since requests include each and every stylesheet, every image,
> etc, that can be quite a number of requests per page.
Can or will this ever change? If I understand correctly, the base WSGI
we
On 10/11/06, RajeshD <[EMAIL PROTECTED]> wrote:
>
>
>
> On Oct 11, 9:59 am, Tom Smith <[EMAIL PROTECTED]> wrote:
> > Oops... replied to wrong thread...
> >
> > here it is...
> >
> > It has a lot of stuff... but the core is simple enough, like this...
> >
>
> I just whipped up something based on yo
Hi,I have beenn trying to get the django
admin to do Rich Text Field for textarea. I checked the following
examples, and tried the variants seen in these links
http://code.djangoproject.com/wiki/AddWYSIWYGEditorhttp://code.djangoproject.com/wiki/AddDojoEditor
http://www.dehora.net/journal/2006/05/
On 11 Oct 2006, at 18:59, Rajesh Dhawan wrote:Hi, This still works for me! The only change I made to your model was to add a "class Admin: pass" to your ProductWord class so that I could add a ProductWord test object through the Admin UI. My results in the shell: from my_app.models import Produ
Is not clear the question?
The user clasify a restaurant with tags like:
Food/West
Food/North
Music/Rock/Classic
Music/Rock/80
Then, I build a menu and a tag navigation from that..
The issues is that this tags are in spanish and have chars like
"ñ","á" and spaces, and when this is output in ht
I have extended Django User model (site members as opposed to users) and
I want to approve them before they can use all site features. Below is
my model:
class Member(models.Model):
user = models.ForeignKey(User)
...
is_approved - models.NullBooleanField(default = False)
Hi,
Check out the example at
http://code.djangoproject.com/wiki/CookBookManipulatorWithPostpopulatedFields
the main difference between that example and your code is that you
should set the foreign key before calling get_validation_errors.
Greetings,
Fred van Dijk
--~--~-~--~~
On 10-Oct-06, at 5:30 PM, Malcolm Tredinnick wrote:
> Looks like you're right; there is going to be a problem there. The
> "params" attribute is typically more useful with extra "where"
> clauses,
> which is a list, so this doesn't come up in that case.
>
> Could you file a ticket about this, p
On 10/11/06, AlexK <[EMAIL PROTECTED]> wrote:
>
> I have multi user access issue in my app.Logs show, that 1 request
> closes DB connection, which can be used by other request. May be reason
> of apache Win version is not thread-safe..has anybody idea, how to
> workaround it?
> I consider moving t
Hi guys and gals, this is my first post to django-users.
My problem: I need to filter a QuerySet, possibly using a Manager but
I'm lost at how to do it. For example:
class Special(models.Model):
PERMS = (('by user', 'restrict to only allowed users'), ('anyone',
'no restrictions))
[.. mod
Hi all,
I have multi user access issue in my app.Logs show, that 1 request
closes DB connection, which can be used by other request. May be reason
of apache Win version is not thread-safe..has anybody idea, how to
workaround it?
I consider moving to lighttpd (http://www.lighttpd.net) + fastcgi
(f
The biggest reason I want to filter it here, in the Model level, is so
I can still slice and chain filters, like normal QuerySets, and the
permissions will be transparently taken care of.
Thanks again,
Sam
--~--~-~--~~~---~--~~
You received this message because y
waylan, although I don´t understand your last/second suggestion, I
managed to store my templates in the database.
if you think your second suggestion is by far better than the first
one ... could you please explain it again.
my current solution:
I´m storing templates for every user in the db
+1 on this suggestion. If I remember correctly, there's a ticket about
this issue.
Along this line, it might be nice to provide the same functionality for
the "recent actions" list, for example as a tooltip.
gjiro
--~--~-~--~~~---~--~~
You received this message
Ramdas S wrote:
> Hi,
>
>
> I have beenn trying to get the django admin to do Rich Text Field for
> textarea. I checked the following examples, and tried the variants seen in
> these links
Try :
http://code.djangoproject.com/wiki/RichTextField
This worked for me with a few minor variations:
1
+1 on this suggestion. If I remember correctly, there's a ticket about
this issue.
Along this line, it might be nice to provide the same functionality for
the "recent actions" list, for example as a tooltip.
gjiro
--~--~-~--~~~---~--~~
You received this message
Here, hopefully this can explain it better (a little more specific, but
maybe that'll help):
select all entries where:
if the user is the owner or a writer of the blog, the private
posts
if the user is registered, the protected posts
if the user is a member of the owne
On 10/12/06, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> Malcolm Tredinnick wrote:
> > The development server is only single threaded. So one request at a
> > time. Since requests include each and every stylesheet, every image,
> > etc, that can be quite a number of requests per page.
>
> Can or wil
+1 on this suggestion. If I remember correctly, there's a ticket about
this issue.
Along this line, it might be nice to provide the same functionality for
the "recent actions" list, for example as a tooltip.
gjiro
--~--~-~--~~~---~--~~
You received this message
On Wed, 2006-10-11 at 12:52 -0700, mamcxyz wrote:
> Is not clear the question?
>
> The user clasify a restaurant with tags like:
>
> Food/West
> Food/North
> Music/Rock/Classic
> Music/Rock/80
>
> Then, I build a menu and a tag navigation from that..
>
> The issues is that this tags are in spa
On Wed, 2006-10-11 at 10:51 -0400, [EMAIL PROTECTED] wrote:
[...]
> On a more general note, is there an accepted way to add fields into
> contrib? I'd like to be able to have Django create tables with geometry
> columns, and using any typecasts I may end with, without the end user
> having to modi
On Wed, 2006-10-11 at 23:13 +0530, Ramdas S wrote:
> Hi,
>
>
> I have beenn trying to get the django admin to do Rich Text Field for
> textarea. I checked the following examples, and tried the variants
> seen in these links
>
> http://code.djangoproject.com/wiki/AddWYSIWYGEditor
>
> http://cod
On Wed, 2006-10-11 at 15:40 +, orestis wrote:
> Hello, I have a model of EnglishWords and GreekWords. EnglishWords are
> referenced as a ForeignKey in GreekWords, ie one EnglishWord may have
> more than one GreekWords referencing it.
>
> I would like when going in admin to edit an EnglishWord
On Wed, 2006-10-11 at 15:07 -0500, Patrick J. Anderson wrote:
> I have extended Django User model (site members as opposed to users) and
> I want to approve them before they can use all site features. Below is
> my model:
>
> class Member(models.Model):
> user = models.ForeignKey(User)
>
I've changed my code to:
if request.POST:
new_data = request.POST.copy()
new_data['status_id'] = 2
errors = manipulator.get_validation_errors(new_data)
new_data['status_id'] = 2
manipulator.do_html2python(new_data)
new_data['status_id'] = 2
On Wed, 2006-10-11 at 23:27 +, samuraisam wrote:
> Hi guys and gals, this is my first post to django-users.
>
> My problem: I need to filter a QuerySet, possibly using a Manager but
> I'm lost at how to do it. For example:
>
> class Special(models.Model):
> PERMS = (('by user', 'restrict
On Wed, 2006-10-11 at 19:53 +0100, Tom Smith wrote:
>
> On 11 Oct 2006, at 18:59, Rajesh Dhawan wrote:
[...]
> >
> > Perhaps try upgrading to a recent SVN of Django? I am on 0.96-pre.
> >
>
>
> I upgraded...
>
>
>
> > Also, I am using SQLite for the DB but that should not matter, I
> > thi
On Wed, 2006-10-11 at 20:55 -0500, Mark Hattarki wrote:
> I've changed my code to:
>
> if request.POST:
> new_data = request.POST.copy()
> new_data['status_id'] = 2
> errors = manipulator.get_validation_errors(new_data)
> new_data['status_id'] = 2
> man
Malcolm Tredinnick wrote:
> On Wed, 2006-10-11 at 15:07 -0500, Patrick J. Anderson wrote:
>> I have extended Django User model (site members as opposed to users) and
>> I want to approve them before they can use all site features. Below is
>> my model:
>>
>> class Member(models.Model):
>> u
On Wed, 2006-10-11 at 21:33 -0500, Patrick J. Anderson wrote:
[...]
> I guess the concept of approving members needs to be refined. My project
> has some "special" requirements and this is one of them.
There's no problem with special requirements. My point was that it's not
at all secure to incl
Malcolm Tredinnick wrote:
> On Wed, 2006-10-11 at 21:33 -0500, Patrick J. Anderson wrote:
> [...]
>> I guess the concept of approving members needs to be refined. My project
>> has some "special" requirements and this is one of them.
>
> There's no problem with special requirements. My point was
Malcolm Tredinnick wrote:
> On Wed, 2006-10-11 at 21:33 -0500, Patrick J. Anderson wrote:
> [...]
>> I guess the concept of approving members needs to be refined. My project
>> has some "special" requirements and this is one of them.
>
> There's no problem with special requirements. My point was
I have a similar problem, though I am using PostgreSQL 8.1.3).
I run a unittest that creates a bunch of records against the database,
all of it using django and the model API.
This runs fine the first time, but shows the following stack trace on
subsequent runs.
It seems to hit the problem at t
On Wed, 2006-10-11 at 22:45 -0500, Patrick J. Anderson wrote:
[...]
> Thanks for your comments, Malcolm. I realize that a determined person
> could submit an altered form and edit other profiles.
>
> I guess this is not a Django-specific question, but what would be the
> best way of preventing
Malcolm Tredinnick wrote:
> On Wed, 2006-10-11 at 22:45 -0500, Patrick J. Anderson wrote:
> [...]
>> Thanks for your comments, Malcolm. I realize that a determined person
>> could submit an altered form and edit other profiles.
>>
>> I guess this is not a Django-specific question, but what would
Malcolm Tredinnick wrote:
> On Wed, 2006-10-11 at 22:45 -0500, Patrick J. Anderson wrote:
> [...]
>> Thanks for your comments, Malcolm. I realize that a determined person
>> could submit an altered form and edit other profiles.
>>
>> I guess this is not a Django-specific question, but what would
Malcom,The display is fine. The web site is working perfectly. I am able to populate the database.But I am not able to get the rich text box in any of the text areas in the particular model or for the table in question.
I have tried options such as installing it at multiple places,
including the sv
Is there any interest in a little testing framework that mocks out
django to make it relatively easy to unit test views code?
At work I've got a little framework that does this. It's only a couple
hundred lines cause it only provides the APIs we use on my project.
Many things are no-ops because
On 10/12/06, Neal Norwitz <[EMAIL PROTECTED]> wrote:
>
> Is there any interest in a little testing framework that mocks out
> django to make it relatively easy to unit test views code?
A nice little testing framework already exists. It contains the
ability to test URL dispatch, view execution, a
hi,
i have a django site where i have enabled i18n. If you put your
default language in any of the django supported languages -eg german,
finnish, tamil etc, the admin appears in that language. But for
polish, the admin appears in english - any idea what the problem is?
The main site has a
57 matches
Mail list logo