Online Jobs.Earn Rs.50000 every month.Part time Jobs.No Investment

2007-10-02 Thread hariii
Online Jobs.Earn Rs.5 every month.Part time Jobs.No Investment http://netjobss.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

Re: choices/, how to get rid of the dashes?

2007-10-02 Thread cschand
I am also struck on this... I need output as Select your gender Male Female we are waiting for your valuable comments cschand --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Django Email Failure

2007-10-02 Thread kidormb
Andrey, Thank you for your reply. Your suggestion solved my problem along with correcting my mistake of not putting the to address in a list. I don't know how I ever would have figured out that the EMAIL_HOST_USER and EMAIL_HOST_PASSWORD were not for sending and needed to be commented out.

Re: Django Email Failure

2007-10-02 Thread kidormb
Thejaswi, Thank you for your reply. For the record I am using XUbuntu 7.04 and the subversion release of django. My problem has been solved by another responder. Thanks again, kidormb On Oct 2, 3:46 am, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > On Oct 2, 8:04 am, kidormb <[EMAIL

Re: clean_data or cleaned_data

2007-10-02 Thread James Bennett
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > so changed to slug=form.cleaned_data['slug'], it is ok now. > > why? If you are using the development version of Django, it is very much in your best interest to follow Django's development carefully; from time to time,

clean_data or cleaned_data

2007-10-02 Thread [EMAIL PROTECTED]
just a discussion: i used the code from djangosnippets.com for a newform: slug=form.clean_data['slug'], and it said there are no clean_data. so changed to slug=form.cleaned_data['slug'], it is ok now. why? you know i integrate code of djangosnippets.com as a app, it works well. just want

Re: Add a permission to a production db

2007-10-02 Thread Todd O'Bryan
On Wed, 2007-10-03 at 07:58 +0800, Russell Keith-Magee wrote: > On 10/3/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > > > How should I add a permission to an app/model that already exists in a > > production db? The docs say to use syncdb, but that doesn't work (I > > don't think) when the db

choices/, how to get rid of the dashes?

2007-10-02 Thread Mark Green
Hi all, sorry for repeating my question but I haven't gotten a solution on first attempt and this really nags me. This is my model: class Person(models.Model): GENDER_CHOICES = ( ( 'm', 'Male' ), ( 'f', 'Female' ), ) gender = models.CharField( blank=False,

MltiValueField-usage problem

2007-10-02 Thread xor exor
Hi i'm trying to create some MltiValueField's so i found that code : http://www.djangosnippets.org/snippets/399/ When i tried it on the shell : class DateF(forms.Form): d=DateField() And on the console : In [48]: data={'d':[1,12,2004]} In [49]: d=DateF(data) In [50]: d.errors Out[50]: {'d':

Re: where to put algorithm libraries

2007-10-02 Thread James Bennett
On 10/2/07, staff-gmail <[EMAIL PROTECTED]> wrote: > I have a class full of algorithms - where is the best place to put this > in Django so that I can then just "import libxxx" in any model class. If they're logically part of the application, put them in the application. Nothing in Django

where to put algorithm libraries

2007-10-02 Thread staff-gmail
I have a class full of algorithms - where is the best place to put this in Django so that I can then just "import libxxx" in any model class. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Add a permission to a production db

2007-10-02 Thread Russell Keith-Magee
On 10/3/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > How should I add a permission to an app/model that already exists in a > production db? The docs say to use syncdb, but that doesn't work (I > don't think) when the db tables already exist. Also, sqlall doesn't show > the SQL that's used to

Re: Custom User model in django.contrib.auth

2007-10-02 Thread Leo
In addition, I think if you duplicate the existing auth app under another name, you're not going to be able to use the django.contrib applications, since lots of those (like admin) count on being able to do database joins between their table and the existing auth app's model objects. In other

Re: deleting many2many relationship in object

2007-10-02 Thread Russell Keith-Magee
On 10/3/07, Nabuco <[EMAIL PROTECTED]> wrote: > > In a view I receive some videokeyword id's existing in a Video to be > deleted. I tried > > sql = 'videokeyword_id IN (keywords)' <-- (filling keywords > placeholder with the id's, of course) > keywords =

Add a permission to a production db

2007-10-02 Thread Todd O'Bryan
How should I add a permission to an app/model that already exists in a production db? The docs say to use syncdb, but that doesn't work (I don't think) when the db tables already exist. Also, sqlall doesn't show the SQL that's used to create the permissions. I'm just really worried that I'll

Problem with sessions

2007-10-02 Thread Antoni Aloy
Hello! I'm working with the latest svn code and I have found that the db backend to store the session does not work anymore. It works if I configure the backend as cache and the caché itself as some kind of memory caché, but if fails on the other options. I have opened the ticket #5667 but it

Recovery Windows Registry

2007-10-02 Thread John Travolta
Repair corrupted registry, fix your system http://windowsfreetips.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@googlegroups.com

Problems creating a project with django-admin startproject (New Django user)

2007-10-02 Thread [EMAIL PROTECTED]
Just installed python/apache/django/mod_python with all the latest versions. I think I got most of my PATH variables set up correctly. However, when I try: C:\django>django-admin.py startproject testproject1 Traceback (most recent call last): File "C:\Python25\Scripts\django-admin.py", line

Re: newforms question with multiple object types in the same form

2007-10-02 Thread Fred Palmer
Thanks... I think that might be it! On 10/2/07, Doug B <[EMAIL PROTECTED]> wrote: > > > Search for 'prefix' in the regression tests, that does what you want. > Doesn't seem to be in the docs. > > > http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/forms.py > > > > > >

Re: how to scale

2007-10-02 Thread James Bennett
On 10/2/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote: > Shouldn't it? In case of MySQL replication (which is quite widely used) > and transactions someone somehow *has* to decide where the whole > transaction is going - to a master or to a slave. In the case of MySQL, use MySQL Cluster,

Re: how to scale

2007-10-02 Thread Andrey Khavryuchenko
JB> As for database clustering, there's a philosophical issue here: Django JB> shouldn't need to know whether there's one database server behind it, JB> or five, or a hundred. Shouldn't it? In case of MySQL replication (which is quite widely used) and transactions someone somehow *has* to

Re: Django Email Failure

2007-10-02 Thread Andrey Khavryuchenko
k> I am trying to use the send_email facility from django.core.mail with k> the following k> in my settings.py k> EMAIL_HOST = 'smtp-server.cfl.rr.com' k> EMAIL_PORT = '25' k> EMAIL_HOST_USER = 'username' k> EMAIL_HOST_PASSWORD = 'password' k> I get the error message: k> SMTP AUTH

Re: newforms question with multiple object types in the same form

2007-10-02 Thread Doug B
Search for 'prefix' in the regression tests, that does what you want. Doesn't seem to be in the docs. http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/forms.py --~--~-~--~~~---~--~~ You received this message because you are

Re: Variables in TemplateTags

2007-10-02 Thread Michael
Hi Niklas, I'm not certain, but you might find that the default template tag, widthratio already does what you need: http://www.djangoproject.com/documentation/templates/#widthratio The example shows how it can be used to create bar-charts etc. (to display percentage complete). Otherwise, yes

Re: Downloadable HTML documentation?

2007-10-02 Thread [EMAIL PROTECTED]
Thanks, that looks great. I'll give it a try. Regards, -scott On Sep 30, 6:08 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > On Sep 30, 2:23 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Given the age of that ticket, however, is the procedure that "requires > > a bit of work"

newforms question with multiple object types in the same form

2007-10-02 Thread Fred Palmer
Hi, I'm looking for the recommended way of handling this. I have some models like so: class ContactInfo(models.Model): uuid= UUIDField('UUID', blank=False, maxlength=50, core=True, unique=True, editable=False) first_name = models.CharField(blank=True, maxlength=20)

Re: def __str__(self) error in tutorial part 1

2007-10-02 Thread Jeremy Dunck
On 10/2/07, rhett <[EMAIL PROTECTED]> wrote: > > Total newbie here to Django and Python. Thanks for any insight. > > 1) I am working in TextMate and copied/pasted below code. In TextMate > the "def __str__(self)" is not indented from the pub_date line - it's > the same indent. I know indents are

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread Malcolm Tredinnick
On Wed, 2007-10-03 at 01:00 +0600, Densetsu no Ero-sennin wrote: > I've just thought that it would be nice if Django supported pluggable hash > functions for passwords. This is one of those cases where it's micro-customisation without real widespread benefit. As a rule, when you need control

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread Jacob Kaplan-Moss
On 10/2/07, Densetsu no Ero-sennin <[EMAIL PROTECTED]> wrote: > Then it would be possible to define custom hash functions: > > class PlainText(object): > name = 'plain' > def get_hex_digest(salt, raw_password): > return raw_password Django will never support storing passwords in

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread Densetsu no Ero-sennin
I've just thought that it would be nice if Django supported pluggable hash functions for passwords. Something like this: class Sha1Hash(object): name = 'sha1' def get_hex_digest(salt, raw_password): import sha return sha.new(salt + raw_password).hexdigest() Then it

Re: forum to mailing list integration

2007-10-02 Thread Malcolm Tredinnick
On Tue, 2007-10-02 at 13:22 -0400, Ian Lawrence wrote: > Hi > I have a requirement for all forum posts to go to a mailing list (this > i have implemented) but also that all subsequent posts on the mailing > list to the thread appear on the forum too. > Has anyone ever implemented anything like

Re: hidden fields

2007-10-02 Thread [EMAIL PROTECTED]
I had a similar situation with hidden fields. I was using a newform, but didn't include the hidden fields. Then, in my template I had something like: {{ form }} where id_email had been set earlier in the view. This worked for me. On Oct 2, 7:27 am, Ana <[EMAIL PROTECTED]> wrote:

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread Malcolm Tredinnick
On Wed, 2007-10-03 at 00:38 +0600, Densetsu no Ero-sennin wrote: > On 3 October 2007 (Wed), James Bennett wrote: > > So don't use set_password(), and avoid any built-in views which try to > > hash things. > > That's not all. I won't be able to use check_password(), which also calls >

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread Densetsu no Ero-sennin
On 3 October 2007 (Wed), James Bennett wrote: > So don't use set_password(), and avoid any built-in views which try to > hash things. That's not all. I won't be able to use check_password(), which also calls get_hexdigest(). And I'll have to reimplement ModelBackend because of that, and

def __str__(self) error in tutorial part 1

2007-10-02 Thread rhett
Total newbie here to Django and Python. Thanks for any insight. 1) I am working in TextMate and copied/pasted below code. In TextMate the "def __str__(self)" is not indented from the pub_date line - it's the same indent. I know indents are important - is there a way to set up TextMate to show

Variables in TemplateTags

2007-10-02 Thread niklas.voss
I have a Problem and can't find anything about it, that helps me... I integrated a self-made templatetag into django and it works well. this tag just generate a percent bar. There is only one argument which is given to the function, it is the percentage status, but i dont want a static

Re: Unhashed passwords and django.contrib.auth

2007-10-02 Thread James Bennett
On 10/2/07, Densetsu no Ero-sennin <[EMAIL PROTECTED]> wrote: > I need to store unhashed user passwords in the DB. Is it possible with > django.contrib.auth? User.set_password method uses SHA-1 and it cannot be > overridden easily. So don't use set_password(), and avoid any built-in views which

PyCon-Tech meeting starting now.

2007-10-02 Thread Douglas Napoleone
Just a friendly reminder that the meeting is starting now. http://pycon.blogspot.com/2007/10/next-pycon-tech-meeting-2-october.html -Doug --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Unhashed passwords and django.contrib.auth

2007-10-02 Thread Densetsu no Ero-sennin
Hi, I need to store unhashed user passwords in the DB. Is it possible with django.contrib.auth? User.set_password method uses SHA-1 and it cannot be overridden easily. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: fell sad will a newform implement

2007-10-02 Thread Joseph Heck
Narrow this down and you should be able to work through it. First - is the view getting invoking correctly, regardless of what newforms is doing? If you're running on a dev server instance (i.e. django-admin runserver), then try printing out the request.POST or request.GET in the view to see

Re: Post question

2007-10-02 Thread Joseph Heck
Yes, absolutely. You have all the form data in the request object that comes into the view - you can use that to tweak data and send off another request externally. It's relatively high latency, but it definitely is possible. -joe On 10/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I

Filefield issues with saving

2007-10-02 Thread jacoberg2
Hey everyone, I have brought up this issue before, and I was able to fix a few things but I am still having a lot of problems. I have a model with a filefield, and i was testing it with the development server and it worked perfectly. When I tried to copy it into the working server is when I

forum to mailing list integration

2007-10-02 Thread Ian Lawrence
Hi I have a requirement for all forum posts to go to a mailing list (this i have implemented) but also that all subsequent posts on the mailing list to the thread appear on the forum too. Has anyone ever implemented anything like this before? I would prefer a mailman solution but that is not

deleting many2many relationship in object

2007-10-02 Thread Nabuco
Hi, given the models class VideoKeyword(models.Model): """Keywords assigned to video information.""" name = models.CharField(max_length=120) class Video(models.Model): """Videos, videos, videos! keywords_list = models.ManyToManyField(VideoKeyword) this many2many relationship

Re: Random objects in view

2007-10-02 Thread oliver
This works for me. My model: class BannerPosition(models.Model): position = models.SmallIntegerField() banner = models.ForeignKey(BannerItem) class Meta: ordering = ('position', 'banner') def __str__(self): return '%s - %s' %

Re: trying to make Django work with fastcgi

2007-10-02 Thread [EMAIL PROTECTED]
I'm exactly there with you, David. Same with the manage.py. I can even sync up fine with MYSQL. If anybody has any ideas, I'm more than willing to try pretty much anything at this point. On Oct 2, 5:30 am, David Brown <[EMAIL PROTECTED]> wrote: > I'm actually having the exact same problem (I'm

Re: Strange 'if' behaviour in template

2007-10-02 Thread AndyB
I've just spotted something fairly obvious! The whole thing is wrapped in: {% if inline_admin_form.original or inline_admin_form.show_url %} That would explain it then! On Oct 2, 4:25 pm, AndyB <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm overriding an admin template (but doubt uf that is

Re: Generic/Views implementation decision

2007-10-02 Thread Lemuel Formacil
On Sep 29, 2007, at 6:14 PM, Panos Laganakos wrote: > > > On Sep 28, 12:18 pm, Panos Laganakos <[EMAIL PROTECTED]> > wrote: >> Having two different models, ie: Toy, ToyPicture. >> >> ToyPicture, has a ForeignKey to Toy, so you can define many pictures, >> that relate to a specific toy. >> >>

Strange 'if' behaviour in template

2007-10-02 Thread AndyB
Hi there, I'm overriding an admin template (but doubt uf that is particularly relevent) and am not sure why the following behaviour occurs. I've modified the line: {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% endif %} to be: {% if inline_admin_form.original %}test1{{

Re: error when trying to save unicode data

2007-10-02 Thread Kenneth Gonsalves
On 02-Oct-07, at 7:47 PM, Nis Jørgensen wrote: > > get_or_create with "defaults" does what you asked for originally - > though the person commenting in the ticket got the syntax wrong. I'll test it out again and revert -- regards kg http://lawgon.livejournal.com

Re: new user vs. logged out user

2007-10-02 Thread James Bennett
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want to distinguish requests from people that have never had an > account from folks that just have an expired session. This really isn't possible; once their cookie expires, anything you "knew" about them disappears. You could set

new user vs. logged out user

2007-10-02 Thread [EMAIL PROTECTED]
Hi, I want to distinguish requests from people that have never had an account from folks that just have an expired session. The difference is important in saying "sign in again" vs. "here is what we do, go here to sign up". A wrinkle in this is the test cookie setup where you write a cookie to

Re: error when trying to save unicode data

2007-10-02 Thread Nis Jørgensen
Kenneth Gonsalves skrev: > On 02-Oct-07, at 6:21 PM, Nis Jørgensen wrote: > > >>> get_or_create, *only* using the value of 'word' in the query - if >>> created, then I do an update to set the other fields - otherwise I >>> leave it alone. >>> >> You could also use the "defaults"

Re: Creating a Form with some uneditable fields

2007-10-02 Thread Simone Cittadini
Was a "look all the fields type before asking problem" ... I've solved with HiddenField and disabled option ... class RuoteForm(forms.Form): line_name = forms.ChoiceField(choices=get_lines(), widget=forms.HiddenInput) prefix = forms.ChoiceField(choices=get_prefixes(),

fell sad will a newform implement

2007-10-02 Thread [EMAIL PROTECTED]
can somebody help me out of newform,i spend one whole day to study djangosnipppets.com's newform, but it did not work for me. models.py: class Vendor(models.Model): name = models.CharField(maxlength=100) slug = models.SlugField() class Type(models.Model): vendor =

Re: Forms vs. Admin?

2007-10-02 Thread AndyB
Although I think this view is mostly true at the moment I have a feeling that it will change in the near future. The admin pages are currently fairly customisable and newforms-admin expands this capability extensively. The problem is two-fold: 1. Documentation in this area is fairly weak and a

Re: hidden fields

2007-10-02 Thread Ana
Thanks RajeshD :) It wasn't exactly what I wanted to do but it was helpful. On Sep 7, 4:45 pm, RajeshD <[EMAIL PROTECTED]> wrote: > On Sep 7, 9:55 am, Ana <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'd like to have "last modified by" and "owner" fields in my > > application. I'd like to set

Re: error when trying to save unicode data

2007-10-02 Thread Kenneth Gonsalves
On 02-Oct-07, at 6:21 PM, Nis Jørgensen wrote: >> get_or_create, *only* using the value of 'word' in the query - if >> created, then I do an update to set the other fields - otherwise I >> leave it alone. > You could also use the "defaults" argument to get_or_create: > >

Re: Forms vs. Admin?

2007-10-02 Thread DJango Fett
All, I am new to DJango and web frameworks. I've gone through the tutorial to make the Poll application. The way I see it, the Admin module is for the site builders to have an automatic interface to maintain the look-up tables (sometimes called domain tables). These are the tables that

Re: error when trying to save unicode data

2007-10-02 Thread Nis Jørgensen
Kenneth Gonsalves skrev: > > I now do > get_or_create, *only* using the value of 'word' in the query - if > created, then I do an update to set the other fields - otherwise I > leave it alone. You could also use the "defaults" argument to get_or_create:

[offTopc]Novas Publicações!

2007-10-02 Thread New Business OnLine
Bom dia Amigos e Amigas!!! O site do Grupo New Business OnLine tem novas publicações, acesse agora mesmo o site (http://businessnewonline.blogspot.com/) e fique por dentro das novas oportunidades da Net!!! Em uma das publicações explicamos com clareza a dúvida mais frequente em nossa site,

Re: trying to make Django work with fastcgi

2007-10-02 Thread David Brown
I'm actually having the exact same problem (I'm even an ASO customer, as well). I got rid of the permission errors by changing the permissions on dispatch.fcgi to 755. However, my .htaccess and dispatch.fcgi are exactly the same (except that I removed the path stuff, since django and flup are

Problems with XMLField+Jing

2007-10-02 Thread Gonzalo Delgado
Hello there, I'm using an XMLField in one of my models. I've downloaded jing for compilation with gjc from http://www.thaiopensource.com/relaxng/jing.html (I got the link from Djano documentation), compiled it and installed it fine. But when I create a new object from that model, using the admin

Re: choose the database at runtime

2007-10-02 Thread bluesky
On 2 Ott, 03:58, "Ben Ford" <[EMAIL PROTECTED]> wrote: > I've had to do something similar to this myself... my suggestion would be to > have a look at the multiple-db-support branch, here is some code that I use > on top of that branch to connect to different databases with the same > schema:

Re: How to keep track of iterations through a for loop in my template?

2007-10-02 Thread Henning Hraban Ramm
Am 2007-10-01 um 23:59 schrieb Greg: > I have a table in my template that will contain an x number of rows > depanding on what I get back from the view. I want my table row > background color to rotate between red and white. As of now, I don't > know how to keep track of each iteration through

Re: choose the database at runtime

2007-10-02 Thread bluesky
On 2 Ott, 02:34, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Well, anything is possible, but not necessarily easy. It certainly > isn't a built-in feature - at least, not like you describe. You're right. The problem is often the time and the effort to achieve the goal. > There are

Re: Random objects in view

2007-10-02 Thread Tomas Kopecek
Alessandro Ronchi napsal(a): > 2007/10/1, Tomas Kopecek <[EMAIL PROTECTED]>: > >> Now, I don't understand. What is the difference between these two cases? > > I don't know. If I put the random order before filter it works, if I > put it after filter it doesn't. > > Maybe it is worth a ticket

JOIN THE HOTTEST GROUP ON THE NET !OVER 10,000 JOIN WEEKLY! JOIN THE HOTTEST GROUP ON THE NET !!!! OVER 10,000 JOIN WEEKLY FREE SIGN UP!

2007-10-02 Thread dating the right mate
JOIN THE HOTTEST GROUP ON THE NET !OVER 10,000 JOIN WEEKLY! JOIN THE HOTTEST GROUP ON THE NET OVER 10,000 JOIN WEEKLY FREE SIGN UP! http://www.blpurl.com/ar53 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: oracle backend doesn't cache connections

2007-10-02 Thread Stefan Bethge
Hi again, I've found out recently that there is Oracle Connection Manager which might just be what I need. I still need to test it though. Later, Stefan On Sep 19, 2:26 pm, Stefan Bethge <[EMAIL PROTECTED]> wrote: > Hello, > > i've recently found out that django does not cache connections to

Re: Using an existing database of astronomic images

2007-10-02 Thread Russell Keith-Magee
On 10/2/07, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > > [snipped] > > First and before the feeding of the database, after creating my > > database in the mysql prompt by inserting SQL code could django > > analyse my clean database and create class for each table? > > with the right field

Re: error when trying to save unicode data

2007-10-02 Thread Kenneth Gonsalves
On 02-Oct-07, at 2:46 PM, Nis Jørgensen wrote: >> improper formatting - but am unable to find out where exactly the >> formatting is improper. If I put this function in the 'save' method >> of the model - I get the same error. > > This is an instance of the problem described here: > >

Re: Index

2007-10-02 Thread Ramiro Morales
On 10/2/07, Atayal <[EMAIL PROTECTED]> wrote: > > Hello, > > I understand that I can have custom primary keys. Aside from primary > key, MySQL allows indexing on certain fields to facilitate searching. > Is it supported via Django's API? > Yes, it's in the very complete documentation:

Index

2007-10-02 Thread Atayal
Hello, I understand that I can have custom primary keys. Aside from primary key, MySQL allows indexing on certain fields to facilitate searching. Is it supported via Django's API? Timothy --~--~-~--~~~---~--~~ You received this message because you are

Re: using a existing database

2007-10-02 Thread Ben Ford
Hi Greg What you'll need to is create a project (django-admin.py startproject I think). Then create an app inside that project (./manage.py startapp). Once you have the project and app directory structure edit the settings.py file to put it your database settings. After that's done you should be

Re: Using an existing database of astronomic images

2007-10-02 Thread Thejaswi Puthraya
[snipped] > First and before the feeding of the database, after creating my > database in the mysql prompt by inserting SQL code could django > analyse my clean database and create class for each table? > with the right field type? Try using the inspectdb command. Refer to

Re: Forms vs. Admin?

2007-10-02 Thread eXt
I'll give you a real life example: 1. Admin panel is used by fully priviledged administartor who is one of the application developers (app producents team). 2. The same Admin panel is used by Application Admin who is a person delegated by a customer (he is in fact a more priviledged application

Using an existing database of astronomic images

2007-10-02 Thread Greg_IAP
HI, yesterday i send a message which asks of using an existing database with Django. Thanks to the guy who has answered me, but i have to explain a little bit more my problem. I 'm in charge of developping an astronomic images and metadata database for scientists in mysql, composed by 9 tables

using a existing database

2007-10-02 Thread Greg_IAP
HI, yesterday i send a message which asks of using an existing database with Django. Thanks to the guy who has answered me, but i have to explain a little bit more my problem. I 'm in charge of developping an astronomic images and metadata database for scientists in mysql, composed by 9 tables

Re: trying to make Django work with fastcgi

2007-10-02 Thread Horst Gutmann
2007/10/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > and a few of these: > [2007-10-02 02:03:32]: error: file has no execute permission: (/home/ > soulgt/public_html/dispatch.fcgi) > Esp. this error looks interesting IMO. Does your host perhaps offer some information on how they execute the

Re: trying to make Django work with fastcgi

2007-10-02 Thread [EMAIL PROTECTED]
The errorlog shows a couple of these: [Tue Oct 2 05:43:50 2007] [error] [client 76.167.197.252] FastCGI: incomplete headers (0 bytes) received from server "/home/soulgt/ public_html/dispatch.fcgi" [Tue Oct 2 05:43:50 2007] [error] [client 76.167.197.252] FastCGI: comm with (dynamic) server

change dic text based on select box option

2007-10-02 Thread stereoit
Hello, I'm using 0.96 and now I have working form_for_model with custom callback function that creates select drop down box when form is rendered. Great, but I would like to have a under the select box with different text for each selected option (like a help text). How should I do that? thanks

Re: trying to make Django work with fastcgi

2007-10-02 Thread Horst Gutmann
Have you already looked at the error.log your webhost should normally provide? The behaviour you indicated normally means, that the process died or gave output back, that is not really close to an HTTP response as expected by the webserver. 2007/10/2, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >

trying to make Django work with fastcgi

2007-10-02 Thread [EMAIL PROTECTED]
Hi, I'm new at this - learning as I go, but I can't seem to get Django running with fastcgi. A Small Orange, my webhost, doesn't have mod_python support, so I've been trying to follow a number of different recommendations online to try and get my site up and running. I've installed flup,

Re: error when trying to save unicode data

2007-10-02 Thread Nis Jørgensen
Kenneth Gonsalves skrev: > hi, > > I have a view that takes a sentence in unicode from a database, > splits it into words and dumps those words in the Word table. The > 'word' in word table is unique, and it is expected that duplicates be > rejected, so I put 'save()' within a try-except

Free Magazines

2007-10-02 Thread Arthur
One Year Free Magazine Subscription, please visit http://www.afmagazines.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

help with the project

2007-10-02 Thread [EMAIL PROTECTED]
guys, please help me on my youtube project. nobody is looking at my video and I spent so much time putting it together. it's not perfect yet, but in some ways it's better than many amateurish videos out there. thanks so much to you all! http://www.youtube.com/watch?v=nhQJHJGJE2Y

Re: Handling DB connect error.

2007-10-02 Thread Thejaswi Puthraya
On Oct 2, 1:47 am, handsome greg <[EMAIL PROTECTED]> wrote: > Ok here's another quick question. How can I catch a DB connect that > fails and perform some kind of action (display a "sorry... site's > down" page, etc.) if the DB isn't available? I can't seem to figure it > out. Thanks! Use the

Re: default locations for css and js files

2007-10-02 Thread Thejaswi Puthraya
On Oct 2, 6:37 am, staff-gmail <[EMAIL PROTECTED]> wrote: > I can't figure out where to put my css and js files. I did not want to > hard code the media path in my settings file so it is the default ''. > So if I put a css file in my template - where does Django look for the > relative path ?

Re: Django Email Failure

2007-10-02 Thread Thejaswi Puthraya
On Oct 2, 8:04 am, kidormb <[EMAIL PROTECTED]> wrote: > Thanks for the reply, but > > SMTP AUTH extension not supported by server. > > is the exact error message that I receive, which I think is > a python error. > Have never come across this problem!!! Which version of Django do you use? Django

Re: Random objects in view

2007-10-02 Thread Alessandro Ronchi
2007/10/1, Tomas Kopecek <[EMAIL PROTECTED]>: > Now, I don't understand. What is the difference between these two cases? I don't know. If I put the random order before filter it works, if I put it after filter it doesn't. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net -

Re: RSS feed reader in Python

2007-10-02 Thread Nis Jørgensen
stanleypark skrev: > We just finiched a really cool RSS feed news reader. I need people > comments on it. > here is the link of the web site. > I see no link at this point in your post. Anyway, who are "we"? > If you wish to know more about RSS feeds here is a group link that I > just started.

Re: Help accessing user.

2007-10-02 Thread Jason C. Leach
Nevermind - I got it. Thanks. On 10/1/07, Jason C. Leach <[EMAIL PROTECTED]> wrote: > Hi: > > I have sessions installed - and working. Just don't know how to get at them > from > in a template? {{ request.session.user }}? Noting seems to work. > > On 10/1/07, Richard Dahl <[EMAIL PROTECTED]>