And more,when I update the django to svn trunk, my site is down, it
only show IE's 500 error, and I can't find the details.
I use lighttpd+FastCGI, there is no message in the error log file.
And, I use the DualSessionMiddleware class for the "Remember me"
function, but the session middleware is ch
When I update my site from 0.96 to 0.96.1,my internationalize function
won't work for firefox, but fine for IE.
I use english in views and templates, and trans it to chinese in po
file, and I have to local folder named en and zh, now, any firefox
users can only see english page, change the languag
Hi all,
I'm writing a doctest for a simple model and I can't get it to pass.
The problem seems to be that no matter how I enter the data into the
test db, whether as a Unicode string or a utf-8 bytestring, and no
matter what I tell my test to expect as a return value, the expected
value is alway
Hi Arun,
I'm new to django as well, but I believe this is quite possible, and
is covered in the "Integrating with a legacy database" section of
django's online documentation, located at:
http://www.djangoproject.com/documentation/legacy_databases/
Best of luck with your project,
Wiley
On Oct
Hello,
I am a new to Django..
i was just wanted to know if i could reverse engineer an existing
database tables to Model.py files
is there any tool to do this?
Regards,
Arun
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
thanks, got it working by creating a directory just outside my
doc_root
On Oct 29, 11:36 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2007-10-29 at 20:22 -0700, Adam D. wrote:
> > ...But I can't get it answered anywhere else.
>
> > I recently installed django, and am storing my pro
You might be able to do something like:
qs_big.exclude(pk__in=[o.id for o in qs_small])
--~--~-~--~~~---~--~~
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@google
On Mon, 2007-10-29 at 20:22 -0700, Adam D. wrote:
> ...But I can't get it answered anywhere else.
>
> I recently installed django, and am storing my projects in...
>
> /home/web/django_projects/
>
> I need to set up an ftp user to have access to
> /home/web/django_projects/
>
> How would I go
...But I can't get it answered anywhere else.
I recently installed django, and am storing my projects in...
/home/web/django_projects/
I need to set up an ftp user to have access to
/home/web/django_projects/
How would I go about doing that? And what address would I put in my
ftp explorer? My
Ah, glad to know that it is a known issue at least and not a new
problem. Thanks for the info.
On Oct 29, 9:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2007-10-29 at 20:58 +, Kevin wrote:
> > I'm trying to figure out how to chain filters for a many-to-many
> > relation ship
On 30-Oct-07, at 2:18 AM, Matthias Kestenholz wrote:
> He is saying that you should really, really take the time to learn
> python before
> trying to do anything with django.
s/before/while/
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~
On Mon, 2007-10-29 at 20:42 +0100, Florian Lindner wrote:
> Am Donnerstag, 25. Oktober 2007 schrieb Nathaniel Whiteinge:
> > On Oct 24, 5:21 am, Florian Lindner <[EMAIL PROTECTED]> wrote:
> > > I'm looking for an example on how to use the
> > > django.views.generic.create_update.update_object gene
On Mon, 2007-10-29 at 22:47 +, [EMAIL PROTECTED] wrote:
> So I have a function in views:
> #
> def getEntries(user):
> """Returns unique entries and page views for each of last 30 day
> """
> cursor = connection.cursor()
> query = cursor.execute('SELECT
On Mon, 2007-10-29 at 20:58 +, Kevin wrote:
> I'm trying to figure out how to chain filters for a many-to-many
> relation ship that is evaluating to an empty set when it should not. I
> basically have some a test with multiple dimms. I want to find a test
> with both dimm "sizes" 1024 & 2048.
On Mon, 2007-10-29 at 09:35 -0700, [EMAIL PROTECTED] wrote:
> Hi all,
> I need to execute a query with a order_by with some parameters that I
> read from another query..
> something like this:
>
> this is my model:
>
> class Widget(models.Model):
> name = models.CharField(maxlength=50,core=T
> What's "connection"? Is it django.db.connection?
from django.db import connection
Yes
> What're your settings? DATABASE_* and DEBUG are relevant here.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql',
'mysql', 'sqlite3' or 'ado_mssql'
On 10/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> So I have a function in views:
> #
> def getEntries(user):
> """Returns unique entries and page views for each of last 30 day
> """
> cursor = connection.cursor()
> query = cursor.execute('SELECT
As I am a fan and user of html strict doctype i would like to see some
option to make forms and other helpers generate html rather than
xhtml. Has this been up for discussion before? There are still many
good reasons to use html rather than xhtml so please dom't say
something like "well, every mod
So I have a function in views:
#
def getEntries(user):
"""Returns unique entries and page views for each of last 30 day
"""
cursor = connection.cursor()
query = cursor.execute('SELECT COUNT(DISTINCT(ip)) AS uniqs,
COUNT(ip) AS views, date FROM pw_logs GROUP
I gave up and did it a slightly harder way...just wish I would have
thought of it sooner :)
I used sets.Set to create a list of tests matching the criteria and
then used its intersection function to get the primary keys of those
tests.
It works o.k, but it just feels like I'm having to use the s
> The Project and ProjectUnits are defined before the Crews are
> assigned, but when assigning a Crew to a ProjectUnit I'd like to know
> if the Crew is already scheduled to work that day. That's allowed,
> but I'd like a confirmation alert when this happens, or ideally, have
> the droplist for
Hi,
I have two querysets: qs_big and qs_small with qs_small subset of
qs_big (that is, all the objects in qs_small are also objects of
qs_big). I'd like to obtain a queryset of objects which are in qs_big
but not in qs_small.
If exclude could accept a queryset as parameter I would do something
li
On 10/29/07, faypy <[EMAIL PROTECTED]> wrote:
> sending forms checkbox values as choices ,
> but none of these works :
>
> request.POST.getlist['choices']
> request.GET.getlist['choices']
Perhaps you should pause to work through a Python tutorial.
--
"Bureaucrat Conrad, you are technically corr
On 29.10.2007, at 22:08, Kevin wrote:
> I've tried some of the Q stuff, and that is probabbly where my answer
> lies, but I can't quite figure it out. I believe the example you
> provided would return a test that has either 1024 or 2048 not one test
> that has both.
>
> models.TestLine.objects.g
I've tried some of the Q stuff, and that is probabbly where my answer
lies, but I can't quite figure it out. I believe the example you
provided would return a test that has either 1024 or 2048 not one test
that has both.
models.TestLine.objects.get( Q(dimm__size=1024) | Q(dimm__size=2048) )
O
Hi,
On 29.10.2007, at 21:58, Kevin wrote:
>
> I'm trying to figure out how to chain filters for a many-to-many
> relation ship that is evaluating to an empty set when it should not. I
> basically have some a test with multiple dimms. I want to find a test
> with both dimm "sizes" 1024 & 2048.
>
>
I'm trying to figure out how to chain filters for a many-to-many
relation ship that is evaluating to an empty set when it should not. I
basically have some a test with multiple dimms. I want to find a test
with both dimm "sizes" 1024 & 2048.
class TestLine(models.Model):
#...some test info
thanks in advance
i know i made a bad mistake,
but it's 00:23 , & mind is tired .
no need for python tuturial . lol
thank u anyway
On Oct 29, 11:48 pm, Matthias Kestenholz <[EMAIL PROTECTED]> wrote:
> On 29.10.2007, at 21:39, faypy wrote:
>
>
>
> > what do u mean?
> > there is no pause in between
On 29.10.2007, at 21:39, faypy wrote:
>
> what do u mean?
> there is no pause in between...
>
He is saying that you should really, really take the time to learn
python before
trying to do anything with django.
(Hint: you need getlist() , not getlist[] , but the fact you did not
see this err
what do u mean?
there is no pause in between...
On Oct 29, 11:35 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 10/29/07, faypy <[EMAIL PROTECTED]> wrote:
>
> > sending forms checkbox values as choices ,
> > but none of these works :
>
> > request.POST.getlist['choices']
> > request.GET.get
hi
using django 0.96.1 &
sending forms checkbox values as choices ,
but none of these works :
request.POST.getlist['choices']
request.GET.getlist['choices']
error:
'instancemethod' object is unsubscriptable
but these works:
request.POST['choices']
request.GET['choices']
& give the the LAST CHOI
> What's is your opinion about how long it takes until these forms are
> implemented with newforms in SVN?
The devs work on Django in their spare time, so there isn't a strict
timetable for updates. My advice is not to wait -- forge ahead using
the afore-mentioned snippet or regular views.
Keep
Uggh, now i feel bad that all my deploy scripts are written in bash ..
Time to do some migrating methinks.
Tom
On 28/10/2007, Michael Cuddy <[EMAIL PROTECTED]> wrote:
>
>
> > I'm writing a deploy script, but right now it runs ssh commands directly
> > from os.system:
>
> Paramiko.
>
> http://www
Thanks! That's exactly what I was looking for.
On 10/27/07, Michael Cuddy <[EMAIL PROTECTED]> wrote:
>
>
> > I'm writing a deploy script, but right now it runs ssh commands directly
> > from os.system:
>
> Paramiko.
>
> http://www.lag.net/paramiko/
>
> --
> Mike Cuddy ([EMAIL PROTECTED]), Program
Hi,
I've been using Django for a couple months now, and have been
thrilled with it. This list has been invaluable in answering
questions that have come up, so many thanks.
However, now I've an issue I haven't found a helpful answer for. My
project is a work scheduler, where Projects have Pr
is username and password and email stored under user or i need to make
models.CharField for them?
On Oct 26, 7:03 pm, dunia <[EMAIL PROTECTED]> wrote:
> Gigs_ wrote:
> > how do you people createuserprofile in models?
> > i want to createduserprofile for users to register
> > i have don it like t
Am Donnerstag, 25. Oktober 2007 schrieb Nathaniel Whiteinge:
> On Oct 24, 5:21 am, Florian Lindner <[EMAIL PROTECTED]> wrote:
> > I'm looking for an example on how to use the
> > django.views.generic.create_update.update_object generic view.
>
> The create and update generic views haven't been upd
I solved it.
I just used a ForeignKey...
i had forgotten, there is already a possibility to do that.
Thank you for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
Deleting your checkout and re-checking out the SVN tree couldn't
hurt. Can you tell us more about your environment? What OS? What
version of Python? What web server are you using?
On Oct 29, 3:53 am, oversize <[EMAIL PROTECTED]> wrote:
> Hello,
> my (very strange) problem is: When i want to e
I suppose it represents what happens when a gardener grabs a cheap
camera, Django and an MXMLC compiler???
:)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Wow! That was so easy. Thanks a lot.
-rm
On Oct 29, 12:50 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote:
> Hello!
>
> > It actually works! In the admin interface it displays the 'contact'
> > field as a combination of the 'first' and 'last' fields of the
> > contact, which is exactly what
It's the experimental output of a browser based Django program for
writing Flash movies...
The music is Bobby Lee Rodgers from the Internet Archive
http://www.archive.org/details/blr2007-09-06.SBD.flac16
--~--~-~--~~~---~--~~
You received this message because yo
nevermind, just being atwit
--~--~-~--~~~---~--~~
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 to [EMA
On 10/29/07, schlam <[EMAIL PROTECTED]> wrote:
>
>
> using 0.96 am trying to iterate through a MultiValueDict using
>
> for i,j in MultiValueDict.items():
> print i, j
>
> is this a problem/feature/bug if so does someone know of a workaround?
Is what a problem? Do you get an error running th
I have no idea what is it supposed to represent, but I was quite
hypnotised by that for a while :-)
Where is the soundtrack from?
--Jon
On 10/29/07, SamFeltus <[EMAIL PROTECTED]> wrote:
>
> Funkiest SonomaSunshine page ever... A slim, trim 30ish MB page,
> leaves time for fetching a beer or som
using 0.96 am trying to iterate through a MultiValueDict using
for i,j in MultiValueDict.items():
print i, j
is this a problem/feature/bug if so does someone know of a workaround?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hello!
> It actually works! In the admin interface it displays the 'contact'
> field as a combination of the 'first' and 'last' fields of the
> contact, which is exactly what I wanted. But, my question is how did
> it know to do that? What if I had wanted it to display the
> 'login_name' inste
Hi all,
I need to execute a query with a order_by with some parameters that I
read from another query..
something like this:
this is my model:
class Widget(models.Model):
name = models.CharField(maxlength=50,core=True)
order = models.CharField(maxlength=50,blank=True,null=True)
> Did you include the port in your MEDIA_URL setting? [1]_
> MEDIA_URL = 'http://localhost:8000/media/'
Nope, thanks!
Przemek
--
AIKIDO TANREN DOJO - Poland - Warsaw - Mokotow - Ursynow - Natolin
info: http://tanren.pl/ phone:+4850151 email:[EMAIL PROTECTED]
--~--~-~--~--
hi,
is it possible to configure apache to serve some parts of the same
django projects through SSL and some without SSL?
maybe I should just create two apache virtual hosts pointing to the
same django project?
--~--~-~--~~~---~--~~
You received this message beca
On 10/29/07, Jökull <[EMAIL PROTECTED]> wrote:
> There is a lively discussion on an interesting upcoming feature of
> Django called FileStorage. This will allow any sort of file storage
> mechanism to plug into FileFields and process uploads. A good example
> would be Amazon's S3 where a FileStora
I am in the planning stage of creating a Django media player. It is
intended for a small group of users, but still anticipating a lot of
bandwidth usage both upload and download as this is an MP3 repository
with a web frontend.
There is a lively discussion on an interesting upcoming feature of
Dj
Hmm, that's fine if I know in advance where the form should lead to -
I could even do this with a template variable {{ target }} I suppose.
But what if the same form contains the information what the target
should be? Somehow I think I'd have to do some AJAX / Javascript
workaround, both of which
First off all I want to thank you all for this excellent web
framework. I had never built a database driven web site, but Django
has given me the motivation to create a small intranet site for our
office and I am very happy with the progress I have been able to make
so far. I realize that it is
Did you include the port in your MEDIA_URL setting? [1]_
MEDIA_URL = 'http://localhost:8000/media/'
.. [1] http://www.djangoproject.com/documentation/settings/#media-url
- whiteinge
On Oct 29, 4:30 am, Przemek Gawronski <[EMAIL PROTECTED]>
wrote:
> Hi, the ImageField creates in a model get_FO
Hi Thomas,
Thank you. I managed to get 2 forms in a view but I dont know how to
provide some 'default' data to some fields in the related form.
I'll give you some code:
class Infocard(models.Model):
from django.conf import settings
content_type = models.ForeignKey(ContentType, limit_choic
Thanks Malcolm, on a lot of different levels.
1st, your code for putting the ratings into a list was very cool. It
provoked a light bulb moment in my brain as I worked my way through
the code. Very cool.
You're right about not being able to do the sum on the ratings, but I
fixed that by changing
Thanks Jonathan! That did the trick!
Dimitri
On 10/29/07, Jonathan Buchanan <[EMAIL PROTECTED]> wrote:
>
> On 10/29/07, dimitri pater <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I want to prepopulate a database with the weeknumber (as a separate
> > filed) from a given date. This is what the m
Am Sonntag, 28. Oktober 2007 17:29 schrieb Rob Slotboom:
> Can someone please explain to me how to create a form which provides
> not only the fields for the object but also the fiels for a related
> object (foreign key) and the best method to validate and save the
> data?
Hi,
with newforms, you
On 10/29/07, dimitri pater <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I want to prepopulate a database with the weeknumber (as a separate
> filed) from a given date. This is what the models looks like:
> class Item(models.model):
> day=models.DateField()
> weekno=models.SmallIntegerField(prepo
Hi,
I want to prepopulate a database with the weeknumber (as a separate
filed) from a given date. This is what the models looks like:
class Item(models.model):
day=models.DateField()
weekno=models.SmallIntegerField(prepopulate_from(??day??,)
I know that datetime.date.isocalender(day)[1]
Hi, the ImageField creates in a model get_FOO_url to use in the
templates. But it isn't working correctly when used with djangos
development server because the port number (by default :8000) isn't
included. Is that a bug or am I missing something?
Przemek
--
AIKIDO TANREN DOJO - Poland - Wars
Ok thanks I will try that out!
-Dan
--~--~-~--~~~---~--~~
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 emai
63 matches
Mail list logo