Re: Q about wizard.form.forms

2013-02-24 Thread Rob Slotboom
Babatunde wrote: It is satisfied when the step contains a formset -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

how to evaluate "cities/countries of the world" static table for an application.

2013-02-24 Thread Fatih Tiryakioglu
Hello all, Is there any shortcut for evaluating such a database table, or should I collect myself all this information. Please help. If you prefer a package which one do you prefer, or all of them is workable. Thanks. -- -- You received this message because you are subscribed to the Google

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Mon, Feb 25, 2013 at 1:37 AM, Nick Apostolakis wrote: > On Mon, Feb 25, 2013 at 12:18 AM, Mark Furbee wrote: >>> >>> Django docs (pretty turse): >>> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ >>> >>> From ReportLab site: >>>

Re: Manually added foreign key not working.

2013-02-24 Thread Mike Dewhirst
On 25/02/2013 2:59pm, laxmikant ratnaparkhi wrote: Does anybody can answer this? Try changing your model from FK_Formats = models.ForeignKey(Formats) to ... FK_Format = models.ForeignKey(Formats)Â Â ... and see what happens to the error. Mike Let me know if anything extra is

Re: Manually added foreign key not working.

2013-02-24 Thread laxmikant ratnaparkhi
Does anybody can answer this? Let me know if anything extra is required? Thanks in advance... Laxmikant On Wed, Feb 20, 2013 at 6:23 PM, laxmikant ratnaparkhi wrote: > Hello all, > > I just run a command to Add foreign key to the existing table. and the > command was

Select Multiple in List_filter

2013-02-24 Thread Jesús Lucas Flores
Hi I am trying to do a select multiple list filter for django admin but I can't . anybody knows how to make it or have a snippet ? Thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: m2m relation just working in one direction

2013-02-24 Thread Roberto López López
Mike, Cool, you are right! Changing the related_name to something different than groups seems to solve the problem. Thank you very much :-) Roberto On 02/24/2013 11:30 PM, Mike Dewhirst wrote: > Roberto > > I'm not entirely sure but it is possible that your group is getting > mixed up with

Re: m2m relation just working in one direction

2013-02-24 Thread Mike Dewhirst
Roberto I'm not entirely sure but it is possible that your group is getting mixed up with the contrib.auth group. I would try changing the name of my group temporarily to something else just to eliminate that. Mike On 25/02/2013 8:58am, Roberto López López wrote: Hi, I have a problem

m2m relation just working in one direction

2013-02-24 Thread Roberto López López
Hi, I have a problem involving a relation between two entities, Person and Group. from django.contrib.auth.models import User from django.db import models class Group(models.Model): employees = models.ManyToManyField('staff.Person', related_name='groups') leader =

Re: Saving browser output as pdf

2013-02-24 Thread Nick Apostolakis
On Mon, Feb 25, 2013 at 12:18 AM, Mark Furbee wrote: Django docs (pretty turse): https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ From ReportLab site: http://www.reportlab.com/software/documentation/ Here's a decent quick tutorial:

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Mon, Feb 25, 2013 at 12:18 AM, Mark Furbee wrote: > Django docs (pretty turse): > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > From ReportLab site: > http://www.reportlab.com/software/documentation/ > > Here's a decent quick tutorial: >

Re: Saving browser output as pdf

2013-02-24 Thread Mark Furbee
Django docs (pretty turse): https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ >From ReportLab site: http://www.reportlab.com/software/documentation/ Here's a decent quick tutorial: http://www.blog.pythonlibrary.org/2010/03/08/a-simple-step-by-step-reportlab-tutorial/ Note that what

Re: How do I join two existing tables?

2013-02-24 Thread frocco
>> managed=False << Thanks for pointing that out. On Sunday, February 24, 2013 11:10:07 AM UTC-5, Johan wrote: > > You're welcome. > > You probably also want to make sure that in the class Meta options, you've > set managed=False > Otherwise you could accidentally change the database

Re: how to use static in development with PyCharm?

2013-02-24 Thread frocco
My current settings are: STATIC_ROOT = '/Applications/djangostack-1.4.4-0/apache2/htdocs/static/' STATIC_URL = 'http://localhost:8080/static/' I am developing now in /Applications/djangostack-1.4.4-0/apps originally I was developing in the PyCharm Projects Directory I guess I wanted to know what

Re: How do I join two existing tables?

2013-02-24 Thread Johan ter Beest
You're welcome. You probably also want to make sure that in the class Meta options, you've set managed=False Otherwise you could accidentally change the database definitions. All the information is here: https://docs.djangoproject.com/en/dev/howto/legacy-databases/ On Feb 24, 2013, at 5:05 PM,

Re: Saving browser output as pdf

2013-02-24 Thread Satinderpal Singh
On Sun, Feb 24, 2013 at 8:00 PM, Nick Apostolakis wrote: > On 24/02/2013 03:15 μμ, Satinderpal Singh wrote: >> >> Thanks a lot to all. I noted your suggestions, and will try to >> implement one which would be best suit to my requirement. >> >> By the way, i am trying to take

Re: How do I join two existing tables?

2013-02-24 Thread frocco
Thank you On Sunday, February 24, 2013 10:00:58 AM UTC-5, frocco wrote: > > Hi, > > I have to interface with an existing php app and the key field is > character. > > paginator = > Paginator(Shopinventory.objects.exclude(list_price=0).filter(sizenum__contains=search), > > 20) > I want to

Re: Saving browser output as pdf

2013-02-24 Thread Mark Furbee
Mike DeWitt's answer is most appropriate. In you view define an argument 'pdf=False' and when returning the response from uou view, if pdf is False, return regular HttpResponse. If pdf is True, follw @Mike's reply to set response Content type to PDF. It is really easy to return what would be an

Re: how to use static in development with PyCharm?

2013-02-24 Thread Nicholas Duffy
You mean that in PyCharm, you get the "Unresolved static reference" warning? Do you have the static files in the static subdirectories of your installed apps or in STATICFILES_DIRS in settings? STATIC_ROOT is meant to be the directory that is used when you run collectstatic in production. With

Re: How do I join two existing tables?

2013-02-24 Thread Johan ter Beest
On Feb 24, 2013, at 4:00 PM, frocco wrote: > Hi, > > I have to interface with an existing php app and the key field is character. > > paginator = > Paginator(Shopinventory.objects.exclude(list_price=0).filter(sizenum__contains=search), > 20) > I want to add to the

How do I join two existing tables?

2013-02-24 Thread frocco
Hi, I have to interface with an existing php app and the key field is character. paginator = Paginator(Shopinventory.objects.exclude(list_price=0).filter(sizenum__contains=search), 20) I want to add to the above and pull the related category. Shopcategories has a character prime key

Re: Saving browser output as pdf

2013-02-24 Thread Nick Apostolakis
On 24/02/2013 03:15 μμ, Satinderpal Singh wrote: Thanks a lot to all. I noted your suggestions, and will try to implement one which would be best suit to my requirement. By the way, i am trying to take pdf output from the models and for that i required these libraries. Currently, i am using

Re: Saving browser output as pdf

2013-02-24 Thread Russell Keith-Magee
On Sun, Feb 24, 2013 at 11:12 AM, Evan Brumley wrote: > Have a look at wkhtmltopdf for easy server side generation of PDFs. It's > not perfect, but it seems to be the best option out there at the moment. > I'm also hearing good things about PhantomJS, though I haven't