hi francis -
Francis Lavoie wrote:
> I have a page that list products. These products are in different
> categories, some belongs to other products (like addons). But I need to
> sort them as the most important product is at the top. The problem is
> that I can't come up with a good solution. I
On 9/26/07, Mark Green <[EMAIL PROTECTED]> wrote:
>
> I say thanks for the pointer, too.
> A quick question (since you seem to be involved with this), is there any
> reason to have django not prefix the form fields by default with, say,
> the model-name (so prefix='' or prefix='somethingelse' can
On 9/27/07, ringemup <[EMAIL PROTECTED]> wrote:
>
> One of the limitations of the Django ORM that I'd imagine would be a
> big deal for financial reporting is that it doesn't have the best
> support for grouping and aggregate functions. Is there any plan to
> deal with that in the future?
Hi Joseph,
I say thanks for the pointer, too.
A quick question (since you seem to be involved with this), is there any
reason to have django not prefix the form fields by default with, say,
the model-name (so prefix='' or prefix='somethingelse' can still be
used if someone doesn't want it that
Thanks Jonathan, this information has been helpful setting me on right
track :-)
On Sep 25, 2:27 am, "Jonathan Buchanan" <[EMAIL PROTECTED]>
wrote:
> On 9/25/07, Michael <[EMAIL PROTECTED]> wrote:
>
> >
> > Using SQLite I can pull out the data I want using a query along the
> > line of:
>
> >
On Sep 26, 10:02 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote:
>
> > user = models.ForeignKey(auth.models.User)
>
> > It appears that the django.contrib.auth is missing the models
> > attribute.
>
> No, it's not. Most likely there's a bad
On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote:
> user = models.ForeignKey(auth.models.User)
>
> It appears that the django.contrib.auth is missing the models
> attribute.
No, it's not. Most likely there's a bad import statement in your
models file, or no import statement, or you've got two
http://spielwelt6.knightfight.de/?ac=vid=121044096
--~--~-~--~~~---~--~~
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 Sep 26, 9:36 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote:
>
> > ViewDoesNotExist: Tried index in module projectsmt.imglog.views. Error
> > was: 'module' object has no attribute 'models'
>
> Something in your views module is trying to
Hot jobs openings - Apply now
All India job bank offers high flying career placement now for top
notch call centers in Delhi and outside with 100% placement guarantee.
Software Developer
Category : Software, Hardware/ EDP , Role : Software Engineer/
Programmer
Key Skills : COBOL, DB2,
Hot jobs openings - Apply now
All India job bank offers high flying career placement now for top
notch call centers in Delhi and outside with 100% placement guarantee.
Software Developer
Category : Software, Hardware/ EDP , Role : Software Engineer/
Programmer
Key Skills : COBOL, DB2,
On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote:
> ViewDoesNotExist: Tried index in module projectsmt.imglog.views. Error
> was: 'module' object has no attribute 'models'
Something in your views module is trying to import from a 'models'
module that either doesn't exist, or isn't where your
I have been working on trying to deploy a simple app that I created
and works fine with the development server. Deployed it using apache
and mod_wsgi. After working through a few initial permissions issues
I am left with the following error:
ViewDoesNotExist: Tried index in module
On 9/26/07, ringemup <[EMAIL PROTECTED]> wrote:
> One of the limitations of the Django ORM that I'd imagine would be a
> big deal for financial reporting is that it doesn't have the best
> support for grouping and aggregate functions. Is there any plan to
> deal with that in the future?
There
One of the limitations of the Django ORM that I'd imagine would be a
big deal for financial reporting is that it doesn't have the best
support for grouping and aggregate functions. Is there any plan to
deal with that in the future?
--~--~-~--~~~---~--~~
You
Off the top of my head, how about something like this:
form_data = request.POST
form_data['domain_id'] = domain_id
form = DNSRecordForm(form_data)
if form.is_valid():
form.save()
I think you should get the idea. Obviously the DNSRecordForm will
have to have the domain field in it.
Hi,
I have a question related to sorting items.
I have a page that list products. These products are in different
categories, some belongs to other products (like addons). But I need to
sort them as the most important product is at the top. The problem is
that I can't come up with a good
On Sep 26, 6:23 pm, Chris Brand <[EMAIL PROTECTED]> wrote:
> kidormb wrote:
> > When I restart Apache2 and invoke an application in mysite, the
> > response is correct. If I then
> > invoke an application in testsite, there are errors with the url since
> > it is apparently still using the
> >
On 9/27/07, olivier <[EMAIL PROTECTED]> wrote:
>
> I must say I was rather disappointed lately about the limitations of
> the django ORM, which doesn't let you have any control of the joins
> used internally [1].
Doesn't let you have control of joins _yet_. This is one of the goals
of the
There's always the option of using django ORM for the declarative stuff and
your models and then if you need to do anything more complicated
introspecting the DB (or the models themselves) and creating some SA Table
models from that... I'm not sure if it's the most elegant but ithis approach
seems
http://www.almzaad.net/vb/index.php
--~--~-~--~~~---~--~~
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
kidormb wrote:
> When I restart Apache2 and invoke an application in mysite, the
> response is correct. If I then
> invoke an application in testsite, there are errors with the url since
> it is apparently still using the
> mysite settings.
>
> I have to restart Apache2 to correctly invoke an
I am a Django newbie and I am sure there is a simple answer to this
problem.
I have 2 dnajgo projects under 1 directory (i.e. /home/xxx/django/
mysite and /home/xxx/django/testsite)
My httpd.conf file contains the following:
SetHandler python-program
PythonHandler
Here are the steps I would use to add a field to an existing model
without having to write your own SQL and without the risk of getting
your model code out of sync with your database table. This code uses
the same objects in the Tutorial on
> Thank you very much, you just save a lot of work.
>
> I will take a look to TurboGears.
>
> BTW, I have been trying django for 2 days and it's very nice, may be for
> other project
I'm not sure you should make a decision that fast ;o)
I don't know where pylons and TG are heading now
> I must say I was rather disappointed lately about the limitations of
> the django ORM, which doesn't let you have any control of the joins
> used internally [1].
> This doesn't seem to be a problem for most users, but if you have a
> complex data model, and need to do some complex joins,
On Sep 26, 2:38 pm, olivier <[EMAIL PROTECTED]> wrote:
>
> Sure, but you're losing newforms integration, generic views,
> admin, ...
> Not sure it's still django at the end of the day ;o)
>
> Olivier
i agree with you here. i did not know about the integration problems,
thanks.
what has been
if omat is going to try and create a wrapper to pass django through
php then omat will be flushing how own time and his clients money down
the toilet
web2.7, as you say
omat, it's your job as a web2.5 developer to convince the client that
django is the way to go
in fact, you could just build
> > This doesn't seem to be a problem for most users, but if you have a
> > complex data model, and need to do some complex joins, out-of-the-box
> > django may not be the best tool for the job, and anything based on
> > sqlAlchemy (pylons ? turbogears ?) would be a better bet.
>
> i think one
On Sep 26, 2:17 pm, olivier <[EMAIL PROTECTED]> wrote:
> This doesn't seem to be a problem for most users, but if you have a
> complex data model, and need to do some complex joins, out-of-the-box
> django may not be the best tool for the job, and anything based on
> sqlAlchemy (pylons ?
Hi,
> The company offers several services to their clients. I this way, the
> app must be able to manage all the related to clients accounts,
> debts, payments, invoicing (print).
I must say I was rather disappointed lately about the limitations of
the django ORM, which doesn't let you have
i woul say do it in php. the reason why they want php might be because
they want to be sure that the app is written in a language that can be
understood by more people than python.
konstantin
On Sep 26, 8:13 am, omat <[EMAIL PROTECTED]> wrote:
> A client requires a web application to be
I agree with Nicolas. Some fights aren't worth the effort or risk.
Even if it works flawlessly from a technical aspect, it may not go
well for you. Here in the sue happy states it would probably open you
up to quite a bit of legal liability, they least of which would result
in you not getting
On 9/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> The question is: what do you think? can I use django for this?
I think perhaps you should read the Django documentation; Django isn't
a product that "can do" or "can't do" certain types of things, it's a
set of libraries for you to use
Hi there,
I have been working with python in zope/plone and now I trying to find
out if django can help me
I have a to develop a web app for a small / medium company
The company offers several services to their clients. I this way, the
app must be able to manage all the related to clients
2007/9/21, James Bennett <[EMAIL PROTECTED]>:
> The HTTP specification says that GET requests should not take any
> action other than retrieving a resource; in other words, a GET request
> which modifies state on the server or has other side effects should
> not be allowed.
That's true, but this
Ross Poulton wrote:
>
>
> Try creating a template called '404.html' (Even if it's empty for
> starters; but you should put a useful message in there before go-live)
> and see if your flatpages work with Debug turned off.
>
>
> >
>
>
I have the 404.html in approot/templates/ and it still
As far as I know, the tour_dict.tour approach does not work because
"template variable dictionary lookups use arguments as strings not as
variable names"
( http://code.djangoproject.com/ticket/1495 )
I use a solution like this:
{% for tour in tourset %}
{% for dict_item in tour_dict.items %}
{%
Am 2007-09-26 um 17:47 schrieb Nabuco:
> I have two tables (video, videokeyword) involved in a many2many
> relationship which results in a 3rd table (video_keywords_list). A
> video element can have many keyword elements, and otherwise, a keyword
> element can have (be present) in many video
> So I need to get the videos that match ALL the keywords that I provide
> in the query, like "give me all the videos that contain the keywords
> 'horse', 'country' and 'green'". These videos may contain another
> keywords or not, but I need them to contain at least ALL the keywords
> provided.
>
Within the Meta class of the Model you can set the default ordering of
objects when getting a list of them.
class Meta:
ordering = ['field_to_order_by']
-richard
On 9/26/07, Vitaliy <[EMAIL PROTECTED]> wrote:
>
>
> For example i have this model:
>
> class Post(models.Model):
>#some
Does anyone know of a color picker widget & field for django?
I mean something where you can select and adjust a color and get the
usual hex code back.
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)
For example i have this model:
class Post(models.Model):
#some fileds
class Comment(models.Model):
post = models.ForeignKey(Post)
#some fields
to get all comments for Post I use this:
somePostObject.comment_set.all
is there any posibiliy to set default commet set ordergin ?
> an obvious one is to check whether the query uses standard syntax and
> features. and if not, rewrite it so it does.
>
> also, try to test it on different databases.
For those items that aren't quite so portable, it's helpful to
follow the Django examples like you'll find in
hello,
an obvious one is to check whether the query uses standard syntax and
features. and if not, rewrite it so it does.
also, try to test it on different databases.
cheers
konstantin
On Sep 26, 10:29 am, Filipe Correia <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using some custom sql which
if you want any help, feel free to pm me.
Xan wrote:
> Thanks, what the equivalent in mysql?
>
> Meanwhile, I think I will try patch to 0.96 found in
> http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation
>
> Thanks another time,
> Xan.
>
>
> On Sep 26, 12:27 am, Joe <[EMAIL
hello,
is there a way to make django.views.generic.list_detail.object_list
invoke django.template.loader.select_template when searching for
template?
i have a set of items with tags. i want to use object_list generic
view to show items with a specific tag, and i want to use different
templates
On Sep 26, 11:15 am, "Matt Davies" <[EMAIL PROTECTED]> wrote:
> sorry omat, web2.6 is how and what
>
> wont be long
>
> :-)
web 2.7 then is where, upon receiving word of a mandated solution,
developers simply recommend the customer flush their money down the
toilet because it'll be better for
omat a écrit :
> Any ideas / suggestions?
It sounds ridiculous for me and if you do not host the app, you'll have
trouble with the hosting company for which the customer required a LAMP
with a P like PHP whereas you need a LAMP with P like Python.
Being honest is imho the best way. So just
sorry omat, web2.6 is how and what
wont be long
:-)
On 26/09/2007, r <[EMAIL PROTECTED]> wrote:
>
> On Sep 26, 8:13 am, omat <[EMAIL PROTECTED]> wrote:
> > I am just trying to find a
> > hack and I'd rather not do it at all then do it in PHP.
>
> As a code janitor, I'd rather you not do it
hello.I am ran in truble.I change my Model,also database,but the query
result is unchange..
my BlogEntry model is:
class Entry(models.Model):
title = models.CharField('title',maxlength=100)
content = models.TextField('content')
catelog =
Thanks, what the equivalent in mysql?
Meanwhile, I think I will try patch to 0.96 found in
http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation
Thanks another time,
Xan.
On Sep 26, 12:27 am, Joe <[EMAIL PROTECTED]> wrote:
> The easiest way to to this is look at the create table SQL
Russell Keith-Magee wrote:
> On 9/25/07, staff-gmail <[EMAIL PROTECTED]> wrote:
>
>> Just some perspectives from a new user starting to use Django from Rails
>> and PHP. I really like the organization of Django (great job guys).
>> But due to some of the newness, here are some lack of
On Sep 26, 8:13 am, omat <[EMAIL PROTECTED]> wrote:
> I am just trying to find a
> hack and I'd rather not do it at all then do it in PHP.
As a code janitor, I'd rather you not do it at all if you're going to
float a hack downstream...
Look at code igniter, it's a handy framework. There's a
Hi,
I'm using some custom sql which isn't probably very portable across
SGBDs. I'm wondering, what strategies do django users recommend to
keep an app portable, even if custom sql is absolutely needed.
any pointers?
thanks,
Filipe Correia
--~--~-~--~~~---~--~~
:))
it is ok for the client to tell "what", but mostly not "how". it is
like wanting a package to be delivered but also force it to be
delivered on foot.
i am seeking a solution that will save me from being "completely
lying", even with 1% ...
On 26 Eylül, 16:37, "Matt Davies" <[EMAIL
I have configured httpd.conf, you can look at it at
http://82.165.180.35:8088/djproject/
I can see the first django page. Could not run any application when I
try to do that by editing urls.py file.
Thanks,
Swati
On Sep 26, 1:27 pm, Dushyant Sharma <[EMAIL PROTECTED]> wrote:
> i think you have
Hi,
I'm meeting a weird problem in a django application.
It works w/o any problem from my pc connecting remotely to my customer's
apache but is not working inside the lan.
I'm connecting from firefox/ubuntu they're connecting from firefox/XP.
the weird part is that:
1. they
I like ridiculous, and this certainly is.
web2.5 is approaching, it's all about developers telling the clients
what it is they want
not the other way around
oMat, as you'll be completely lying to them anyway, why not show them
a totally different php site?
they wont know the difference
On
On 9/25/07, staff-gmail <[EMAIL PROTECTED]> wrote:
>
> Just some perspectives from a new user starting to use Django from Rails
> and PHP. I really like the organization of Django (great job guys).
> But due to some of the newness, here are some lack of examples that
> still make Django kind of
On Sep 25, 1:15 pm, Kyle Fox <[EMAIL PROTECTED]> wrote:
> I'm trying to use a SplitDateTimeWidget for a forms.DateTimeField
> field, but keep getting TypeError: "expected string or buffer"
>
> The traceback leads to `strptime.py`, which has `found =
> format_regex.match(data_string) `. The local
Is there a way I can validate form data after doing
form.save(commit=False)?
I am using (commit=False) because I want to set the model ForeignKey
after the data has been posted, for example here is my view:
def domain_dnsrecords(request, domain_id):
DNSRecordForm =
On my SharedWebspace i have only a old MySQLdb version (v1.2.1g2) :(
So i must use mysql_old and i trapped into unicode errors.
The Problem is: The database results are not unicode.
There exists a ticket: http://code.djangoproject.com/ticket/4741
In this combination there is probably a problem
Thank you for fast response...
What I mean in 2. was for databrowse with some editable columns.
My software is for school management, is a distributed software that
let administrative, students and teachers interact with each other.
It tracks all the classes, grades...
For example it is very
Thanks for the replies.
I want to be able to show some PHP code. Maybe just one function that
maps every request to Django. This way I can say something like "Here
is your PHP (although, only one wrapper function), and it uses a
library called Django written in Python, just like the image
Find cheap laptop http://cheaphardware.blogspot.com/
--~--~-~--~~~---~--~~
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 26-Sep-07, at 5:43 PM, omat wrote:
> I know this is stupid, but it is theirs. I am just trying to find a
> hack and I'd rather not do it at all then do it in PHP.
you can make your urls look like php urls
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
omat napisał(a):
> A client requires a web application to be developed in php. Although I
> convinced the technical staff for using Django, management of that
> highly bureaucratic organization did not show any flexibility.
>
> Then I had a stupid idea. PHP is a mechanism to wrap libraries
A client requires a web application to be developed in php. Although I
convinced the technical staff for using Django, management of that
highly bureaucratic organization did not show any flexibility.
Then I had a stupid idea. PHP is a mechanism to wrap libraries written
in different languages.
http://www.fav.co.il/index.php?dir=app_misc=homepage=2012
--~--~-~--~~~---~--~~
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
Am Mittwoch, 26. September 2007 12:09 schrieb [EMAIL PROTECTED]:
> I'm a completely new user, I've a lot of experience in Delphi, C++
> programming, and some on Python, but now I 've the challenge to conver
> entirely an application from Delphi to web. The application has in the
> magnitude of
I'm a completely new user, I've a lot of experience in Delphi, C++
programming, and some on Python, but now I 've the challenge to conver
entirely an application from Delphi to web. The application has in the
magnitude of 1000 tables.
I'm evaluating Django and TurboGears.
I've a few initial
2007/9/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> I'm getting this error and don't understand why:
> Error: Unable to execute port: ln: /opt/local/var/macports/sources/
> rsync.macports.org/release/ports/python/py-psycopg2/work: Permission
> denied
That's obviously a Mac ports / Darwin ports
2007/9/25, Michael Radziej <[EMAIL PROTECTED]>:
> > You can here dowload the workflow engine contrib; a demo django
> > project is included
> > http://django-goflow-en.blogspot.com/
> Oops, French--
> It would be very nice to have an English description, at least a short
> description. I can read
Hi folks!
Is this possible ?
In [2]: Place.objects.filter(usual_users__id=1)
Out[2]: [, , ]
In [3]: Place.objects.exclude(usual_users__id=1)
Out[3]: [,
]
AFAIU, exclude() generates an SQL clause like '... where
not()' whereas filter() generates '...
where '. So my object '' can't
i think you have not configured httpd.conf and this is why apache can
not identify the request.
read this page
http://www.djangoproject.com/documentation/modpython/
also make entry in httpd.conf
LoadModule python_module /usr/local/apache2/modules/mod_python.so (for
linux)
for windows use your
> Are there any restrictions on multithreading with mod_python or just
> regular multithreading code will work.
yep. and regular multithreading code will work. no special setup. (i
do it myself)
Adrian-Bogdan Andreias wrote:
> Hi,
>
> This is a rather python on web question then a
On Sep 26, 5:22 pm, Michael <[EMAIL PROTECTED]> wrote:
> Just a note for anyone using django_comment_utils:
>
> As far as I can tell, the current svn checkout of django_comment_utils
> template tag get_public_comment_count isn't compatible with django-svn
> since revision 6399, in particular,
Just a note for anyone using django_comment_utils:
As far as I can tell, the current svn checkout of django_comment_utils
template tag get_public_comment_count isn't compatible with django-svn
since revision 6399, in particular, this change:
> Try this:
>f1 = Form1(request.POST, prefix='form1')
>f2 = Form2(request.POST, prefix='form2')
> That should solve your problem. The prefix argument is prepended to
> every field name in the html, thus preventing name clashes between
> forms. That should be in the 0.96 release. No docs
On 9/26/07, Przemek Gawronski <[EMAIL PROTECTED]> wrote:
>
> I'm using several forms (newforms) to build one html form. One thing to
> watch out for is common field names in your django form classes. So if
> you have two django forms and they both have a field 'date' for example,
> then handling
> Use form_for_model or form_for_instance using the fields argument. Make
> one form object for each model with the field subset you'd like to use.
> There's nothing stopping you from using several form objects in the same
> html form. Just remember to validate them all.
I'm using several forms
Hey everyone,
I'm getting this error and don't understand why:
Error: Unable to execute port: ln: /opt/local/var/macports/sources/
rsync.macports.org/release/ports/python/py-psycopg2/work: Permission
denied
Thanks,
J
--~--~-~--~~~---~--~~
You received this
83 matches
Mail list logo