Bill: Tried that, but it made no difference. case is resolving ok.
The problem is with the first part "/helpdesk/" dropping off when
doing a reverse. The same behavior happens when I use the URL tag in
a template. "{% url case_url case.id %}" I get /support/case/1/
without the /helpdesk in fr
On Fri, Jan 1, 2010 at 5:46 AM, CB wrote:
Apologies for taking so long to get back to you on this - the silly
season has been consuming a lot of my time.
> Yes, and I think this is a somewhat common use case. If we could
> convince the related managers not to call .using() on the returned
> quer
On Jan 2, 2010, at 8:54 PM, Ramiro Morales wrote:
> On Sat, Jan 2, 2010 at 10:33 PM, dhruvg wrote:
>>
>> Could you elaborate?
>> The documentation indicates that complex expressions follow Python
>> exactly.
>
> I suspect you are using django 1.1.x and reading theDjango SVN trunk
> documentati
On Sat, Jan 2, 2010 at 10:33 PM, dhruvg wrote:
>
> Could you elaborate?
> The documentation indicates that complex expressions follow Python
> exactly.
I suspect you are using django 1.1.x and reading theDjango SVN trunk
documentation.
--
Ramiro Morales | http://rmorales.net
--
You received
Could you elaborate?
The documentation indicates that complex expressions follow Python
exactly.
or
and
not
in
==, !=, <, >,``<=``, >=
(This follows Python exactly). So, for example, the following complex
if tag:
{% if a == b or c == d and e %}
..will be interpreted as:
(a == b) or ((c == d) and
The problem is that you're using Python syntax instead of template tags.
http://docs.djangoproject.com/en/dev/ref/templates/builtins/
--
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...@googlegroup
{% if total_feed_approvals != 0 or total_dataset_approvals != 0 %}
{% endif %}
what is wrong with the above statement?
i have tried it with quotes around the 0 like "0" and that doesn't
help.
is it because there is an 'or'? i think complex expressions are
allowed in django.
thanks
> watching the pycon and django talks now (and it looks super cool) ...
> but at least by what I see so far is that its trying to allow people
> to download and create an "even more batteries included" type of
> platform. I'm hoping to create a repository of templates and designs
> (more for learn
Putting the following code somewhere after settings.py is imported (a
new app called 'startup' in __init__.py, with 'startup' added first in
INSTALLED_APPS is a good place), will allow you to lock models to
databases via a manager's forced_using attribute. This definitely not
'the best way', as mon
watching the pycon and django talks now (and it looks super cool) ...
but at least by what I see so far is that its trying to allow people
to download and create an "even more batteries included" type of
platform. I'm hoping to create a repository of templates and designs
(more for learning and ex
Hmmm,
I wonder if I could make the entire site out of plugables. Then
designers would have a well defined (or at least standard) set of
views and templates to program against. It would also be useful for
newbies to find templates and designs for these commonly used apps.
I've created a simple v
If you don't already know about Pinax perhaps you should look at
http://pinaxproject.com/. They already provide some of this and (as a
Pinax user) it would be nice to see some template compatibility.
Unfortunately they are still sub 1.0 in their release but it looks
like they have settled down a b
2010/1/2 Raja
> IMO, it would be useful if we get standard templates for django
> libraries that are out there, like django-registration, django-
> profiles etc. Since the library offers the models and views, it would
> be helpful if the templates are also available. The developer could
> then ta
Hi Django users,
I'm working on a widget similar to the popular django-tinyMCE widget.
I'm not a big fan of WYSIWYG editors, I prefer looking at the
code...so I've created django-editarea, which provides live syntax
highlighting plus a bunch of other features like line numbering and
regex find and
Thanks for the link to the spelling correction chapter. It will be
nice to have a solid walkthrough of basic correction theory.
As for making it exclusively for Django, I had the same issue you
brought up...flat pages and templates. For example, I have url
patterns like:
/project/*
on my site, and
If its just for Django, then it could be simpler as the only possible
URLs (with exception to flatpages) will be from urls.py. (Equivalent
of the urls list object from your codebase). On googling for a similar
app earlier, I found this chapter online about Spelling correction.
http://nlp.stanford.e
... I do like the idea of having a handful of "standard django
plugables" like django-registration, django-cms, django-profiles, and
dozens of others ... the Django-Resources page would be a good place
to start.
Then designers could upload either a full "website layout" against all
of my, and
IMO, it would be useful if we get standard templates for django
libraries that are out there, like django-registration, django-
profiles etc. Since the library offers the models and views, it would
be helpful if the templates are also available. The developer could
then take it and modify it to ada
Thanks for the thoughts Dougal. At the moment the only "managing" of
templates comes from uploading them through a form. If you wanted to
change/fork them you'd have to create your own "design" and then re-
upload the modified template.
Right now my example templates are super simple HTML templa
Hi,
This is a fantastic app, though it might be too fat for a minimalist like
me. ^_^
I would recommend override the default save method of the model and resize
the original photo using PIL. For the overriding part, you could consult the
documentation:
http://docs.djangoproject.com/en/dev/t
Thank you but I want to do that without external apps if possible :)
I am looking for a simplest way to create a thumbnail automatically
when a new book is created.
--
On Jan 2, 4:59 pm, Chris Moffitt wrote:
> You'll probably want to use one of Django's thumbnail apps. Here's th
You'll probably want to use one of Django's thumbnail apps. Here's the one I
recommend:
http://code.google.com/p/sorl-thumbnail/*
-*Chris
On Sat, Jan 2, 2010 at 9:48 AM, nameless wrote:
> Hi everyone I have a simple question.
> This is my model:
>
>
> class book(models.Model):
>title = mode
Hi everyone I have a simple question.
This is my model:
class book(models.Model):
title = models.CharField(max_length=50)
photo = models.ImageField(upload_to='images/avatar/')
thumb = models.ImageField(upload_to='images/thumb/')
I want in photo original photo and in thumb the same
What I want to accomplish it a throttle effect. I found that Piston
does something like that so I will borrow that code :P
Thanks
On Jan 2, 11:06 am, Waqqas Jabbar wrote:
> Hi
>
> If you mean how many users are browsing your site then you might want to
> look at django-tracking applicationhttp:/
Hi
If you mean how many users are browsing your site then you might want to
look at django-tracking application
http://code.google.com/p/django-tracking/
waqqas
On Sat, Jan 2, 2010 at 4:41 PM, eka wrote:
> Hi all,
>
> Is there any way to know, with Django, how many concurrent connections
> are
How would you propose people edit and manage the templates?
Do you follow a wiki style where everybody can edit others? or follow a VCS
and allow forking of templates?
I think it will be hard to find contributors since it will be hard to have a
limited/standard template context that still remains
Thank you Sam. Suddenly it starts working by itself after restarting
the server without making any changes :|
On Jan 1, 10:01 am, Sam Lai wrote:
> Are you missing a path in PythonPath, in your apache's conf file? Not
> sure if the python path is returned in Django's error page; if not,
> create
Hi all,
Is there any way to know, with Django, how many concurrent connections
are currently open?
Regards
Eka
--
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
Hi,
There are audio players available for djagon, but is there any django
project the provide audio recording capability?
My search has not produce any good results.
There are some python based libraries liky PyAudio (
http://people.csail.mit.edu/hubert/pyaudio/) or Gstreamer python binding,
that
On Wed, Dec 30, 2009 at 02:31, Koobz wrote:
> Hi Folks,
>
> This is my problem: I want a notion of preferences for anonymous users
> and registered users.
>
> Preferences can be things like "saved searches", "favorite
> restaurant", or a personalized portal configuration for the home page.
>
> Th
30 matches
Mail list logo