On Wed, Apr 21, 2010 at 5:52 PM, John Finlay wrote:
> Does everyone code the html and css by hand for their templates? That seems
> very time consuming and tedious.
every developer i know does.
> Desktop apps have the same issues with variations of languages, fonts, etc.
> and resizing and the l
On Thu, Apr 22, 2010 at 6:25 AM, ge...@aquarianhouse.com
wrote:
> I your case i would put this task in queue or kind of a back process.
+1
Queues are the way to go. in this case, i guess a "Ghetho Queue"
would be enough (just a DB table of 'pending tasks', a cron script
that processes them and
On Thu, Apr 22, 2010 at 9:26 AM, Florin wrote:
> Maybe a solution would be to put more filters so the data won't be
> that large and so it would eventually generate the pdf.
no, the solution is to put all the heavy work _out_ of the
request/response cycle. just add the parameters (not the data)
I want to state some points that should be obvious:
- All three techonogies mentioned so far (Django, .NET and Rails) can
work on flawlessly on big, important projects when used correctly, or
can fail on medium/small deployments when used incorrectly.
- .NET is a lower-level layer than Django or
On Fri, Apr 23, 2010 at 1:29 AM, ChrisR wrote:
> def get_prev_by_title(self):
> get_prev = Product.objects.order_by('-
> title').filter(title__lt=self.title)
> try:
> return get_prev[0]
> except IndexError:
>
On Mon, Apr 26, 2010 at 4:16 PM, Daniel Klein wrote:
> From urls.py:
>
> url(r'^game/(\d+)/$', 'views.game', name='gameview'),
the parameter extracted from the url doesn't have a name.
change to:
url(r'^game/(?P\d+)/$', 'views.game', name='gameview'),
--
Javier
--
You recei
On Sat, May 1, 2010 at 7:22 AM, Joshua Russo wrote:
> This is mainly just curiosity at the moment. How do you create a
> "processing" intermediate page, like you see on travel sites when they are
> looking for the rates? I would always avoid this if at all possible, but
> sometimes you have a proc
On Thu, May 6, 2010 at 1:03 AM, Xavier Ordoquy wrote:
> Hi,
>
> I currently have a foreign key for which the model should allow the selection
> of a subset of objects depending on another object value.
>
> Let's say model A has a foreign key on model B. Model A & B have a field
> called restrict
On Thu, May 6, 2010 at 1:40 PM, Ross wrote:
> Your thoughts appreciated. Is there a better way? I wouldn't want to
> stuff the XML-file resident content into a database and rebuild the
> XML element subsets because there are tons of files arriving and
> disappearing and it would become a huge bac
On Mon, May 10, 2010 at 11:23 AM, carlos wrote:
> I'm sorry but this is a translation of google
even worse, it's a google translation of a text without punctuations.
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
On Fri, May 14, 2010 at 8:37 AM, Nuno Maltez wrote:
> Sure:
> http://docs.python.org/tutorial/controlflow.html#unpacking-argument-lists
>
> myfilter = { var_field: "found" }
> Foo.objects.filter(**myfilter}
or even:
Foo.objects.filter (**{var_field+'__eq':'found'})
if you want to use a differ
On Mon, May 31, 2010 at 9:56 AM, Stodge wrote:
> I have a query that filters on four fields:
>
> res = MyModel.objects.filter(name=self.name,
> type=self.type,
>
> la
On Mon, Jun 14, 2010 at 4:48 AM, kalinski wrote:
> MyModel.objects.get(id=request.DELETE['id']).delete()
request.GET is a parsing of the 'query' part of the URL.
request.GET is a parsing of the content of the request.
request.COOKIES is a parsing of some headers of the request.
what are you exp
On Fri, Jun 18, 2010 at 12:22 PM, TheIvIaxx wrote:
> My thoughts right now are for it to check memcached for the key, if
> not found, then serve up the file from disk. Everything else goes to
> apache. I will just have a cron job populate memcached separately.
>
> Is this a common practice or is
On Fri, Jun 18, 2010 at 5:52 PM, TheIvIaxx wrote:
> Its a lot of little files and from what i've seen, the stat call is a
> bottleneck. If they are all in memcache, then it should scream.
yes, this sounds like memcached territory. still, we can argue all
we want but a little benchmark would t
On Tue, Jun 22, 2010 at 12:11 PM, Waleria wrote:
> I have a system that generate graphs and files .dat. However, i'm
> having a problem, when two people access the system simultaneously may
> happen that the graph of a person to replace the second person, what
> can I do to make it not happen?
On Tue, Jun 22, 2010 at 12:30 PM, Waleria wrote:
> my application doesn't use DBnot able to do this without using the
> Random? ... without DB?
you only need some unique identifier. it can be random, or an UUID,
if you can track it, maybe in a cookie, or passed on URL parameters,
or if you'r
On Fri, Jul 9, 2010 at 10:27 AM, irum wrote:
> From command prompt, I invoke. curl
> http://127.0.0.1:8000/api/hb/bookings/21/rooms/
> It does not respond anything, even if left for long time. However if I
> use remote url, i.e. :
> req = urllib2.Request('http://www.example.com') , it returns the
On Fri, Jul 9, 2010 at 11:36 PM, Chris Seberino wrote:
> elif form.is_valid():
> ...
> request.session["posts"].append(form.cleaned_data)
>
>
> I noticed that everytime I revisit this form and rerun this view, the
> request.session["posts"] lists gets blown away and is em
On Fri, Jul 16, 2010 at 4:38 AM, barun wrote:
> The question am pondering over is, whether I should create separate
> apps for each of these sections. I'll have different database tables
> for each of those sections. Or should all the sections come under a
> single app, with a single model.py file
On Fri, Jul 16, 2010 at 7:10 AM, Doane wrote:
> I'm a new Django user. Which database management system should I use
> in developing Django apps, MySQL or PostgreSQL? Why?
this is a religious question especially without any information
about your case. so, follow your faith :-)
--
Javier
On Fri, Jul 16, 2010 at 7:09 PM, Greg Pelly wrote:
> I recommend finding an external host. They are cheap and you won't have to
> worry about hardware/backups/administration yourself.
i second that. if you have a distributed team, this is a huge
timesaver. i'm happily using repositoryhosting.co
On Tue, Jul 20, 2010 at 9:10 AM, reduxdj wrote:
> Users on my site can't type dollar signs without a form error showing.
> I'd rather allow them
> to type a dollar sign then clean it away after the fact? Can i see an
> example for this procedure please.
just put the $ sign on the field's label, t
On Wed, Jul 21, 2010 at 2:24 PM, RNGLAB wrote:
> thanks for your ideas
>
> yes django is amazing framework for daily web applications. not for
> core programming. this project's is needs very powerful cores
> programming.
it's usually accepted that most web frameworks have a 'ceiling', and
when r
On Tue, Aug 3, 2010 at 9:23 AM, Masklinn wrote:
> On 2010-08-03, at 16:19 , didier rano wrote:
>> What do you think about this post ?
>> http://blog.skeedy.com/django-rails-but-a-cost-to-pay
> That it's empty and useless, and solely written for getting hits.
add to that terrible grammar and disco
Hi
in my system, i have a few predefined groups, and some custom
permissions. the predefined groups have a strictly defined set of
these permission; it's a very basic part of the specification.
so, i defined these groups and the required permissions and dumped to
a fixture file. after cleaning
On Sat, Aug 14, 2010 at 1:28 PM, ydjango wrote:
> I have a online user initiated synchronous process which runs anywhere
> between 1-5 minutes and gives user status message at the end. It is a
> very DB intensive process that reads and updates lots of mysql rows
> and does many calculations. The p
On Mon, Aug 16, 2010 at 9:29 AM, Imad Elharoussi
wrote:
> Hello
>
> In my view.py I make connection with a distant server and i have to get an
> object from it every minute
> how can I do that without refreshing all the page
answer: AJAX
hint: jQuery $('#refreshingelement').load(yoururl);
--
J
On Mon, Aug 16, 2010 at 1:43 PM, ydjango wrote:
> Is there a way to put the process in a different thread or background
> job directly from django view (without going through a queue and
> cron)?
sure, you could simply execute an external process; but then you have
to be sure not to start too ma
On Thu, Aug 19, 2010 at 10:00 AM, Bradley Hintze
wrote:
>
you got the quotes wrong:
--
Javier
--
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 gro
On Thu, Aug 19, 2010 at 10:28 AM, Bradley Hintze
wrote:
> Javier
>
> Unfortunately, changing the quotes as you explained did not work.
likely the template isn't gettng the MEDIA_URL variable. if you show
the generated HTML it would be easier to help
--
Javier
--
You received this message be
On Thu, Aug 19, 2010 at 10:49 AM, Bradley Hintze
wrote:
>
> ...
>
> so it looks as if you're right, the template isn't gettng the
> MEDIA_URL variable.
> I thought this was taken care of in setttings.py (see previous
> messages). Does something need to be done in url.py?
no, it's done on a cont
On Thu, Aug 19, 2010 at 12:03 PM, Bradley Hintze
wrote:
> So do I create 'my_data_dictionary'? and whats in there?
are you using render_to_response()? can't comment on your code if you
don't show it
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Djan
On Thu, Aug 19, 2010 at 9:45 PM, buddhasystem wrote:
> Thank you! I actually had something less fancy in mind, like initializing
> data structures (possibly from a file), when the server is starts.
> Basically, looking for "init" handle.
point is, in a 'shared nothing' architecture, you don't kno
On Tue, Aug 24, 2010 at 7:33 AM, Piotr Kilczuk wrote:
> P.S. Don't think about URLs as directories.
+1
--
Javier
--
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 unsubscri
On Fri, Aug 27, 2010 at 1:47 PM, Trendero.com
wrote:
> I have a site, trendero.com, built using Django and hosted with
> RackSpace on its own server. To reduce costs, I'd like to switch the
> hosting to App Engine, but I'm not a technical guy (had the site built
> using contractors).
just one adv
On Fri, Sep 3, 2010 at 11:10 AM, Bradley Hintze
wrote:
> -In my template I put {{ param1.0 }}, expecting to see the first list
> in the list of lists.
> Result: nothing was printed to the page.
that zero becomes a string '0', not a numeric 0. IOW, it's not
param[0], it's (among other things) par
On Tue, Sep 14, 2010 at 4:18 PM, pixelcowboy wrote:
> I would really love something like pyjamas but that works with jquery
> or something like that. What I would really love is to forget every
> other programming language and just use python everywhere. Wouldn't
> that be sweet?
the problem with
On Tue, Oct 12, 2010 at 10:46 AM, Nick Arnett wrote:
> Anybody know a good way to do this?
Words.objects.filter(foo__in=mylist)
--
Javier
--
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...@googl
2010/10/13 Jonathan Barratt :
> not being an SQLite user myself but knowing the database image is a simple
> single file
you'd be surprised to learn that a good single-file architecture can
be waaay faster than a more complex system. (good examples include
Tokyo Cabinet and Varnish and, yes, SQL
On Wed, Oct 13, 2010 at 3:43 PM, Shawn Milochik wrote:
> C. The Celery daemon polls the broker regularly, looking for tasks.
i hope this isn't polling, but a signal initiated by the broker.
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users"
On Thu, Oct 14, 2010 at 4:45 AM, Justinas Jaronis
wrote:
> There
> are some objects that will have about 20+ m2m relationships
not knowing anything about your system, it might be the best solution;
but in the _vast_ majority of cases this is a signal of suboptimal
design. maybe there's some comm
On Tue, Oct 19, 2010 at 6:52 AM, wawa wawawa wrote:
> So, given this paucity of requirements and the horrendously unclear
> explanation above, what suggestions might you lot have? (Apart from "RTFM",
> of course!)
first and foremost, yes, you have to read the manual, and do the
tutorial. ideally
On Tue, Oct 19, 2010 at 9:45 AM, Ed wrote:
> Why is that? Is there a way to do this that doesn't result in two
> queries?
check:
http://docs.djangoproject.com/en/1.2/topics/db/optimization/#don-t-overuse-count-and-exists
there's a tip about loading the whole query once: use {% with
actor_list
On Tue, Oct 19, 2010 at 3:46 PM, Ed wrote:
> I have 3 tables: studio, film, images. If film has a foreign key to
> studio, and images has a foreign key to film. If I wanted to pull all
> of the images for a particular studio, it would be more expensive to
> pull:
what i do is: in the view, get
On Wed, Oct 20, 2010 at 7:59 AM, Ed wrote:
> what is the purpose of ifchanged?
since the images are sorted by film, if you just show the film for
every image it would be repeated. with {% ifchanged %} it's only
shown before all the images for this film, so the result is like this:
film A
image
2010/10/28 Rogério Carrasqueira :
> Thanks for you answer. Unfortunatelly I need to output my results on a JSON
> file. Do you have any other approach?
if the {% regroup %} is what you need, you should know that it's an
application of itertools.groupby()
--
Javier
--
You received this message
On Fri, Oct 29, 2010 at 3:41 AM, Mike Dewhirst wrote:
> That looks a bit 'under the radar' with regard to locked roadmap etc. Why
> not dig the pit a bit deeper and make your own server with Apache, Django
> and your Oracle db. Much cleaner than Apache/Django everywhere.
also, if it's going to be
On Sun, Oct 31, 2010 at 12:10 PM, Peter Herndon wrote:
> but I would not expect that single VPS to be able to handle more than a very
> small number of visitors at once.
only if you consider several dozens "a very small number"
--
Javier
--
You received this message because you are subscrib
On Mon, Nov 1, 2010 at 5:55 AM, Cal Leeming [Simplicity Media Ltd]
wrote:
> 9 out of 10 times, the bottleneck is usually the database
true, but 8.7 of those 9 are about how the database is used, and not
about the engine choice. simply changing SQLite won't improve
significantly the one-user case
On Tue, Nov 2, 2010 at 3:35 AM, Lars Ruoff wrote:
> Ok, so having excluded SQLite and the static served files, I'd like to
> test if the server matters. What would be a minimum Apache install and
> config to run Django locally (on Windows)?
again, that's _very_ unlikely to be the cause. why not
On Fri, Nov 12, 2010 at 3:40 AM, Pradnya wrote:
> Please let me know if there is any other way to convert the plane
> text / string into json
if you have data in a non-standard format, you'll have to whip up your
own parser
--
Javier
--
You received this message because you are subscribed to
On Thu, Nov 18, 2010 at 6:08 PM, Victor Hooi wrote:
> But yeah, I'd still love if there was a separate template I could use
> to generate the PDF. It just feels very weird building up the PDF line
> by line in views.py.
the obvious answer is "write your own"; but it doesn't have to be a
full-fle
On Tue, Nov 23, 2010 at 3:48 PM, Markus Barth
wrote:
> I am using quite a lot of asynchronous calls for updating a page. The
> problem is that this way you never see a traceback. In turbogears the
> development server prints all tracebacks to the terminal. Is there any
> way to get a similar behav
On Mon, Nov 29, 2010 at 8:24 AM, Brian Bouterse wrote:
> Yes I think a template filter is the right approach.
I'd say that generating UTF-8 HTML is 'more right'
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Mon, Nov 29, 2010 at 10:10 AM, Subsume wrote:
> Right now I've got the name :memory: but the table always seems to be
> empty, despite objects being created.
from the docs (http://www.sqlite.org/inmemorydb.html):
> Every :memory: database is distinct from every other. So, opening two
> datab
On Tue, Nov 30, 2010 at 10:51 PM, vamsy krishna wrote:
> I am trying to embed an Ajax call to load some RSS feeds using a PHP
> script in my Django app. This does not work and it returns my actual
> PHP code which is not getting executed. This works when I try the same
> outside of Django in Apach
On Wed, Dec 1, 2010 at 6:43 AM, ashdesigner wrote:
> The only undiscovered issue to us is whether we can launch a heavy
> loaded website in Django under Windows (IIS) + MSSQL. Would appreciate
> any comment please.
a WSGI plugin for IIS would be the best answer; but there's nothing
wrong with Fas
On Wed, Dec 1, 2010 at 6:54 PM, Andre Terra wrote:
> I've never used it as a plugin, just the standalone version.
the standalone is just an Eclipse installer with the plugin already
configured (and a few relevant others)
--
Javier
--
You received this message because you are subscribed to the
On Thu, Dec 2, 2010 at 9:22 AM, ashdesigner wrote:
> maybe I just don't get the point.
i guess the point is that nobody likes IIS, so there's no development
specific for that platform
--
Javier
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django
On Thu, Dec 2, 2010 at 10:05 AM, ashdesigner wrote:
> not to use Python/Django
> +IIS+Windows because of lack of support and tools immaturity ("hack"
> approach).
not at all. there are lots of goods reasons to go the *nix route (be
it Linux, BSD, Solaris, etc). but Django does work anywhere Py
On Thu, Dec 2, 2010 at 10:29 AM, Sithembewena Lloyd Dube
wrote:
> it is a web server problem? Specifically IIS?
if IIS can do FastCGI (and it should!) you can do django with flup
if IIS can proxy HTTP (and it would be weird if it doesnt), you can do
Django with gunicorn/tornado
or, you can ditc
On Thu, Dec 2, 2010 at 10:57 AM, ashdesigner wrote:
> browsing through techy blogs I often saw FastCGI mentioned as someway 'slow',
> 'deprecated',
you're reading the wrong blogs
> 'IIS7-incompatible'
that might be true, i have no idea. a big reason to stay far from IIS
unfortunately, i've ju
On Fri, Dec 3, 2010 at 4:04 AM, ashdesigner wrote:
> Frankly, I just don't quite get the #3 option. Do you mean switching
> to *nix would entail considerable support/management issues? If so,
> why *nix - native to Django - as you say, could be a limitation to the
> framework? Is this what you mea
On Sun, Mar 7, 2010 at 4:21 PM, Shawn Milochik wrote:
> Have a look here:
>
> http://code.djangoproject.com/wiki/ServerArrangements
>
> In general, you should have two Web servers (e.g. Apache and nginx or
> lighttpd). Apache (with mod_wsgi) to serve Django and nginx or lighttpd to
> serve the sta
On Tue, Mar 23, 2010 at 11:04 AM, jrs wrote:
> The recommendation to avoid web requests for long-chain deletes, most
> of the time, makes no sense. There are frequently valid cases of long-
> chain deletes being basic to web requests.
those cases are best served by an off-request process
--
Ja
On Sun, Mar 28, 2010 at 12:34 PM, Colin wrote:
> Or any other templating language that's a bit looser in allowing a bit
> of logic to mix in with the presentation layer?
PHP
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
On Mon, Mar 29, 2010 at 3:07 AM, derek wrote:
> Is there a possibility to store longer term data in the session
> variable (assuming one is dealing with logged-in users)?
you should write that data to the user's profile; or to any DB record
with a ForeingKey to the User model
--
Javier
--
You
On Fri, Apr 9, 2010 at 11:13 AM, UnclaimedBaggage wrote:
> Ooops - forgot one other thing:
>
> I'm a little concerned by django error handling. The tracer stack
> seems to miss the relevant file a lot of the time, and I often find
> little help from the error pages even when it does get the right
On Mon, Apr 12, 2010 at 5:19 AM, vishwanath b wrote:
> tom i know the programming language is python but the framework is
> djangoso i want to know how to use the python socket code in this
> framework that is what my question is?
- there's no IPC code in Django
- there are lots of IPC in Py
On Wed, Feb 8, 2012 at 9:53 AM, Dennis Lee Bieber wrote:
> I don't
> think the slice is "present" early enough to be turned into an "offset x
> limit y" query
yes, it is; and yes, it does
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" gr
On Tue, Feb 21, 2012 at 8:24 AM, Sébastien Billion
wrote:
> Set a virtualenv is good thing. You can write a shell script which set the
> virtualenv and install all the external module with pip -r. Use pip -r
> nameofrequriementsfile.txt. In this file, put the list of module with
> version.
i do e
On Wed, Feb 22, 2012 at 9:17 AM, Santiago Basulto
wrote:
> I'm unsing virtualenvs and Pip. Seems great, is really easy that way.
>
> What about deployment? Will it be simple? Or should i care about the
> specific webserver?
on deployment there should be a 'real' webserver (as opposed to the
devel
On Thu, Feb 23, 2012 at 6:21 AM, kalyani ram wrote:
> a backend having about 2lakh records
i couldn't resist, and found this: http://en.wikipedia.org/wiki/Lakh
translated, it's "about 200,000 records"
--
Javier
--
You received this message because you are subscribed to the Google Groups
"
On Sat, Feb 25, 2012 at 7:50 PM, DF wrote:
> Finally,
> I want to provide users the ability to search for nearby posts or
> within a certain boundary (from the documentation I've read, this is
> what GeoDjango apparently excels at).
that's the point. it seems easy, until you write some SQL to ex
On Mon, Feb 27, 2012 at 11:19 PM, atlastorm wrote:
> WSGI is a script that connects Django to
> Apache.
not really
WSGI is just a standard, a document that says "the web server will
call the app as a function with such and such parameters, the app will
return such and such values with the respon
On Tue, Feb 28, 2012 at 5:58 AM, atlastorm wrote:
> Right now I'm practicing Django by running the Django server
> (manage.py runserver) and everything works. Apache also runs but I
> have no clue what its doing.
nothing.
the Django development server (the one that runs with the runserver
comman
On Wed, Feb 29, 2012 at 3:16 PM, Tom wrote:
> Is it not possible to filter based on a property?
queries are compiled to SQL to be sent and processed at the database;
properties are Python code, the database knows nothing about them.
that's why the compiler only allows you to use database fields o
On Fri, Mar 2, 2012 at 1:23 PM, gowtham wrote:
> Not sure if it is the best one (would like to here from Pros on this). But
> following really helped me to get started. I finishing this tutorial in 2
> days and the next two days, i started and had a working application (simple
> though) for my pr
On Wed, Mar 7, 2012 at 11:03 PM, Mika wrote:
> But I'm just curious about the
> objective advantages of Ubuntu over Windows vis a vis django?
all OpenSource tools and libraries are developed first and foremost to
work on unix-like systems. while most of them do work very well on
windows too, it'
On Tue, Mar 13, 2012 at 7:57 AM, Virginia wrote:
> We add datas but not that much to slow it down so
> much.
this is usually not about data itself, being heavy but about having a
bad algorithmic behavior.
the most common culprit is having unexpected queries inside a loop.
for example:
{% for ms
On Tue, Mar 13, 2012 at 9:55 AM, Phanounou wrote:
> I installed the django_debug_toolbar and I see that in the sql part I have
> 1852 queries in 18228.00ms.
great, so this is indeed the problem.
which page is this?, the listing or the edit page? check the SQL
code, which tables is it accessing?
On Tue, Mar 13, 2012 at 10:41 AM, Phanounou wrote:
> When I look at the traceback from the django_debug_toolbar, there is 1852
> queries in 20956ms, there is several repetition of the same calls. And there
> is a lot of unnacessary calls. How can I optimise that? what can I do about
> it? is there
On Tue, Mar 13, 2012 at 2:14 PM, Phanounou wrote:
> Hello,
>
> have tryed to use the formfield_for_foreignkey() and
> formfield_for_manytomany() in the admin.py file. In fact, I have reduced
> the reponse time (around 10 sec. less then before) by replacing extra = 2 by
> extra=0 in my admin.Stac
On Tue, Mar 13, 2012 at 3:37 PM, Sophia wrote:
> Thanks all for helping, as I told I read that tutorial, but my supervisor
> said that I should do that with Django. He didn't mention about learning
> JavaScript, but is it impossible just with Django?
django runs on the server. if you want to do
On Wed, Mar 14, 2012 at 7:55 AM, Phanounou wrote:
> This is what is taking the most of the time. the gattering of the list of
> TObjectAttribute, 3 or 4 times each at a time because TmyObject has 3-4
> attributes value. Because I called it as an admin.StackedInline object in
> the admin page.
>
>
On Wed, Mar 14, 2012 at 8:56 AM, Phanounou wrote:
> I got itmany thanks Javier for your patience and your help.I put
> formfield_for_foreignkey method everywhere and now it's super fast. I'm glad
> you help me find the solution. Again thanks a lot. You made my day :-)
great. i'm glad i wasn
On Wed, Mar 14, 2012 at 1:35 PM, Fady Kamal wrote:
> no i need a tutorial to help me do these tasks
that's exactly what was suggested: go to the Django site and do the
tutorial. incidentally, most of the exercises are about a poll
application
--
Javier
--
You received this message because yo
On Thu, Mar 15, 2012 at 10:47 AM, msbuck wrote:
> I have used class based views in my latest project. Now I'm trying to write
> tests. I can write tests like the ones I wrote for function based views but
> these seem to me to be functional tests. Does anyone do unit testing on a
> class based view
On Tue, Mar 20, 2012 at 9:52 AM, Arruda wrote:
> But I still wanted to know how to use the celery in this case =/
the idea is to use a Queue:
you have a separate process (typically implemented in a manage
command) that stays running, and waits for messages in the queue.
when the web app wants t
try:
> Blog.objects.filter(editor_id=None)
--
Javier
--
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...
On Fri, Mar 23, 2012 at 4:37 AM, Aryeh Leib Taurog wrote:
> My understanding is that one usually
> wants an index on the *referenced* field, not the *referencing*
> field.
it's for the back-reference link. so that you can do
group.item_set.all() and get all the items that share a group.
yes, th
On Tue, Mar 27, 2012 at 1:57 AM, Stanwin Siow wrote:
> queryset = Memberships.objects.get(id__exact=4)
the .get() method doesn't return a queryset, it returns a record
object, so your 'queryset' variable is the 'membership' object itself.
the error you get:
> Memberships has no attribute all.
On Tue, Mar 27, 2012 at 3:52 AM, Davide Setti wrote:
> But that file is in django, not in his code, am i wrong?
many brain-dead editors silently add BOMs to files when saving. being
a .po file, i'd guess somebody did a small localization by editing it
with the wrong tool.
--
Javier
--
You re
On Fri, Mar 30, 2012 at 3:02 PM, Willy wrote:
> Django-taggit works quite well, I would suggest trying it over
> django-tagging
can you elaborate on why do you find it better? i have only tried
django-tagging some time ago, and maybe on a soon project would like
to do better
--
Javier
--
You
On Tue, Apr 3, 2012 at 8:21 AM, Andre Terra wrote:
> I have some complex and database intensive asynchronous tasks running under
> celery which take a LONG time to complete and I'd just love to be able to
> keep track of the queries they generate in order to optimize and possibly
> remove the bigg
On Tue, Apr 3, 2012 at 5:25 PM, Andre Terra wrote:
> To make things a little more complicated, the task involves writing a large
> amount of data to a temp database, handling it and then saving some
> resulting queries to the permanent DB. This makes it a tad harder to analyze
> what goes on in th
On Wed, Apr 4, 2012 at 4:07 AM, Tom Evans wrote:
> One pretty cool method I've used for live debugging in the past is to
> 'log' to rabbitmq (Note - not celery - raw amqp), and send messages to
> a logging exchange. You can use a topic key so that different
> processes can be distinguished.
a sim
On Wed, Apr 4, 2012 at 4:14 AM, Sergiy Khohlov wrote:
> As result your views.py should be :
>
> from django.views.generic import TemplateView
> # Create your views here.
> class HomeView(TemplateView):
> template_name='home.html'
>
> Only three lines of the code !
> You dont need more!
if i
On Mon, Apr 16, 2012 at 6:00 AM, Nikhil Somaru wrote:
> If I do the filtering in views.py, I the template would have to make
> assumptions about the type of context variables I will be passing it.
>
> Or am I seeing this the wrong way?
i think so. the view is where you manage _what_ is shown, t
1 - 100 of 496 matches
Mail list logo