Re: how to display an image inside Django

2010-05-11 Thread ravi krishna
Hi, Thanks for ur reply. I was asking about the ImageField. tried out the tutorials, but its not working out. Where all(views,models,urls.py,settings.py) should we make editings inorder to work. Please help me On Tue, May 11, 2010 at 6:49 PM, Jason Leveille wrote: > On

Re: New User Stuck on Tutorial Part 2

2010-05-11 Thread Old Davy
Thanks, Mike... I've got some studying to do! :) On 05/10/2010 11:47 PM, Mike Dewhirst wrote: On 11/05/2010 4:04pm, Mike Dewhirst wrote: On 11/05/2010 3:42pm, Old Davy wrote: On 05/10/2010 08:18 PM, Shawn Milochik wrote: Exactly what directory is your copied template in? It's most likely

Re: Updating profiles

2010-05-11 Thread django_jedi
I figured this out - it was a silly error caused by the ordering of my URLconf for the profile app. URL I was using was triggering a different view. Thanks Bill and CrabbyPete for having a look. Appreciated! -- You received this message because you are subscribed to the Google Groups "Django

Re: Multiple django version on developer machine

2010-05-11 Thread Andy McKay
On 2010-05-11, at 7:26 PM, james_027 wrote: > While I have a number of django apps develop for Django 1.1 ... I also > want to use Django 1.2 for my new project. How can I have multiple > version of Django in my machine where my apps will be instructed > either to use 1.1 or 1.2 You should look

Multiple django version on developer machine

2010-05-11 Thread james_027
Hi all, While I have a number of django apps develop for Django 1.1 ... I also want to use Django 1.2 for my new project. How can I have multiple version of Django in my machine where my apps will be instructed either to use 1.1 or 1.2 Thanks, James -- You received this message because you are

Re: Updating profiles

2010-05-11 Thread django_jedi
Bill, I use that setting and I have tried different variations and the result is the same(error is still there): myproject.Profile myproject.profiles profiles.Profile On May 11, 7:29 pm, CrabbyPete wrote: > should be > > AUTH_PROFILE_MODULE = 'app_name.Profile' > > On

Django form inline validation

2010-05-11 Thread newbiedjango
Hi All, I am a newbie in Django. I am currently working on a user registration form. I am trying to integrate a Jquery inline validation script in my django code which is not a success. What I would like to have is use something of this sort

Re: Practical Django Projects 2: Weblog urls.py help...

2010-05-11 Thread mhulse
> I think the problem is due to the month digit... The book opted to use > the 3-letter month name vs the two digits... I personally like the > month as digits so I changed the urls.py and models.py to use %m. My coworker solved this problem for me: entry_info_dict = { 'queryset':

Re: Updating profiles

2010-05-11 Thread Bill Freeman
Yep. Probably should have been called AUTH_PROFILE_CLASS. On Tue, May 11, 2010 at 7:29 PM, CrabbyPete wrote: > should be > > AUTH_PROFILE_MODULE = 'app_name.Profile' > > On May 11, 10:15 am, Bill Freeman wrote: >> Is AUTH_PROFILE_MODULE set correctly in

Re: Updating profiles

2010-05-11 Thread CrabbyPete
should be AUTH_PROFILE_MODULE = 'app_name.Profile' On May 11, 10:15 am, Bill Freeman wrote: > Is AUTH_PROFILE_MODULE set correctly in settings.py? > > > > On Tue, May 11, 2010 at 6:43 AM, django_jedi wrote: > > OK, I'm baffled.  I must be missing

Re: Weird inconsistencies for same queryset in different Django instances

2010-05-11 Thread Malcolm Box
On Tue, May 11, 2010 at 8:27 PM, Daniel Roseman wrote: > On May 11, 7:08 pm, Malcolm Box wrote: > > Hi, > > > > I've run into a weird bug that has me scratching my head - I'm seeing > > inconsistent results from a queryset between various apache

Re: Hi guys, compatibility issues between django 1.1.1, satchmo 0.9 and postgresql 8.4?

2010-05-11 Thread Chris Moffitt
Rafael, You should probably direct your question to the satchmo-user's list to get more responses. I'm not aware of any Postgresql specific issues so if you can provide more details on the satchmo list, we'll try to help. -Chris On Tue, May 11, 2010 at 5:35 PM, Rafael Pineda

Hi guys, compatibility issues between django 1.1.1, satchmo 0.9 and postgresql 8.4?

2010-05-11 Thread Rafael Pineda
Hi guys, im new here but recently i came across this problem of a little project of mine, who runs great in sqlite3 but when i try to go into production mode (using postgresql 8.4), it just doesnt let me syncdb, so i was wondering if anyone knew about incompatibilities and such. Rafael Pineda

surveys

2010-05-11 Thread HARRY POTTRER
I have a project that I'm working on that works like this: the user enters some points on a map which are then stored in a database as a LineString object (via geodjango). Along with the geographic data, the user is given a survey to fill out consisting of simple questions like "how fun was

Re: choices based on existing entries

2010-05-11 Thread James Bennett
On Tue, May 11, 2010 at 4:11 PM, Preston Holmes wrote: > Now I can think of several ways to do this in a form field init, but > it seems like there should be a more reusable way to do it with a > custom field type or mixin by overriding get_choices on the field > object. There

choices based on existing entries

2010-05-11 Thread Preston Holmes
Filemaker has a pattern where you can set the choices of a field to be the indexed contents of that field. Along with an "Other..." choice option to add a new value. This is a very handy way of having user modified choices for a given field. Now I can think of several ways to do this in a form

Odd error on trunk

2010-05-11 Thread Rodrigo Cea
I have a project that works OK using v1.1.1. However, if I try to run it on trunk, I get this error: "Error: cannot import name DateField". Just that, no traceback, etc. I have no reference to "DateField" in my project. There was 1 in django_extensions, but removing it and even not loading

Django with MySQL Connector/Python?

2010-05-11 Thread Continuation
Has anyone made Django work with myconnpy? I've checked out http://github.com/rtyler/connector-django-mysql but the author said it's very outdated and not supported. If you've managed to make Django work with myconnpy, please share your experience. Thanks. -- You received this message because

Re: Weird inconsistencies for same queryset in different Django instances

2010-05-11 Thread Daniel Roseman
On May 11, 7:08 pm, Malcolm Box wrote: > Hi, > > I've run into a weird bug that has me scratching my head - I'm seeing > inconsistent results from a queryset between various apache processes and > the django shell.  I.e. sometimes a GET gives me the right response (as it >

Re: Close window after download

2010-05-11 Thread CrabbyPete
Does anyone know how to track if a download completed? On May 6, 9:52 pm, CrabbyPete wrote: > I have code that generates a file for download. I want to close the > window after the user selects the download or even redirect them. > > Here is my code: > > response =

Re: Weird inconsistencies for same queryset in different Django instances

2010-05-11 Thread zinckiwi
Change your "datetime.now()"s in your manager to "datetime.now"s. The callable version will be called every time, rather than only once at the start of the process. Regards Scott On May 11, 2:08 pm, Malcolm Box wrote: > Hi, > > I've run into a weird bug that has me

Re: Paginating search results

2010-05-11 Thread Nick
It's all firing well, thanks for the heads up and the help. On May 11, 9:26 am, Nuno Maltez wrote: > Great, Just make sure you don't end up with multiple "page" arguments > on your query string when navigating through the results (click next; > click next again...). > >

Weird inconsistencies for same queryset in different Django instances

2010-05-11 Thread Malcolm Box
Hi, I've run into a weird bug that has me scratching my head - I'm seeing inconsistent results from a queryset between various apache processes and the django shell. I.e. sometimes a GET gives me the right response (as it hits a "correct" Apache instance) and other times it gives a wrong

Re: Is passing values into the admin add page possible?

2010-05-11 Thread nih
ah nice one Jason :) sorry it took me a while to respond, I had a load more problems and I sort of forgot about this one I didn't get your solution working, but while I was hacking away and searching the net for ideas I found request.GET.get('q', '') in

Re: django takes all my toys

2010-05-11 Thread Eric Chamberlain
It sounds like Django is working and your issue is with the web server configuration. In you case it sounds like there are two ways you could install Django, add a virtual host to the machine, or configure apache to serve Django from a subdirectory. Unless you have extra hostnames available,

Re: Tests fail with django-1.2-rc1

2010-05-11 Thread Dirk Eschler
Am Dienstag 11 Mai 2010, 16:38:40 schrieb Russell Keith-Magee: > On Tue, May 11, 2010 at 10:21 PM, Dirk Eschler wrote: > > Hello, > > > > i'm in the process of upgrading a project to django-1.2-rc1. While the > > project specific tests passed with django-1.1.1, they all fail

Re: django version 1.1.1 decimalfield invalidoperation

2010-05-11 Thread Karen Tracey
On Tue, May 11, 2010 at 9:49 AM, mendes.rich...@gmail.com < mendes...@gmail.com> wrote: > On our production server we are running the last official release > 1.1.1, > When i started uploading big decimal values i ran into trouble and > came across a ticket which described the error. > > This was

Re: MacPorts installation, Django $PATH issue

2010-05-11 Thread Walter Scheper
The quick answer for MacPorts python: 1) Edit the file /Users//.bash_profile. Add the following line below the line "export ENV", or to the end of the file if you don't see that line: "export PATH=/opt/local/bin:/opt/local/sbin:$PATH" 2) At the command prompt run "python_select -l" This will

Re: Tests fail with django-1.2-rc1

2010-05-11 Thread Russell Keith-Magee
On Tue, May 11, 2010 at 10:21 PM, Dirk Eschler wrote: > Hello, > > i'm in the process of upgrading a project to django-1.2-rc1. While the project > specific tests passed with django-1.1.1, they all fail now with django-1.2-rc1 > (see example below). Any idea what's going wrong?

Re: Paginating search results

2010-05-11 Thread Nuno Maltez
Great, Just make sure you don't end up with multiple "page" arguments on your query string when navigating through the results (click next; click next again...). Nuno On Tue, May 11, 2010 at 2:41 PM, Nick wrote: > The POST thing was the result of late night meltdowns and

Tests fail with django-1.2-rc1

2010-05-11 Thread Dirk Eschler
Hello, i'm in the process of upgrading a project to django-1.2-rc1. While the project specific tests passed with django-1.1.1, they all fail now with django-1.2-rc1 (see example below). Any idea what's going wrong? ERROR: test_content_is_active (foo.bar.tests.MyTestCase)

Re: Models Tutorial Django

2010-05-11 Thread Karen Tracey
On Tue, May 11, 2010 at 6:15 AM, HelloWorld wrote: > Hi Jirka > > Thanks for your answer! > > By structure I mean, I just followed the tutorial and am not sure if > the position and order of these tutorial code is right in my code: > > class Poll(models.Model): ># ... >

Re: processing page

2010-05-11 Thread Shawn Milochik
This was recently discussed on this list: http://groups.google.com/group/django-users/browse_thread/thread/7cefcb64dd423ef2/ Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Updating profiles

2010-05-11 Thread Bill Freeman
Is AUTH_PROFILE_MODULE set correctly in settings.py? On Tue, May 11, 2010 at 6:43 AM, django_jedi wrote: > OK, I'm baffled.  I must be missing something right in front of my > face... > > I'm trying to create a form that will allow users to update their > profiles.  No matter

django version 1.1.1 decimalfield invalidoperation

2010-05-11 Thread mendes.rich...@gmail.com
Hello Django Users, On our production server we are running the last official release 1.1.1, When i started uploading big decimal values i ran into trouble and came across a ticket which described the error. This was ticket 10692 and it was solved. Unfortunately i couldn't track down which

Re: Paginating search results

2010-05-11 Thread Nick
The POST thing was the result of late night meltdowns and desperation. I tend to just try stupid things when i'm working through an issue like this, just seeing what the application is capable of doing. I've switched it all back to GET. I found the answer around 1 this morning. You are exactly

processing page

2010-05-11 Thread james123
I am new to django, so far I have designed a webpage that uploads a file and accesses some python code which does a task on the file and then outputs the results onto a results page. However, this process can take a couple of minutes so would like to inform the user of this using a processing or

Re: how to display an image inside Django

2010-05-11 Thread Jason Leveille
On May 11, 7:10 am, ravi krishna wrote: > Hi, > I am a beginner in Django . > Can somebody tel me how to display an image in django... > if anyone has the right tutorial for beginners, please share with me.. > -- > Regards, > Rav! > > -- > You received this message because

Re: Models Tutorial Django

2010-05-11 Thread Daniel Roseman
On May 11, 11:15 am, HelloWorld wrote: > Hi Jirka > > Thanks for your answer! > > By structure I mean, I just followed the tutorial and am not sure if > the position and order of these tutorial code is right in my code: > > class Poll(models.Model): >     # ... >     def

how to display an image inside Django

2010-05-11 Thread ravi krishna
Hi, I am a beginner in Django . Can somebody tel me how to display an image in django... if anyone has the right tutorial for beginners, please share with me.. -- Regards, Rav! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Form multiple inheritance

2010-05-11 Thread Daniel Hilton
Hi I've got two ModelForms, both really simple. class TaskBaseForm(forms.ModelForm): class Meta: model = Task class TaskAssignmentDurationForm(forms.ModelForm): """ Form for setting the duration of an existing TaskAssignment object. """ class Meta: model =

Re: Models Tutorial Django

2010-05-11 Thread Jirka Vejrazka
Hmm, I can't see anything wrong with your code, so I'm gonna go to the basics - how about your code indentation? Is the "def __unicode__()" the same way as your model field definitions? The __unicode__() function must be part of your Poll class, not standalone. Cheers Jirka On 11/05/2010,

Re: Loading picasa photo's with syncr

2010-05-11 Thread Dexter
I now hacked it like this: updated = datetime(*strptime(album.updated.text[:-5], "%Y-%m-%dT%H:%M:%S")[:7]) not very pretty imho. But its stable, and I don't know a better way. Grtz, Dexter On Tue, May 11, 2010 at 12:02 PM, Dexter wrote: > Hi everyone, > > I want to

Updating profiles

2010-05-11 Thread django_jedi
OK, I'm baffled. I must be missing something right in front of my face... I'm trying to create a form that will allow users to update their profiles. No matter what I try, I get a "User matching query does not exist." ...error. Below is the associated view, and the related model and form

Re: Models Tutorial Django

2010-05-11 Thread HelloWorld
Hi Jirka Thanks for your answer! By structure I mean, I just followed the tutorial and am not sure if the position and order of these tutorial code is right in my code: class Poll(models.Model): # ... def __unicode__(self): return self.question class Choice(models.Model): #

Re: Models Tutorial Django

2010-05-11 Thread Jirka Vejrazka
> class Choice(models.Model): >    poll = models.ForeignKey(Poll) >    choice = models.CharField(max_length=200) >    votes = models.IntegerField() >    def __unicode__(self): >        return self.question > > > I know the structure is wrong. > Any suggestions would be greatly appreciated. Hi,

Loading picasa photo's with syncr

2010-05-11 Thread Dexter
Hi everyone, I want to populate my db using syncr, But when I run "python manage.py syncr_picasaweb", I get the following error : Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/home/site/domains/

Models Tutorial Django

2010-05-11 Thread HelloWorld
Hi everybody I have to excuse myself for the newbie question which is following now: Now I am doing the Poll/Models Tutorial on this page http://docs.djangoproject.com/en/dev/intro/tutorial01/ and I am stuck at this point: Wait a minute. is, utterly, an unhelpful representation of this

Re: Paginating search results

2010-05-11 Thread Nuno Maltez
You need to pass the current search paramters in your query string (?party=D== ) when you create the links to all the pages, and you need to be able to retrieve them from request.GET in order to recreate the object list (reps) when rendering a specific page (any particular reason why are you using

Re: Specifying an order_with_respect_to for a self referential one to many relationship (still) fails

2010-05-11 Thread Russell Keith-Magee
On Tue, May 11, 2010 at 5:18 PM, thierry wrote: > This bug is 4 years old. Weird that It was not corrected yet because > it seems to be a core functionality of the ORM. Do django developpers > have planned something before 1.2 stable release ? No, we don't have anything

Re: Specifying an order_with_respect_to for a self referential one to many relationship (still) fails

2010-05-11 Thread thierry
This bug is 4 years old. Weird that It was not corrected yet because it seems to be a core functionality of the ORM. Do django developpers have planned something before 1.2 stable release ? Regards, Thierry. -- You received this message because you are subscribed to the Google Groups "Django

Re: Django Sqlite

2010-05-11 Thread HelloWorld
Thanks a million Romain!! It worked. I thought about just naming it, but in the tutorial it said put the path and I didnt want to mess up things. Thanks again!! Best Z. On May 11, 10:37 am, Romain Gaches wrote: > Le 11 mai 2010 à 10:30, HelloWorld a écrit : > > > Hi

Re: Subclassing models.Model to extend base functionalities and attributes

2010-05-11 Thread thierry
No, I don't talk about model inheritance. Mainly because base class fields are propagated to subclasses. I'd like to overload some base methods of the "models.Model" class to making them available from all classes of a model. But a metaclass mechanism makes overloading impossible because it forces

Re: Django Sqlite

2010-05-11 Thread Romain Gaches
Le 11 mai 2010 à 10:30, HelloWorld a écrit : > Hi Everybody > > I installed Django and wanted to test what I can do by using Sqlite. > It is unclear for me how this can be achieved and therefore have the > following open questions: > > 1. Do I need to fill in the settings.py any other info

Django Sqlite

2010-05-11 Thread HelloWorld
Hi Everybody I installed Django and wanted to test what I can do by using Sqlite. It is unclear for me how this can be achieved and therefore have the following open questions: 1. Do I need to fill in the settings.py any other info than: django.db.backends.sqlite3 at ENGINE What do I/ Do I need

Re: How to copy project folder from one folder location to another

2010-05-11 Thread Gath
Sorry, i fixed it! it was a case of wrong PYTHONPATH. Thanks. On May 10, 5:21 pm, Gath wrote: > Am using eclipse+pydev to build my django apps. I created a new > workspace, built a new pydev project then created an empty folder in > the new pydev project. In that empty

Re: New User Stuck on Tutorial Part 2

2010-05-11 Thread Mike Dewhirst
On 11/05/2010 4:04pm, Mike Dewhirst wrote: On 11/05/2010 3:42pm, Old Davy wrote: On 05/10/2010 08:18 PM, Shawn Milochik wrote: Exactly what directory is your copied template in? It's most likely not in the right place. Ensure that you have a template dir that your settings knows about, and

Re: New User Stuck on Tutorial Part 2

2010-05-11 Thread Mike Dewhirst
On 11/05/2010 4:18pm, Old Davy wrote: Thank you, Mike. That DID work! So, if I have a directory that contains the /admin/base_site.html, all I have to do is specify the containing directory. I'll need to study the actual string you used a little more closely once I get more familiar with the

Re: New User Stuck on Tutorial Part 2

2010-05-11 Thread Old Davy
Thank you, Mike. That DID work! So, if I have a directory that contains the /admin/base_site.html, all I have to do is specify the containing directory. I'll need to study the actual string you used a little more closely once I get more familiar with the concepts. I can see how that would

accessing the data value of a form in the html

2010-05-11 Thread r3k
hey there, I'm trying to access the data value of the form in HTML, but can't seem to figure out how to do this? (if it's possible?) I'm not interested in have the form out build the widget with the HTML ... i just want to show it's value, but build the HTML myself ... I'd still like to use the

Re: New User Stuck on Tutorial Part 2

2010-05-11 Thread Mike Dewhirst
On 11/05/2010 3:42pm, Old Davy wrote: On 05/10/2010 08:18 PM, Shawn Milochik wrote: Exactly what directory is your copied template in? It's most likely not in the right place. Ensure that you have a template dir that your settings knows about, and that template dir has a subdirectory called