django site home page

2012-01-15 Thread marjenni
Hi all, A really simple one. What goes in urls.py to set a callback function for the base website url? thanks mark -- 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 unsubs

Re: converting a large site to Django

2011-11-30 Thread marjenni
hanks again for the support Mark On Nov 30, 5:21 pm, creecode wrote: > Hello Mark, > > On Wednesday, November 30, 2011 8:46:28 AM UTC-8, marjenni wrote: > > All seems good, but what I need to know is what is the easiest/> quickest way > of moving across the rest of

converting a large site to Django

2011-11-30 Thread marjenni
Hi, I am working on a website with many pages (in the hundreds). I have recreated the website front page on a new server with the desired new functionality implemented in Python and Django. All seems good, but what I need to know is what is the easiest/ quickest way of moving across the rest o

better datepicker

2011-11-28 Thread marjenni
Hi, class SearchForm(forms.Form): date = forms.DateField(required=True, input_formats=('%d/%m/%Y',)) I am trying to change this so that it displays a calendar when the user starts to enter a date. I have seen various examples using JQuery, but I can't find an example that explai

Re: iterating through lists in templates

2011-11-25 Thread marjenni
is the best way to do this then? many thanks Mark On Nov 25, 1:25 pm, Tom Evans wrote: > On Fri, Nov 25, 2011 at 1:18 PM, marjenni > wrote: > > Hi all, > >  Why does this not work? > > >    {% for i in numberOfImages %} > >           > >         {{

iterating through lists in templates

2011-11-25 Thread marjenni
Hi all, Why does this not work? {% for i in numberOfImages %} {{ images.i}} numberOfImages is the number of items in the images list. I have a workaround using images.pop, but ideally i would like to be able to use an array index. all help much appreciated Mark --

converting to a template

2011-11-24 Thread marjenni
I have a python script in which I am building up an html page, and then making a call to HttpResponse(html) to show the page. Now I want to start to using templates, but this is not as easy as I hoped because my html contains a table with a lot of information, and I don't know how to make functi

displaying images

2011-11-23 Thread marjenni
Hi all, Again, I am sure this is a very common problem for beginners, but all help appreciated. In a python function I am building a webpage, and trying to add images to a table like this: html += " " % imageName return HttpResponse(html) Now the table is displayed fine, but images are m

Re: IOError at / [Errno 13] Permission denied

2011-11-23 Thread marjenni
Thank you for your help, that sorted that issue! On Nov 22, 5:18 pm, Tom Evans wrote: > On Tue, Nov 22, 2011 at 10:35 AM, marjenni > > > > > > > > > > wrote: > > Hi all, > >   I have been writing a django app, and testing locally using > > runs

IOError at / [Errno 13] Permission denied

2011-11-22 Thread marjenni
Hi all, I have been writing a django app, and testing locally using runserver. Now I am in the process of moving this app to an online server, but am having some problems. On initialisation the app initialises itself with a .csv file I have created, but with the online version I keep getting: