Re: MEDIA and STATIC in a nutshell?

2011-05-15 Thread Stuart MacKay
Eiji, The documentation for MEDIA_URL and STATIC_URL is correct and quite clear - once you understand what it is telling you. I also had suffered the same confusion when I stated using Django and English is my first language. In general the Django documentation is comprehensive but concise.

Re: How to choose a license for an app or a project?

2011-05-15 Thread Kenneth Gonsalves
On Sun, 2011-05-15 at 22:10 -0700, Jacob Kaplan-Moss wrote: > On Sun, May 15, 2011 at 9:58 PM, Kenneth Gonsalves > wrote: > > go read the GPL and stop irritating everyone here. > > Kenneth, that's uncalled-for -- please don't respond to rudeness with > more rudeness. right - monday morning is m

Re: How to choose a license for an app or a project?

2011-05-15 Thread Jacob Kaplan-Moss
On Sun, May 15, 2011 at 9:58 PM, Kenneth Gonsalves wrote: > go read the GPL and stop irritating everyone here. Kenneth, that's uncalled-for -- please don't respond to rudeness with more rudeness. It's pretty clear to me that this discussion is incredibly off-topic and that Bostjan has no interes

Re: How to choose a license for an app or a project?

2011-05-15 Thread Kenneth Gonsalves
On Sun, 2011-05-15 at 21:39 +0200, Boštjan Mejak wrote: > What if I choose GPL v3 but I don't provide the source code of my > application? Is that against the GPL v3 policy? > > go read the GPL and stop irritating everyone here. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox htt

VALUE parameter in SELECT tag in ModelForm

2011-05-15 Thread Vladimir
One of model fields is ForeignKey, a corresponding form field is ModelChoiceField. VALUE parameter of SELECT tag gets value equal to primary key. What must I do to provide VALUE parameter equal to another field? Thank You very much! -- You received this message because you are subscribed to the G

Re: Overide error messages in models

2011-05-15 Thread Mohd Kamal Bin Mustafa
There's self._meta._fields() that you can call to get a list of fields defined in that models but all the error_messages property attached to that field is just a proxy object to something else. I try the following in model's __init__ but it doesn't has any effect:- class Thread(models.Model):

Re: Overide error messages in models

2011-05-15 Thread Shawn Milochik
On 05/15/2011 08:03 PM, Daniel França wrote: I don't know if I understood, but the example you posted is about forms, right? That's the point, I don't wanna need to write forms to modify error messages. Yeah, it looks like the link I posted was about forms. I got a bit turned around after look

Re: how to list all model classes within admin that extends another model?

2011-05-15 Thread garagefan
basically speaking, i want a class' admin page w/ it's list of entries listed on the client page. so, every class object that has a Client pk foreign field relationship is listed on that Client's admin page whether it is a portfolio object, an invoice object, or any future class i create that gets

Re: django problem in creating server

2011-05-15 Thread Shawn Milochik
On 05/15/2011 08:16 PM, MOHAK R wrote: while creating a django server i am getting import receiver not found... i have followed all the installation process properly as mentioned in documentation. and my os is mac osx. Traceback or it didn't happen. ;o) -- You received this message because you

django problem in creating server

2011-05-15 Thread MOHAK R
while creating a django server i am getting import receiver not found... i have followed all the installation process properly as mentioned in documentation. and my os is mac osx. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: how to list all model classes within admin that extends another model?

2011-05-15 Thread garagefan
yeah, i've changed things around just slightly and included a tabularinline however, now i need to modify the template to display a link to each of the items pages, b/c as is it only allows one to update the name of the clientobject, which is now: class ClientObject(models.Model): client = mode

Re: Overide error messages in models

2011-05-15 Thread Daniel França
I don't know if I understood, but the example you posted is about forms, right? That's the point, I don't wanna need to write forms to modify error messages. On Thu, May 12, 2011 at 10:54 PM, Shawn Milochik wrote: > On 05/12/2011 09:35 PM, Daniel França wrote: > >> I wanna change the error messa

Re: how to list all model classes within admin that extends another model?

2011-05-15 Thread Shawn Milochik
Try this: http://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin -- 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

Re: MEDIA and STATIC in a nutshell?

2011-05-15 Thread Eiji Kobayashi
Shawn, Thank you. For the compliment and your help. I'll try putting the static folder in my apps and try. Yes, the Japanese documentation is still stuck in 1.0, but there are other places to look. But I often use the English docs as last resort, because the language is so difficult for us. I hav

Re: flushing correctly the db

2011-05-15 Thread Shawn Milochik
On 05/15/2011 05:00 PM, manaus wrote: Hello, I had to change one of the models, did flush and syncdb, but still the view returns 'integrity error, myapp_user.town_id may not be NULL, the field seems to be still there. What can I do? (using sqlite3) Thanks! 1. syncdb doesn't do anything to exi

flushing correctly the db

2011-05-15 Thread manaus
Hello, I had to change one of the models, did flush and syncdb, but still the view returns 'integrity error, myapp_user.town_id may not be NULL, the field seems to be still there. What can I do? (using sqlite3) Thanks! -- You received this message because you are subscribed to the Google Gro

how to list all model classes within admin that extends another model?

2011-05-15 Thread garagefan
building a client management application for myself in one application model, called client_management, i have class Client(models.Model): active = models.BooleanField(_('active client'), default=False) name = models.CharField(max_length=250) logo = models.ImageField(upload_to="logos") def

Re: How to migrate user submitted data to new table upon approval

2011-05-15 Thread Shawn Milochik
If you want help you'll need to provide us information we can work with. What error message are you getting? Have you checked to see if the application generates any logs? What changed from when it was working until now? Was anything on the server removed or upgraded? If there's any documen

How to migrate user submitted data to new table upon approval

2011-05-15 Thread fyoung
I took over a django project in which a user can submit a business and then the administrator can approve the business. From my understanding, once the business is approved, it moves from the 'UserSubmittedBusiness' table to the 'Business' table. However, this is no longer working. I would like to

Re: How to choose a license for an app or a project?

2011-05-15 Thread Boštjan Mejak
What if I choose GPL v3 but I don't provide the source code of my application? Is that against the GPL v3 policy? -- 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

Re: How to choose a license for an app or a project?

2011-05-15 Thread Bjarni Rúnar Einarsson
On Sat, May 14, 2011 at 7:39 PM, Boštjan Mejak wrote: > Say I create an app in Python and wxPython (a Python GUI framework). And > then I upload my installation binaries (binaries created with py2exe and > setup made with Inno Setup) to, say, Google Code. I don't want to dislose my > source code.

Re: boolean default

2011-05-15 Thread Christophe Pettus
On May 15, 2011, at 2:15 PM, Greg Donald wrote: > How do I set a default for a BooleanField() ? > > I tried > > foo = models.BooleanField( default=False ) > > > but that only produces > > foo boolean NOT NULL, The default= parameter in Django doesn't generate a DEFAULT in the SQL; the defa

boolean default

2011-05-15 Thread Greg Donald
How do I set a default for a BooleanField() ? I tried foo = models.BooleanField( default=False ) but that only produces foo boolean NOT NULL, Docs do not mention how as far as I can tell http://docs.djangoproject.com/en/1.3/ref/models/fields/#booleanfield -- Greg Donald destiney.com |

Re: Error after updating to Django version 1.3

2011-05-15 Thread Mishen'ka
I have found the sollution .. Since version 1.3 i need to set the setting LOGGING_CONFIG I placed LOGGING_CONFIG = None in settings.py and now it works On May 15, 7:36 pm, "Mishen'ka" wrote: > Hello everyone, > > I was updating my Django version to version 1.3 > > And i get a error where i cant

Error after updating to Django version 1.3

2011-05-15 Thread Mishen'ka
Hello everyone, I was updating my Django version to version 1.3 And i get a error where i cant find the reason. I have nothing more then this message: MOD_PYTHON ERROR ProcessId: 3138 Interpreter:'server1.lokaal' ServerName: 'server1.lokaal' DocumentRoot: '/var/www' URI:

Re: Django app models

2011-05-15 Thread augdawg
Thanks so much for your help! -- 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+unsubscr...@googlegroups.com. For more

Re: Basic Django Support

2011-05-15 Thread Shawn Milochik
Would you paste in your database settings from settings.py? -- 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+unsubscr.

Basic Django Support

2011-05-15 Thread David Biglin
Hi, I have been playing with Python for the past year now and enjoying it. I am trying Django to make a web site for a friend. I am Following the Django Tutorial on there web site to get the basic concepts here; http://docs.djangoproject.com/en/dev/intro/tutorial01/ During the set up i am using SQ

Re: PyStack and Djangoverflow

2011-05-15 Thread Shawn Milochik
On 05/15/2011 04:27 AM, Jonathan Endersby wrote: Hi If you're on Twitter you might want to follow these two feeds of highly rated Python and Django questions from Stack Overflow. http://twitter.com/#!/djangoverflow and http://twitter.com/#!/pystack Thanks. We'll see how much more of my time

Re: existing data failing validation

2011-05-15 Thread Greg Donald
On Sun, May 15, 2011 at 10:24 AM, Shawn Milochik wrote: > I think the reason you're getting the error you are is that you didn't add > 'company' to 'exclude' in your modelform. > > The code you pasted indicates that you will have an existing object 100% of > the time in this view. If that's the ca

Re: existing data failing validation

2011-05-15 Thread Shawn Milochik
I think the reason you're getting the error you are is that you didn't add 'company' to 'exclude' in your modelform. The code you pasted indicates that you will have an existing object 100% of the time in this view. If that's the case, your line to instantiate the form with request.POST and th

Re: Django manage.py shell won't indent

2011-05-15 Thread Amanjeev Sethi
How about spaces? On Sun, May 15, 2011 at 8:30 AM, Jinhyuk Im wrote: > I am using Django 1.3 at Ubuntu Server 10.04. > I can't use tab key in manage.py shell. > but, I can use tab key in Python 2.6 Shell > > >>> for link in links: > ... > Display all 176 possibilities? (y or n) > > What should I

Django manage.py shell won't indent

2011-05-15 Thread Jinhyuk Im
I am using Django 1.3 at Ubuntu Server 10.04. I can't use tab key in manage.py shell. but, I can use tab key in Python 2.6 Shell >>> for link in links: ... Display all 176 possibilities? (y or n) What should I do? Thank you. Have a nice day. -- You received this message because you are subscrib

Re: Problems importing model classes that reference each other...

2011-05-15 Thread Leo
As Shawn said, if you really must have both apps refer to the other's models, then then they're not really separate apps. If you're just trying to resolve a generic circular-reference problem, remember that ForeignKey can also take the name of a class as its first argument, see http://docs.django

Re: UTF-8 and files automatically created

2011-05-15 Thread Masklinn
On 2011-05-14, at 00:56 , Michael wrote: > Hello everybody, > > I am a beginner with Django and I was wondering something about UTF-8. > As a matter of fact, the files created automatically by Django when > you create your site and apps are not encoded in UTF-8. So some > characteres like the end

Re: existing data failing validation

2011-05-15 Thread Greg Donald
On Sat, May 14, 2011 at 7:35 PM, Shawn Milochik wrote: > That 'name = Charfield' doesn't belong there at all. > > Replace that line with this: >    exclude = ['company'] > > If you did want to add extra fields to a ModelForm you'd put them at the top > -- the same place as you would in a Form. Jus

Re: UTF-8 and files automatically created

2011-05-15 Thread Malcolm Box
Utf-8 and line endings are orthogonal issues. The problem is not that the files are not in utf-8, but that windows and Linux don't agree on what character means line-end. You will run into problems shipping unmodified windows line endings to a Linux box. Luckily the answer is git. This can be

PyStack and Djangoverflow

2011-05-15 Thread Jonathan Endersby
Hi If you're on Twitter you might want to follow these two feeds of highly rated Python and Django questions from Stack Overflow. http://twitter.com/#!/djangoverflow and http://twitter.com/#!/pystack -- Jonathan -- You received this message because you are subscribed to the Google Groups