Re: How to render newforms dynamically created fields?

2007-05-06 Thread schettino72
Hello, I transferred the logic to the view instead of trying to handle it in the template. So i pass to the template a list of tuples containing the html string generated by newforms. This way i handle dynamic created fields and easily lay down the elements the way i want. Note that i put a fi

use of template_loader in django.contrib.auth.views

2007-05-06 Thread Erik Postma
Hi all, Would there be any interest in a patch to make the views in django.contrib.auth.views accept a template_loader argument, like the generic views do? I'll probably be using this to have the login page rendered from a Breve [0] template. Or are there any other, cleverer ways to do this? Bes

excellent money making program

2007-05-06 Thread chief
Do you want to work for 40 years or more to make $40,000 a year or less just so you can retire on 40% of what wasn't enough in the first place? Imagine owning a profitable home business that you could start TODAY without: - Technical know-how, - Large capital investment or overhead, - Jeopardizi

Re: Deos Django have Java Servlet's Listener like thing?

2007-05-06 Thread Graham Dumpleton
On May 6, 1:57 am, Martin Winkler <[EMAIL PROTECTED]> wrote: > Am Fri, 04 May 2007 21:06:52 -0700 > schrieb Mambaragi <[EMAIL PROTECTED]>: > > > Is there anything like Servlet Listener in django,python? > > not easily if you use mod_python, because for every apache thread a new > python instance i

Fwd: Living With Nature [ 30 out of 972 ]

2007-05-06 Thread Kooooool forwords
[image: 24510 * New Light on a Misty Morn, Puerto Rico * 1152 x 864 * (97KB)] [image: 24543 * Cabo San Lucas, Baja California, Mexico * 1152 x 864 * (170KB)] [image: 24552 *

Tutorials about reST, Pygments, Docutils

2007-05-06 Thread lastmohican
Hello everybody, I just wrote some tutorials about various aspects of Django development, which I want to spread, so here is a tutorial about doing syntax highlighting with Pygments as an extension to the Django markup system. http://saschashideout.de/wiki/DjangoRestPygmentsTutorial/ And here is

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

Re: SlugField

2007-05-06 Thread Jay Parlar
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 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 admi

Re: SlugField

2007-05-06 Thread gsmith
Jay, I've already added my SlugField. Here is a look at the table I created class news(models.Model): title = models.CharField(maxlength=200) theslug = models.SlugField(prepopulate_from=("title")) body = models.TextField(maxlength=2000) def __str__(self,): return self.ti

Re: displaying images

2007-05-06 Thread JP
Please read this tutorial, it explains what you should do to serve files statically: http://www.djangoproject.com/documentation/0.96/static_files/ On May 5, 7:20 pm, checco <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following settings in settings.py: > MEDIA_ROOT = 'C:/my_project/st

django.loc/admin is not found

2007-05-06 Thread Mark Phillips
I am using django on Mac OS X 10.9. Python 2.3 and 2.4 are installed. The server is hosting a simple web site. The site is not mission critical. I followed the instructions at . When I ran the command... django-fcgi.py --settings=myproject

Re: SlugField

2007-05-06 Thread Jay Parlar
On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote: > > Jay, > I've already added my SlugField. Here is a look at the table I > created > > class news(models.Model): > title = models.CharField(maxlength=200) > theslug = models.SlugField(prepopulate_from=("title")) > body = models.TextField(m

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 a look at the table I > > created > > > class news(models.Model): > > ti

How do you get at a RadioFieldRenderer object from a template? (newforms)

2007-05-06 Thread Joseph Heck
I'm missing the connection in newforms to get to the pieces I want to manipulate in the templates. I have a newform with a single ChoiceField, set up with a RadioSelect() widget: example_choices = ((1,'a'), (2,'b'), (3,'c'),)

Free site to watch some 600+ movies

2007-05-06 Thread Aarti
Hello pp! I just saw this one site online and thought you would be interested in checking it sometime. http://meyepop.com About me, I am a 19yr old grl from North India. Have one pic in my profile. Do let me know how i look :-) Luv Aarti --~--~-~--~~~---~--~~

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: Mac OS X + Django; how do I invoke the fcgi?

2007-05-06 Thread Mark Phillips
On May 5, 2007, at 11:04 PM, Joseph Heck wrote: > Post what you have as your PYTHONPATH and the urls.py that you're > having trouble with, we'll nail it down. Thank you for the assistance, Joe. "myapp" is the django project. ['/usr/local/myapp', '/Library/Frameworks/Python.framework/Versions/2

Re: loaddata issue

2007-05-06 Thread Mark Jarecki
Hi Russ, Thank you for all your help, I renamed my app name and it works fine at the moment. I posted a ticket (I hope its ok, my fist one) #4231. Thanks again, Mark. On 06/05/2007, at 10:21 AM, Russell Keith-Magee wrote: On 5/5/07, Mark Jarecki <[EMAIL PROTECTED]> wrote: > > > Hi Russ,

Re: How do you get at a RadioFieldRenderer object from a template? (newforms)

2007-05-06 Thread Nick
I needed to do a similar thing... in my case I needed the radio inputs in separate table cells. The way I did it was to write a custom widget, but I'd also be interested to hear of another way to achieve the same thing. Cheers, Nick On May 7, 3:53 am, "Joseph Heck" <[EMAIL PROTECTED]> wrote: >

Re: including blocks in inclusion tag templates

2007-05-06 Thread Malcolm Tredinnick
On Sat, 2007-05-05 at 21:56 +, tejas wrote: > Hi All > > I've been using the really nice idea of template blocks in django for > adding javascript code > > So I have a main js block for javascript in my base.html > > When I extend the base, and I need javascript - I just make a new js > blo

Re: Vote to support dreamhost mod_python

2007-05-06 Thread Graham Dumpleton
On May 4, 9:17 pm, "Marc Fargas Esteve" <[EMAIL PROTECTED]> wrote: > One module I saw someday on my list of new packages on Debian: > > from apt-cache show apache2-mpm-itk > Description: multiuser MPM for Apache 2.2 > The ITK Multi-Processing Module (MPM) works in about the same way as the > cla

Re: Feed Displaying Odd Dates

2007-05-06 Thread Malcolm Tredinnick
Hi Bryan, On Sun, 2007-05-06 at 06:23 +, Bryan Veloso wrote: > Created a feed using the syndication tutorial on the main Django > website... acutally I used the one that powers the feed from the > Django weblog. > > from django.contrib.syndication.feeds import Feed > from avalonstar.blogs.mo

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

2007-05-06 Thread Malcolm Tredinnick
On Sun, 2007-05-06 at 13:46 -0700, gsmith wrote: > 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 =

Re: How to render newforms dynamically created fields?

2007-05-06 Thread Malcolm Tredinnick
On Sat, 2007-05-05 at 23:13 -0700, Joseph Heck wrote: > A site I frequently work with has the forms mostly laid out using > and CSS to style it up all nicely. The newforms doesn't have a as_dl > method, and my designer is pitching a bit of fit that we can't give > him the pieces/parts of the form

Broken pipes with HttpResponseRedirect and Firefox / Trouble in paradise

2007-05-06 Thread Jon Lesser
Hello Djangites: I am having a hell of a time debugging this issue. Any help would be most appreciated. If fact to sweeten the pot, I'll gladly paypal $2.00 to anyone with a solution.* The short of it: I have a view function called driveSession. From what I can determine with print statements,

Re: Broken pipes with HttpResponseRedirect and Firefox / Trouble in paradise

2007-05-06 Thread Malcolm Tredinnick
On Sun, 2007-05-06 at 19:09 -0700, Jon Lesser wrote: > Hello Djangites: > > I am having a hell of a time debugging this issue. Any help would be > most appreciated. If fact to sweeten the pot, I'll gladly paypal $2.00 > to anyone with a solution.* > > The short of it: > > I have a view function

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

2007-05-06 Thread gsmith
Malcolm, I tried you code but it's still not displaying any of the members for that minute instance. Below is the code for my url, view, model, and template url (r'^csi/rso/(minutes)/(\w{1,100})/$', 'mysite.rso.views_rso.showminutespage'), / view def showminutespage(request, thetable

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

2007-05-06 Thread Jeremy Dunck
On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote: ... > (r'^csi/rso/(minutes)/(\w{1,100})/$', > 'mysite.rso.views_rso.showminutespage'), > > / > > view > > def showminutespage(request, thetable, partitle): > thetabinfo = eval(thetable).objects.get(id=partitle) > return render_to

Re: Mac OS X + Django; how do I invoke the fcgi?

2007-05-06 Thread Joseph Heck
It is, if you are using the stock MacOS X server setup. Two versions of python will definitely get things a bit messed up. Your best bet is to check your PATH and see which one comes first. When you run the development server on port 8000, which python is it using? For consistency, if nothing els

Re: How to render newforms dynamically created fields?

2007-05-06 Thread Joseph Heck
Actually, my example is sort of specific. I got the above working, but ran into the next stumbling block with with a radioSelectField setup. I posted a separate question about it, since it wasn't really about this thread. But to recap - once I get a BoundField that's the result of a ChoiceField an

Re: How to render newforms dynamically created fields?

2007-05-06 Thread Joseph Heck
Missed that final link: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/tests.py#L643 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: How to render newforms dynamically created fields?

2007-05-06 Thread Malcolm Tredinnick
Hey Joe, On Sun, 2007-05-06 at 21:13 -0700, Joseph Heck wrote: > Actually, my example is sort of specific. I got the above working, but > ran into the next stumbling block with with a radioSelectField setup. So I answered the question you asked, although you knew the answer anyway. You have brea

Re: How to render newforms dynamically created fields?

2007-05-06 Thread Joseph Heck
Thanks Malcolm. Actually - I didn't know the answer until long after I'd posted it. And I really appreciate you providing some guidance. I'm going to post up some slight mods to the current documentation files to try and help folks following on the same path - the usage from the templates seems o

CSS

2007-05-06 Thread umesu
How to include CSS file with template --~--~-~--~~~---~--~~ 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 ema

Need some help with Amazon S3

2007-05-06 Thread Sam Purtill
Hi, I am doing two things with Amazon S3: 1) Storing images/thumbnails for user profile pictures. Uploading 1 picture and resizing it to 4 different sizes so I can grab those easily on different pages. 2) Allowing users to upload documents. I have two questions about doing this 1) What is the

Re: CSS

2007-05-06 Thread Joseph Heck
The same way you'd include CSS in any general HTML file, there's nothing magic happening there with Django. We use both: in the header, and: - whatever makes the most sense for you, have at. We take advantage of {{ media_url }} in ours

Re: Need some help with Amazon S3

2007-05-06 Thread Joseph Heck
No idea about question #2 - it was my impression that S3 was a stateless mechanism and didn't support the concept of streaming, but I haven't read all that much about it, so I could easily be wrong. #1 is probably best resolved by taking advantage of the S3 REST interface and plugging that in to