Re: Serving static content with development server?

2007-05-09 Thread gsmith
/ members_detail.py Thanks for any help On May 8, 10:20 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 5/8/07, gsmith <[EMAIL PROTECTED]> wrote: > > > by using the following html ' > However, this contains the string 'c:/django/site_media

Re: \d and \w regular expressions?

2007-05-08 Thread gsmith
limodou, I don't understand what [\w-]{1,100} and [\w-]+ are doing. Can you please explain? Thank You On May 8, 9:55 pm, limodou <[EMAIL PROTECTED]> wrote: > On 5/9/07, gsmith <[EMAIL PROTECTED]> wrote: > > > > > > > Is there any documentation of what t

Serving static content with development server?

2007-05-08 Thread gsmith
I have installed the Django Development Server on my computer. I am trying to add some css and images to my project. I'm having problems getting my pictures to upload correctly. Below is the details of some of my files. setting.py MEDIA_ROOT = '' / urls.py (

\d and \w regular expressions?

2007-05-08 Thread gsmith
Is there any documentation of what these do? I'm assuming that this is a Python regular expression? The reason I ask is becuase I have a line in my urls.py file that looks like this (r'^csi/rso/(news|members)/(\w{1,100})/$', 'mysite.rso.views_rso.showtitlepage'), This works fine when the value

Re: How to display data from a ManyToManyField in a template?

2007-05-06 Thread gsmith
/ I did notice that when I opened my minutes table the column lmembers was null for every row. When i open my rso_minutes_lmembers I do have three records that contain the id number of the minutes instance. On May 6, 8:17 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> w

How to display data from a ManyToManyField in a template?

2007-05-06 Thread gsmith
I have the following tables class members(models.Model): title = models.CharField(maxlength=100) names = models.CharField(maxlength=100) email = models.EmailField() city = models.CharField(maxlength=100) state = models.USStateField() image = models.ImageField(upload_to='c:

Re: SlugField

2007-05-06 Thread gsmith
Jay, Yep, that worked. Thanks for the help! On May 6, 12:16 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote: > > > > > > > > > Jay, > > I've already added my SlugField. Here is

Re: SlugField

2007-05-06 Thread gsmith
r you help On May 6, 11:09 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote: > > > > > I have a table called Stories that contains two fields 'Title' and > > 'Body'. We'll I want the page

SlugField

2007-05-06 Thread gsmith
I have a table called Stories that contains two fields 'Title' and 'Body'. We'll I want the page to be accessed by a SlugField. I have added a SlugField to my table. However, I want it so that whenever I enter a title for a story in my admin then the SlugField gets auto- populated with the cont

Adding comments to my story

2007-05-04 Thread gsmith
I am wanting to add the ability for registed users to be able to add comments to a story. I was reading that I need to 'update your database with the comments model'. I'm not sure what this means? Do I just need to import a specific module in my models.py file or do I need to create a new class

Added a column

2007-05-01 Thread gsmith
I'm using sqllite as my database. I've added a Image Field to one of my tables. I am wondering how i get my database to register this new column. I thought running the command 'python manage.py syncdb' would update my database. However, after I do that my admin errors out saying ' no such colu

Re: Generic View pass multiple objects

2007-04-30 Thread gsmith
yep that worked...thanks! On Apr 30, 11:02 am, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > gsmith wrote: > > > Hello, > > I have a template file that when shown is going to be populated by > > data from two different tables. I want to use the generic vie

Generic View pass multiple objects

2007-04-30 Thread gsmith
Hello, I have a template file that when shown is going to be populated by data from two different tables. I want to use the generic view 'list_detail.object_list'. However, as far as I know I can only pass one queryset to the object_list view. Is there a way that I can pass two QuerySet's? For