Perhaps you should try like this:
url_1 = '{%page_url%}{% page_attribute "slug"%}/{{id}}/vote/'
On Mar 23, 8:41 pm, Tony wrote:
> there is a form called F, and I am trying to set its "action"
> attribute dynamically with javascript. I can do this successfully.
> However, when I try to use one
Maybe you could use the ifequal tag in your template, not sure what
your trying to do , but in your view you could do a friend =
Friends.objects.all() and in your template,
{% ifequal friend.isfriend True %}
do something here
{%endifequal%}
{% ifequal friend.is_invited %}
something else
{%endifeq
I think i got it now with
(r'^zones/(?P[.\w]+)/$', get_domain)
On Feb 3, 10:44 am, mike171562 wrote:
> I am building an app that passes a domain name to urls.py like so "/
> sites/domain.com/'
>
> but I cannot get my urls.py to match the 'domain.com
I am building an app that passes a domain name to urls.py like so "/
sites/domain.com/'
but I cannot get my urls.py to match the 'domain.com' it only seems
to match if i just use domain without the dot
I have tried
(r'^zones/^[^/]+/', get_domain),
(r'^zones/(?P\w+)/', get_domain),
I have a Django App with a list of our Customer's as Models. I'm
trying to find a good way to show a list of links on one of my
templates of the 10 most recently accessed customer's. Is there any
easy django way to do this. I thought about creating a new table in my
DB, but dont really want to do t
anyone?
On Aug 6, 2:42 pm, Support Desk wrote:
> I'm trying to setup Webshell in one of my Django Password protected pages.
> Webshell is a python script which starts its own server and your designated
> port it displays a shell on ava enabled web browser that connect to
> localhost. It tests goo
Would be nice if you would share your solution
On Jul 26, 9:05 pm, nixon66 wrote:
> ran into this error. Anyone familiar with it.
>
> TemplateSyntaxError at /lobby/lobbytype/public-relations/
>
> Caught an exception while rendering: Error binding parameter 0 -
> probably unsupported type.
>
> Or
django-admin.py --version from the command line should work as well.
On Apr 12, 1:39 am, Alex Gaynor wrote:
> On Sun, Apr 12, 2009 at 2:38 AM, ydjango wrote:
>
> > How do I find which version of django I have on my server?
>
> import django; print django.VERSION
>
> That should have a tup
Hello, I tried to add a column to one of my models named Ticket. I ran
a syncdb with no errors, but when i load my app I get the following
error.
(1054, "Unknown column 'tickets_ticket.ext_email' in 'field list'").
I tried dropping my Database and recreating to no avail. Anyone know
about this
To display and edit my extension of the user model in the admin
interface I simply add
class Admin:
list_display = ('account_number','userfield')
how can i get this to display in my ModelForm fields?
On Mar 9, 10:51 am, mike171562 wrote:
> Thanks alex,
Thanks alex, that worked, I have the extra field, and now to figure
out how to to tie it in to the main form and my user model.
On Mar 9, 10:12 am, Alex Gaynor wrote:
> On Mon, Mar 9, 2009 at 10:10 AM, mike171562 wrote:
>
>
>
>
>
> > thanks malcolm, thats doesnt seem to
')
adding the 'account' field as extra is not displayed in the ((field))
form in the template.
On Mar 6, 8:40 pm, Malcolm Tredinnick
wrote:
> On Fri, 2009-03-06 at 12:25 -0800, mike171562 wrote:
> > I am using Django's ModelForm in a template im working on. I am tryin
I am using Django's ModelForm in a template im working on. I am trying
to use it to display the Django User Object and an extension I added
of the user model, what would be the correct way to display my User
model extension in my template, I would like to be able to edit the
User information and t
use different JS libraries, markup and template
> > block structure, and CSS conventions.
>
> > I think, besides a CMS, a control panel would be a really good place
> > to use this. I'm hoping there will be some like-minded people at
> > Djangocon to discuss this with.
>
hey Scott, that worked perfectly thanks
On Jul 2, 11:16 am, mike171562 <[EMAIL PROTECTED]> wrote:
> Scott,
>
> Thanks, I'm already using long_distance =
> call.exclude(number__iregex=r'^1?(281|832|713|800)')
> to filter long distance numbers so, the new regex
cott Moonen" <[EMAIL PROTECTED]> wrote:
> Mike, you might try this:
>
> call.filter(number__regex = r'^.{7,}')
>
> That uses a regular expression that matches strings of length 7 characters
> or more.
>
> -- Scott
>
> On Wed, Jul 2, 2008 at 11:59 AM,
hello,
I am working on a web app that pulls call logs from a database
and displays them. I am working with the greater than and less than
functions to filter out phone numbers less than 7 digits long i.e.
internal extensions. When I use something like
call.filter(number__gte=7) however, i
Gul,
That was it, thx a bunch..
On Jul 1, 10:27 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 1, 2008 at 11:15 AM, John Lenton <[EMAIL PROTECTED]> wrote:
> >> local numbers start with 281, 832, 713 , or 1281, 1832, or 1713, my
> >> regex which isnt working looks like this
>
> >
Hello,
I am trying to build a regex for a query that excludes local phone
numbers from a list of calls thus leaving only long distance. I dont
have alot of experience with the "re" module
local numbers start with 281, 832, 713 , or 1281, 1832, or 1713, my
regex which isnt working looks like t
just wondering, would there be a difference in performance between
using .exclude without the negation or .filter( with the negation?
On Jun 30, 12:33 pm, Ayaz Ahmed Khan <[EMAIL PROTECTED]>
wrote:
> On Jun 30, 10:27 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Negation of Q objects
Thanks that works well, but when I try to use the ~ as you suggested I
get the error
""bad operand type for unary ~: 'Q'""
so i removed the ~ and changed 'filter' to 'exclude'
On Jun 30, 9:53 am, Ayaz Ahmed Khan <[EMAIL PROTECTED]> w
Rajesh D,
That would be much simpler, but this is a pre-existing database of
call records. thanks
On Jun 30, 9:35 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> >I am working on a django that querys long distance numbers from a
> > mysql database. I am currently using the djang
Hello,
I am working on a django that querys long distance numbers from a
mysql database. I am currently using the django API, that goes
something like this.
long_distance =
Call.objects.filter(dest_num__startswith='1').filter(dest_num__gt=6).exclude(dest_num__startswith='18').exclude(dest_num_
Thanks for your help tim, I had a look at your filter, but I ended up
using the template tag here:
http://www.djangosnippets.org/snippets/660/
The only problem is it requires you to know the length of your list,
and the length of mine varies.
{% load splitlist %}
{% split_list tags as new_list
I am building a django-app that pulls call logs from a mysql database
and displays reports, I am trying to make the reports printable and I
use a CSS that splits them into two columns on the page. I am trying
to find a template tag that will split the lists up so that they will
fit onto a printed
Hello,
--~--~-~--~~~---~--~~
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
26 matches
Mail list logo