Malcolm,
Thank you for a run-down of the standard practices for this group - I
should have looked around first, to see what others had done :) But
you did indeed solve my problem! I had a circular reference with
views.py and models.py.
Thanks again for the quick response!
-Jeff
On Sat, 2007-12-08 at 22:09 -0800, subgiambi wrote:
> I have an application named "projects", with a models.py defining both
> FVProject and Finance classes. But for some reason, my views.py in
> the same folder throws a "global name 'FVProject' is not defined"
> error when trying to import
> The problem arises when I do a 'python manage.py syncdb'. I would of
> thought that command would create my new manytomany table. Something
> like 'app_collection_specials'. Do I have to manually create that
> table?
James nailed it. You might want to look into django-evolution:
I have an application named "projects", with a models.py defining both
FVProject and Finance classes. But for some reason, my views.py in
the same folder throws a "global name 'FVProject' is not defined"
error when trying to import either class!
The following is at the top of my views.py:
from
On Dec 8, 2007 10:57 PM, Carl Karsten <[EMAIL PROTECTED]> wrote:
> I this text, does "separate Web server" contingent on a 2nd box? If it is
> only
> one box, the same Apache instance would be preferred, right?
No, and no.
You don't have to have separate physical machines, but the recommended
I this text, does "separate Web server" contingent on a 2nd box? If it is only
one box, the same Apache instance would be preferred, right?
http://www.djangoproject.com/documentation/modpython/
=== quote ===
Django doesn’t serve media files itself; it leaves that job to whichever Web
server
On Dec 8, 2007 8:36 PM, Greg <[EMAIL PROTECTED]> wrote:
> The problem arises when I do a 'python manage.py syncdb'. I would of
> thought that command would create my new manytomany table. Something
> like 'app_collection_specials'. Do I have to manually create that
> table?
Yes. Once syncdb
On 09-Dec-07, at 8:04 AM, gordyt wrote:
> Just got an email from Amazon saying they have shipped the Django
> book. Congrats to the team!!!
w00t
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Foss Conference for the common man:
Hello,
I created a new table called Specials. I've added a new column in my
Collecions class that is a manytomany to my new Specials class. It
looks like the following:
class Specials(models.Model):
type = models.CharField(maxlength=200)
class Collection(models.Model):
special =
Greetings All,
Just got an email from Amazon saying they have shipped the Django
book. Congrats to the team!!!
--gordy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Keep in mind, if you are using the Django ORM, you don't need to worry
about quoting names: it will do it for you. Only if you are creating
SQL statements as strings yourself do you need to think about quoting.
Also, I'm not sure what you need done to the variable that quoting isn't
doing.
On Dec 9, 12:57 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Dec 8, 2007 5:58 PM, Nianbig <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Dec 8, 11:54 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> > wrote:
> > > On Sat, 2007-12-08 at 14:28 -0800, Nianbig wrote:
> > > > I´m trying to use
On Dec 8, 2007 5:58 PM, Nianbig <[EMAIL PROTECTED]> wrote:
>
> On Dec 8, 11:54 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > On Sat, 2007-12-08 at 14:28 -0800, Nianbig wrote:
> > > I´m trying to use django.db.backend.quote_name function to prevent
> SQL-
> > > injection, as stated in
Hi list,
I’m very proud to announce the availability of a new meeting point for
all German-speaking Django developers and users: http://www.django-de.org
. Thanks to all people that worked on this during the last week!
We totally owe David Larlet and his pals of Django-fr [1] a barrel of
On Dec 8, 11:54 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-12-08 at 14:28 -0800, Nianbig wrote:
> > I´m trying to use django.db.backend.quote_name function to prevent SQL-
> > injection, as stated in the Django Book Security-chapter,
>
On Sat, 2007-12-08 at 14:28 -0800, Nianbig wrote:
> I´m trying to use django.db.backend.quote_name function to prevent SQL-
> injection, as stated in the Django Book Security-chapter,
> http://www.djangobook.com/en/beta/chapter20/.
>
> But I'm having difficulties in getting it working, "Could
Hello group,
I wanna use the admin interface for manipulating the db-data. I have a
hierarchy of categories and products that shall belong to one or more
categories. Here are the models I currently have:
class Category(models.Model):
name = models.CharField(max_length=30)
parent =
I´m trying to use django.db.backend.quote_name function to prevent SQL-
injection, as stated in the Django Book Security-chapter,
http://www.djangobook.com/en/beta/chapter20/.
But I'm having difficulties in getting it working, "Could not import
portal.objects.views.start. Error was: cannot
Can you recommend any in particular that you have found to work well?
On Dec 7, 11:30 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Dec 7, 2007 10:16 PM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
> > This quite literally is the only thing that's keeping me from going
> > with Django
Hello I will like you see this page And tell me what do you think
www.Man-X.org
Thank you very much
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
http://www.dmDigitalMusic.com/money
Pls visit the site and post ur comments thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Oh, just a precision for those who are interested. I put Alex's code
in the __init__.py file of my profile app.
On Dec 9, 12:37 am, Julien <[EMAIL PROTECTED]> wrote:
> Fantastic! It works beautifully. Very neat and powerful.
>
> Thanks for your help guys!
>
> On Dec 9, 12:02 am, Thomas <[EMAIL
Fantastic! It works beautifully. Very neat and powerful.
Thanks for your help guys!
On Dec 9, 12:02 am, Thomas <[EMAIL PROTECTED]> wrote:
> Very good idea.
>
> T.
>
> On Dec 8, 1:44 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
>
> > Use django signals infrastructure. Handle post_save and
Very good idea.
T.
On Dec 8, 1:44 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Use django signals infrastructure. Handle post_save and post_delete
> signal and add or delete profile. Example of creation:
>
> from django.contrib.auth.models import User
> from django.db.models import signals
>
home page :
http://en.sababadc.com
Exchange any files over Direct Connect protocol, using SababaDC a
client free from spyware. With SababaDC you get the power over DC
Network. You have a right to create your own servers and communities.
You also can connect to multiple hubs simultaneously and
Use django signals infrastructure. Handle post_save and post_delete
signal and add or delete profile. Example of creation:
from django.contrib.auth.models import User
from django.db.models import signals
from django.dispatch import dispatcher
def create_profile_for_user(sender, instance,
Thanks for the link Thomas. In fact I had already stumbled on django-
profiles before. But I don't think this quite solve my problem.
I'd like the profile to be automatically created when a new user is
created, even when creating a user through the admin interface or
through the shell for
Julien,
have a look here:
http://www.b-list.org/weblog/2007/nov/24/profiles/
Thomas
On Dec 8, 12:20 pm, Julien <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I feel like my question must have been asked before, but I couldn't
> find any help on this group or through regular googling.
>
> All I'm
Hi all,
I feel like my question must have been asked before, but I couldn't
find any help on this group or through regular googling.
All I'm trying to do is that whenever a new user is created (either
through the admin interface, or with django-registration), an instance
of the associated
On Sat, 2007-12-08 at 16:56 +0800, 1234 wrote:
> how to form the admin of django. Only users can administrate the
> informations which published by themselves.
>
> How to perform this without using "newforms-admin"?
You cannot do this. The admin interface is built on the principle that
how to form the admin of django. Only users can administrate the
informations which published by themselves.
How to perform this without using "newforms-admin"?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
django admin 中 如何实现用自己添加的信息自己管理?
查了不少资料,newforms admin 分支对定制admin进行了加强可以实现,但因为问题较多不敢使用
,不知道直接使用目前的 model 不知道能否实现,或者有没有其他的方法来实现?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
32 matches
Mail list logo