favo wrote:
>class Category(models.Model):
>""" Inhert Category """
>
>title_en = models.CharField(maxlength=256, null=True)
>
>parent = models.ForeignKey('self', related_name="direct_children",
>null=True, blank=True, validator_list=[self.isValidParent]) #
>we want the instan
However, how to replace the default changeManipulator used by
django-admin?
--~--~-~--~~~---~--~~
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
I have check the document about Model, but can't find any help about
models in multiple files.
Django magic removeral still support models in multiple files?
only we can do is write models in models.py??
--~--~-~--~~~---~--~~
You received this message because you
favo wrote:
>However, how to replace the default changeManipulator used by
>django-admin?
>
>
Hm... Then my advice won't help...
One thing I can think of is that in your validator you get the object's
id from the all_data and get an object itself with another db request.
Not very good but it
On 5/30/06, tekNico <[EMAIL PROTECTED]> wrote:
>
> >> I suppose it would be ok for my article authors to mark up their
> >> articles using simple HTML tags, like H1 and IMG, and save the entire
> >> article as a TextField. It would be really great, though, if articles
> >> could be converted to PD
On 5/30/06, David Larlet <[EMAIL PROTECTED]> wrote:
>
> 2006/5/30, tekNico <[EMAIL PROTECTED]>:
> >
> > While the two URLs are the same article expressed in two different
> > human languages, I think that the mere translation process makes the
> > two things different enough that it's not the same
Brice Carpentier wrote:
> Still wondering whether to use Textile (easy to learn and read) or
> Docutils (easy to convert to basically almost any output format).
Same here. I think I am going for Docutils, it's syntax is quite
straightforward and I like its converting capabilities.
One question,
2006/5/31, Kristoffer <[EMAIL PROTECTED]>:
Brice Carpentier wrote:> Still wondering whether to use Textile (easy to learn and read) or> Docutils (easy to convert to basically almost any output format).Same here. I think I am going for Docutils, it's syntax is quite
straightforward and I like its co
David Larlet wrote:
> I've just updated this page : http://code.djangoproject.com/wiki/UsingMarkup
Thank you, that was helpful.
> Can I know why did you choose Docutils? I'm just curious because I just have
> to make this choice and my final option is markdown. Maybe I'm wrong (is it
> deprecat
Great, this seems to work a treat!
Thanks, Tom
--~--~-~--~~~---~--~~
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
I put code in directory structure below,
appsname\
models\
__init__.py
model1.py # have a class named Model1
__init__.py :
__all__ = ['model1']
from Model1 import model1
I have see the code in django.db.model.ModelBase.__new
> I have not decided yet, but Docutils and Markdown seem to have quite
> similar syntax, so the fact that Docutils can export to other formats
> than (X)HTML plays a decisive role for me.
Apart from the fact that I've been using Docutils for years, it is more
featureful than Markdown, and I like
That's what I try to, however, below is what I print the all_data of my
module level validator arguments:
there's no id parameters!! what a bad news.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
completed.
see the post:
http://groups.google.com/group/django-developers/browse_thread/thread/f6e773019512b794/485accada6989f0c
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Russell Blau wrote:
> Ahh, thanks, it always helps to take the blinders off. The only downside is
> that I have to learn how to use yet another software package. ;-)
An alternative that stays inside Django is to setup a trigger in cron
(or NT's Task Scheduler) that gets a URL every few minutes
My website and app needs a new face. Can anyone recomend a good
ui/graphic designer who can help me? This would be paid work.
VJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Let's suppose I have
project1 that has TableProject1
and
project2 that has TableProject2
Is it possible to use in project2 data from TableProject1 ?
Thank you for reply
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
On 5/30/06, Graham King <[EMAIL PROTECTED]> wrote:
> I have a custom manager for one of my model objects which limits the
> objects returned. When I use the search features of the admin interface,
> it seems most of the details of my query set get lost, so the result is
> no longer limited
Hi Adrian and others,
first of all - DJANGO IS GREAT - please hang on and give me nice
input!!
But then, some problems still occur...
If i do a manipulator.save() on an FileField, in the second run (POST)
the original file-path is gone/ saved empty. I saw a ticket, but lost
it :-/
While i'm new
Hi, everybody
I developed a little demo, which use FileField to upload files, it
works well in django own server, then I manage to switch to Apache +
mod_python, the admin module still looks ok, but when I use the file
upload, the system says IOError, Permission denied. I have modified the
upload
Hi, everybody
I developed a little demo, which use FileField to upload files, it
works well in django own server, then I manage to switch to Apache +
mod_python, the admin module still looks ok, but when I use the file
upload, the system says IOError, Permission denied. I have modified the
upload
forgot to say, the system is fedora 5(apache mysql & mod_python with
it) + django trunk. thks.
--~--~-~--~~~---~--~~
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@
Any insight from the django gurus out there?
Thanks!
--~--~-~--~~~---~--~~
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
On Wednesday 31 May 2006 09:57, mahakala wrote:
> when I use the file
> upload, the system says IOError, Permission denied. I have modified the
> upload folder to be writable for everyone. Any hints how to solve this?
> [Errno 13] Permission denied: '/opt/demo/test.txt'
Hi mahakala,
What is the
On 5/30/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 5/29/06, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > The code for the djangoproject.com blog is open source:
> >
> > http://code.djangoproject.com/browser/djangoproject.com
> >
> > Looks like it hasn't been ported to magic removal eith
DavidA wrote:
>
> Russell Blau wrote:
>
>>Ahh, thanks, it always helps to take the blinders off. The only downside is
>>that I have to learn how to use yet another software package. ;-)
>
>
> An alternative that stays inside Django is to setup a trigger in cron
> (or NT's Task Scheduler) tha
I think it would be really good if there were a list of links or
something as a tutorial repo on the main site. Also the main tutorial
I've found isn't that useful or in-depth. It's not bad but left me
wanting more.
I think a good tutorial would be a complete blog tutorial that had
articles with
On 31/05/06, vinjvinj <[EMAIL PROTECTED]> wrote:
>
> My website and app needs a new face. Can anyone recomend a good
> ui/graphic designer who can help me? This would be paid work.
>
> VJ
>
>
> >
>
This isn't really the place, but here are some links to get you started:
http://www.getafreelancer
Hi, Eric,
it is
drwxrwxrwx 2 root root 4096 Jun 1 01:10 demo
and
drwxrwxrwx 2 root root 4096 Jun 1 01:10 opt
thks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
Hi!
I have an existing system that is somewhat unique and I am trying to
figure out the best organizational structure for it within Django. I
was wondering if anyone had any best practices or thoughts on how best
to structure this.
This is a system that currently does a lot of back-end processi
I should mention that the back-end processes and web-apps have been
organically grown. The back-end processes and one web-app are python
and are fairly tightly coupled (they use the same home-grown model
classes), while the second web-app is currently Ruby on Rails. I'd
like to get everything in
On Wednesday 31 May 2006 11:07, mahakala wrote:
> Hi, Eric,
> it is
>
> drwxrwxrwx 2 root root 4096 Jun 1 01:10 demo
>
> and
>
> drwxrwxrwx 2 root root 4096 Jun 1 01:10 opt
>
> thks.
Does /opt/demo/test.txt already exist? If so, what are the permissions on it?
I think what I'd try is:
Make /
DavidA wrote:
> An alternative that stays inside Django is to setup a trigger in cron
> (or NT's Task Scheduler) that gets a URL every few minutes and the view
> code for that URL does the email processing you mention. You avoid
> creating a true daemon/service just by "waking" up periodically a
Hi, Eric
I just figure out what cause the problem, it relates to fedora SELinux,
since this is just a demo runs in my vmware, I disable it, and
everythins seems all right now. I will try to learn some SELinux policy
to enforce it again. Thank you!
mahakala
--~--~-~--~~~-
done ...
see
http://code.djangoproject.com/wiki/AddDojoEditor
patrick
Am 18.05.2006 um 20:29 schrieb lcaamano:
>
> You should add these dojo info to the cookbook mentioned above.
>
> http://code.djangoproject.com/wiki/CookBookAdminTools
>
> --
> lpc
>
>
> >
--~--~-~--~~---
On 5/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I had a previous post on this issue which I did not get very many
> answers to. In particular, I did not have many responses those who may
> be more directly involved with the development of this great Framework
> (or maybe
OK,
Is this a case of RTFM?
If so please let me know and I will continue to dig.
Thanks
--~--~-~--~~~---~--~~
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@goog
On 5/30/06, spacedman <[EMAIL PROTECTED]> wrote:
>
> Ground up would be my way of doing it. Lets break it down...
>
> You need an 'update' view that only shows the fields you want changing.
> That means a custom manipulator that only mentions the fields you want
> to modify. Protect this view by m
On 5/31/06, Noah <[EMAIL PROTECTED]> wrote:
> I think it would be really good if there were a list of links or
> something as a tutorial repo on the main site. Also the main tutorial
> I've found isn't that useful or in-depth. It's not bad but left me
> wanting more.
>
> I think a good tutorial wo
agreed -- I am not doing much from scratch. I am new to using web
frameworks (I'm just a project manager who likes to dabble in
design/code so I can better understand what the Dev/Creative teams go
through) and I'm pretty much using generic views to get my feet wet
with how Django works on a highe
I was talking about this on IRC the other day. I want to have a form
to add a recipe and several ingredients at once, the edit_inline
arguement seemed to be the solution (a outlined at
http://code.djangoproject.com/wiki/NewAdminChanges). However, this
seems to be removed post M-R. Is there any alt
On Tuesday 23 May 2006 20:04, medhat wrote:
> 1. I would like to generate the 'upload_to' parameter of the
> FileField based on the value of another field in my model.
>
> example:
>
> ===
> class File(models.Model):
> title = models.CharField(maxlength=50)
> project = models.ForeignKey(P
On Tuesday 30 May 2006 14:38, Paul Childs wrote:
> One, to create a fieldset with one of the Repair's fields and a
> foreign key fieldset. Is this possible? I tried it and it breaks the
> admin display.
You need to be more specific -- what breaks?
>
> Two, the foreign key fieldsets all end up a
On 01/06/2006, at 3:30 AM, Bryan Murdock wrote:
>
> Just an aside in response to the request that the blog writers all get
> together and not waste resources, take a look at the code they are
> writing. Actually, take a look at the code they are not writing. A
> basic django blog app can be do
On Wednesday 31 May 2006 07:36, favo wrote:
> somebody know how to use instance method in the validator_list of a
> field in model? I can't get the "self".
>
> class Category(models.Model):
> """ Inhert Category """
>
> title_en = models.CharField(maxlength=256, null=True)
>
> parent =
Hi,
I have a project with the following structure:
project
---> templates
--->myapp
--->templates
--->templatetags
I defined a custom tag called 'categories_list' as follow:
categories_list.py (located in myapp/templatetags)
---
I forgot to put the views.py (located in myproject)
views.py
-
from django.shortcuts import render_to_response, get_object_or_404
def index(request):
return render_to_response('homepage.html', {})
--~--~-~--~~~---~--~~
You
I'm sorry. I didn't read carefully the documentation. :(
I forgot to load the categories_list tag. Now the homepage.html looks
like this (and it's working just fine):
{% load categories_list %}
{% block sidebar %}
{% get_categories %}
{% endblock %}
--~--~-~--~~
Hello All,
I am contemplating rewriting a web application in django. One of the
core features of this application is that different groups of people
share the same database. The application is the same for each group of
people, but the users may define user defined fields that are only
visible
On 31/05/06, Ian Holsman <[EMAIL PROTECTED]> wrote:
>
>
> On 01/06/2006, at 3:30 AM, Bryan Murdock wrote:
>
> >
> > Just an aside in response to the request that the blog writers all get
> > together and not waste resources, take a look at the code they are
> > writing. Actually, take a look at t
>= Original Message From Waylan Limberg <[EMAIL PROTECTED]> =
>On 5/30/06, spacedman <[EMAIL PROTECTED]> wrote:
>>
>> Ground up would be my way of doing it. Lets break it down...
>>
>> You need an 'update' view that only shows the fields you want changing.
>> That means a custom manipulato
I would like to build a Yahoo style directory of user suggested
websites that includes categories, descriptions, etc. Does anyone know
if there is an app built already that I could use?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
http://www.djangoproject.com/documentation/tutorial2/#adding-related-objects
I think that may be what you are looking for.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Thanks for links. I spent some time at elance and getacoder.com last
night, but it's a long and painful process to find someone. I thought
I'd give it a try here.
VJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
keukaman wrote:
> I would like to build a Yahoo style directory of user suggested
> websites that includes categories, descriptions, etc. Does anyone know
> if there is an app built already that I could use?
I don't know of any pre-built app, but man that would be a really
simple app to build.
On 5/31/06, keukaman <[EMAIL PROTECTED]> wrote:
> I would like to build a Yahoo style directory of user suggested
> websites that includes categories, descriptions, etc. Does anyone know
> if there is an app built already that I could use?
I don't know of any, but the best place to see what's bee
Hi all,
I'm using the extra() method to add a calculated field to my object:
Table.objects.extra(select={'level':'nlevel(hierarchy)'})
where nlevel is a function defined in my PostgreSQL database.
The problem is that either Django or the driver is quoting the function
instead of inserting it d
Luke Plant wrote:
>However, you can override the 'validate' method on a model, and you
>might be able to use that to do what you want
>
Looks like it doesn't get called from manipulators?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On 5/31/06, Scott Anderson <[EMAIL PROTECTED]> wrote:
> The problem is that either Django or the driver is quoting the function
> instead of inserting it directly at the docs state it should:
>
> SELECT "app_table"."field_name",...,("nlevel(hierarchy)") AS "level"
> FROM "app_table"
>
> Notice the
I have two independent sites written in Django. Each requires login.
And users must login in separately.
I would like to make things easy for users and if a user signs in one
site he will be also signed automatically into the other.
Is it possible?
L.
--~--~-~--~~~
60 matches
Mail list logo