Django-Checks?

2009-08-05 Thread Cristiano
Some guy made a pretty handy site/tool for Symfony developers: http://symfony-check.org/ Basically it's a site that gives you a checklist of things you ought to go through before deploying/putting live your site. Anyone got a clue of something like this for Django, or iswilling to work on buildi

Django Test Server and threading

2010-01-30 Thread Cristiano Paris
verbosity=1) app = WSGIHandler() serv = wsgiref.simple_server.make_server('',,app) serv.serve_forever() ----- where wsgiref.simple_server is not a threaded WSGI container server. Thank you. Cristiano -- You received this message because you are subscribed to the Google Group

Re: Django Test Server and threading

2010-02-01 Thread Cristiano Paris
On Mon, Feb 1, 2010 at 12:33 PM, Ramiro Morales wrote: > ... > Are you using sqlite3? Yes but, isn't the test server always using sqlite3? Cristiano -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Django Test Server and threading

2010-02-01 Thread Cristiano Paris
id -1609415424 and this is thread id -1341648896 - So, it seems that every thread must open its own connection to the DB. Anyway, an in-memory sqlite3 DB's scope is bound to the connection's scope so, in the end, it can't be shared. Thank you for your help. Cristiano -- You re

problems when interpreter calls module 'taggit'

2014-01-30 Thread Cristiano Araujo
goodevening guys i'm new in this group my problem is this: i'm trying to make a simple django app, but when i try to sinc the db the interpreter shows mw this error:

url error

2014-02-05 Thread Cristiano Araujo
hello guys this is my url.py urlpatterns = patterns('blog.views', url(r'^$', ListView.as_view( queryset=Post.objects.all().order_by("-created")[:2], template_name="blog.html")), url(r'^(?P\d+)$', DetailView.as_view(

Re: url error

2014-02-05 Thread Cristiano Araujo
> > the message error: > Using the URLconf defined in webapp.urls, Django tried these URL patterns, in this order: 1. ^blog/ ^$ 2. ^blog/ ^(?P\d+)$ 3. ^blog/ ^archives/$ 4. ^blog/ ^tag/(?P\w+)$ 5. ^blog/ ^feed/$ 6. ^admin/ The current URL, blog/tagLondon, didn't match any of

Re: url error

2014-02-06 Thread Cristiano Araujo
yeah, i found the error. just a slash unnecessary url(r'^tag/(?P\w+)$', 'tagpage'), url(r'^tag(?P\w+)$', 'tagpage'), ^ On Thu, Feb 6, 2014 at 3:52 AM, Babatunde Akinyanmi wrote: > Ji Cristiano. You show the code that is not b

Strange query when using annotate and count

2017-11-14 Thread Cristiano Coelho
I'm getting some very odd query when combining annotate with count. See the following: >>> q = > Vulnerability.objects.annotate(score=WordTrigramCustomSimilarity('test','summary')) > >>> q.count() > 3094 > >>> print connection.queries[-1] > 'SELECT COUNT(*) > FROM ( > SELECT "vulnerabilitie

Re: Strange query when using annotate and count

2017-11-21 Thread Cristiano Coelho
Hmm, should I try with the dev mailing list? Guess it's something no one faced before? El martes, 14 de noviembre de 2017, 22:54:23 (UTC-3), Cristiano Coelho escribió: > > I'm getting some very odd query when combining annotate with count. See > the f

Re: Strange query when using annotate and count

2017-11-23 Thread Cristiano Coelho
(UTC-3), Simon Charette escribió: > > Hello Cristiano, > > I understand your frustration but please avoid using the developer mailing > list > as a second tier support channel. I suggest you try the IRC #django > channel if > you need to want to get faster support. > &g

Re: Strange query when using annotate and count

2017-11-24 Thread Cristiano Coelho
ra function calls really doesn't make sense to be there when doing a count, so it seems that all the options are quite bad and hackish. Any other options? El viernes, 24 de noviembre de 2017, 1:12:07 (UTC-3), Simon Charette escribió: > > Hello Cristiano, > > > Isn't ther

Re: Strange query when using annotate and count

2017-11-24 Thread Cristiano Coelho
und, I was hoping I missed some flag or implementation detail on the custom function to tell the query builder to avoid all the grouping and subquery stuff, will research more... El viernes, 24 de noviembre de 2017, 14:39:27 (UTC-3), Simon Charette escribió: > > Hello Cristiano, > > I

Re: Strange query when using annotate and count

2017-12-06 Thread Cristiano Coelho
that ends up almost adding 3 times more database query time do to the horrid count query generated. El viernes, 24 de noviembre de 2017, 18:04:21 (UTC-3), Cristiano Coelho escribió: > > Hello Simon, > > You are right, the score is really not meant to be attached so a custom &g

Re: Strange query when using annotate and count

2017-12-06 Thread Cristiano Coelho
necessary group by, or if this simply a bug El miércoles, 6 de diciembre de 2017, 10:28:22 (UTC-3), Cristiano Coelho escribió: > > After testing for a while, there really doesn't seem to be a good way to > do this. . > > Annotation is required since the query is filter

Re: New to Django (stuck at the end of the tutorial)

2016-04-26 Thread Cristiano Valente
You have defined no view to handle the root url. You only have two routes: ^/sistema and ^/admin. Besides, you should wrap admin.site.url in an include(). Il giorno martedì 26 aprile 2016 09:33:09 UTC+2, Cronos Cto ha scritto: > > > Hello Django Lovers. > > So I started on Django as project of mi

About channels and scaling up

2017-08-06 Thread Cristiano Coelho
About docs here: http://channels.readthedocs.io/en/stable/deploying.html "The fundamental difference is that the group mechanic requires all servers serving the same site to be able to see each other*; if you separate the site up and run it in a few, large clusters, messages to groups will only

Django Channels and multiple servers

2017-08-06 Thread Cristiano Coelho
For some reason my original question got lost. http://channels.readthedocs.io/en/stable/deploying.html I don't quite understand this part: The fundamental difference is that the group mechanic requires all servers serving the same site to be able to see each other; *if you separate the site u

Re: About channels and scaling up

2017-08-06 Thread Cristiano Coelho
ls release, but it's going > to take a little time. > > Andrew > > On Mon, Aug 7, 2017 at 4:21 AM, Cristiano Coelho > wrote: > >> About docs here: http://channels.readthedocs.io/en/stable/deploying.html >> >> "The fundamental difference is that th