Re: admin interface

2006-08-09 Thread James Bennett
On 8/9/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > In particular, take a look at "Admin converted to separate templates" > near the bottom. I think Kenneth was referring more to the relative difficulty of adding some types of new functionality to the admin; re-"skinning" it, or building up custom

Re: admin interface

2006-08-09 Thread Michael Hamilton
This is really good news. Thank you to all those involved. The Django admin interface might not be suitable for many custom Web sites, but it does fit the bill for some traditional I.T. apps. Really neat stuff - very DRY. On Thursday 10 August 2006 15:11, Bryan Chow wrote: > ... > I disagre

Re: admin interface

2006-08-09 Thread Bryan Chow
On 8/9/06, a <[EMAIL PROTECTED]> wrote: > i like the admin interface and want to modify it for my needs, do you > have pointers on how to go about it On 8/9/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > apart from cosmetic stuff which is explained in the relevant doc, it > is easier to roll

Re: dbinspect against DB with spaces in column names

2006-08-09 Thread Karen Tracey
Hi Malcolm, thanks for the quick (and encouraging) answer. >The only huge difficulty with making legacy (existing) databases work >with Django is when you have a multi-column primary key. We don't >support that yet (although it is planned). Don't have any of those, so I'll plan to proceed invest

Re: syncdb without shell access

2006-08-09 Thread Deryck Hodge
On 8/9/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 10-Aug-06, at 12:43 AM, Robin Gruyters wrote: > > > My hosting provider doesn't give shell access, so I can't execute like > > "syncdb", "startapp", "startproject", etc. > > > > Is there another way to do this? (e.g. by creating a runsyn

Re: Multiple Websites using the same project and apps

2006-08-09 Thread Malcolm Tredinnick
On Wed, 2006-08-09 at 12:54 -0700, plungerman wrote: > dude, that was it. i was importing the module with from myapp import > my_settings and not doing a relative import as you suggested from > settings_default import * To provide some background information, here is the way we process settings

Re: Idea on unit testing views...

2006-08-09 Thread Malcolm Tredinnick
On Wed, 2006-08-09 at 14:54 -0700, Eric Walstad wrote: > On Wednesday 09 August 2006 13:46, Doug Van Horn wrote: > > I've been kicking around Django for a few months now and the one thing > > I've been trying to figure out is how to unit test my code. > ... > > I'm > > struggling with how to te

Re: Idea on unit testing views...

2006-08-09 Thread Russell Keith-Magee
On 8/10/06, Doug Van Horn <[EMAIL PROTECTED]> wrote: So, what I'd like to do is come up with a way to test that code.  Myidea is as follows:Hi Doug,We are currently working on a testing framework for Django - it is a work in progress; in particular, there is still work to be done in setting up fixt

Re: Function kills page?

2006-08-09 Thread Malcolm Tredinnick
On Wed, 2006-08-09 at 14:58 -0700, [EMAIL PROTECTED] wrote: > That worked. This is what I ended up with: > --- > from django.db import models > > # Create your models here. > > class Year(models.Model): >year= models

Re: i tried this - class meta, db_table = 'ref'

2006-08-09 Thread Malcolm Tredinnick
On Wed, 2006-08-09 at 12:14 +, a wrote: > class Ref(models.Model): > class META: > db_table='ref' > admin = meta.Admin( > list_display = ('subject', 'body', 'email', 'neighborhood', > 'address', 'created'), > ) >class Admin: > pass >

Re: dbinspect against DB with spaces in column names

2006-08-09 Thread Malcolm Tredinnick
Hi Karen, On Wed, 2006-08-09 at 17:05 -0700, Karen Tracey wrote: > I'm brand new to Django, looking to see if I should use it for some > things I'd like to do with an existing database. One problem I ran > into pretty quickly is that the database tables have columns with > embedded spaces in the

Re: admin interface

2006-08-09 Thread Kenneth Gonsalves
On 10-Aug-06, at 4:17 AM, a wrote: > i like the admin interface and want to modify it for my needs, do you > have pointers on how to go about it apart from cosmetic stuff which is explained in the relevant doc, it is easier to roll your own than to modify the admin interface -- regards kg

Re: syncdb without shell access

2006-08-09 Thread Kenneth Gonsalves
On 10-Aug-06, at 12:43 AM, Robin Gruyters wrote: > My hosting provider doesn't give shell access, so I can't execute like > "syncdb", "startapp", "startproject", etc. > > Is there another way to do this? (e.g. by creating a runsync.py > script?! (or > something?)) short answer - without shell

dbinspect against DB with spaces in column names

2006-08-09 Thread Karen Tracey
I'm brand new to Django, looking to see if I should use it for some things I'd like to do with an existing database. One problem I ran into pretty quickly is that the database tables have columns with embedded spaces in their names. inspectdb runs without error but the code it generates has synt

Re: Partly OT: Authenticating a Script

2006-08-09 Thread Paul Sargent
Waylan Limberg wrote: > Hmm, I guess I would create a separate "view" which does not have any > url mapped to it. As it is not available publicly (over http), do you > really need any other authentication than the systems file > permissions? Of course, you may need to write a little more code to

Re: flash messages

2006-08-09 Thread Alan Green
On 8/10/06, a <[EMAIL PROTECTED]> wrote: > > how do we display flash messages in django Dear a, For logged in users, try the Message facility, which is documented here: http://www.djangoproject.com/documentation/authentication/#messages Otherwise, you can place strings into the user's session:

admin interface

2006-08-09 Thread a
i like the admin interface and want to modify it for my needs, do you have pointers on how to go about it thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

flash messages

2006-08-09 Thread a
how do we display flash messages in django The todo "Todo object" was deleted successfully. --~--~-~--~~~---~--~~ 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@go

Re: Function kills page?

2006-08-09 Thread Jeremy Dunck
__pk is an alias for whatever you've called your PrimaryKey column. It defaults to "id" but can be overridden (mostly for integrating w/ legacy DBs). __pk allows you to be independent. On 8/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks Jeremy. Quick question: what's year__pk? Or

Django, mod_python and 403 error

2006-08-09 Thread Fabien Schwob
Hello, The development of my Django site is on the way. And in order to try it online, I've decided to install it under Apache + mod_python. But when I'm trying to access it, I get a 403 errors on all pages except the index page. I've installed it at http://www.cocoa.fr and the virtual host conf

Re: Function kills page?

2006-08-09 Thread [EMAIL PROTECTED]
That worked. This is what I ended up with: --- from django.db import models # Create your models here. class Year(models.Model): year= models.CharField(maxlength=200, unique=True) event = models.CharField(maxlength

Rails: Urgent security issue

2006-08-09 Thread Jeremy Dunck
Mandatory security patch issued for Rails. Note: Not posted as snark, just trying to be helpful. I'm sure there are Rails users on this list. http://weblog.rubyonrails.com/2006/8/9/rails-1-1-5-mandatory-security-patch-and-other-tidbits --~--~-~--~~~---~--~~ You

Re: Idea on unit testing views...

2006-08-09 Thread Eric Walstad
On Wednesday 09 August 2006 13:46, Doug Van Horn wrote: > I've been kicking around Django for a few months now and the one thing > I've been trying to figure out is how to unit test my code. ... > I'm > struggling with how to test the views. More to the point, I'm > wondering if testing views

Re: Function kills page?

2006-08-09 Thread [EMAIL PROTECTED]
Thanks Jeremy. Quick question: what's year__pk? Or to be more precise, _pk? --~--~-~--~~~---~--~~ 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

Re: Function kills page?

2006-08-09 Thread Jeremy Dunck
On 8/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Also, I should have mentioned, this WAS working just fine, up until I > checked it today. Since I last checked it, both new years and serial > numbers have been added (quite a few serial numbers), and I updated > Django (yesterday). I dunn

Re: How to support of alternate date formats for DateField

2006-08-09 Thread Steven Armstrong
On 08/09/06 22:15, DavidA wrote: > I'm sure I'm just misunderstanding how manipulators and validators > work, but I can't see the right way to do this: I want to support more > formats for a DateField then just '-MM-DD' (which is checked in > DateField by isValidANSIDate). > > It seems like I

Linked select pull down menu question

2006-08-09 Thread ggj
Hi, I am a newbie to Django, I am looking to move an application I have written in PHP a couple of years ago to Django and need to know if there is an easy way to generate a linked pulldown menu in a form. Previously I have used Javascript so if you select a category in one pulldown the second p

Re: Function kills page?

2006-08-09 Thread [EMAIL PROTECTED]
Also, if it helps, Serial_Number gets its year as year = models.ForeignKey(Year) I'm trying to only have one table loaded up with Years. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Idea on unit testing views...

2006-08-09 Thread Doug Van Horn
I've been kicking around Django for a few months now and the one thing I've been trying to figure out is how to unit test my code. I understand how to go about testing the models (non-django provided functionality) and any other 'domain' objects I may have, but I'm struggling with how to test the

Re: Function kills page?

2006-08-09 Thread Chris Kelly
hmm, first of all, do you have all your debug flags turned on? if it is indeed dying in the python context somewhere, I'd think we'd see some sort of stack trace...2. I dunno if it's best practice or not, but I'd put the import call at the top of the py file instead of in the method declaration. 3.

Re: Function kills page?

2006-08-09 Thread Adrian Holovaty
On 8/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > When I include this in my page, the page blows up with an internal > error (no explanation, just internal error): If you're trying to debug the function, I'd suggest calling it from the Python interactive interpreter. That way, you'll get

TinyFCK or FCKEditor image uploader

2006-08-09 Thread Baczek
Hi. Has anyone managed to get FCKEditor's image uploader/browser to work with django? --~--~-~--~~~---~--~~ 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@googlegr

How to support of alternate date formats for DateField

2006-08-09 Thread DavidA
I'm sure I'm just misunderstanding how manipulators and validators work, but I can't see the right way to do this: I want to support more formats for a DateField then just '-MM-DD' (which is checked in DateField by isValidANSIDate). It seems like I can add *more restrictive* validators but ca

Re: Function kills page?

2006-08-09 Thread [EMAIL PROTECTED]
I do have TEMPLATE_DEBUG=True and DEBUG=True in my settings, and normally get the full page of info. Not this time. If it helps any, I'm on dreamhost (and thus, fcgi), and it doesn't error out quickly. It acts as though it's trying for a long time, then fails. Also, I should have mentioned, this

Re: Function kills page?

2006-08-09 Thread Alan Green
On 8/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > def get_events(self): > from mysite.serial_numbers.models import Serial_Number > serial_numbers = [] > for serial_number in Serial_Number.objects.all(): > if serial_number.year.id == self.id: >

Re: syncdb without shell access

2006-08-09 Thread Steven Armstrong
On 08/09/06 21:13, Robin Gruyters wrote: > Hi ya, > > My hosting provider doesn't give shell access, so I can't execute like > "syncdb", "startapp", "startproject", etc. > > Is there another way to do this? (e.g. by creating a runsync.py script?! (or > something?)) > > Regards, > > Robin > H

Re: Using Django in a Cron Job

2006-08-09 Thread JHeasly
Steven Armstrong wrote: > On 08/09/06 17:56, Joe wrote: > > I would like to set up a python script that runs every night to send > > out an email subscription. I would like to access a Django model that > > has the user's email addresses, as well as use the Django sendmail > > function. Can some

Function kills page?

2006-08-09 Thread [EMAIL PROTECTED]
When I include this in my page, the page blows up with an internal error (no explanation, just internal error): {% for sn in history.get_events %} {% if sn.event %} {{ sn.event}} {% endif %} {% endfor %} Here is history.get_events: def get_events(self): from mysite.serial_numbers.models

Re: show many2many data as comma-separated-text. fast/optimal solution?

2006-08-09 Thread Adrian Holovaty
On 8/4/06, Julio Nobrega <[EMAIL PROTECTED]> wrote: > Wouldn't select_related() save you the 100 queries? > > users = User.objects.select_related().all() No, select_related() would not apply in this case. It only follows foreign keys, not many-to-many relationships. Adrian -- Adrian Holova

Re: Multiple Websites using the same project and apps

2006-08-09 Thread plungerman
dude, that was it. i was importing the module with from myapp import my_settings and not doing a relative import as you suggested from settings_default import * thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Re: DreamHost

2006-08-09 Thread Jure Čuhalev
On 8/9/06, george webzary <[EMAIL PROTECTED]> wrote: > I shall record some of the dumb mistakes I made, later as a comment on > jeff's blog. Please also do it in Dreamhost wiki since that is the page I think that most users will check first. regards, Jure Cuhalev --~--~-~--~~---

Re: Multiple Websites using the same project and apps

2006-08-09 Thread Steven Armstrong
On 08/09/06 16:50, plungerman wrote: > greetings, > > what would be the best way to manage the settings files for multiple > websites that use the same django project? we have a django project > with 3 applications that we want to use for various clients. through > apache, we set up the virtual

Re: Re: Extending user model in 0.95?

2006-08-09 Thread James Bennett
On 8/9/06, Vance Dubberly <[EMAIL PROTECTED]> wrote: > I very much want to subclass User as I have more than one kind of user > and each has a different type of profile. Which is a different situation from probably 80% of the needs people have for extending the User model. > Until we get proper

Re: Multiple Websites using the same project and apps

2006-08-09 Thread plungerman
actually, i mispoke above about the same error. i saw the same error when i imported the root settings file and tried to assign values by using root_settings.ROOT_URLCONF = 'myapp.urls' for example. when i as values like this ROOT_URLCONF = 'myapp.urls ' without prepending it with root_settings,

syncdb without shell access

2006-08-09 Thread Robin Gruyters
Hi ya, My hosting provider doesn't give shell access, so I can't execute like "syncdb", "startapp", "startproject", etc. Is there another way to do this? (e.g. by creating a runsync.py script?! (or something?)) Regards, Robin --~--~-~--~~~---~--~~ You received

Re: db already exists can i use the CRUD admin interface

2006-08-09 Thread a
I M STILL GETTING AN ERROR when i try django-admin.py inspectdb --settings=mysite.settings > newmodels.py Traceback (most recent call last): File "/home/usrexx/bin/django-admin.py", line 8, in ? management.execute_from_command_line() File "/usr/lib/python2.4/site-packages/django/core/m

Re: DreamHost

2006-08-09 Thread george webzary
Guys,Manage to get these things working finally,The problem is that I messed up the spaces between some of regex stuff. Thanks a million for all the help. I think one of us need to keep the .htaccess, django.py and other files on some link where other django users can wget and use it.I shall recor

Re: Related Models

2006-08-09 Thread Dave
This is perfect! Thanks so much. I got a little help from the IRC channel last night, and I was able to get it working, but this tutorial is what I need to understand why it works now. Thanks so much. --~--~-~--~~~---~--~~ You received this message because you ar

Re: Multiple Websites using the same project and apps

2006-08-09 Thread plungerman
hey joe, thanks for the suggestion. in fact i tried that first and received the same error as listed above. thinking that it was not so easy, i opted for the custom default settings manoeuvre described in the documentation. unfortunately, i saw the same error generated by mod_python. if you k

Re: Partly OT: Authenticating a Script

2006-08-09 Thread Ivan Sagalaev
Paul Sargent wrote: > 3 is reasonably simple, but I want this to have some form of > authorization. Django's normal authorization framework seems rather > awkward, because I'd need my script to go through a login process to > get the right cookie (right?). > > Any other suggestions for authenticat

Re: DreamHost

2006-08-09 Thread Julio Nobrega
Hi George, It says the Mysql connection has gone away or something like that? It happens the first 12 or 16 hours when I add a new domain and Django on Dreamhost. Looks like the DB server isn't synchronized yet, or something like that. Wait one or two hours, try again, it should work 50% o

Re: DreamHost

2006-08-09 Thread george webzary
Also can I wget any working .htaccess files from django dreamhost installation.ThanksGeorgeOn 8/9/06, george webzary < [EMAIL PROTECTED]> wrote:Hi,I am a able to get django.fcgi now to work. Even the admin module is working on http://blog.pythonmag.com/django.fcgi/admin But I am not able to see th

Re: Extending user model in 0.95?

2006-08-09 Thread James Bennett
On 8/9/06, Chris Kelly <[EMAIL PROTECTED]> wrote: > If I am understanding correctly now, does this mean I have to manage the > creation of the user profile object (and also any other classes tied to a > user) when I create the user? Yes; OneToOne requires that an object exist on both ends of the

Re: DreamHost

2006-08-09 Thread george webzary
Hi,I am a able to get django.fcgi now to work. Even the admin module is working on http://blog.pythonmag.com/django.fcgi/adminBut I am not able to see the admin welcome page using the blog.pythonmag.com/admin/I think problem is with the .htacess file.I checked again and again, cannot find anything

Re: Best way to construct an email - attach a html file and send

2006-08-09 Thread a
thanks guys..!!! Kenneth Gonsalves wrote: > On 09-Aug-06, at 3:34 PM, a wrote: > > > What is the best way to construct an email in python and also attach a > > html file > > covered in the docs - see sending email: > > http://www.djangoproject.com/documentation/email/ > > > -- > > regards > kg > h

Re: Re: Extending user model in 0.95?

2006-08-09 Thread Vance Dubberly
I could not disagree with this more. I very much want to subclass User as I have more than one kind of user and each has a different type of profile. You have the option of changing the user model. Copy it to your local app and change it. Until we get proper inheritence ( a huge flaw in django

Re: Extending user model in 0.95?

2006-08-09 Thread Chris Kelly
Rockin. thanks for the heads up. it does look like the profile approach is the way to go. I first thought of subclassing as an approach coming from a C++ish background, where one can drop a subclass in place of a parent class to replace/ add functionality. It appears that the user class is a little

Re: DreamHost

2006-08-09 Thread george webzary
hi,The hello.fcgi is now working. It just started working. I did not do anything significantI think the solution is  around the corner!But the admin/ is not working. It is throwing an error 500. Nor the domainname.com/django.fcgi/admin working. But it tries to connect to to the server and says that

Re: psycopg2

2006-08-09 Thread Vance Dubberly
Not much difference between it and any other database due to django's ORDBM. The only difference during set up is that instead of setting the db to postgres you set it as such DATABASE_ENGINE = 'postgresql_psycopg2' If you didn't do it already you might want to follow the the last Q on this FAQ h

Re: DreamHost

2006-08-09 Thread Eugene Lazutkin
george webzary wrote: > > I have tried all! > > Just for the records. > > I have followed jeff croft's tutorial first. > No harm in checking on all. > > But I had done this checklist > > 1) I have turned fastcgi Coming back to the original Wiki (http://wiki.dreamhost.com/index.php/Django):

Re: DreamHost

2006-08-09 Thread Eugene Lazutkin
george webzary wrote: > > I have tried all! > > Just for the records. > > I have followed jeff croft's tutorial first. > No harm in checking on all. > > But I had done this checklist > > 1) I have turned fastcgi Coming back to the original Wiki (http://wiki.dreamhost.com/index.php/Django):

Re: Using Django in a Cron Job

2006-08-09 Thread Jeremy Dunck
On 8/9/06, Joe <[EMAIL PROTECTED]> wrote: > > Thanks for the tip! However, when I use the shell in Django, I use the > command : python manage.py shell. I was just wondering if there was > some behind the scenes setup (in the path, for instance) that was being > done that I would have to do on th

Re: Using Django in a Cron Job

2006-08-09 Thread Steven Armstrong
On 08/09/06 17:56, Joe wrote: > I would like to set up a python script that runs every night to send > out an email subscription. I would like to access a Django model that > has the user's email addresses, as well as use the Django sendmail > function. Can someone help me understand what import

Re: Using Django in a Cron Job

2006-08-09 Thread Tyson Tate
On Aug 9, 2006, at 8:56 AM, Joe wrote: > > I would like to set up a python script that runs every night to send > out an email subscription. I would like to access a Django model that > has the user's email addresses, as well as use the Django sendmail > function. Can someone help me understand

Re: Using Django in a Cron Job

2006-08-09 Thread Waylan Limberg
Access your data the same way as you would in the shell. From there it wouldn't be much different than view code that sends out an email. On 8/9/06, Joe <[EMAIL PROTECTED]> wrote: > > I would like to set up a python script that runs every night to send > out an email subscription. I would like t

Re: Using Django in a Cron Job

2006-08-09 Thread Joe
Thanks a bunch! --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED

Re: Extending user model in 0.95?

2006-08-09 Thread James Bennett
On 8/9/06, Chris Kelly <[EMAIL PROTECTED]> wrote: > and it appears that using a one-to-one mapping (the > article's preferred method) is discouraged. I'm launching a campaign to have that line purged from the official documentation, with extreme prejudice. OneToOneField isn't going away and, AFAI

Re: Extending user model in 0.95?

2006-08-09 Thread Waylan Limberg
You can find the current status and well as a nice summary of the proposal for model inheritance here[1]. However, I believe this it not yet complete and perhaps not even usable yet (You'll have to check the latest threads linked from the wiki page for that). [1] http://code.djangoproject.com/wik

Re: Extending user model in 0.95?

2006-08-09 Thread James Bennett
On 8/9/06, Joe <[EMAIL PROTECTED]> wrote: > I know this is a bit "hackish", but it will work until model > inheritance is straightened out. What people actually want is not "a subclass of User that has extra fields"; what people actually want is "User with extra fields". There's a big important d

Re: Http authentication and the multiple auth backend model.

2006-08-09 Thread Scott Paul Robertson
At one point I implemented a few methods that allows someone to authenticate against apache and then have access to views. It would've been implemented as a decorator to a view if I had finished it. Thankfully the multi-auth branch was merged in and I do LDAP authentication against that now. There

Re: Using Django in a Cron Job

2006-08-09 Thread Joe
Thanks for the tip! However, when I use the shell in Django, I use the command : python manage.py shell. I was just wondering if there was some behind the scenes setup (in the path, for instance) that was being done that I would have to do on the Cron job. --~--~-~--~~~-

Re: Multiple Websites using the same project and apps

2006-08-09 Thread Joe
Why don't you just create a file called root_settings.py that has all of the common settings files, and then create a settings file for each web site that imports root_settings.py? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Extending user model in 0.95?

2006-08-09 Thread Joe
Use a user profile. Define a model similar to the following: [code] from django.db import models from django.contrib.auth.models import User class Profile(models.Model): #add extra fields you want here user =models.ForeignKey(User ,unique=True,edit_inline=models.S

Re: Partly OT: Authenticating a Script

2006-08-09 Thread Waylan Limberg
On 8/9/06, Paul Sargent <[EMAIL PROTECTED]> wrote: > > > 3 is reasonably simple, but I want this to have some form of > authorization. Django's normal authorization framework seems rather > awkward, because I'd need my script to go through a login process to > get the right cookie (right?). > > An

Using Django in a Cron Job

2006-08-09 Thread Joe
I would like to set up a python script that runs every night to send out an email subscription. I would like to access a Django model that has the user's email addresses, as well as use the Django sendmail function. Can someone help me understand what imports/path setup I have to do to get this

Extending user model in 0.95?

2006-08-09 Thread Chris Kelly
I love the Django session, and auth systems. It made setting up logins and security a breeze. I was looking into maybe adding additonal fields, etc to the user model, and the best article I seem to find (via web, django docs, and this group) on the subject is: http://www.b-list.org/weblog/2006/06

Multiple Websites using the same project and apps

2006-08-09 Thread plungerman
greetings, what would be the best way to manage the settings files for multiple websites that use the same django project? we have a django project with 3 applications that we want to use for various clients. through apache, we set up the virtual host stuff for their domain and send all python/

Re: DreamHost

2006-08-09 Thread george webzary
I wrote it using vi on the ssh shell!Is it possible of such a thing occuring GeorgeOn 8/9/06, Michael Spencer < [EMAIL PROTECTED]> wrote:george webzary wrote:> simon/eugene, >> I have tried all!>> Just for the records.>> I have followed jeff croft's tutorial first.> No harm in checking on all.>> Bu

Re: 'Unindexable Object' Error In Template W/ Relation Manager

2006-08-09 Thread Kenneth Gonsalves
On 09-Aug-06, at 6:53 PM, Sarcastic Zombie wrote: > Great news everyone! I'm an idiot. join the club ;-) -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Partly OT: Authenticating a Script

2006-08-09 Thread Paul Sargent
This isn't really a django problem as such, but maybe someone has done something similar. I'm thinking that I'd like to have a way of creating blog entries via some kind of e-mail to blog gateway. In essence I don't think this is a hard thing, but I've got a hole in my thinking that I could do wi

Re: Http authentication and the multiple auth backend model.

2006-08-09 Thread Joseph Kocherhans
On 8/8/06, Pawel J. Sawicki <[EMAIL PROTECTED]> wrote: > > So my question is the following :) > > Does the new "Multiple Auth Backend" model really make the "middleware > approach" for the http authentication obsolete? It doesn't make the middleware approach obsolete, though it should. The login

Re: db already exists can i use the CRUD admin interface

2006-08-09 Thread Kenneth Gonsalves
On 09-Aug-06, at 3:54 PM, a wrote: > i already have the db in postgres not one in fact several > > is there an easy way to do the admin interface for these tables using > Django http://www.djangoproject.com/documentation/legacy_databases/ -- regards kg http://lawgon.livejournal.com http://nr

Re: Best way to construct an email - attach a html file and send

2006-08-09 Thread Kenneth Gonsalves
On 09-Aug-06, at 3:34 PM, a wrote: > What is the best way to construct an email in python and also attach a > html file covered in the docs - see sending email: http://www.djangoproject.com/documentation/email/ -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ -

Re: 'Unindexable Object' Error In Template W/ Relation Manager

2006-08-09 Thread Sarcastic Zombie
Great news everyone! I'm an idiot. Tucked into my template was a reference to agent.1, which should have been agent.id. THAT was causing the unindexable object error. For some reason it was flagging the "for" line as the one with the error. So yeah, I have a working view and the problem was myse

Re: DreamHost

2006-08-09 Thread Michael Spencer
george webzary wrote: > simon/eugene, > > I have tried all! > > Just for the records. > > I have followed jeff croft's tutorial first. > No harm in checking on all. > > But I had done this checklist > > 1) I have turned fastcgi > 2) My website is pointing to the rightfolder > 3) My django pro

Django developer wanted in Baltimore area

2006-08-09 Thread Corey
I've posted a job listing at: http://gypsyjobs.com/job/maryland-pennysaver/10/ It's in the Baltimore, MD area. Thanks, Corey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

trying to migrate existing db using inspectdb

2006-08-09 Thread a
"from django core import meta" doesnt work django-admin.py inspectdb newdb Traceback (most recent call last): File "/home/mark/bin/django-admin.py", line 8, in ? management.execute_from_command_line() File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1254, in execute

Re: formwrappers and manipulators

2006-08-09 Thread Ivan Sagalaev
skullvulture wrote: > Are form wrappers and manipulators only for creating 'change object' > and 'add object' forms? I'm creating a simple form that will have > several drop downs that correspond to fields in the database for one of > my objects, that will serve as a search form. Right now I hav

i tried this - class meta, db_table = 'ref'

2006-08-09 Thread a
class Ref(models.Model): class META: db_table='ref' admin = meta.Admin( list_display = ('subject', 'body', 'email', 'neighborhood', 'address', 'created'), ) class Admin: pass list_display = ('subject', 'body', 'email', 'neighborhood', 'add

Re: Best way to construct an email - attach a html file and send

2006-08-09 Thread Ivan Sagalaev
a wrote: > What is the best way to construct an email in python and also attach a > html file You can use 'email' package from Python's standard library to create MIME message with an attachment. > the html file to be attached is not on disk, but should be dynamically > constructed in the pytho

Re: psycopg2

2006-08-09 Thread spako
yes you can, in your settings file: DATABASE_ENGINE = 'postgresql_psycopg2' --~--~-~--~~~---~--~~ 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 T

Re: what happens when id overflows for db tables...

2006-08-09 Thread Malcolm Tredinnick
On Wed, 2006-08-09 at 10:11 +, a wrote: > in the db, id is an int4 and it is incremented everytime a new insert > is done, deleted ids arent used, so if id overflows its limit what > happens, how do we handle this Presumably the database raises an error. If you're going to do more than 2.1 b

Re: DreamHost

2006-08-09 Thread Jay Parlar
Could you maybe post your .htaccess and django.fcgi files? Jay P. --~--~-~--~~~---~--~~ 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 unsubscri

db already exists can i use the CRUD admin interface

2006-08-09 Thread a
i already have the db in postgres not one in fact several is there an easy way to do the admin interface for these tables using Django thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

psycopg2

2006-08-09 Thread a
how to use django with psycopg2? anyone tried it --~--~-~--~~~---~--~~ 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 gro

what happens when id overflows for db tables...

2006-08-09 Thread a
in the db, id is an int4 and it is incremented everytime a new insert is done, deleted ids arent used, so if id overflows its limit what happens, how do we handle this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Best way to construct an email - attach a html file and send

2006-08-09 Thread a
What is the best way to construct an email in python and also attach a html file the html file to be attached is not on disk, but should be dynamically constructed in the python script I want to attach the django debug error to an email and mail it to myself whenever there is an error in the app

Re: Work with FileField directly

2006-08-09 Thread Nebojša Đorđević
On 7 Aug 2006, at 04:45, bernie2004 wrote: def _save_FIELD_file( self, field, filename, raw_contents ): try: oldEntry = MyTable.objects.get( uid=self.uid ) from os import remove from django.conf import settings remove( settings.MEDIA_RO

Re: DreamHost

2006-08-09 Thread george webzary
One more thing! I have complained to dreamhost folks. I am awaiting their mailsThanks for all the suggestions. Great work , guysGeorgeOn 8/9/06, george webzary <[EMAIL PROTECTED]> wrote: simon/eugene,I have tried all!Just for the records.I have followed jeff croft's tutorial first.No harm in check

+++++++ HELP! HELP! HELP! HELP! HELP! HELP! HELP! ++++++

2006-08-09 Thread User k
  HI, Need HELP!? WITH YOUR ADS? Now, if you don't have a budget to pay for display of your ads, you can doit for free! See website for details! Process is very fast (about 20 seconds) http://adexchange.pro.tc --~--~-~--~~~---~--~~ You received this mes

  1   2   >