Re: Application Name Cannot be the Same as Site Name - is this true?

2010-02-27 Thread Anthony
Their both version 1.1.1 by the way. On Feb 27, 11:33 pm, Anthony wrote: > I've got my app deployed on my production server where the application > name == site name.  (It's running fine.) > > I copied it down to my development machine and tried to set up the > same thing ('python manage.py start

Application Name Cannot be the Same as Site Name - is this true?

2010-02-27 Thread Anthony
I've got my app deployed on my production server where the application name == site name. (It's running fine.) I copied it down to my development machine and tried to set up the same thing ('python manage.py startapp [appname==sitename]'), I got the error message above. Did I just do something f

Re: update query set with a limit

2010-02-27 Thread James Bennett
On Sat, Feb 27, 2010 at 10:07 PM, Harley Bussell wrote: > Hi, id like to know if any one has found a work around to use limits > when updating a query set. This is unlikely to be supported by Django; "UPDATE ... LIMIT" is non-standard, non-portable and MySQL is the only DB supporting it out of th

update query set with a limit

2010-02-27 Thread Harley Bussell
Hi, id like to know if any one has found a work around to use limits when updating a query set. I'm trying to lock a number of the oldest rows in a table. update job set lock='lockid' where lock ='' order by created limit 10; Ideally id like to do something like this: Job.objects.filter(lock='').

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Karen Tracey
On Sat, Feb 27, 2010 at 9:23 PM, piz...@gmail.com wrote: > Yes Karen, that's what I thought from the beginning, something is broken in > my Python installation, I'll explain it better. I'm currently using django > dev server and it doesn't update the .pyc files, let's say I just change a > line i

Re: How can I apply ordering through a M2M join model?

2010-02-27 Thread Prabhu
What is wrong with gallery.photos.all().order_by('name') ? On Feb 27, 4:49 pm, Kyle Fox wrote: > I'm wondering if it's possible to apply ordering to a ManyToMany > relationship by using a `position` attribute on the join model.  A > classic example (photo gallery) is probably the best way to illu

Re: Handling input of external urls

2010-02-27 Thread Prabhu
If you use URLField it should do the trick. Just prefix http:// if it doesn't exist already using javascript. On Feb 26, 9:37 pm, russianbandit wrote: > This is a fairly general question, but what is the best way to handle > and verify user entry of external urls? For example, if the user types >

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Prabhu
Did you check ROOT_URLCONF in settings.py? On Feb 27, 8:34 pm, Rodrigo wrote: > If I update any line on the urls.py, this doesn't reflect on the > server. I can even DELETE the file, and all the urls are still > working. I've tried restarting runserver many times, even restarting > the computer,

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread piz...@gmail.com
El 28/02/2010, a las 1:03, Karen Tracey wrote: If you are routinely needing to delete .pyc files after making code changes in the corresponding .py files, something is broken. The post I responded to stated: "Python generates a compiled version of the file, and if you don't delete it, it nev

Re: Banned from the #django irc channel

2010-02-27 Thread Jeremy
I've run into this recently as well when I wasn't registered with Nickserv. You might try registering/authenticating before joining the channel. On Feb 26, 8:39 pm, Matías Iturburu wrote: > Hi guys, Sorry to bring such an off topic, but I've notice that I'm banned > on the django irc channel (at

Re: Can't get Uploaded File into DictReader

2010-02-27 Thread jeff
Thanks for the feedback. The bit about it being iterable put me on the right track and it turned out to be pretty simple. For the benefit of others, here's the basic code to select a CSV file on the local machine and process it on the server using DictReader to manage the columns: FORM: class I

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Kenneth Loafman
Karen Tracey wrote: > On Sat, Feb 27, 2010 at 6:31 PM, Kenneth Loafman > mailto:kenneth.loaf...@gmail.com>> wrote: > > Karen Tracey wrote: > > On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com > > > > >

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Karen Tracey
On Sat, Feb 27, 2010 at 6:31 PM, Kenneth Loafman wrote: > Karen Tracey wrote: > > On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com > > mailto:piz...@gmail.com>> > > wrote: > > > > Did you delete the .pyc files? Python generates a compiled version > > of the file,

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Kenneth Loafman
Karen Tracey wrote: > On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com > mailto:piz...@gmail.com>> > wrote: > > Did you delete the .pyc files? Python generates a compiled version > of the file, and if you don't delete it, it never get's updated. At > least it

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread Karen Tracey
On Sat, Feb 27, 2010 at 4:05 PM, piz...@gmail.com wrote: > Did you delete the .pyc files? Python generates a compiled version of the > file, and if you don't delete it, it never get's updated. At least it's the > problem I have. So if you update views.py and don't delete the old view.pyc > file,

Re: Django not reading the URLConf (urls.py)

2010-02-27 Thread piz...@gmail.com
Did you delete the .pyc files? Python generates a compiled version of the file, and if you don't delete it, it never get's updated. At least it's the problem I have. So if you update views.py and don't delete the old view.pyc file, it will work as the old version. El 27/02/2010, a las 21:

Django not reading the URLConf (urls.py)

2010-02-27 Thread Rodrigo
If I update any line on the urls.py, this doesn't reflect on the server. I can even DELETE the file, and all the urls are still working. I've tried restarting runserver many times, even restarting the computer, and nothing happens. The last test I did was deleting settings.py, to see if there was

Re: Django 1.0 admin - no "select all" checkbox

2010-02-27 Thread Ramiro Morales
On Sat, Feb 27, 2010 at 1:11 PM, Carlos Ricardo Santos wrote: > Anyone noticed that django 1.0 admin has no "select all" checkbox in every > model object view?\ That's because the actions feature (as it is known) was added in version 1.1 and is being enhanced for version 1.2. If you are followi

How can I apply ordering through a M2M join model?

2010-02-27 Thread Kyle Fox
I'm wondering if it's possible to apply ordering to a ManyToMany relationship by using a `position` attribute on the join model. A classic example (photo gallery) is probably the best way to illustrate this: class Photo(models.Model): image = models.ImageField(upload_to="photos") class Galle

Django 1.0 admin - no "select all" checkbox

2010-02-27 Thread Carlos Ricardo Santos
Anyone noticed that django 1.0 admin has no "select all" checkbox in every model object view?\ Do i have to clear objects in shell if I need to clean them all? -- Carlos Ricardo Santos -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: "Illegal mix of collations": how to handle that?

2010-02-27 Thread Karen Tracey
On Sat, Feb 27, 2010 at 7:06 AM, jul wrote: > hi, > > when submitting some characters in a charfield of a django form I get > the following error (e.g. when submitting 'ś') > > (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and > (utf8_general_ci,COERCIBLE) for operation '='") > >

Re: "Illegal mix of collations": how to handle that?

2010-02-27 Thread Nick Arnett
On Sat, Feb 27, 2010 at 4:06 AM, jul wrote: > hi, > > when submitting some characters in a charfield of a django form I get > the following error (e.g. when submitting 'ś') > > (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and > (utf8_general_ci,COERCIBLE) for operation '='") > >

"Illegal mix of collations": how to handle that?

2010-02-27 Thread jul
hi, when submitting some characters in a charfield of a django form I get the following error (e.g. when submitting 'ś') (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") It seems that the character I'm submitting is not part of my

Re: Banned from the #django irc channel

2010-02-27 Thread Kenneth Gonsalves
On Saturday 27 Feb 2010 12:38:16 pm James Purser wrote: > On Fri, 2010-02-26 at 22:17 -0500, Shawn Milochik wrote: > > I asked in the IRC, but nobody answered. There seemed to be almost no > > activity at all, though. Maybe someone who's associated with the room > > will see this thread and hel

Re: search_field doesn't work ?

2010-02-27 Thread Daniel Roseman
On Feb 27, 12:03 pm, "mendes.rich...@gmail.com" wrote: > Hello Django Users, > > I have the following problem, > In some of my models i have search_fields listed, and for some reason > these are not working anymore ( they previously did ). > > the syntax i used to get the search field is the follo

Re: Passing RequestContext as dict vs. context_instance=RequestContext

2010-02-27 Thread Jesaja Everling
Hi Bruno, Hi Alex, thank you very much for your helpful responses. I will do as you suggested and use RequestContext as it is supposed to be used or via Alex' generic view trick. Best Regards, Jesaja Everling On Feb 25, 3:27 pm, Alex Robbins wrote: > If you get tired of forgetting to add theRe

search_field doesn't work ?

2010-02-27 Thread mendes.rich...@gmail.com
Hello Django Users, I have the following problem, In some of my models i have search_fields listed, and for some reason these are not working anymore ( they previously did ). the syntax i used to get the search field is the following. search_fields = ('labcode') The url i get when i execute a se

Re: Handling input of external urls

2010-02-27 Thread rebus_
On 27 February 2010 02:17, russianbandit wrote: > Sorry for being sort of a newb when it comes to regex. But what > exactly does that line do? > > On Feb 26, 3:59 pm, "ge...@aquarianhouse.com" > wrote: >> Check it with regex? >> >> re.compile("[a-z0-9]\.[a-z]{2,6}$", re.I) > > -- > You received t

Re: to_field connected to field in UserProfile

2010-02-27 Thread django_is
Yeah I understand that. But it makes no sense to link the payment field in my Orders model to the CustomerProfile. In the end I want to save one payment method from the methods that are available for one specific user in my record for one order. I'm just confused on how to achieve that. From a user

Re: convert mysql database to django model

2010-02-27 Thread Sven Richter
Wow, this is cool. Django is so cool! I love it more and more every day! Greetings and thanks Sven On Sat, Feb 27, 2010 at 11:49 AM, rebus_ wrote: > On 27 February 2010 11:46, Sven Richter wrote: >> Hi everybody, >> >> i am wondering if there is a tool which converts existing mysql >> database

Re: convert mysql database to django model

2010-02-27 Thread rebus_
On 27 February 2010 11:46, Sven Richter wrote: > Hi everybody, > > i am wondering if there is a tool which converts existing mysql > databases with table structure into a django model? > > > Greetings > Sven Richter > > -- > You received this message because you are subscribed to the Google Groups

Re: convert mysql database to django model

2010-02-27 Thread ge...@aquarianhouse.com
Hi just use ./manage.py inspectdb ;) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. F

convert mysql database to django model

2010-02-27 Thread Sven Richter
Hi everybody, i am wondering if there is a tool which converts existing mysql databases with table structure into a django model? Greetings Sven Richter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan