On Sat, Jul 11, 2009 at 7:34 PM, alecs wrote:
> Hi! I think it's more web development question than django question,
> but hope someone can advice me.
> I have a table with checkboxes. Each contains different
> information about files (filename, filesize, url, etc).
> Below this table I have thr
I write a lot of tests and with using DATABASE_NAME = ':memory:' the
tests can run very fast.
Usually I save the file I'm working on (e.g. models.py, test_views.py
etc.); Alt+Tab, arrow up, Enter.
Common, right?
Is there a good script or command (linux) for automatically rerunning
the tests? I k
Hello
I have accountform which's validation should show errors when password
fields are left empty, but the errors did not show up. So i started
investigating, what is the problem and inserted this line in my form
validation:
raise forms.ValidationError(data.items())
And what i saw was:
*
I could suggest you creating the json manually (this is bad if you
plan to scale you app) or make the dictionary with the necessary data
and then serialize it.
i.e
users = [{'user': l.user.name, 'status': l.status} for l in
ActiveList.objects.all()]
Also it would be probably better idea to add the
Updating an older codebase to SVN HEAD, I got a slew of testing
errors that I couldn't trace to my code. So I created a new
empty project, tossed in some sqlite DB settings, and did a
"manage.py test" which failed. It seems to be related to this
ticket[1].
Steps to reproduce:
bash$ djan
On Sun, Jul 12, 2009 at 6:17 AM, Tim
Chase wrote:
> I didn't notice anything in the testing docs[2] that warns about
> this, and the tutorial adds django.contrib.admin but elides the
> detail that omitting the admin (described as optional[3]) causes
> test failure.
I tend to view it a bit differe
Thanks, Dennis :)
--~--~-~--~~~---~--~~
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
django-users+un
hi all, what i am trying to do is as follows (development server ):
1) upload an image to my media/userimage/ directory and save the
location in mysql ( this is successful )
2) retrive the image by showing on a generated html page. But my image
is not showing as if the tag src url is wrong.
Howev
I have a legacy database with a list of 500 users with passwords. Is
there anyway to import this into Postgres for use by django. How To
set the salted password is what has me stumped.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
dononyx wrote:
> I have a legacy database with a list of 500 users with passwords. Is
> there anyway to import this into Postgres for use by django. How To
> set the salted password is what has me stumped.
How are your incoming passwords stored? Plaintext? MD5? Salted
MD5? SHA1? Salted SHA1
Hi all,
I'm trying to use Django and especially GeoDjango so I made a "little
application" where a country is randomly proposed and the user must
select it on the map (http://www.geotests.net/geogame/).
When the user select the country on the map an ajax request is send by
the application and ca
I'm trying to replace a convoluted database-specific SQL statement
with the new aggregates functionality. As an example, say I have a
database structured with tables for blogs running on many domains
(think .co.uk, .com, .etc), each taking many comments:
domains <- blog -> comment
The following
On Sun, Jul 12, 2009 at 8:03 AM, James Bennett wrote:
> [snip a bunch]
> Similarly, contrib.admin -- because it needs to work out-of-the-box
> without requiring you to create any templates -- supplies templates
> with the names contrib.auth looks for. But you can just as easily
> write your own te
On Sun, Jul 12, 2009 at 6:50 AM, zayatzz wrote:
>
> Hello
>
> I have accountform which's validation should show errors when password
> fields are left empty, but the errors did not show up. So i started
> investigating, what is the problem and inserted this line in my form
> validation:
>
> raise
Hi,
forms.py
education = forms.MultipleChoiceField(choices=education_filler
(education_list))
In one of my forms I have the field to select multiple options for
education. I am able to populate all the choices and also multi
selection. But from the above code I would like to restrict the user
to
On Sun, Jul 12, 2009 at 12:35 PM, Lokesh wrote:
>
> Hi,
>
> forms.py
> education = forms.MultipleChoiceField(choices=education_filler
> (education_list))
>
> In one of my forms I have the field to select multiple options for
> education. I am able to populate all the choices and also multi
> sele
Hmm okay. thanks for explanation, i think i tried if data.get("pwdc")
== "" before but i got some kind type error so i went for approach
described above.
Thanks again :)
Alan.
On Jul 12, 8:20 pm, Karen Tracey wrote:
> On Sun, Jul 12, 2009 at 6:50 AM, zayatzz wrote:
>
> > Hello
>
> > I have ac
What's the recommended way for implementing (group)permission
inheritance in Django?
What I want to accomplish is a a hierarchy of groups where subgroups
inherit permissions from the parent group. I have seen
'comaie' (http://code.google.com/p/comaie-django-groups/) but that is
based on 'django-m
> Overall I get the impression we're muddled on the answer to:
>
> Should the auth tests pass out-of-the-box, independent of other project
> configuration?
>
> Someone making a firm decision on that would help. Personally I'd favor
> "yes" as the answer, but I don't feel very strongly about the
Hi,
I found out that MEDIA_URL and ADMIN_MEDIA_PREFIX may not have the same
value, otherwise images that is located in this MEDIA_URL cannot be
displayed in browser.
I did not found about this anywhere in the documentation. Is my assumption
correct?
Regards,
Steve
--~--~-~--~~---
Can anyone shed some light on how django validates foreign keys for
me??
I have a model that I'm writing a whole lot of records in a single
request. With the Foreign Key defined in the model it takes ages!!!
Have about 100 records and it takes minutes. When I change the field
to CharField, it
okay... seems the use of a Manipulator was the issue, and adding
raw_id_admin = True to the Foreign Key field definition fixed it!
On Jul 13, 9:58 am, sico wrote:
> reposting>
>
> Can anyone shed some light on how django validates foreign keys for
> me??
>
> I have a model that I'm writing a wh
Hi all,
I'm using django 1.02, python version 2.6.2 with PIL installed.
I'm on a Ubuntu machine, 9.04. I'm attempting to install django-
photologue-2.2
I've followed the instructions as given in the install.txt and
readme.txt but after running the python setup.py install command, i
received the
Hi all,
i'm using django 1.02 and python version 2.6.2. I'm on a ubuntu
machine version 9.04. Django's running fine, but
i have problems installing django-tagging.
After running the command python setup.py install, i received the
following
error:
error: /usr/local/lib/python2.6/dist-packages/tag
They're plaintext
On Jul 12, 8:42 am, Tim Chase wrote:
> dononyx wrote:
> > I have a legacy database with a list of 500 users with passwords. Is
> > there anyway to import this into Postgres for use by django. How To
> > set the salted password is what has me stumped.
>
> How are your incoming p
On Sunday 12 July 2009 04:05:26 pm djangonoob wrote:
> Hi all,
> i'm using django 1.02 and python version 2.6.2. I'm on a ubuntu
> machine version 9.04. Django's running fine, but
> i have problems installing django-tagging.
>
> After running the command python setup.py install, i received the
> fo
that problem means you don't have permission to write to that dir :-),
an easy way out is to run the setup.py script as root (for example via
sudo)
another way is to point your PYTHONPATH to where the "photologue" app resides.
On Sun, Jul 12, 2009 at 4:03 PM, djangonoob wrote:
>
> Hi all,
>
> I'
On Mon, Jul 13, 2009 at 12:55 AM, Karen Tracey wrote:
> On Sun, Jul 12, 2009 at 8:03 AM, James Bennett
> wrote:
>>
>> [snip a bunch]
>> Similarly, contrib.admin -- because it needs to work out-of-the-box
>> without requiring you to create any templates -- supplies templates
>> with the names cont
hi, i have treid to run setup.py as root.
But afterwards, i still cannot run photologue.
May i know how to i point my PYTHONPATH to my the
photologue application?
Best Regards.
On Jul 13, 7:39 am, Almir Karic wrote:
> that problem means you don't have permission to write to that dir :-),
> an
Yes, because unless you copy the admin site's media over to your
MEDIA_URL (or vice-versa), Django won't be able to find the admin
media.
>From http://docs.djangoproject.com/en/dev/ref/settings/
ADMIN_MEDIA_PREFIX
Default: '/media/'
The URL prefix for admin media -- CSS, JavaScript and images
Forgot to add - the usual trick is to symlink the admin media in your
MEDIA_URL; that way you don't have to set up two different aliases in
your web server config.
2009/7/13 Sam Lai :
> Yes, because unless you copy the admin site's media over to your
> MEDIA_URL (or vice-versa), Django won't be a
On Sun, Jul 12, 2009 at 5:44 PM, djangonoob wrote:
>
> hi, i have treid to run setup.py as root.
>
> But afterwards, i still cannot run photologue.
this is very bad error reporting :-), telling how it fails would be
helpful. if you have successfully done "python setup.py install" it
should solve
oh, the error i am receiving is:
Exception Value:
'QuerySet' object has no attribute 'image'
On Jul 13, 9:41 am, djangonoob wrote:
> Hi all.
>
> I have uploaded 4 images where their location is stored in mysql.
> I have no problems rendering a single image. But i am unable to show
> all 4 image
On Sun, Jul 12, 2009 at 6:12 PM, sico wrote:
>
> okay... seems the use of a Manipulator was the issue, and adding
> raw_id_admin = True to the Foreign Key field definition fixed it!
>
For future reference, you'll likely get more helpful responses to questions
like this if you provide some exact
oh, i managed to fix it.
On Jul 13, 9:50 am, djangonoob wrote:
> oh, the error i am receiving is:
> Exception Value:
>
> 'QuerySet' object has no attribute 'image'
>
> On Jul 13, 9:41 am, djangonoob wrote:
>
> > Hi all.
>
> > I have uploaded 4 images where their location is stored in mysql.
> >
Hi all.
I have uploaded 4 images where their location is stored in mysql.
I have no problems rendering a single image. But i am unable to show
all 4 images.
I am trying to use a for loop to show all 4 images from the
image_upload class
on my_images.html template
How do i fix this problem? anyth
I still don't get any errors or directories generated from this code,
any ideas?
if SHA1_RE.search(activation_key):
try:
profile = self.get(activation_key=activation_key)
except self.model.DoesNotExist:
return False
if no
On Monday 13 Jul 2009 8:34:23 am neridaj wrote:
> I still don't get any errors or directories generated from this code,
> any ideas?
remove the try and except stuff - then you can see where it is failing. Also
import os on top of your file, not within the code.
--
regards
kg
http://lawgon.livej
Hi all,
I would like to override the default list_display_links behavior in the
Admin application. I have written a very simple suggestion box application
for my work and I would like the suggestion box administrator to have the
ability to mark suggestions as abuse for filtering purposes in the Ad
moved os import to the top and got rid of try except, with no change.
if SHA1_RE.search(activation_key):
try:
profile = self.get(activation_key=activation_key)
except self.model.DoesNotExist:
return False
if not profile.a
On Monday 13 Jul 2009 10:04:05 am neridaj wrote:
> moved os import to the top and got rid of try except, with no change.
user is getting saved, but no directory is created and there is no error
message?
--
regards
kg
http://lawgon.livejournal.com
--~--~-~--~~~---~--
41 matches
Mail list logo