Re: embedding tag in another tag

2011-03-29 Thread mike171562
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,

Re: simple friends template help

2011-03-28 Thread mike171562
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

Re: matching a domain name in urls.py

2011-02-03 Thread mike171562
I think i got it now with (r'^zones/(?P[.\w]+)/$', get_domain) On Feb 3, 10:44 am, mike171562 <support.desk@gmail.com> 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 th

matching a domain name in urls.py

2011-02-03 Thread mike171562
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),

Recently Queried Models

2010-08-17 Thread mike171562
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

Re: Django and WebShell

2010-08-10 Thread mike171562
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

Re: Caught an exception while rendering: Error binding parameter 0 - probably unsupported type.

2009-08-24 Thread mike171562
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

Re: How to find the version of Django?

2009-04-13 Thread mike171562
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;

Unknown column in field list

2009-03-11 Thread mike171562
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

Re: forms.ModelForm

2009-03-09 Thread mike171562
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 <support.desk@gmail.com> wrote: &g

Re: forms.ModelForm

2009-03-09 Thread mike171562
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 <alex.gay...@gmail.com> wrote: > On Mon, Mar 9, 2009 at 10:10 AM, mike171562 <support.desk@gmail.com>wrote: >

Re: forms.ModelForm

2009-03-09 Thread mike171562
is not displayed in the ((field)) form in the template. On Mar 6, 8:40 pm, Malcolm Tredinnick <malc...@pointy-stick.com> 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 trying > > to use it to display t

forms.ModelForm

2009-03-06 Thread mike171562
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

Re: Web hosting control panel with django

2008-08-26 Thread mike171562
emplate > > 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. > > > -Justin > > > On Tue, Aug 12, 2008

Re: Greater than Less than

2008-07-02 Thread mike171562
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 would be > &

Re: Greater than Less than

2008-07-02 Thread mike171562
AIL 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, mike171562 <[EMAIL PROTECTED]&g

Greater than Less than

2008-07-02 Thread mike171562
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,

Re: Regex assistance

2008-07-01 Thread mike171562
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 > > >

Regex assistance

2008-07-01 Thread mike171562
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

Re: Regex

2008-06-30 Thread mike171562
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

Re: Regex

2008-06-30 Thread mike171562
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]> wrote: > On Jun 30, 7:13 pm,

Re: Regex

2008-06-30 Thread mike171562
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

Regex

2008-06-30 Thread mike171562
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 =

Re: Template tag to split list evenly

2008-06-03 Thread mike171562
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

Re: Template tag to split list evenly

2008-06-02 Thread mike171562
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

Template tag to split list evenly

2008-06-02 Thread mike171562
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