Django reusable apps checklist

2017-04-04 Thread Filipe Ximenes
rce and we would love to get feedbacks on improvements as well as new additions. Just open an issue to contribute: https://github.com/vintasoftware/django-apps-checklist If you want to see the full talk, it's already available at: https://www.youtube.com/watch?v=NVVABF4Yj-U&feature=youtu

Re: Custom Users and ios django questions

2015-07-08 Thread Filipe Ximenes
on the web visit > https://groups.google.com/d/msgid/django-users/2aa960dd-1b95-427e-bb41-c497fcb6333c%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/2aa960dd-1b95-427e-bb41-c497fcb6333c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For mo

Re: Django urls and Angular ui router

2015-07-01 Thread Filipe Ximenes
968-f6ef-4eea-acd2-ab3393b94304%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You received this message because

Re: ValueError: Dependency on unknown app

2015-06-26 Thread Filipe Ximenes
"Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://grou

Re: Multiple User Roles design

2015-06-13 Thread Filipe Ximenes
//groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CACczBUK11KXp542vqVZLTfPEG9qbcKjjAQVonPNjf4uDaO3VbA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CACczBUK11KXp542vqVZLTfPEG9qbcKjjAQVonPN

Re: Squashed migration

2015-06-12 Thread Filipe Ximenes
.google.com/d/msgid/django-users/9288958d-0214-4cd2-9b51-dd173a8e83ae%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br

Re: Django post response method post not allowed

2015-05-28 Thread Filipe Ximenes
email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d8d

Re: How to pass a queryset for each different field Admin Inlines

2015-05-27 Thread Filipe Ximenes
Think I got it now. Can you see if this stackoverflow answer solves your problem: http://stackoverflow.com/questions/5329586/django-modelchoicefield-filtering-query-set-and-setting-default-value-as-an-obj On Wed, May 27, 2015 at 9:41 AM, Felipe wrote: > Hello, Filipe Ximenes, in fact it is

Re: How to pass a queryset for each different field Admin Inlines

2015-05-27 Thread Filipe Ximenes
>From what I could understand, you want to change the options of the "value options" field depending on the selected "attribute". Since the choosing of the "attribute" happens in the frontend and there's no page refresh, the backend does not know about it, and therefore cannot filter the "value opt

Re: Choosing an auth module: Login via Facebook, Google, ...

2015-05-06 Thread Filipe Ximenes
nsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/5628571430894754%40web12j.yandex.ru > &l

Re: design pattern to handle multiple groups from the same view

2015-05-05 Thread Filipe Ximenes
emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dj

Re: DRF - Which Authentication to use?

2015-05-04 Thread Filipe Ximenes
This is an interesting question. This question enlights some possibilities: http://stackoverflow.com/questions/21978658/invalidating-json-web-tokens But none of then gives is a definitive solution. Does anyone have other ideas about the subject? On May 1, 2015 10:13 AM, "Nabeel Valapra" wrote: >

Re: Migrations During Development

2015-04-25 Thread Filipe Ximenes
com/d/msgid/django-users/CA%2B%3DOU3WNb8XWUWLyN%2B7fq4u7Er3dczOqgBKLODdVnE3cLxOr-g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vi

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread Filipe Ximenes
the web visit > https://groups.google.com/d/msgid/django-users/61b3252f-679e-4918-9309-4811a6001102%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/61b3252f-679e-4918-9309-4811a6001102%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For mo

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread Filipe Ximenes
group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/cb9633d6-5571-45c1-91c0-a1118faf7e26%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/cb9633d6-5571-45c1-91c0-a1118faf7

Re: How should I develop a web site and mobile apps(iOS/Android) as Facebook(using DRF + Angularjs)?

2015-04-16 Thread Filipe Ximenes
2c-9a74e60d5238%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You received this message because you are subscribed

Re: form detail view using generic view

2015-04-16 Thread Filipe Ximenes
70-bd71-21cb3f7858ae%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You received this message because you are

Re: Please advise about pros/cons of cross-platform as Phonegap and Titanium in combination with Django.

2015-04-13 Thread Filipe Ximenes
#x27;s a good framework, has a lot of open source packages developed by the community. Also, consider Ionic: http://ionicframework.com/ On Mon, Apr 13, 2015 at 3:22 PM, Filipe Ximenes wrote: > I'm assuming your current application is not a SPA (single page > application). > Django is

Re: Please advise about pros/cons of cross-platform as Phonegap and Titanium in combination with Django.

2015-04-13 Thread Filipe Ximenes
utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You received this message because you are subscribed to the Google Groups "Djang

Re: Accessing to my user

2015-04-02 Thread Filipe Ximenes
nks in advance, > > -- > 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. > To post t

Re: Using Unicode in django

2015-04-02 Thread Filipe Ximenes
98a78a4b%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/504bf928-7259-4d17-994c-115e98a78a4b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-920

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread Filipe Ximenes
: > Hi Filipe, > > I have few apps installed. When I comment out the tastypie line my app > builds but gets an error in production because tastypie app isn't found. > Here it is: > > INSTALLED_APPS = ( > 'django.contrib.admin', > 'django.co

Re: Upgrade to django 1.7- ImproperlyConfigured -Tastypie label duplicate? help

2015-03-31 Thread Filipe Ximenes
Can you show us your INSTALED_APPS? It may be the case you have a lot of apps installed and is not seeing a duplicate reference to tastypie. On Mar 29, 2015 9:43 PM, "amarshall" wrote: > Hi, > > So I updated my django project from django 1.6 to 1.7.7 and when I run > "python manage.py migrate" I

Re: Performance of file-based sessions vs database-backed sessions

2015-03-27 Thread Filipe Ximenes
nqQxtxMBoiQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CABX-mpWYMZ9GQqTduk4RoJfagPAbQ9%3DnChkcu0znqQxtxMBoiQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximen

Re: Search user from Database

2015-03-27 Thread Filipe Ximenes
id/django-users/017b0bc2-ff5c-4a42-936d-00da2b246cbf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You received

Re: Textarea taking htnml tags

2015-03-27 Thread Filipe Ximenes
n on the web visit > https://groups.google.com/d/msgid/django-users/32bb3e0a-1eb1-46d1-94fe-4135c7c916df%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/32bb3e0a-1eb1-46d1-94fe-4135c7c916df%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For m

Re: Accessing django app from another app with ajax

2015-03-26 Thread Filipe Ximenes
My mistake. On Thu, Mar 26, 2015 at 11:42 AM, aRkadeFR wrote: > But from the first email, the debug settings is already at True > and he is not getting a stacktrace... > > > On 03/26/2015 03:40 PM, Filipe Ximenes wrote: > > In case there's no one using your projec

Re: Accessing django app from another app with ajax

2015-03-26 Thread Filipe Ximenes
ers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users

Re: How to create a multi valued field in the model?

2015-03-23 Thread Filipe Ximenes
to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CALn3ei1X%2Bam5Mdwq6Upz_CCnEaea8XaZkKbEnpHL3MC25CrmJQ%40mail.gmail.com > <https://groups.google.c

Re: Data migration script populating db table - testing

2015-03-23 Thread Filipe Ximenes
ttp://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/10767D81-937A-4F08-983A-B055C4AB3982%40sandeepmurthy.is > . > For more options, visit https://groups.google.com/d/optout. > -- *Filipe Ximenes*

Re: Django phonegap CORS

2015-03-18 Thread Filipe Ximenes
Awesome, sounds good! On Wed, Mar 18, 2015 at 4:57 AM, Florian Auer wrote: > Hello Filipe > > The idea with the inAppBrowser was great. > I allready was using this plugin but not that way > > Solution for me looks like the following: > 1. I'm still using djangorest

Re: Django Query to get max rating

2015-03-18 Thread Filipe Ximenes
g to a single group, it would make more sense to have a ForeignKey to Group in the Question model. You can also optimize the way you are doing the queries, but that's another topic. -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You received

Re: Django phonegap CORS

2015-03-17 Thread Filipe Ximenes
Hey, I wrote a blog post about CORS and Django with more details about the subject: http://www.vinta.com.br/blog/2015/django-cors.html =) On Fri, Mar 13, 2015 at 5:32 PM, Filipe Ximenes wrote: > Alright, I think I got what you want now. > > The first solution that comes to mind is t

Re: forms of 2 tables upload files

2015-03-17 Thread Filipe Ximenes
7;) def save(self, commit=True): person = super(MyForm, self).save(commit) file_instance = FileModel(the_file=self.cleaned_data['the_file']) if commit: file_instance.save() return person -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You recei

Re: Django phonegap CORS

2015-03-13 Thread Filipe Ximenes
token based authentication. This will be simpler since once you set the cookie, the browser will take care off passing it over page requests and you will not need to make customisations to your Django views regarding authentication. On Fri, Mar 13, 2015 at 4:53 PM, Florian Auer wrote: > Hello F

Re: Django phonegap CORS

2015-03-13 Thread Filipe Ximenes
55 AM, Florian Auer wrote: > Thanks to Filipe, the asynchronous request to django is working correctly. > A request to the endpoint url results in a JSON response with the token in > it. > > But now I have another gap in my "logic". > > Inside this angular app the djan

Re: Django phonegap CORS

2015-03-11 Thread Filipe Ximenes
idea is to have your API endpoints beginning with something like "/api/{whatever you want}" and set: CORS_ORIGIN_ALLOW_ALL = True CORS_URLS_REGEX = r'^/api/.*$' -- *Filipe Ximenes*+55 (81) 8245-9204 *Vinta Software Studio*http://www.vinta.com.br -- You received this mes

Parsing json.dumps to HighCharts in Django

2013-12-22 Thread Filipe Ferminiano Rodrigues
I'm trying to create a pie chart with HighCharts with Django (Mac maverick). This is my views.py def piechart(request): responses_pie = AnswerRadio.objects.values("body").annotate(Count("id")) res = [] for cat in responses_pie: res.append([

Parsing json.dumps to HighCharts in Django

2013-12-22 Thread Filipe Ferminiano Rodrigues
This is my views.py def piechart(request): responses_pie = AnswerRadio.objects.values("body").annotate(Count("id")) res = [] for cat in responses_pie: res.append([ cat["body"], cat["id__count"], ])

Setting urls from project

2012-12-23 Thread Filipe Manuel
I wish that when from accessing localhost:8000/cadastro he showed a form to register, but all the urls I click redirects to the same page. I wonder how pegging the url with the url of the application. I've Identified the error, all urls design guide for single views of the application, but do no

Re: Converting a urlib2 response to a django one

2010-05-06 Thread Filipe Correia
ot;) response["Date"] = resp.info().getheader("Date") response["Content-Type"] = resp.info().getheader("Content-Type") return response Filipe On May 6, 3:35 pm, Gustavo Narea wrote: > You could do it quite easily with twod.wsgi and Paste: > &

Converting a urlib2 response to a django one

2010-05-06 Thread Filipe Correia
e, the mimetype, the Content-Disposition, etc. Is there a better way to convert a urlib2 response to a django one? Thanks, Filipe -- 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...@googleg

view - code reuse problem ({% block %} or {include})

2009-06-10 Thread Filipe Silvestrim
h with the template language) - and by end. I tried to put this block of code in a external html and tried to use the {% include %}. But this, by the end, crash when I use the template language. Any tip? Thanks! -- Graciously, Filipe Silvestrim AUGRS Manager Flash Game Developer Flash CS3 Pr

Re: Loosing GET parameters while redirecting with generic view

2009-01-02 Thread Filipe Correia
urn redirect_to(url) Here's the solution I ended up with (it also forwards keyword args): def redirect_to_with_query(request, url, **kwargs): query_string = request.META["QUERY_STRING"] if query_string: url = "%s?%s" % (url, query_string) re

Loosing GET parameters while redirecting with generic view

2009-01-02 Thread Filipe Correia
/localhost/foo/?param1=value1¶m2=value2 This means that when redirecting the GET parameters will be lost, which is not my intent. Is there any way to maintain GET parameters with the "redirect_to" generic view? Or will I have to imp

/contrib/admin/urls.py doesn't exist

2008-07-20 Thread Filipe Sabella
Hello, I'm following the tutorial from the official Django website and, on the second part, when I try to access localhost:8000/admin, I get this exception: ImproperlyConfigured: Error while importing URLconf 'django.contrib.admin.urls': No module named urls I'm using the latest version from the

Re: Reusing a child block in an inherited template

2008-04-25 Thread Filipe Correia
ate's block, but I'm not finding any documentation on this matter :\ Is there any alternative (cleaner) way to accomplish the same? Cheers, Filipe On Apr 23, 7:35 pm, Filipe Correia <[EMAIL PROTECTED]> wrote: > Hi, > > I'm wondering if the following is possible with

Reusing a child block in an inherited template

2008-04-23 Thread Filipe Correia
s outputting nothing, instead of the value from the parent template). Might I be doing something wrong or is this the expected behavior? thanks, Filipe Correia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: am i using direct_to_template the wrong way?

2008-04-14 Thread Filipe Correia
Thank you. My eyes were repeatedly missing it, somehow :| Cheers, Filipe On Apr 14, 7:21 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Apr 14, 2008 at 1:37 PM, Filipe Correia <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I'm getting the

am i using direct_to_template the wrong way?

2008-04-14 Thread Filipe Correia
27;, 'redirect_to', {'url': 'search/'}), (r'^help/$', 'direct_to_template', {'template:': 'help.html'}), ) I'm sure I'm missing something trivial... only I don't know what. any thoughts? Btw, I'm using th

Re: IDE

2008-03-25 Thread Filipe Correia
going with django[2]. Cheers, Filipe [1] http://groups.google.com/group/PyScripter/browse_frm/thread/abd4303743c6ccf9 [2] http://pyscripter.googlepages.com/django --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

custom sql portability

2007-09-26 Thread Filipe Correia
Hi, I'm using some custom sql which isn't probably very portable across SGBDs. I'm wondering, what strategies do django users recommend to keep an app portable, even if custom sql is absolutely needed. any pointers? thanks,

Re: TemplateSyntaxError after svn-updating

2007-09-20 Thread Filipe Correia
Just sorted it out. I've added the template's root dir to TEMPLATE_DIRS and started simply using: {% extends "common/searchForm.html" %} cheers, Filipe On Sep 19, 5:31 pm, Filipe Correia <[EMAIL PROTECTED]> wrote: > Hello, > > I've svn updated my workin

TemplateSyntaxError after svn-updating

2007-09-19 Thread Filipe Correia
j/templates/specific/searchForm.html where i use template inheritance with: {% extends "../common/searchForm.html" %} Do relative paths no longer work with the current version of django? might it be a bug or some misuse on my part? thanks, Filipe --~--~-~--~~~---~--~-

Inheriting blocks inside custom template tags

2007-08-24 Thread Filipe Correia
ever, if the content of such a block is overridden, it no longer appears on the rendered page. The tag's content still shows though. My guess is that the way this custom tag is implemented makes inheritance not possible, but I can't see what it might be missin

Re: How to pass an extra variable to every template?

2007-08-23 Thread Filipe Correia
Cool, thanks. -- Filipe On Aug 23, 2:02 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > Write your own context_processor for that reason. This is a quick example: > > #!/usr/bin/python > # -*- coding: UTF-8 -*- > # this is a file yourproject/yourapp/context_p

How to pass an extra variable to every template?

2007-08-23 Thread Filipe Correia
some cool, dynamic stuff." What I am trying to do is to pass an extra variable to every template (which I have defined in settings.py), so that I can use that value with {% extends%}. What is the best way to accomplish this; will I have to change all of my views to pass the extra var? thanks, F

Re: url styling

2007-08-10 Thread Filipe Correia
>From a REST perspective, I think the best would be to make the action part of the query string. However, I also know not everyone agrees with this, so don't take my word for it. -- Filipe On Aug 10, 6:21 am, james_027 <[EMAIL PROTECTED]> wrote: > hi, > > is there any ad

Re: Composing an URL using the current search query

2007-08-07 Thread Filipe Correia
URL, like for example: http://domain.com/objects/123/rels/?name=zyx&type=xyz&page=2 Is there a simpler way to achieve this than reading the parsed parameters from the "request" object, reconstructing the original URL, and finally adding the extra parameter? thanks, Filipe On

Composing an URL using the current search query

2007-08-02 Thread Filipe Correia
tring only to compose it again with very little change. Is there a more elegant way to do this? thanks in advance, Filipe Correia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django-l10n-Portuguese

2007-05-16 Thread Filipe Correia
Don't know if you know about this, but there's already a Portugal Portuguese translation, contributed by Nuno Mariz: http://code.djangoproject.com/ticket/3745 I guess it's probably be a good start point to make a Brazil Portuguese translation. Filipe On May 15, 5:53 pm, "A

Re: Recommended Editor/IDE

2007-04-30 Thread Filipe Correia
it myself, but pyscripter's latest release has a remote debugger, which allows to debug django apps. Cheers, Filipe On Apr 30, 3:32 am, Sat <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a recommended editor or IDE for windows that is django savvy? > Ideally, I am looking for

Re: "mpm-prefork" vs. "mpm-worker"

2007-04-24 Thread Filipe Correia
Hi, I think the following thread may help you: http://groups.google.com/group/django-users/browse_frm/thread/22a6d00972359381/ Cheers, Filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Using custom tags inside custom tags

2007-03-19 Thread Filipe Correia
I think the ideal would be to keep the two tags decoupled, so I think I'll instead use another approach. Instead of using the "list_limit" tag I'll just pass the value from the view to the template (inside the "context"). thanks, Filipe On Mar 19, 4:08 pm, Georgi

Using custom tags inside custom tags

2007-03-19 Thread Filipe Correia
aram2.var does contain the string "list_limit", but resolve() returns an empty string instead of the int value I was expecting. I must be doing something wrong... any thoughts? thanks in advance, Filipe --~--~-~--~~~---~--~~ You received this message b

Re: Designing URLs

2007-03-07 Thread Filipe Correia
to appended slashes while also being able to use URLs without appended slashes in some situations, whenever it makes more sense. There are already some patches for it here: http://code.djangoproject.com/ticket/3224 http://code.djangoproject.com/ticket/3228 thanks, Filipe On Mar 6, 8:05 pm, "

Designing URLs

2007-03-06 Thread Filipe Correia
ays *not having* slashes at the end (digg.com, newsvine.com). Is there any criteria that can in fact be considered a best practice when designing URLs? I would very much appreciate to know of other's experience on this. thanks in advance, Filipe Correia --~--~-~--~~~---~

Re: Debugging Django: print statements?

2007-03-06 Thread Filipe Correia
Hi Dan, thanks for posting this. I know the latest versions of pyscripter now have remote debugging, but haven't come around to use it yet. I'm glad to know it works with django apps, I'll give it a go as soon as I can. Cheers, Filipe On Mar 6, 5:33 am, "deaston" <[E

Re: Cent OS Deployment

2007-01-28 Thread Filipe Correia
I know a Django app I've developed was deployed in CentOS with python 2.5, so I know it's possible. Can't help you with the details though.. What difficulties are you finding? Filipe --~--~-~--~~~---~--~~ You received this message because you ar

Re: Debugging Django: print statements?

2007-01-27 Thread Filipe Correia
probably equivalent) Filipe --~--~-~--~~~---~--~~ 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

Re: Debugging Django: print statements?

2007-01-24 Thread Filipe Correia
Haven't used pdb yet. 'pdb.set_trace()' would be added on the source code to be debugged, right? Having to change the source code to debug it doesn't feel very right... Filipe On Jan 23, 3:42 pm, "sandro dentella" <[EMAIL PROTECTED]> wrote: > I

Re: Debugging Django: print statements?

2007-01-22 Thread Filipe Correia
orward the next version of pyscripter though, which will apparently be able to debug django apps as it will include a new remote debugging feature: http://groups.google.com/group/PyScripter/browse_frm/thread/c63606868214be66 HTH, Filipe Correia On Jan 21, 11:34 pm, "rzimerman" <[

Re: Is the software behind the Djangobook available?

2007-01-01 Thread Filipe Correia
Just for the record, I would also be very interested in this! Do you have plans of building into it some way of exporting to other more format, that might be more manageable for print? (like for instance docbook or latex) Cheers, Filipe On Dec 28 2006, 9:08 am, "tekNico" <[EM

Re: What IDE do you use? (semi-OT)

2006-10-10 Thread Filipe
I found in this category are pyscripter and pydev. Cheers, Filipe --~--~-~--~~~---~--~~ 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@googlegro

Re: Does raising 404 makes use django's auth system?

2006-09-27 Thread Filipe
Michael Radziej wrote: > You need to copy the specific settings from > django.conf.global_settings to your settings module, it is: > > TEMPLATE_CONTEXT_PROCESSORS = ( > 'django.core.context_processors.auth', > 'django.core.context_processors.debug', > 'django.core.context_processors

Re: Does raising 404 makes use django's auth system?

2006-09-26 Thread Filipe
Michael Radziej wrote: > Well, as a work around, if you don't use a database, you should > remove > "django.core.context_processors.auth", > from TEMPLATE_CONTEXT_PROCESSORS in settings.py hmm, I don't have that in settings.py. However, I do have: INSTALLED_APPS = ( 'django.contrib.auth

Re: serving static images

2006-09-26 Thread Filipe
What about using MEDIA_ROOT instead of STATIC_LOC? isn't MEDIA_ROOT's purpose the same? --~--~-~--~~~---~--~~ 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@googleg

Re: Does raising 404 makes use django's auth system?

2006-09-26 Thread Filipe
thanks --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For mor

Re: Does raising 404 makes use django's auth system?

2006-09-25 Thread Filipe
rocessors.py", line 17, in auth return { AttributeError: 'ModPythonRequest' object has no attribute 'user' thanks! Filipe --~--~-~--~~~---~--~~ You received this message becau

Does raising 404 makes use django's auth system?

2006-09-25 Thread Filipe
loping doesn't use a database actually, so I'm not using the ORM and the features that depend on it (the auth system is one of them, right?). thanks in advance, Filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Handling 404

2006-09-21 Thread Filipe
? regards, Filipe --~--~-~--~~~---~--~~ 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 [EMAIL

Re: base template and URLs in it

2006-09-19 Thread Filipe
I think this thread may point you in the right direction: http://groups.google.com/group/django-users/browse_frm/thread/a950925c3ce6d7d2/fabe999ea8180b21 Cheers, filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Handling 404

2006-09-18 Thread Filipe
.py", line 97, in __init__ self.update(processor(request)) File "/usr/lib/python2.4/site-packages/django/core/context_processors.py", line 17, in auth return { AttributeError: 'WSGIRequest' object has no attribute 'user' It seems it's

Re: switching to mod_python

2006-09-12 Thread Filipe
I see, thanks. Filipe --~--~-~--~~~---~--~~ 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

Re: switching to mod_python

2006-09-11 Thread Filipe
solved it! there was an error in urls.py I have an second urls.py inside the app dir and had to fix this: 'myapp.views.start' to this: 'myproject.myapp.views.start' seems like relative "paths" are relative to the project's base dir, instead of the scripts dir. Still don't understand why it wor

Re: switching to mod_python

2006-09-11 Thread Filipe
solved it! there was an error in urls.py I have an second urls.py inside the app dir and had to fix this: 'myapp.views.start' to this: 'myproject.myapp.views.start' seems like relative "paths" are relative to the project's base dir, instead of the scripts dir. Still don't understand why it wor

switching to mod_python

2006-09-11 Thread Filipe
I'm testing my django app on mod_python, using the development server it works fine, but under mod_python the following exception appears: ViewDoesNotExist at /myapp/ Could not import myapp.views. Error was: No module named myapp.views I'm accessing the builtin server with the URL: http://local

mod_python - Using Apache prefork Vs Apache worker

2006-09-05 Thread Filipe
Hi, The docs say [1] that: "Django requires Apache 2.x and mod_python 3.x, and you should use Apache's prefork MPM, as opposed to the worker MPM." I want to test a Django site on a server (I plan to deploy there some other sites in the future) where there are installed Apache 2 and mod_python 3.

Re: Returning images with Django

2006-09-05 Thread Filipe
I see. thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED]

Re: Returning images with Django

2006-09-05 Thread Filipe
Ian Holsman wrote: > im = Image.open('%s/blah.jpg' % settings.MEDIA_ROOT ) > resp = HttpResponse( mimetype="image/jpeg" ) > im.save( resp, 'JPEG' ) > return resp > ? yeah, precisely! thanks. although it works perfectly there's something I don't quite understand (i'm still a newbie

Returning images with Django

2006-09-04 Thread Filipe
Hi all, I need to make some images available on my django website that are stored on an internal file server. The idea would be that Django would be listening to requests for those images, the respective view would read the bytes for the requested image (which would be available locally via samba

Re: basic question, "greater than" in templates

2006-08-31 Thread Filipe
I see. Thanks! cheers, Filipe --~--~-~--~~~---~--~~ 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, sen

basic question, "greater than" in templates

2006-08-31 Thread Filipe
Is it possible to make "less than" and "greater than" comparisons in templates? I was trying to do something similar to this, but without success: {% if list|length > max_list_length %} Exceeded by {{ list|length - max_list_length }} items {% endif %} --~--~-~--~~~--

where to keep custom managers

2006-08-24 Thread Filipe
t the same level as model.py, but I started having some cyclic dependencies issues and gave up. Regards, Filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Django and SRU - Search / Retrieve via URL

2006-07-27 Thread Filipe
parser instead. [1] http://www.loc.gov/standards/sru/sru-spec.html [2] http://srw.cheshire3.org/downloads/ Cheers, Filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Is MS SQL Server support coming anytime soon?

2006-07-27 Thread Filipe
There's a thread I started in the python newsgroup about pymssql but where were also discussed several other ways to connect to a MSSqlServer database. I think it contains usefull info on the subject [1] Some days ago someone also pointed out to me Pyodb [2], which might be a good option (althoug

Re: Where to put custom sql?

2006-07-07 Thread Filipe
operation. However, if not a perfect solution, it seems at least like a step in the right direction. I'll look into it better. thanks, Filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Where to put custom sql?

2006-07-06 Thread Filipe
27;ve read something about Manipulators and, at the time, it seemed to be what I am looking for. Is it? Cheers, Filipe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: MS SqlServer in Django

2006-06-30 Thread Filipe
I can run it on a linux box Cheers, Filipe --~--~-~--~~~---~--~~ 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 g

Re: MS SqlServer in Django

2006-06-30 Thread Filipe
bundled with Django. Is this already implemented in the current trunk? If so, is it enough to change the "DATABASE_ENGINE" setting to something like "pymssql"? :) cheers, Filipe --~--~-~--~~~---~--~~ You received this message because you are subsc

  1   2   >