Thanks for the clarification.
On Mar 10, 10:05 am, Malcolm Tredinnick
wrote:
> On Mon, 2009-03-09 at 21:47 -0700, Rama Vadakattu wrote:
> > understood.
>
> > But Malcom,
>
> > 1.i feel doing restructuring of data in views for this purpose is not
> > appropriate.
>
>
On Mon, 2009-03-09 at 21:47 -0700, Rama Vadakattu wrote:
> understood.
>
> But Malcom,
>
> 1.i feel doing restructuring of data in views for this purpose is not
> appropriate.
Then you are free to write a template filter to do what you like. It's
probably about three lines long.
> 2.And also
On Mon, 2009-03-09 at 21:28 -0700, Dave Fowler wrote:
> Thanks. So to summarize,
>
> No one knows of a way to change memcached settings without having to
> re-load the django settings
They're not intended to be changed like that, which is why you haven't
been flooded with answers. Not a matter
understood.
But Malcom,
1.i feel doing restructuring of data in views for this purpose is not
appropriate.
In above problem it is obvious like
1st iteration -1st element in list
.
.
.
there may be cases where accessing a list may
On Mon, 2009-03-09 at 21:21 -0700, Rama Vadakattu wrote:
> I have a list in template.
> I need to access that list based on a forloop.counter.
>
> For example :
>
> if forloop.counter is 1 then i need to access list[1]
> if forloop.counter is 5 then i need to access list[5]
> .
> so
Thanks. So to summarize,
No one knows of a way to change memcached settings without having to
re-load the django settings
mod_wsgi can be used to avoid having to restart apache but the
following statement applies:
" Only the script file itself is reloaded, no other Python modules are
On Mon, 2009-03-09 at 21:13 -0700, Brian wrote:
> I'm having trouble saving deserialied model objects. My setup is that
> I have two django instances, let's call them A and B. The intial
> request comes into server A which then serializes some objects and
> sends them off to server B for the
On Mon, Mar 9, 2009 at 11:21 PM, Rama Vadakattu wrote:
>
> I have a list in template.
> I need to access that list based on a forloop.counter.
>
> For example :
>
> if forloop.counter is 1 then i need to access list[1]
> if forloop.counter is 5 then i need to access
I have a list in template.
I need to access that list based on a forloop.counter.
For example :
if forloop.counter is 1 then i need to access list[1]
if forloop.counter is 5 then i need to access list[5]
.
so on..
I tried below techniques to solve the above problem.but none of them
is
I'm having trouble saving deserialied model objects. My setup is that
I have two django instances, let's call them A and B. The intial
request comes into server A which then serializes some objects and
sends them off to server B for the results of some computation. When
server B tries to save the
On Mar 10, 2009, at 12:43 AM, bax...@gretschpages.com wrote:
>
> I'm trying to build a combined feed, and not having much luck. Here's
> what I have:
>
> class CombinedFeed(Feed):
>title = site.name +" combined feed"
>link = "/"
>description = "Latest updates from all "+site.name +"
On Mon, 2009-03-09 at 20:45 -0700, K*K wrote:
> Let me show you some data in database, you will understand it.
No, because that wasn't the question I was asking. I wasn't having
problems understanding the models. I was asking why you have to do one
query per Plan instance, instead of all
Let me show you some data in database, you will understand it.
mysql> select * from plans where plan_id = 184;
+-+---+-+---+
| plan_id | name | create_date | author_id |
On Tue, 2009-03-10 at 13:15 +1100, Malcolm Tredinnick wrote:
> On Mon, 2009-03-09 at 07:55 -0700, Tipan wrote:
> >
> > > Do you mean they are inserted into the source as "oacute;" and so
> > > the user sees, literally, ""?
> > >
> >
> > Yes. The string has the html code for the accent as you
On Mon, 2009-03-09 at 10:31:16 PM, Malcolm Tredinnick wrote:
>> Is it possible in a django view, to take objects from 2 different
>> models, which are related one to the other through a ForeignKey
>> (primary key of one model is foreign key in the other model), make
>> something similar to an SQL
On Mon, 2009-03-09 at 19:22 -0700, K*K wrote:
> Are there some other solution of it ?
I still don't understand the problem.
>
> The more than 2000 queries is from the get_latest_text() function, it
> will be generate one query each plan. I have more than 2000 plans so
> it will generate more
On Mon, Mar 9, 2009 at 9:52 PM, Wiiboy wrote:
>
> But Django doesn't offer it bult-in?
> >
>
Django doesn't have anything included to automatically create all that, but
you can quite easily build it yourself.
Alex
--
"I disapprove of what you say, but I will defend to the
But Django doesn't offer it bult-in?
--~--~-~--~~~---~--~~
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
If considering mod_wsgi due to its reloading ability, ensure you read:
http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode
http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html
http://blog.dscpl.com.au/2009/02/source-code-reloading-with-modwsgi-on.html
to
On Mon, Mar 9, 2009 at 9:44 PM, Wiiboy wrote:
>
> Sorry, I was a bit vague. I mean, how does one do something like the
> Admin interface does on my site?
> >
>
I assume you are refering to the changelist view with the generic filtering,
sorting, and displaying. You can
Sorry, I was a bit vague. I mean, how does one do something like the
Admin interface does on my site?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi guys,
I'm new to Django (haven't even done more than the tutorial,
actually). I'm having people submit articles for my site newsletter.
I want to sort the archives of these by both name and date, almost
EXACTLY like the Admin interface does it (filter by date, sort by
date, by name, etc.)
How
Yeah, I wrote the SQL before, but the requirements writer is a ex-
Turbogears developer, and he said it can be implemented with
SQLAlchemy. -_-#
So the SQL code was deleted by him in early days.
On Mar 10, 10:25 am, Alex Gaynor wrote:
> On Mon, Mar 9, 2009 at 9:22 PM,
Heh, I will agree with you if I am the boss. :-)
But I hope the ORM of Django will be powerful enough for difference
requirements more.
On Mar 9, 6:59 pm, James Bennett wrote:
> On Mon, Mar 9, 2009 at 4:47 AM, K*K wrote:
> > Because the
> >
On Mon, Mar 9, 2009 at 9:22 PM, K*K wrote:
>
> Are there some other solution of it ?
>
> The more than 2000 queries is from the get_latest_text() function, it
> will be generate one query each plan. I have more than 2000 plans so
> it will generate more than 2000 queries.
Are there some other solution of it ?
The more than 2000 queries is from the get_latest_text() function, it
will be generate one query each plan. I have more than 2000 plans so
it will generate more than 2000 queries.
def get_latest_text(self):
try:
tptxt = PlanTexts.objects
Thanks Russ! Your insight is greatly appreciated.
On Mon, Mar 9, 2009 at 8:58 PM, Russell Keith-Magee
wrote:
>
> On Tue, Mar 10, 2009 at 8:23 AM, Ben Davis wrote:
> > are you saying that django-evolution does not support migrating between
> >
On Mon, 2009-03-09 at 07:40 -0700, knight wrote:
> Hi,
>
> I am trying to install django application on CentOS 5 and I'm getting
> this error, when I go to the admin page:
>
> ImportError: Could not import settings 'mx30.settings' (Is it on
> sys.path? Does it have syntax errors?): No module
On Mon, 2009-03-09 at 07:55 -0700, Tipan wrote:
>
> > Do you mean they are inserted into the source as "oacute;" and so
> > the user sees, literally, ""?
> >
>
> Yes. The string has the html code for the accent as you show above.
I showed two possiblities. Which one is it? If the string is
Hello,
I have a page that must show data in one of the follow three ways.
A. No choices: Nothing to choose from. Page will show nothing, or
probably a message saying something about there being nothing to
choose.
B. 1 Choice: There is only 1 and you must choose it. So, not much
of a
On Tue, Mar 10, 2009 at 8:23 AM, Ben Davis wrote:
> are you saying that django-evolution does not support migrating between
> "versions" (ie up and down)?
Django Evolution doesn't currently support down-migrations. This isn't
due to any particular technical limitation -
On Mon, Mar 9, 2009 at 8:43 PM, Serdar T. wrote:
>
> OK. So for posterity's sake, I wanted to note that I solved this
> problem, and it was completely my own embarrassingly stupid oversight
> (is there a Jargon acronym for telling yourself to read your own
> source more
Thanks, I'm currently under mod_python... maybe I should switch.
On Mar 9, 8:33 pm, Alex Gaynor wrote:
> On Mon, Mar 9, 2009 at 8:31 PM, Dave Fowler wrote:
>
> > I'm running Django with memcached on EC2. We frequently turn on or
> > off different
OK. So for posterity's sake, I wanted to note that I solved this
problem, and it was completely my own embarrassingly stupid oversight
(is there a Jargon acronym for telling yourself to read your own
source more closely?).
The problem was not the project layout or Django code, but the link in
On Mon, Mar 9, 2009 at 8:31 PM, Dave Fowler wrote:
>
> I'm running Django with memcached on EC2. We frequently turn on or
> off different servers with memcached running on each.
>
> To configure your memcached the docs suggest you list them in your
> settings file:
>
>
On Mon, 2009-03-09 at 18:04 -0700, Mario Zorz wrote:
> Hi all
>
> Thanks in advance to whomever reads this :)
>
> Is it possible in a django view, to take objects from 2 different
> models, which are related one to the other through a ForeignKey
> (primary key of one model is foreign key in the
I'm running Django with memcached on EC2. We frequently turn on or
off different servers with memcached running on each.
To configure your memcached the docs suggest you list them in your
settings file:
CACHE_BACKEND = 'memcached://172.19.26.240:11211;172.19.26.242:11211/'
The only problem
Hi all
Thanks in advance to whomever reads this :)
Is it possible in a django view, to take objects from 2 different models, which
are related one to the other through a ForeignKey (primary key of one model is
foreign key in the other model), make something similar to an SQL JOIN and have
the
On Tuesday 10 March 2009 04:53:25 Ben Davis wrote:
> are you saying that django-evolution does not support migrating between
> "versions" (ie up and down)?
no
>
> I'm mostly trying to get an idea of what migration frameworks django
> devopers use, and why they prefer it.
most do not use
are you saying that django-evolution does not support migrating between
"versions" (ie up and down)?
I'm mostly trying to get an idea of what migration frameworks django
devopers use, and why they prefer it.
On Mar 7, 2009 5:31 PM, "Briel" wrote:
A fixed migration is the
Oh yeah, Transactions.
django.db.transaction.commit_on_success
http://docs.djangoproject.com/en/dev/topics/db/transactions/?from=olddocs#django-db-transaction-commit-on-success
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi there,
I've just encountered a strange problem with my django application,
wondering if anyone has seen it before.
I tried to store an instance of model into session in one of my view
functions and got this error:
On Mon, Mar 9, 2009 at 4:03 PM, Mitch Anderson wrote:
>
> Hi,
>
> I'm new to django and python in general so, I'm not sure if the way
> I'm doing this is the most correct way. But I'm writing a manager
> application for FTP... I keep the user accounts in a database and I'm
Hi,
I'm new to django and python in general so, I'm not sure if the way
I'm doing this is the most correct way. But I'm writing a manager
application for FTP... I keep the user accounts in a database and I'm
writing the django app to manage it.
Anyway, I have three models more or less like
Rajesh,
Thanks a lot for taking the time to explain, it helps a lot.
/Håkan
On Mar 9, 7:02 pm, Rajesh D wrote:
> On Mar 9, 9:11 am, Håkan W wrote:
>
> > Hi all,
>
> > I'm a bit confused about the caching. I've started using per-view
> > caching with
I am in the process of upgrading my site to Django version 1.1. In the
previous version of
0.97 I was using the datetime widgets from the admin.
But, since I have upgrade the widgets no longer display if the user
does not
have access to the admin site. When I login as a user who has admin
On Mon, Mar 9, 2009 at 3:12 PM, Serdar T. wrote:
>
> Ok. So are the additional dotted paths being added by the shell in
> order to search the child directories of my project? It occurred to me
> after I posted that the second of the three paths ( '/home/user/web/
>
Ok. So are the additional dotted paths being added by the shell in
order to search the child directories of my project? It occurred to me
after I posted that the second of the three paths ( '/home/user/web/
project/..', ) might map to my static/ or templates/ directories, for
instance.
The third
On Mon, Mar 9, 2009 at 3:06 PM, Brandon Taylor wrote:
>
> Hi Alex, thanks for the response.
>
> I see that Django is trying to select a property that doesn't exist
> from this view...
>
> SELECT "LU_CSU_CODE"."ID", "LU_CSU_CODE"."DEPARTMENT",
> "LU_CSU_CODE"."TITLE" FROM
Hi Alex, thanks for the response.
I see that Django is trying to select a property that doesn't exist
from this view...
SELECT "LU_CSU_CODE"."ID", "LU_CSU_CODE"."DEPARTMENT",
"LU_CSU_CODE"."TITLE" FROM "LU_CSU_CODE" ORDER BY
"LU_CSU_CODE"."DEPARTMENT" ASC
There is no field LU_CSU_CODE.ID
Here
On Mon, Mar 9, 2009 at 2:38 PM, Brandon Taylor wrote:
>
> Hi everyone,
>
> Is there something special I need to know in order to select records
> from a view in Oracle? My user has select permissions on the schema in
> question.
>
> When I output the SQL from the
The problem you are seeing regarding the link i mentioned briefly in
my last post. Django does auto escapingbe default of all template vars
and values. In your case that means that you see the html you wrote
because the <>" has been converted to a code that will display the
signs but disable the
Hi everyone,
Is there something special I need to know in order to select records
from a view in Oracle? My user has select permissions on the schema in
question.
When I output the SQL from the connection, everything looks in order.
I'm using Django trunk, Python 2.6.1 and cx_Oracle-5.0.1
TIA,
ok briel, maybe i should explain myself better
you're right about the function with that innecesary 'request'
object... but i'd need it for any other function -yet to be
implemented
-by the way, i use the shortcut render_to_response
regarding the html stuff, with the function defined early if i
On Mon, Mar 9, 2009 at 1:06 PM, Serdar T. wrote:
>
> So I'm continuing to look for the source of bugs on this front, and
> wanted to add a note on a strange PYTHONPATH issue that I've
> encountered.
>
> When I fire up ipython from my project directory (using ./manage.py
>
So I'm continuing to look for the source of bugs on this front, and
wanted to add a note on a strange PYTHONPATH issue that I've
encountered.
When I fire up ipython from my project directory (using ./manage.py
shell) , the PYTHONPATH includes the following paths for my project:
On Mar 9, 9:11 am, Håkan W wrote:
> Hi all,
>
> I'm a bit confused about the caching. I've started using per-view
> caching with the @cache_page decorator.
>
> Now, if I add this to pages that return private content to logged-in
> users, will it do the right thing and not
For the time being, I'm using the previous suggestion. I've just heard
about dojango earlier and I hope I can try it later. Thanks.
On Mar 9, 2:43 pm, Wolfram Kriesing
wrote:
> Did you try dojango?http://code.google.com/p/dojango/
> Dojango is a reusable django
On Mar 9, 11:28 am, gnijholt wrote:
> Hello django-users,
>
> I'm having some trouble with a date-range filter.
> My goal is to prevent a model from being saved when it's date-range
> overlaps with existing records.
>
> Apparently, the math is quite straightforward:
>
>
On Mar 9, 11:28 am, gnijholt wrote:
> Hello django-users,
>
> I'm having some trouble with a date-range filter.
> My goal is to prevent a model from being saved when it's date-range
> overlaps with existing records.
>
> Apparently, the math is quite straightforward:
>
>
On Mon, Mar 9, 2009 at 12:10 PM, Jesse wrote:
>
> The problem is that the python converts the andor value to a
> character, even though the radio button is presenting it as numeric.
> I needed to place quotes around the number:
> if andor == '1' and then it works. Hope this
The problem is that the python converts the andor value to a
character, even though the radio button is presenting it as numeric.
I needed to place quotes around the number:
if andor == '1' and then it works. Hope this helps someone else.
--~--~-~--~~~---~--~~
You
On Mon, Mar 9, 2009 at 12:03 PM, Rajesh D wrote:
>
>
>
> On Mar 9, 12:48 pm, Adam Schmitz wrote:
> > Hey All,
> >
> > I just setup my webapp to use the django user authentication and
> everything
> > works smoothly so far. The one thing I'm
On Mar 9, 12:48 pm, Adam Schmitz wrote:
> Hey All,
>
> I just setup my webapp to use the django user authentication and everything
> works smoothly so far. The one thing I'm wondering is: after the user logs
> in, how do you access the user object from another app?
>
> The
You can get the current user through the request object: request.user.
If that fails, you need to have if you have AuthenticationMiddleware
installed probably.
~Briel
On 9 Mar., 17:48, Adam Schmitz wrote:
> Hey All,
>
> I just setup my webapp to use the django user
Hey All,
I just setup my webapp to use the django user authentication and everything
works smoothly so far. The one thing I'm wondering is: after the user logs
in, how do you access the user object from another app?
The main thing I'm trying to accomplish is I want to save a model with one
of
You have a problem with your calculation, if you dont want any overlap
at all.
The above code will only be true when the intire range of start/end 2
is within start/end 1.
what you need to check if you dont want any overlap is these two
statements:
(start1 <= start2 and end1 >= start2)
(start1 <=
I'm trying to build a combined feed, and not having much luck. Here's
what I have:
class CombinedFeed(Feed):
title = site.name +" combined feed"
link = "/"
description = "Latest updates from all "+site.name +" feeds"
description_template = 'feeds/combined.html'
def
Hi and welcome to django.
In regards to question 1, it looks like you are missing something. The
request object, that you have as parameter in your function, is used
in the views.py file. The object has a lot of the info that you need,
like the user, the post data if any ect. If you want to make
ok alex -and thank for your so quick assistance
let's see if i get it -i guess not, because have an syntax error
having this in settings.py file:
# --
...
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
Template:
{% for pathology in pathology_list %}
{{ pathology.pathology }}
{% endfor %}
There are actually three search selects(pathology, commodity,
technology) The user can do and/or for a mix or match of the three,
which is why I need the and/or option in the views.py.
On Mon, Mar 9, 2009 at 11:11 AM, Julián C. Pérez wrote:
>
> hi everyone from colimbia
> i'm new on django... so far, i love it... i'm very used to php, but
> the solution with django/python is just awesome
> i have started a project and i've been catching up with the basics...
hi everyone from colimbia
i'm new on django... so far, i love it... i'm very used to php, but
the solution with django/python is just awesome
i have started a project and i've been catching up with the basics...
right now i have 2 doubts...
1. i created a file called 'globalValues.py' in the
On Mon, Mar 9, 2009 at 11:04 AM, Jesse wrote:
>
> Hello,
>
> I have a radio button in template for a search "AND" or "OR"
> selection, with the name andor1 values 1 (or) and 2 (and)
>
>
>
> In the views.py:
> def Bypub(request):
>andor1 = request.POST['andor1']
>
On Mon, Mar 9, 2009 at 10:57 AM, mike171562 wrote:
>
> To display and edit my extension of the user model in the admin
> interface I simply add
>
>class Admin:
>list_display = ('account_number','userfield')
>
> how can i get this to display in my ModelForm
To display and edit my extension of the user model in the admin
interface I simply add
class Admin:
list_display = ('account_number','userfield')
how can i get this to display in my ModelForm fields?
On Mar 9, 10:51 am, mike171562 wrote:
> Thanks
Thanks alex, that worked, I have the extra field, and now to figure
out how to to tie it in to the main form and my user model.
On Mar 9, 10:12 am, Alex Gaynor wrote:
> On Mon, Mar 9, 2009 at 10:10 AM, mike171562 wrote:
>
>
>
>
>
> > thanks
Thanks for your replies, It worked.
On Mar 8, 6:16 pm, Malcolm Tredinnick
wrote:
> On Sun, 2009-03-08 at 18:01 -0700, juanefren wrote:
> > Right I would mean 1.1 alpha. Looking with more details I found that
> > error only appears when I use my class __str__ method,
Oh, nevermind, i figured out how to make nested joins only with q
objects!
On 9 мар, 17:26, "[CPR]-AL.exe" wrote:
> Thanks, but i thought that there's some django-way to do such a
> thing... is there a way i can add raw SQL query to Q object? That will
> (perhaps) solve my
Hi,
i'm having some problems with the following.
Set-Up:
I am extending the User Model with inheritance just as descirbed
here:
http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/
I think it is working pretty well since it is pretty powerfull and
Hello django-users,
I'm having some trouble with a date-range filter.
My goal is to prevent a model from being saved when it's date-range
overlaps with existing records.
Apparently, the math is quite straightforward:
( start1 <= end2 and start2 <= end1 )
if TRUE, the ranges overlap (*)
On Mon, Mar 9, 2009 at 10:10 AM, mike171562 wrote:
>
> thanks malcolm, thats doesnt seem to work though
>
> class UserModelForm(forms.ModelForm):
>class Meta:
>model = User
> account = forms.CharField(max_length=50)
>fields =
>
thanks malcolm, thats doesnt seem to work though
class UserModelForm(forms.ModelForm):
class Meta:
model = User
account = forms.CharField(max_length=50)
fields =
('username','email','first_name','last_name','account')
adding the 'account' field as extra is not
Ramiro: You put me onto something, the only model that returns
coherent data on the command line has str defined for model
ie.
class Book(models.Model):
title = models.CharField(max_length=100)
authors = models.ManyToManyField(Author)
publisher = models.ForeignKey(Publisher)
> Do you mean they are inserted into the source as "oacute;" and so
> the user sees, literally, ""?
>
Yes. The string has the html code for the accent as you show above.
> This could be a bug. Any strings provided by Django itself (and this
> includes translated strings, although we don't make
Hi,
I am trying to install django application on CentOS 5 and I'm getting
this error, when I go to the admin page:
ImportError: Could not import settings 'mx30.settings' (Is it on
sys.path? Does it have syntax errors?): No module named mx30.settings
my httpd.conf looks like this:
LoadModule
Thanks, but i thought that there's some django-way to do such a
thing... is there a way i can add raw SQL query to Q object? That will
(perhaps) solve my code design problem
On 6 мар, 01:06, creecode wrote:
> You can always perform raw SQL queries
>
Le 7 mars 09 à 05:33, wynfred a écrit :
>
> David Larlet's Amazon S3 wrapper for Django seems widely used, and I'm
> inclined to use it. However, there's something in the documentation
> that confuses me:
> http://code.welldev.org/django-storages/wiki/S3Storage
>
> It seems as though one can
On Mon, Mar 9, 2009 at 9:09 AM, uprising wrote:
>
> Thanks for your fast reply..
> You mean unique_together=(node_a, node_b)?
> No, that's not what I meant.
>
> I want to make sure if someone has created
> Edge(node_a=x, node_b=y).save()
> he can't add
> Edge(node_a=y,
Thanks for your fast reply..
You mean unique_together=(node_a, node_b)?
No, that's not what I meant.
I want to make sure if someone has created
Edge(node_a=x, node_b=y).save()
he can't add
Edge(node_a=y, node_b=x).save()
because edge is a set of two distinct nodes.
On Mar 9, 8:54 pm, Alex
On Mon, Mar 9, 2009 at 12:03 PM, NoviceSortOf wrote:
>
>
> On the command line I'm unable to get a coherent return on my data
> object filters or fetches,
>
> Instead of getting any detail I get a dictionary with nothing but the
> words UserProfile,
> UserProfile object
On Mon, Mar 9, 2009 at 9:03 AM, NoviceSortOf wrote:
>
>
> On the command line I'm unable to get a coherent return on my data
> object filters or fetches,
>
> Instead of getting any detail I get a dictionary with nothing but the
> words UserProfile,
> UserProfile object
On the command line I'm unable to get a coherent return on my data
object filters or fetches,
Instead of getting any detail I get a dictionary with nothing but the
words UserProfile,
UserProfile object where Field name and value should be.
ie.
>>>g = UserProfile.objects.filter(email =
On Mon, Mar 9, 2009 at 8:52 AM, uprising wrote:
>
> Just reminded of a problem by this post, how can I validate a unique
> pair of nodes like this:
>
> class Edge(models.Model):
>node_a: models.ForeignKey(Node)
>node_b: models.ForeignKey(Node)
>
> I mean if I
Just reminded of a problem by this post, how can I validate a unique
pair of nodes like this:
class Edge(models.Model):
node_a: models.ForeignKey(Node)
node_b: models.ForeignKey(Node)
I mean if I already have {"node_a": 1, "node_b": 2}, I can't add
{"node_a": 2, "node_b": 1}
How
i note that there is interest in GWT Django Models / Forms
integration, which is something presently being experimented on in
pyjamas by some of the users.
following on from this:
I don't know if it can be done without extra, maybe something like
this (I have not tested it):
Homeloan.objects.extra(
select={"banker_category": "appname_bankercategory.name"},
tables = ["appname_bankercategory", "appname_banker"],
where = ["appname_bankercategory.id =
On Mon, Mar 9, 2009 at 7:24 AM, guptha wrote:
>
> thanks for your reply
> but i cannot solve my problem i will make my question clear this time
>
>
> class BankerCategory(models.Model):
>name = models.CharField(max_length=125,unique=True)
> created_on =
On Mon, Mar 9, 2009 at 7:22 AM, Reiner wrote:
>
> Additionally django comes with a sitemap application in
> contrib.sitemaps.
> See http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/ for
> more information.
>
> This should make indexing your website a lot easier
On Mon, Mar 9, 2009 at 7:17 AM, Reiner wrote:
>
> Hi,
>
> have a look at the documentation of field options in models:
> http://docs.djangoproject.com/en/dev/ref/models/fields/#blank
>
> class Foo(models.Model):
>this_is_required = models.CharField(...)
>
1 - 100 of 130 matches
Mail list logo