>From what I tried I think that Django doesn't support "pluggable" plug-
in kind of things. I guess it works more like helper ready than simple
"pluggable" plug-ins that doesn't require any programming from the
users of those apps.
But as people using Django is assumed to be able to handle python
Just to add: would is be better to create a ParentProfile and link it
to the default profile of user and then Subclass every other custom
profiles to this ParentProfile and make some manager/model methods to
all the system to find the user's profiles? Also would it be possible
to access the childr
Thanks for the answer, I already solved the problem using raw sql and
reconfiguring postgres with on delete cascade on relevant foreign key
(obviously this doesn't work with mysql and myisam),
my database can seems slow but consider I have about 20.000.000
records on some tables and I tested a ma
Karen,
On Jan 9, 12:40 am, "Karen Tracey" wrote:
> Is there some reason you are not simply using exclude in Meta for the form
> to avoid having these fields present in the form at all:
this would require me to create ModelForm classes for all subsets of
the form I want to use. In my use case I
Malcolm,
As a relatively new Django user but experienced web developer I just
found it counter-intuitive that the Form would set fields that are
nowhere specified or even mentioned in the request. To follow your
line of thought, a validation error should be raised if a required
field is not prese
Hi Malcolm,
I definitely am "starting out", I'm a complete web dev noob... but I
was under the impression that I was using GET & POST correctly.
I thought GET should be used when the action results in no state
change on the server side (e.g. retrievals, queries, etc) and POST was
used to alter the
Hi Briel again my senior gave me other idea and they gave me a nice
reason why they want me to use get_absolute_url()
Given our new understanding of what the best practice is, the workflow
for a template designer, who shouldn’t need to know or understand
programming, is:
1. Ignore the documen
Thanks for your recommendations/opinions/experiences.
I had a look at some of these frameworks. To get started, I will dig
deeper in the Symfony framework.
I would say that what bothers me most is that they are written in PHP
(you know, this case-insensitive language with no namespace and
incons
Dear Karen,
On 9 Jan 2009, at 04:34, Karen Tracey wrote:
> On Thu, Jan 8, 2009 at 11:19 PM, Hans Fangohr
> wrote:
>
> You are right: using 'People.profile' works. To be clear (for
> others): the application name should (in contrast to the
> documentation) NOT be converted to lowercase. (B
On 8 jan, 23:56, Matias Surdi wrote:
> Great!!
>
> I think that the _meta attribute will be enough. I think that if I
> define a method on the base model of all my models something like
> get_fields() it could then return a list of the fields by accessing
> self._meta.fields, and this get_field
Hi Praveen
It's not always an easy task being a developer.
However, I don't see the point in using Django, if you're not also
using all of the tools that available because you need a designer that
only know strict HTML, and don't know anything about the process. With
all the vars and tags you're
On Fri, 2009-01-09 at 00:33 -0800, drakkan wrote:
[...]
> consider that other orm such sqlalchemy (with the right configuration)
> can manage the mass delete without problems (tested on postgres), the
> trick is to allow control on the database cascade behaivour, I
> understand you are not interes
On Fri, Jan 9, 2009 at 9:59 AM, Flo Ledermann
wrote:
>> No. Don't ask the form class to read your mind. Create a form that knows
>> which fields it expects so that errors can be raised correctly and
>> validation will occur normally.
>
> I am not asking the form class to read my mind but to read
On Fri, 2009-01-09 at 00:59 -0800, Flo Ledermann wrote:
> Malcolm,
>
> As a relatively new Django user but experienced web developer I just
> found it counter-intuitive that the Form would set fields that are
> nowhere specified or even mentioned in the request. To follow your
> line of thought,
Thanks, Meir.
On Jan 7, 11:24 am, mksoft wrote:
> Hi Alex,
>
> On Jan 4, 12:27 pm, knight wrote:
>
>
>
> > Hi,
>
> > I have the following problem:
> > I have models.py with the following class:
>
> > class Section(Feed):
> > parent = models.ManyToManyField('self', blank=True, null=True)
> >
I read somewhere that InnoDB cant determine the order to apply DB
operations to rows when the request spans multiple tables??? (i.e.
constraint violation???) Is anyone using MySQL + InnoDB and having
similar issues? or is is it the norm to process models in Django on a
per model basis instead of
This is the reference: (not sure if I interpreted it right - sorry,
newb :)
"If you use a multiple-table UPDATE statement involving InnoDB tables
for which there are foreign key constraints, the MySQL optimizer might
process tables in an order that differs from that of their parent/
child relati
Is there a way to specify a constraint on a model ManyToMany
relationship?
For example, if I wanted to define an Animal model that has a field
which specifies which other animals it eats and I wanted to limited
these animals_I_eat relationships to animals who's specie_name starts
with "x", how wo
Hi,
Has anyone got any pointers? I'm not even sure where to begin. For non-
inlines I'm doing:
def formfield_for_dbfield(self, db_field, **kwargs):
if db_field.name == 'photo':
kwargs['widget'] = AdminImageWidget()
return db_field.formfield(**kwargs)
r
Hi Tony,
On Fri, 2009-01-09 at 03:29 -0800, Tony wrote:
> This is the reference: (not sure if I interpreted it right - sorry,
> newb :)
>
> "If you use a multiple-table UPDATE statement involving InnoDB tables
> for which there are foreign key constraints, the MySQL optimizer might
> process ta
We are having an Urgent opening for a leading MNC.
We are looking for Python Web Development/ Programmers with Django
experience.
LOCATION: Mumbai/ Andheri (E)
Looking for a quick response!
Talk to us on 9820160656 and send your CV's on
maplesolutions...@gmail.com
Kindly refer this mail to you
Hello.
I have a model with an ImageField attribute. When that model is
deleted the file is deleted as well but if the user uploads a another
file, the original will never be deleted.
This is like http://code.djangoproject.com/ticket/6157
In the comments someone mentioned that this would be cove
On Fri, 2009-01-09 at 03:33 -0800, rabbi wrote:
> Is there a way to specify a constraint on a model ManyToMany
> relationship?
>
> For example, if I wanted to define an Animal model that has a field
> which specifies which other animals it eats and I wanted to limited
> these animals_I_eat relati
Hi Rupali,
On Fri, 2009-01-09 at 03:59 -0800, MapleSolutions.hr wrote:
> We are having an Urgent opening for a leading MNC.
> We are looking for Python Web Development/ Programmers with Django
> experience.
> LOCATION: Mumbai/ Andheri (E)
You'll probably reach a good audience if you post this at
Hi Malcolm,
Filtering out all the Animals that satisfy that constraint is easy...
even for a noob like me :)
What I want is for that constraint to be enforced as/before the data
is inserted as I have a few complex (by my standards) relationships
that would benefit from that sort of functionality.
On Fri, 2009-01-09 at 04:06 -0800, rabbi wrote:
> Hi Malcolm,
> Filtering out all the Animals that satisfy that constraint is easy...
> even for a noob like me :)
>
> What I want is for that constraint to be enforced as/before the data
> is inserted as I have a few complex (by my standards) relat
Malcolm,
thanks for taking the time to clarify the concept for me. I can see
now that Django's approach is valid if one takes a form as a
specification of what "has to be there" (hence the exclude mechanism
in ModelForms) and not, as I did, of what "could be submitted". I
still have a vague feeli
Hi,
Are you considering remote workers?
[]s
Ronaldo.
On Fri, Jan 9, 2009 at 9:59 AM, MapleSolutions.hr
wrote:
>
> We are having an Urgent opening for a leading MNC.
> We are looking for Python Web Development/ Programmers with Django
> experience.
> LOCATION: Mumbai/ Andheri (E)
>
> Looking fo
Hi,
We have developed Telemeta, a "pluggable" Django application (to be added to
INSTALLED_APPS). It works great. We now need to support per-project templates
customization as one can do for the admin.
Telemeta provides a bunch of default templates. Once one has created a new
django project, and
On Fri, 2009-01-09 at 14:00 +0100, Olivier Guilyardi wrote:
> Hi,
>
> We have developed Telemeta, a "pluggable" Django application (to be added to
> INSTALLED_APPS). It works great. We now need to support per-project templates
> customization as one can do for the admin.
>
> Telemeta provides a
Hi,
First, I begin with one example :
I've this in test1/models.py
from django.db import models
class ClassA(models.Model):
foo = models.CharField("Foo", max_length = 100)
class ClassB(models.Model):
bar = models.CharField("bar", max_length = 100)
rel_a =
Thanks Malcolm.
So just to have it clear, besides the particular files and folders that I
have to add to my project (apache, wsgi etc.), in our httpd.conf, I would
add another entry and end up with something like this:
---
DocumentRoot /home/blabla/myproj_
Hi all,
I've been following the tutorial
http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api
and working on a own test-project as well.
so I tried to adapt from
class Poll(models.Model):
question = models.CharField('question',max_length=200)
def __unicode__(sel
Malcolm Tredinnick wrote:
> On Fri, 2009-01-09 at 14:00 +0100, Olivier Guilyardi wrote:
>> Hi,
>>
>> We have developed Telemeta, a "pluggable" Django application (to be added to
>> INSTALLED_APPS). It works great. We now need to support per-project templates
>> customization as one can do for the
MapleSolutions.hr wrote:
> We are having an Urgent opening for a leading MNC.
> We are looking for Python Web Development/ Programmers with Django
> experience.
> LOCATION: Mumbai/ Andheri (E)
In addition to Malcolm's (post on DjangoGigs) and Ronaldo's (are
you considering remote workers) sugges
On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote:
>
> Hi all,
>
> I've been following the tutorial
> http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api
> and working on a own test-project as well.
>
> so I tried to adapt from
>
> class Poll(models.Model):
>question =
Olivier Guilyardi wrote:
> Malcolm Tredinnick wrote:
>> On Fri, 2009-01-09 at 14:00 +0100, Olivier Guilyardi wrote:
>>>
>>> How can I add support for this optional templates/telemeta directory,
>>> automatically, whenever one has installed telemeta ?
>> The telemeta source would need to support t
I have a problem setting the check boxes that are "checked" when my
form returns (Please let me know if my logic is wrong from go)
My logic:
-- After options are selected in my form, i save() the field[] in a
textfield (concat string with commas)
-- when textfield is returned, i split() the stri
I usually do
def __unicode__(self):
return "%d" % self.question_number
On Fri, Jan 9, 2009 at 2:42 PM, Eric Abrahamsen wrote:
>
>
> On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote:
>
> >
> > Hi all,
> >
> > I've been following the tutorial
> http://docs.djangoproject.com/en/dev/intro/tut
Hi everybody,
do you know how can i get request url in views.py.
My url pattern is like (r'^wp/rmain2\.aspx','DisplayPacketApplications2'),
But my link is like :
http://wap2.cepoyun.com/wp/rmain2.aspx?pid=194&w=280jhjh
when i use 'PATH_INFO' i olnly get 'wp/rmain2\.aspx' of the link. How can i
g
Hi all,
i have to replace a php-script with a django-view. The django-view
just get some Post-Data and a file. The view works fine.
Now, i want to write a test for the upload. My Script looks like this:
from django.test.client import Client
from django.test import client
c = Client()
file = ope
On 9 jan, 17:06, "burcu hamamcıoğlu" wrote:
> Hi everybody,
>
> do you know how can i get request url in views.py.
>
> My url pattern is like (r'^wp/rmain2\.aspx','DisplayPacketApplications2'),
> But my link is like :http://wap2.cepoyun.com/wp/rmain2.aspx?pid=194&w=280jhjh
>
> when i use 'PATH_
I forgot the output for request.FILES. it's: CRITICAL request.FILES:
On 9 Jan., 17:21, "thomasbecht...@googlemail.com"
wrote:
> Hi all,
>
> i have to replace a php-script with a django-view. The django-view
> just get some Post-Data and a file. The view works fine.
> Now, i want to write a tes
To simplyfy my question:
How would you set the initial value of a form.MultipleChoiceField
being populated by a dictionary?
Django form doc says:
>>> class CommentForm(forms.Form):
... name = forms.CharField(initial='class')
... url = forms.URLField()
... comment
Hi, I'm new to Django and am trying to figure out how to make
authentication work in any view.
First off, I have a base template which has a conditional like this:
{% if user.is_authenticated %}
Yay!
{% else %}
Boo.
{% endif %]
In an accounts/urls.py, I add a line like this:
urlpatterns = patt
On Jan 9, 11:06 am, scelerat wrote:
> Hi, I'm new to Django and am trying to figure out how to make
> authentication work in any view.
>
> First off, I have a base template which has a conditional like this:
>
> {% if user.is_authenticated %}
> Yay!
> {% else %}
> Boo.
> {% endif %]
>
> In an acc
No this is Linux (SUSE10), runing behind Apache and not filesystem.
John
On Jan 9, 1:27 am, Malcolm Tredinnick
wrote:
> On Thu, 2009-01-08 at 05:12 -0800, bradders wrote:
> > I will try to put something together. I have a fairly detailed trace
> > that I have put in thesessioncode that show
Hello,
I would like to know if you could help me solve an issue with my
server setup. I have a Django application running with mod_wsgi on
apache with nginx as frontend, and it got very popular so the server
gets more than 1 requests a day. The app does some video
conversion with ffmpeg and m
What's the point of using Apache AND nginx?
The same server is also handling the database? What db server are you using?
What about caching? Have you something up and running in that sense?
And regarding video conversion, this can obviously be the root of
your problems. Can you be more specifi
I am developing a site for an academic publication that contains a few
thousand articles. Each Article has a ManyToMany relationship with one
or more Keywords from a controlled vocabulary.
In the view for a single article, I would like to be able to pull up
related articles based on shared keywor
If I were you I would start by writing down the description, pros and cons
of the approaches you've thought about. Then you'll be closer to solving
your problem and it'll be more likely that someone steps up and helps you.
Ariel.
On Fri, Jan 9, 2009 at 3:09 PM, Rodrigo Culagovski wrote:
>
> I am
On Jan 8, 5:55 pm, bruno desthuilliers
wrote:
> On 8 jan, 19:33,chiggsy wrote:
>
> > A meta question about django: how do people design dango apps?
>
> Like any other. Domain analysis to get the models (database schema,
> mostly), functional analysis to get the use cases (urls and views),
> an
>
> In the view for a single article, I would like to be able to pull up
>> related articles based on shared keywords. Just pulling up all the
>> articles that share at least one keyword would be to imprecise. What
>> I'd like to do is use some sort of weighting algorithm, so that if
>> there are a
On Jan 9, 2:40 pm, "Stefan Tunsch" wrote:
> What's the point of using Apache AND nginx?
Nginx is far better and faster and leaner at serving static files than
apache.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Jan 10, 4:21 am, lenin wrote:
> Hello,
>
> I would like to know if you could help me solve an issue with my
> server setup. I have a Django application running with mod_wsgi on
> apache with nginx as frontend, and it got very popular so the server
> gets more than 1 requests a day. The a
On Thu, Jan 8, 2009 at 12:26 AM, Malcolm Tredinnick
wrote:
>
> On Wed, 2009-01-07 at 22:50 -0200, Alvaro Mouriño wrote:
>> I find myself checking for the existence of the profile object for the
>> user everytime I call the get_profile function or making sure that it
>> gets created with every use
Using django's template language, is there a way of accessing a
specific index in a list without having to iterate over all of it?
Something like this:
{{ result_list[0] }} comes before {{ result_list[1] }}
The example above throws a TemplateSyntaxError with "Could not parse
the remainder: '[
sorry, please ignore. I found it now... murphey's law, as soon as you
ask a question you find the answer yourself
result_list.0 instead of result_list[0]
On Jan 10, 12:56 am, rabbi wrote:
> Using django's template language, is there a way of accessing a
> specific index in a list without having
The server MPM is prefork.
I had mod_wsgi in daemon mode I think, with this lines:
WSGIDaemonProcess user_name user=user_name group=user_name
WSGIProcessGroup user_name
WSGIScriptAlias / /path/to/django.wsgi
That was at the moment of the first message, but now I have commented
out the WSGIDaemo
Thanks a lot guys, that was it, should have looked at the official
documentation more closely.
On Jan 8, 9:27 pm, elithrar wrote:
> Just in case you miss it - and this is the method I'd suggest, as it
> makes updating easy:
>
> > Create a symbolic link to the admin media files from within your d
On Fri, 2009-01-09 at 05:33 -0800, klein.steph...@gmail.com wrote:
[...]
> This error is understandable because actually ClassA haven't
> ForeignKey but the relation
> between ClassA and ClassB is OneToOneField then ClassA know how to
> access to his classb object.
>
> This behavior is one missin
On Fri, 2009-01-09 at 14:03 +, Alan wrote:
[...]
> ---
>
> DocumentRoot /home/blabla/myproj_1
> ServerName myproj1.acme.com
>
> Alias
> ...
>
> ...
>
> WSGIScriptAlias / "/home/blabla/myproj_1/myproj_1.wsgi"
> W
On Fri, 2009-01-09 at 08:51 -0800, over.nine.k wrote:
> To simplyfy my question:
>
> How would you set the initial value of a form.MultipleChoiceField
> being populated by a dictionary?
>
>
> Django form doc says:
>
> >>> class CommentForm(forms.Form):
> ... name = forms.CharField(i
On Jan 10, 11:05 am, lenin wrote:
> The server MPM is prefork.
>
> I had mod_wsgi in daemon mode I think, with this lines:
>
> WSGIDaemonProcess user_name user=user_name group=user_name
> WSGIProcessGroup user_name
> WSGIScriptAlias / /path/to/django.wsgi
Which is one process with 15 threads.
I have 2 different behaviors using pdb
In this view:
from django.http import HttpResponse
import pdb; pdb.set_trace()
def index(request):
import pdb; pdb.set_trace()
return HttpResponse("Hello!")
The first debug will work and be raised in the shell but the second
one (inside the funct
I tried this. The checkboxes displayed but none of them were checked:
LOOKING_FOR = (
('Friendship', 'Friendship'),
('Dating', 'Dating'),
('A Relationship', 'A Relationship'),
('Networking', 'Networking'),
)
class ProfileForm(forms.ModelForm):
lookingfor = for
+1, if you really need PHP...
Used at University level for PHP development
2009/1/6 Dave Dash
>
> I did a lot of symfony stuff on the side about a year ago, and now
> it's the framework that I we use for our frontend servers at
> Delicious.com. It was through symfony that I found out about Dja
On Fri, 2009-01-09 at 20:29 -0600, Tolu wrote:
> I tried this. The checkboxes displayed but none of them were checked:
>
> LOOKING_FOR = (
> ('Friendship', 'Friendship'),
> ('Dating', 'Dating'),
> ('A Relationship', 'A Relationship'),
> ('Networking', 'Networking')
On Fri, 2009-01-09 at 15:50 -0800, Mat wrote:
> I have 2 different behaviors using pdb
>
> In this view:
>
> from django.http import HttpResponse
> import pdb; pdb.set_trace()
>
> def index(request):
> import pdb; pdb.set_trace()
> return HttpResponse("Hello!")
>
>
> The first debug w
lol I had originally tried that too. Nothing seems to work! I am thinking my
logic might be wrong from the start.
What I am doing is taking the request.POST.getlist('lookingfor') array[] and
storing it as a comma delimited string in the database (Textfield), then
returning the selected by plug
On Fri, 2009-01-09 at 21:20 -0600, Tolu wrote:
> lol I had originally tried that too. Nothing seems to work! I am thinking my
> logic might be wrong from the start.
Sorry, I was too fast in my last reply and missed a second error in your
line. Should have read more closely.
[...]
> > On Fri, 200
I installed Django on my Vista box. Using the Windows command shell, I
go to the site-packages/django/bin directory and here's what I get
when I type various commands:
> django-admin.py help
Type 'django-admin.py help' for usage.
> python django-admin.py help
[This gives me the proper help instr
Holy sh#*T, it worked!! Thanks man 2 WHOLE DAYS stuck on this. So shocked to
actually see the box checked!
--
From: "Malcolm Tredinnick"
Sent: Friday, January 09, 2009 9:32 PM
To:
Subject: Re: setting the checkboxes (MultipleChoiceField problem)
On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote:
>
> I installed Django on my Vista box. Using the Windows command shell, I
> go to the site-packages/django/bin directory and here's what I get
> when I type various commands:
>
> > django-admin.py help
> Type 'django-admin.py help' for usage.
>
> > pyt
Here it is:
Traceback:
File "/home/mat/projects/gae-django/dev/polls/views.py" in index
7. return HttpResponse("Hello!")
File "/home/mat/projects/gae-django/dev/polls/views.py" in index
7. return HttpResponse("Hello!")
File "/usr/lib/python2.5/bdb.py" in trace_dispatch
48.
On Jan 9, 11:51 pm, "Karen Tracey" wrote:
> On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote:
>
...
> > I Googled around, and the only thing I found was this comment:
>
> > "you have to change the file association from (cant remember) to "%1″
> > %* and it should work"
> > Source:
> >http://i.justreal
On Sat, Jan 10, 2009 at 1:25 AM, Rex wrote:
>
> On Jan 9, 11:51 pm, "Karen Tracey" wrote:
> > On Fri, Jan 9, 2009 at 10:55 PM, Rex wrote:
> >
> ...
> > > I Googled around, and the only thing I found was this comment:
> >
> > > "you have to change the file association from (cant remember) to "%1
77 matches
Mail list logo