Re: manage.py runserver woes

2008-05-06 Thread Daniel Roseman
On May 7, 4:34 am, Roboto <[EMAIL PROTECTED]> wrote: > I know the built in django server cannot host static media, so I opted > to used my only apache server to host it. The built-in Django server DOES host static media: see http://www.djangoproject.com/documentation/static_files/ You have the o

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Graham Dumpleton
On May 7, 7:45 am, David Zhou <[EMAIL PROTECTED]> wrote: > It works for me. Here's the body of that post: > > * Support formod_wsgi: Setting up a default Django app withmod_wsgi > is now an option in our one-click installer. So if you prefermod_wsgi > over mod_python you will no longer have to in

Re: Traversing a backward relationship

2008-05-06 Thread Eric Abrahamsen
I've been using something like: City.objects.filter(jobs__isnull=True) It seems to work, but I'd really like to know if this is undesirable for any reason. On May 6, 2008, at 8:05 PM, Dmitriy Kurilov wrote: > > Hi. > > # models > > class City(models.Model): ># Fields... > > class Job(mo

Re: file upload question

2008-05-06 Thread Kenneth Gonsalves
On 07-May-08, at 3:51 AM, Chris wrote: > > Hello I have a csv importer that I have made and I want to upload the > csv file through a form field as so: > > from django import newforms as forms > > class ImportForm(forms.Form): > """ > Form for importing CSV files > """ > csv_file

Large Data Sizes, foreign keys, and indexes

2008-05-06 Thread RahulDave
Hello, I have an application which looks lke this Star: id, etc Band:id, etc LightCurve: id, star fkey(Star), band fkey(Band) Postgres is the backend..8.2.3 Every Star basically has multiple light curves (brightness vs time plots) in different spectral bands. Now, there are about 1/2 a billio

manage.py runserver woes

2008-05-06 Thread Roboto
so here is the scenario. Everything works perfectly... online =P So I don't have an issue with that, I've been doing a majority of my development on a fast-cgi/apache shared hosting env and everything is a-ok. But now that I'm starting to get people to use the site, I can't just go in and make m

Nested relations in a ValuesQuerySet

2008-05-06 Thread Martin Diers
Given a model like this (much simplified): class Event(models.Model): name = models.CharField(max_length=50) class Text(models.Model): name = models.CharField(max_length=50) event = models.ForeignKey(Event) name = models.CharField(max_length=50) class TextRange(mo

Should my Fields contain None values?

2008-05-06 Thread Greg
Hello, I already have about 100 records in my db table. I'm currently going to add a date field to my model. /// mydate = models.DateField(blank=True, null=True) /// I have a save method for my class where i check to see if my 'mydate' field has a value. /// if self.mydate == None:

Re: Traversing a backward relationship

2008-05-06 Thread Dmitriy Kurilov
Hi. # models class City(models.Model): # Fields... class Job(models.Model): city = models.ForeignKey(City, related_name="jobs") # Other fields # views City.objects.filter(jobs__pk__gt=0) Is it? -Original Message- From: Michael J <[EMAIL PROTECTED]> To: Django users Dat

Re: How to make a or statement?

2008-05-06 Thread Marcelo Barbero
2008/5/6 Greg <[EMAIL PROTECTED]>: > > Hello, > Quick question for ya. For some reason I don't know how to make a OR > statment: Below is my code: > > > > def Order(models.Model): > order_status = models.CharField(max_length=2, > choices=ORDER_STATUS, blank=True) > > def s

How to make a or statement?

2008-05-06 Thread Greg
Hello, Quick question for ya. For some reason I don't know how to make a OR statment: Below is my code: def Order(models.Model): order_status = models.CharField(max_length=2, choices=ORDER_STATUS, blank=True) def save(self): if self.order_status == 3 or 4 (??) //

RE: Django on MOSSO?

2008-05-06 Thread Bojan Ordev
I think he is referring to http://www.mosso.com the hosting company. I may be wrong though. -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Heck Sent: Wednesday, 7 May 2008 11:05 AM To: django-users@googlegroups.com Subject: Re: Django

Re: Django on MOSSO?

2008-05-06 Thread Joseph Heck
what's MOSSO? On Tue, May 6, 2008 at 12:01 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Has anyone got it to work? Maybe with a hack or two? > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: Reusable Web Controls

2008-05-06 Thread Juanjo Conti
Ben Firshman escribió: > I like to use the {% include %} tag along with {% with %} around the > include tag to pass variables to the template. I'm not sure if this is > the best way to do it, but it works well for me! You can define a inclusion tag for that. Juanjo -- mi blog: http://www.ju

Re: Setting attributes before model is created

2008-05-06 Thread Russell Keith-Magee
On Wed, May 7, 2008 at 1:00 AM, Alen Ribic <[EMAIL PROTECTED]> wrote: > > At this moment, to my knowledge, the only way to do this is by > overriding the save() method. Within your save, run the pre-save work > and then return the super.save(). Well - there is one other way: the default argume

Re: Reusable Web Controls

2008-05-06 Thread Ben Firshman
I like to use the {% include %} tag along with {% with %} around the include tag to pass variables to the template. I'm not sure if this is the best way to do it, but it works well for me! Ben On 6 May 2008, at 19:24, [EMAIL PROTECTED] wrote: > > There is the includes tag, or you can make a

RE: mod_python vs. mod_wsgi

2008-05-06 Thread Bojan Ordev
The https one doesn't seem to work but the https one works: https://blog.webfaction.com/django-setup-improvements -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Vargas Sent: Wednesday, 7 May 2008 8:48 AM To: django-users@googlegroups

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
Thanks for the info and pointers Karen, I really appreciate it. I got the feeling this might be a semi-scary way when searching the web for meta and python this afternoon, and didn't really find a lot. I did up screen prototypes for this app, and then designed a db model to accommodate it, and now

Traversing a backward relationship

2008-05-06 Thread Michael J
I hope this isn't a stupid question, so forgive me in advance. I have a Job model and a City model. Job and City are linked via a ForeignKey in Job. On the website, users will select a city, from a list of cities, and then see the corresponding jobs. Question is: how do I use the database API to

Re: "None of the above" in a form?

2008-05-06 Thread Scott SA
On 5/6/08, Kirk Strauser ([EMAIL PROTECTED]) wrote: >I'm generating forms from models like so: > >class Role(models.Model): >assignedcompanies = models.ManyToManyField(Company, blank=True) > >class RoleForm(ModelForm): >class Meta: >model = Role > >Whenever I print that form in a

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Jorge Vargas
On Tue, May 6, 2008 at 5:43 PM, Adam Fast <[EMAIL PROTECTED]> wrote: > > I'll check in the panel, but I get this when going to that URL (and > mentioned going to the main blog to find it, it's not there either): > > "Not Found > > The requested URL /django-setup-improvements was not found on t

Re: Newbie Data Model Question

2008-05-06 Thread Karen Tracey
On Tue, May 6, 2008 at 3:01 PM, Peter Bailey <[EMAIL PROTECTED]> wrote: > > Hey Karen. I used manage.py validate. My model validated before I > added the abstract class and changed the class signatures. But I > probably did something silly. Here is a chunk of the code: > > # will use this for subc

file upload question

2008-05-06 Thread Chris
Hello I have a csv importer that I have made and I want to upload the csv file through a form field as so: from django import newforms as forms class ImportForm(forms.Form): """ Form for importing CSV files """ csv_file = forms.FileField() next I do something like this: for

Re: Setting attributes before model is created

2008-05-06 Thread Alen Ribic
Signals rule. :-) Gave it a test drive and works like a charm. from django.db import models from django.db.models import signals from django.dispatch import dispatcher def send_entry_created_email(sender, instance, signal, *args, **kwargs): if instance.id is None: # load 'create' m

Re: mod_python vs. mod_wsgi

2008-05-06 Thread David Zhou
It works for me. Here's the body of that post: * Support for mod_wsgi: Setting up a default Django app with mod_wsgi is now an option in our one-click installer. So if you prefer mod_wsgi over mod_python you will no longer have to install it manually. I just ran a simple benchmark using "a

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Adam Fast
I'll check in the panel, but I get this when going to that URL (and mentioned going to the main blog to find it, it's not there either): "Not Found The requested URL /django-setup-improvements was not found on this server.:".404 error. On Tue, May 6, 2008 at 4:35 PM, Bernd <[EMAIL PROTECT

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Bernd
This is the correct link: http://blog.webfaction.com/django-setup-improvements This feature is still available in the control panel :-) On Tue, 2008-05-06 at 16:18 -0500, Adam Fast wrote: > Strangely enough, this link is now dead...and it's not mentioned at > the top of their blog either. Mayb

I'm working on a application where no data is shared between two accounts and multiple users share an account

2008-05-06 Thread [EMAIL PROTECTED]
I'm working on a application where no data is shared between two accounts and multiple users share an account. Think backpackit or sugarcrm. The application hits the database frequently, many many queries are performed for each page. I've considered using the Sites app and just one database with

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Adam Fast
Strangely enough, this link is now dead...and it's not mentioned at the top of their blog either. Maybe they pulled the plug? On Tue, May 6, 2008 at 2:45 PM, Brot <[EMAIL PROTECTED]> wrote: > > Hello, > > today webfaction announced (http://blog.webfaction.com/django-setup- > improvements) t

Re: Reusable Web Controls

2008-05-06 Thread Juanjo Conti
[EMAIL PROTECTED] escribió: > There is the includes tag, or you can make a template tag. You can even create a inclusion template tag: http://www.djangoproject.com/documentation/templates_python/ I have created some. Feel free to ask if you need help to get started with them. Juanjo -- mi bl

Re: customer serial numbers

2008-05-06 Thread Alen Ribic
forloop.counter like so: {% for item in items %} {{ forloop.counter }} {% endfor %} Regards, -Alen Ribic On May 6, 8:39 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote: > I know this sounds silly, but I am just not able to figure out a way to > generate a custom serial number for > generating r

Re: mod_python vs. mod_wsgi

2008-05-06 Thread Jorge Vargas
On Tue, May 6, 2008 at 3:45 PM, Brot <[EMAIL PROTECTED]> wrote: > > Hello, > > today webfaction announced > (http://blog.webfaction.com/django-setup-improvements) that they have now a > one-click django/mod_wsgi > installer. > > What's your opinion with mod_wsgi? Is it better than mod_python

Re: Weird session problem

2008-05-06 Thread [EMAIL PROTECTED]
Ahh, I figured it out. There was a java app server running on this machine before and I for some reason that caused django to choke. I removed all of them and now it works. Does this seem like a bug? --~--~-~--~~~---~--~~ You received this message because you a

Weird session problem

2008-05-06 Thread [EMAIL PROTECTED]
I am seeing a weird session problem on one machine. I have had my app up and running on one machine for a while and it works fine. I tried copying all the code to another machine, setting up django/flup/ lighttpd and then running it. The app starts up fine but then when I go to log in I get an

"None of the above" in a form?

2008-05-06 Thread Kirk Strauser
I'm generating forms from models like so: class Role(models.Model): assignedcompanies = models.ManyToManyField(Company, blank=True) class RoleForm(ModelForm): class Meta: model = Role Whenever I print that form in a template, it displays nicely and it's mostly OK. However, the

mod_python vs. mod_wsgi

2008-05-06 Thread Brot
Hello, today webfaction announced (http://blog.webfaction.com/django-setup- improvements) that they have now a one-click django/mod_wsgi installer. What's your opinion with mod_wsgi? Is it better than mod_python? What's the advantages/disadvantages? Bernd --~--~-~--~~~-

Re: Sorting Drop-down fields on Admin site

2008-05-06 Thread Alen Ribic
It actually like this, sorry...to trigger happy today :) class Composer(models.Model): name = models.CharField(max_length=20) class Meta: ordering = ['name'] class Chart(models.Model): composer = models.ForeignKey(Composer) -Alen Ribic On May 6, 9:20 pm, Alen Ribic <[EM

Re: Sorting Drop-down fields on Admin site

2008-05-06 Thread Alen Ribic
*correction: Need probably a comma at the end of the order tuple unless you use a list instead: class Chart(models.Model): composer = models.ForeignKey(Composer) class Meta: ordering = ('composer',) --Alen Ribic On May 6, 9:17 pm, Alen Ribic <[EMAIL PROTECTED]> wrote: > You sh

Re: Sorting Drop-down fields on Admin site

2008-05-06 Thread Alen Ribic
You should be able to do it like so: class Chart(models.Model): composer = models.ForeignKey(Composer) class Meta: ordering = ('composer') Regards, -Alen Ribic PS check out: http://www.djangoproject.com/documentation/models/ordering/ On May 6, 8:48 pm, "Greg Lindstrom" <[EMAI

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
Hey Karen. I used manage.py validate. My model validated before I added the abstract class and changed the class signatures. But I probably did something silly. Here is a chunk of the code: # will use this for subclassing into our item subtypes class AbstractType(models.Model): name = models.

Sorting Drop-down fields on Admin site

2008-05-06 Thread Greg Lindstrom
Hello- Is there a way to sort the drop down select boxes on the Admin site? I have a class, Chart, which represents a piece of music for my brass quintet library. Each charts has a composer, an arranger and a publisher which are represented by the Composer, Arranger, and Publisher classes. When

customer serial numbers

2008-05-06 Thread Ramdas S
I know this sounds silly, but I am just not able to figure out a way to generate a custom serial number for generating reports. Is there a way to create a counter using for loops of django templates. Wr ite now I am using a crude java script to do the same. RS --~--~-~--~~--

Re: Newbie Data Model Question

2008-05-06 Thread Karen Tracey
On Tue, May 6, 2008 at 2:25 PM, Peter Bailey <[EMAIL PROTECTED]> wrote: > > Hey alen. I have tried implementing this and it makes good sense as > far as I can see, but when I validate the model I always get an > AttributeError: 'NoneType' object has no attribute 'name'. > How are you validating t

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
Hey alen. I have tried implementing this and it makes good sense as far as I can see, but when I validate the model I always get an AttributeError: 'NoneType' object has no attribute 'name'. I have tried removing name from the definition of the class - same message (not sure where it is getting '

Re: Reusable Web Controls

2008-05-06 Thread [EMAIL PROTECTED]
There is the includes tag, or you can make a template tag. On May 6, 1:20 pm, "Andrew English" <[EMAIL PROTECTED]> wrote: > Is there a way to embed templates in other templates using Django?  For > example, you could have common elements like a navigation menu defined in a > single template, but

Reusable Web Controls

2008-05-06 Thread Andrew English
Is there a way to embed templates in other templates using Django? For example, you could have common elements like a navigation menu defined in a single template, but included in others by reference. --~--~-~--~~~---~--~~ You received this message because you are

Re: Empty Result set

2008-05-06 Thread Richard Dahl
try this: result_set = Model.objects.all() if result_set: result_set has data else: result_set is empty On 5/6/08, jwwest <[EMAIL PROTECTED]> wrote: > > What's the preferred method of checking to see if a result set is > empty in a view? For instance, I'm writing blog software and have a

0.96.1 lighttpd + FastCGI

2008-05-06 Thread Panos Laganakos
This is the lighty setup: $HTTP["host"] == "manishop.solhost.org" { var.serverpath = "/panos/manishop.solhost.org" server.document-root = basedir + serverpath + "/manigifts/static" server.errorlog = basedir + serverpath + "/logs/server.log" accesslog.filename = basedir +

Re: Setting attributes before model is created

2008-05-06 Thread Alen Ribic
So something like this should do it: from django.db import models from django.db.models import signals from django.dispatch import dispatcher def send_entry_created_email(): # do some work... class Entry(models.Model): # ... dispatcher.connect(send_entry_created_email, signal=signa

Empty Result set

2008-05-06 Thread jwwest
What's the preferred method of checking to see if a result set is empty in a view? For instance, I'm writing blog software and have a view by year method. If there are no posts, I want to raise a http404. I've tried == {} and == [] to no avail. Thanks, - James --~--~-~--~~--

Re: Setting attributes before model is created

2008-05-06 Thread Jashugan
On May 6, 10:40 am, Alen Ribic <[EMAIL PROTECTED]> wrote: > > Not to sure though how one registers these signals. > This seems somewhat comprehensive: http://www.mercurytide.co.uk/whitepapers/django-signals/ --~--~-~--~~~---~--~~ You received this message becaus

Re: Setting attributes before model is created

2008-05-06 Thread Alen Ribic
> Do you know anything about pre_save and post_save signals that occur > during a save? They are mentioned > here:http://www.djangoproject.com/documentation/db-api/#what-happens-when-..., > but are not expounded. To be honest, I didn't. However I took a look at it and there are indeed signal hoo

Re: Code works with Django's server, but not with Apache+mod_python?

2008-05-06 Thread mw
Ahh, after running the code with both the django server and apache and mod_python there are different paths listed. I shall investigate on my own and come back if I need more help! Thank you both very much! mw On May 5, 7:13 pm, "Chatchai Neanudorn" <[EMAIL PROTECTED]> wrote: > When I installed

Re: Newbie Data Model Question

2008-05-06 Thread Peter Bailey
Thanks very much for your solution and reply alen. I'm learning the ins and outs of python and django at the same time - fun adventure - so far python is blowing me away - I love it. Better than anything I have used before - 3 assemblers,c, c++ java, vb, ruby, php, asp, etc (guess I am dating myse

Re: Setting attributes before model is created

2008-05-06 Thread Alen Ribic
*correction: I was thinking of ModelForm instead of Model. It should be self.pk instead. if self.pk is None: # new model else: # existing model -Alen On May 6, 7:25 pm, Jashugan <[EMAIL PROTECTED]> wrote: > On May 6, 10:20 am, Alen Ribic <[EMAIL PROTECTED]> wrote: > > > > Is there a way

Re: Setting attributes before model is created

2008-05-06 Thread Jashugan
On May 6, 10:20 am, Alen Ribic <[EMAIL PROTECTED]> wrote: > > Is there a way I can specify that > > this code should run only when a model is first saved? > > in save() method, you can check if this is a new model like so: > if self.instance.pk is None: >     # new model > else: >     # existing

Re: Setting attributes before model is created

2008-05-06 Thread Jashugan
Thanks, Alex. Do you know anything about pre_save and post_save signals that occur during a save? They are mentioned here: http://www.djangoproject.com/documentation/db-api/#what-happens-when-you-save, but are not expounded. Also I modified my code (under the assumption that pk would be None for

Re: Setting attributes before model is created

2008-05-06 Thread Alen Ribic
> Is there a way I can specify that > this code should run only when a model is first saved? in save() method, you can check if this is a new model like so: if self.instance.pk is None: # new model else: # existing model Regards, -Alen Ribic On May 6, 7:00 pm, Alen Ribic <[EMAIL PROTEC

Re: approach on newforms fields for foreign key that can be selected or created

2008-05-06 Thread Dan Conner
Thanks for the input Christian. The question of filtering the Collections for the particular user was one I dealt with, and I recognize your site as one that did help me on that question a few days ago. Now, I want to have two form inputs related to selecting a Collection on a form to create new

Re: Setting attributes before model is created

2008-05-06 Thread Alen Ribic
At this moment, to my knowledge, the only way to do this is by overriding the save() method. Within your save, run the pre-save work and then return the super.save(). I have suggested a pre_save / post_save hooks for ModelForm with some code recently here: http://groups.google.com/group/django-d

Setting attributes before model is created

2008-05-06 Thread Jashugan
I'd like to set some attributes to some default values before the model is created. Here's what I have so far: slots_available = models.IntegerField(blank=True) position = models.IntegerField(blank=True) def save(self): if slots_availalbe == None: slots_available

Re: Newbie Data Model Question

2008-05-06 Thread [EMAIL PROTECTED]
Define a 'abstract' attribute of Meta inner class and set it to true like so: class AbstractType(models.Model): name = models.CharField(max_length=100) class Meta: abstract = True class RadioBoxTypes(AbstractType): radio_lable = models.CharField(max_length=20) Regards, -Al

Re: Few things ive been wondering

2008-05-06 Thread Norman Harman
phillc wrote: > first: > > How does one develop tests for django web apps? > im having trouble writing tests. > i understand there are view tests, but those are so overly complex to > write. > i was just wondering how other people approach it, and if anyone can > point me to some open sourc

Newbie Data Model Question

2008-05-06 Thread Peter Bailey
I have designed a small db model (on paper) and want to implement it in my models.py file. So far, this has been pretty straight forward, but I have a generic superclass and several subclasses, and I am unsure how to implement this. My DB has page objects (webpages) with a few common attributes,

Re: Few things ive been wondering

2008-05-06 Thread phillc
wow, thanks a ton to both of you. richard, i understand what you mean about the children and ill think about it more the next time i approach the problem scott, youve defenietly convicned me about that. i dont think youve convinced me enough to replace my already written code, but i will defenit

Re: approach on newforms fields for foreign key that can be selected or created

2008-05-06 Thread Christian Joergensen
Dan Conner wrote: [...] > Any thoughts on a good approach, or link to examples? I have a draft text on my blog that i was working on some time ago. Maybe you can get inspired: http://www.technobabble.dk/2008/jan/06/filtering-foreign-key-choices-newforms-admin/ Maybe I should test it against

approach on newforms fields for foreign key that can be selected or created

2008-05-06 Thread Dan Conner
My models define Item and Collection, where Item has a foreign key set to Collection. On the form to create new Items, I want the user to be able to select from their existing Collections (which is simple to implement) but also be able to not select from their existing Collections, but enter text

Re: Row-level permissions, recommendations?

2008-05-06 Thread Jay Parlar
On 5/6/08, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > What's the state of the art for row-level permissions in Django? > I'm working on an application where I need to allow users to edit > their own personal info but nobody else's. What app, hack, patch or > branch should I use in order

Re: New to django and python. error following tutorial w/ the shell

2008-05-06 Thread Rodrigo Culagovski
Can you post the code 5 lines before and after the one that's giving you the error? Many times python will report a syntax error in one line that's actually caused by a missing parenthesis, semicolon, etc., in a line before. On May 6, 9:58 am, Jason Ourscene <[EMAIL PROTECTED]> wrote: > I tried w

Re: New to django and python. error following tutorial w/ the shell

2008-05-06 Thread Jason Ourscene
I tried with the space and without the space and i am still getting that error. what do you think? On May 6, 12:28 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 06-May-08, at 9:37 AM, Jason Ourscene wrote: > > >   def __unicode__(self): > > def __unicode__(self):   <- space after

Row-level permissions, recommendations?

2008-05-06 Thread Rodrigo Culagovski
What's the state of the art for row-level permissions in Django? I'm working on an application where I need to allow users to edit their own personal info but nobody else's. What app, hack, patch or branch should I use in order to be able to do this via the admin site? Thanks, Rodrigo --~--~

Re: Django.cgi on Linux Hosting

2008-05-06 Thread Seamus
Hey Aldo, I just stumbled across this thread. Just looking at your django.cgi script i reckon musicisc maybe should be musicischarity as in sys.path.append("/hsphere/local/home/musicisc/Django-0.96") should be sys.path.append("/hsphere/local/home/musicischarity/ Django-0.96") just going on the di

Re: Problem sending email

2008-05-06 Thread Emil
Nevermind. Turns out I'm just incredibly stupid, and had, for some unknown reason, commented out the line with the admins-tuple, so the mail had absolutely no recipient... On May 6, 2:57 pm, Emil <[EMAIL PROTECTED]> wrote: > Hi folks. > > I'm wrestling with a hosting company where I'm trying to d

Re: frames

2008-05-06 Thread Trevor
In the link generation insert target="right". For example My link message This is where "right" is the name of the right panel. On Tue, 2008-05-06 at 05:46 -0700, Gboro54 wrote: > I am using links to do frames in my code...My problem is that I want > the right frame to display the new stuff a

Problem sending email

2008-05-06 Thread Emil
Hi folks. I'm wrestling with a hosting company where I'm trying to deploy a django powered site. Pretty much the only remaining problem is sending email via the contact form. I don't get any errors while sending, but they never arrive... The following shows up in the sendmail logs: "did not issue

frames

2008-05-06 Thread Gboro54
I am using links to do frames in my code...My problem is that I want the right frame to display the new stuff and the left to stay the same(after clicking a hyper-link in the left)Is this possible to do without using Javascript? --~--~-~--~~~---~--~~ You received th

Re: How can I get full path ( Include QUERY_STRING )?

2008-05-06 Thread Davide.D
Thank you! On May 6, 5:56 pm, "Jonas Oberschweiber" <[EMAIL PROTECTED]> wrote: > From what I can see, request.get_full_path() seems to be what you > want. Details > here:http://www.djangoproject.com/documentation/request_response/ > > Regards > > Jonas > > 2008/5/6 Davide.D <[EMAIL PROTECTED]>:

YUI for Django widgets?

2008-05-06 Thread Swaroop
Hi, Is there a project already out there that allows me to use YUI rich text editor as a newforms widget? Thanks, Swaroop --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

download mallu masala clips shakeela maria hema sizzling

2008-05-06 Thread saritha
download mallu masala clips shakeela maria hema sizzling http://besthotmovies.blogspot.com/ --~--~-~--~~~---~--~~ 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@goog

getting a value from bound_field in field_line.html template

2008-05-06 Thread mbdtsmh
Hi All, Appologies if this is a stupid question but before I go any further I'm new to Django! I have modified the field_line.html template (from within the change_form.html admin template) so it looks like this: {% load admin_modify %} {% load designset_extras %} {% for bound_field in bound_fi

Model Setup for Admin

2008-05-06 Thread shocks
Hi I'm trying to figure out the structure of a model that has singleton elements within it. I guessing this should be 2 seperate models that are bound together. I would like to use the admin utility to present the following to the admin user: Clients Section - Client Section Title - Clie

Re: where can i download newformsadmin

2008-05-06 Thread David Reynolds
On 5 May 2008, at 7:06 pm, Horst Gutmann wrote: > > $ svn co http://code.djangoproject.com/svn/django/branches/newforms- > admin > > Works for me. What error do you get? You could also do: svn switch http://code.djangoproject.com/svn/django/branches/newforms- admin in a trunk checkout. --

Re: How can I get full path ( Include QUERY_STRING )?

2008-05-06 Thread Jonas Oberschweiber
>From what I can see, request.get_full_path() seems to be what you want. Details here: http://www.djangoproject.com/documentation/request_response/ Regards Jonas 2008/5/6 Davide.D <[EMAIL PROTECTED]>: > > example: > http://127.0.0.1:8000/search/?q=keyword > > "request.path" can just get "/se

Re: What is reverse() good for? Not really reversing...

2008-05-06 Thread web-junkie
Okay, if you take the perspective that it reverses the normal order, it does what it should. But then I don't know why we have such a function in there, as the ordering can easily manipulated. What I expected from the method is, when iterating, to give me the last item instead of the first one an

Re: What is reverse() good for? Not really reversing...

2008-05-06 Thread web-junkie
That is what I do at the moment, putting it in a list in such an order that it is reversed. On 2 Mai, 19:58, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote: > On Thu, 2008-05-01 at 09:36 -0700, web-junkie wrote: > > Hi, > > > what is the newreverse() method good for? Seems it just swaps the > > order_

How can I get full path ( Include QUERY_STRING )?

2008-05-06 Thread Davide.D
example: http://127.0.0.1:8000/search/?q=keyword "request.path" can just get "/search/" How can I get "/search/?q=keyword " ? My current solution: In my view: full_path = request.path + '?' + request.META['QUERY_STRING'] In my template: Sign in

Re: Database Migration Question

2008-05-06 Thread jack
Russ - We had a few back and forths about this several weeks ago, if you recall. I now am much better versed in Django and so maybe a bit more capable of making intelligent comments. It would seem to me that with the primitives that I am seeking (which is basically a continuation of hiding the S

Re: disabling a field

2008-05-06 Thread Kenneth Gonsalves
On 06-May-08, at 12:28 PM, Adam Findley wrote: > So I've been wondering how one goes about disabling a field in > newforms. I want it to look something like this: > > > > Anyone have any suggestions? I have been digging through google, > documentation and widgets, but have been unable to come

Django on MOSSO?

2008-05-06 Thread [EMAIL PROTECTED]
Has anyone got it to work? Maybe with a hack or two? --~--~-~--~~~---~--~~ 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 gr