Re: Noon Help

2008-10-26 Thread Jeff Anderson
Johnny Utah wrote: > Hi Guys, > > If I'm posting this on the wrong site, my apologies. > > I'm a beginner to both Python and Django and I would like to develop a > public site. I'm not looking for help with code as much as with what > modules I will need (e.g. django.contrib.auth). Any help is gr

Re: Receiving emails via app

2008-10-26 Thread Jeff Anderson
James Bennett wrote: > On Sat, Oct 25, 2008 at 2:09 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > >> We have an alias set up in postfix that sends the e-mail to our script >> via a pipe. >> >> The python script imports our Django models, and parses the e-mail >> message with the email module, a

Noon Help

2008-10-26 Thread Johnny Utah
Hi Guys, If I'm posting this on the wrong site, my apologies. I'm a beginner to both Python and Django and I would like to develop a public site. I'm not looking for help with code as much as with what modules I will need (e.g. django.contrib.auth). Any help is greatly appreciated! The site:

Re: Handling Subdomain Requests

2008-10-26 Thread Graham Dumpleton
On Oct 27, 2:00 pm, killer barney <[EMAIL PROTECTED]> wrote: > I'm not too familiar with how to handle subdomain requests on django. > If i have test.example.com, is this somethign I'm supposed to find in > the urls.py?? Or is this done in the middleware? > > I'm really confused about this, so y

Handling Subdomain Requests

2008-10-26 Thread killer barney
I'm not too familiar with how to handle subdomain requests on django. If i have test.example.com, is this somethign I'm supposed to find in the urls.py?? Or is this done in the middleware? I'm really confused about this, so you may have to give me step by step instructions =) --~--~-~--~-

Re: Can python/django match the features of php/zend framework?

2008-10-26 Thread Nick Lo
Hi Walter, On 27/10/2008, at 8:24 AM, walterbyrd wrote: > I was going to go with zend framework, then I read about php using "\" > character as it's namespace separator. > > A few things I like about the zend framework: > > 1) APIs to integrate with Google Apps. Although, I think I could do > th

Re: database API from external tools?

2008-10-26 Thread James Bennett
On Sun, Oct 26, 2008 at 9:19 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > Here's a specific example of a piece of code that uses a web app's > models. It should get you started - just dive in and write some code! > The tricky bit is providing the settings without using a "settings" > module. I ca

Re: database API from external tools?

2008-10-26 Thread Steve Holden
Russell Keith-Magee wrote: > On Mon, Oct 27, 2008 at 6:05 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: > >> Russell Keith-Magee wrote: >> >>> On Sat, Oct 25, 2008 at 3:55 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: >>> >>> My question is how to package up and deploy the Djan

Re: Receiving emails via app

2008-10-26 Thread Steve Holden
felix wrote: > In general I agree with Jeff's suggestion. > > but OTOH you might be able to get pop to work > and using the pop interface maybe you can get the headers in a clean > pythonic fashion. > > it sounds like you will also have to deal with attachments, so maybe > the pop library can ha

Re: Urlconf page not found question

2008-10-26 Thread Steve Holden
David Rodrigues wrote: > Or if you have ^accounts in parent urls.py file, then perhaps the '$' > at the end of the ^login/$ expression is problematic, as the dollar > sign represents the end of a line, I believe. > It's fairly obvious that the listing of the URLconfs is from the 404 output of

using django-gcal, how do i defined the "instance" parameter

2008-10-26 Thread sotirac
I'm implementing django-gcal into my project. (http://code.google.com/p/django-gcal) I'm trying to invoke the get_event_data() method from view.py but I'm kind of clueless how to pass the instance parameter. def get_event_data(self, instance): """ Returns a CalendarEventData objec

Re: Receiving emails via app

2008-10-26 Thread James Bennett
On Sat, Oct 25, 2008 at 2:09 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > We have an alias set up in postfix that sends the e-mail to our script > via a pipe. > > The python script imports our Django models, and parses the e-mail > message with the email module, and does what it needs to. You c

GeoDjango type mismatch in Postgres

2008-10-26 Thread Liam
I have a model with a PointField type of field. class Article(models.Model): id = models.AutoField(primary_key=True) title = models.CharField(max_length=300, blank=True) point = models.PointField(blank=True) status = models.CharField(max_length=27, blank=True) objects = models

Re: Can python/django match the features of php/zend framework?

2008-10-26 Thread felix
python libraries are in general much much better than php libraries. besides django itself, there's a wealth of usable and well maintained libraries. I've been working with gdata, and its very nice: _youtubeGDataHost = 'gdata.youtube.com' _youtubeFeedBase = '/feeds/api/' import gdata im

Re: Receiving emails via app

2008-10-26 Thread Jeff Anderson
AndyB wrote: > This sounds like exactly what I need to do. However my Unix-fu isn't > up to coping with the sentence 'We have an alias set up in postfix > that sends the e-mail to our script via a pipe.'... :( > > My naive assumption is that one could use something like poplib in the > standard lib

Re: Import error exception "No module named urls" when running from eclipse

2008-10-26 Thread Steve Holden
DragonSlayre wrote: [at the top, but it's now moved to the bottom] > On Oct 22, 2:03 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: > >> DragonSlayre wrote: >> >>> Hi, I'm new to django/python, and I'm testing out eclipse for >>> development. >>> >>> I'm using pydev, and managed to ru

Re: database API from external tools?

2008-10-26 Thread Russell Keith-Magee
On Mon, Oct 27, 2008 at 6:05 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee wrote: >> On Sat, Oct 25, 2008 at 3:55 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: >> >>> My question is how to package up and deploy the Django python code for >>> external tools to access the dat

Re: Can python/django match the features of php/zend framework?

2008-10-26 Thread Low Kian Seong
guess it does: http://mail.python.org/pipermail/python-list/2007-July/448007.html On Mon, Oct 27, 2008 at 5:24 AM, walterbyrd <[EMAIL PROTECTED]> wrote: > > I was going to go with zend framework, then I read about php using "\" > character as it's namespace separator. > > A few things I like abo

Can python/django match the features of php/zend framework?

2008-10-26 Thread walterbyrd
I was going to go with zend framework, then I read about php using "\" character as it's namespace separator. A few things I like about the zend framework: 1) APIs to integrate with Google Apps. Although, I think I could do the same with python using gdata-python-client. 2) There is a fairly go

Re: database API from external tools?

2008-10-26 Thread Andrew Chapman
Russell Keith-Magee wrote: > On Sat, Oct 25, 2008 at 3:55 AM, Andrew Chapman <[EMAIL PROTECTED]> wrote: > >> My question is how to package up and deploy the Django python code for >> external tools to access the database? I'm hoping to have the Django app >> sitting on the web server, with the

Re: tinymce help

2008-10-26 Thread varikin
On Oct 25, 8:47 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote: > hi.  I'm using django 1.0 over at webfaction.  I have the following > setup > > /static   (serves js, css, flash, images etc) > /www   (my django app) > > I have tiny_mce loaded to /static/js/tiny_mce/ > > I have followed the steps at

Re: Receiving emails via app

2008-10-26 Thread Doug B
poplib is pretty easy to work with: def check_pop3(server,user,password): import email,poplib,string messages=[] s=poplib.POP3(server) s.user(user) s.pass_(password) resp, items, octets = s.list() todelete=[] for item in items: id,size=item.split()

Re: Receiving emails via app

2008-10-26 Thread felix
In general I agree with Jeff's suggestion. but OTOH you might be able to get pop to work and using the pop interface maybe you can get the headers in a clean pythonic fashion. it sounds like you will also have to deal with attachments, so maybe the pop library can handle that nicely. the script

Any django training available in the UK?

2008-10-26 Thread tonemcd
Hi all, Is anyone doing any django training in the UK? I need F2F and possibly remote *as backup to F2F* for my team. They are very familiar with Zope, and we are a linux-based shop. We have facilities on-site for training. We are based in the North East of England. Please get in contact and I

Re: Receiving emails via app

2008-10-26 Thread AndyB
This sounds like exactly what I need to do. However my Unix-fu isn't up to coping with the sentence 'We have an alias set up in postfix that sends the e-mail to our script via a pipe.'... :( My naive assumption is that one could use something like poplib in the standard library to connect to a PO

Uploaded Files -> Don't appear in folder, but no errors

2008-10-26 Thread [EMAIL PROTECTED]
Hello, I've been having some problems with FileField. I can create and save objects with the FileField file, but the file is never placed in any directory. Essentially, the database has the correct values, but no files are copied into the correct directory. I am using django-1.0. A temporary fil

Re: Urlconf page not found question

2008-10-26 Thread David Rodrigues
Or if you have ^accounts in parent urls.py file, then perhaps the '$' at the end of the ^login/$ expression is problematic, as the dollar sign represents the end of a line, I believe. On Oct 26, 2008, at 10:02 AM, Daniel Roseman wrote: > > On Oct 26, 1:23 pm, ehpmail <[EMAIL PROTECTED]> wrot

Iowa Python User's Group Meeting Next Week!

2008-10-26 Thread Mike Driscoll
Hi, The next Iowa Python Users Group (AKA Pyowa) is nearly upon us. We will be meeting November 3rd, from 7-9 p.m. at the following location: Marshall County Sheriff's Office 2369 Jessup Ave Marshalltown, IA 50158 At this meeting, we will be having a Crash Course of sorts for all the new progra

Re: django.pl has been officially launched

2008-10-26 Thread Marek Kubica
On Sun, 26 Oct 2008 06:32:11 -0700, Dominik Szopa wrote: > Django Polish community site - http://www.django.pl has been officially > launched. I just took a look - the design is definitely good. The examples of polish sites using Django are also a good idea. > All of this will show what a grea

Re: tinymce help

2008-10-26 Thread hcsturix74
Hi, I've found this problem also when I was including WYSIWYG editor in my admin; I was migrating fromDjango 0.96 to 1.0. As TinyMCE I suggest django-tinymce application http://code.google.com/p/django-tinymce/ There you can find the "workaround" your problem. Alternatively, you can customize cha

REQ: Help with row-level perms and model (item, user) method problems.

2008-10-26 Thread jfine
Hi I'm now doing serious (for me) work with Django (which I like a lot) and have come up against a problem. My application requires row-level permissions. I think I've got most of it sorted out, but I'm having problems with templates and views. My basis idea is this. Add a field edit_

Re: tinymce help

2008-10-26 Thread Brian Neal
On Oct 25, 8:47 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote: > hi.  I'm using django 1.0 over at webfaction.  I have the following > setup > > /static   (serves js, css, flash, images etc) > /www   (my django app) > > I have tiny_mce loaded to /static/js/tiny_mce/ > > I have followed the steps at

Re: is there ANY way to use two different models with the same name for model upgrades?

2008-10-26 Thread Daniel Roseman
On Oct 26, 6:32 am, mlojo <[EMAIL PROTECTED]> wrote: > Hi. > > I started my app with version 0.96 knowing that I would want to add > new features and that I would eventually want to redesign my models > with inheritance when it became available.  Because of this, I've > created a layer of abstra

is there ANY way to use two different models with the same name for model upgrades?

2008-10-26 Thread mlojo
Hi. I started my app with version 0.96 knowing that I would want to add new features and that I would eventually want to redesign my models with inheritance when it became available. Because of this, I've created a layer of abstraction between the django model and the rest of my code. In theory

Re: Django Apps

2008-10-26 Thread eldonp2
Ian, this is awesome stuff! I'm an amateur Python/Django'er - learning them in my spare time, hopefully to write an eCommerce webapp. I am looking for the easiest/quickest way to do this. How easy is it going to be to integrate Django-CMS and Satchmo features into a webapp? What approach should

Re: Urlconf page not found question

2008-10-26 Thread Daniel Roseman
On Oct 26, 1:23 pm, ehpmail <[EMAIL PROTECTED]> wrote: > My URLconf has the following urls: > >    1.  ^admin/(.*) >    2. ^$ >    3. ^popular/$ >    4. ^user/(\w+)/$ >    5. ^tag/([^s]+)/$ >    6. ^tag/$ >    7. ^search/$ >    8. bookmark/(\d+)/$ >    9. ^login/$ >   10. ^logout/$ >   11. ^regist

Re: Manager to add entries where there is a ManyToMany relationship

2008-10-26 Thread TiNo
> > 1. How do I create a Model Manager? See http://docs.djangoproject.com/en/dev/topics/db/managers/ 2. Within a view, what is the best way to add entries into tables that > have a M2M relationship with an intermediate table? I've been reading > the following documentation with command line opt

django.pl has been officially launched

2008-10-26 Thread Dominik Szopa
Django Polish community site - http://www.django.pl has been officially launched. The main purpose of site is to get together polish community of Django framework, promote Django in Poland, give support and help new Django users. All of this will show what a great piece of technology is Django fra

Urlconf page not found question

2008-10-26 Thread ehpmail
My URLconf has the following urls: 1. ^admin/(.*) 2. ^$ 3. ^popular/$ 4. ^user/(\w+)/$ 5. ^tag/([^s]+)/$ 6. ^tag/$ 7. ^search/$ 8. bookmark/(\d+)/$ 9. ^login/$ 10. ^logout/$ 11. ^register/$ 12. ^register/success/$ 13. ^site_media/(?P.*)$ 14. ^save/$ 15. ^vo

Re: Django Equivalent to Rails Rumble

2008-10-26 Thread Keyton Weissinger
Hi Again Everyone, First my apologies to the group on not explaining what Rails Rumble was. Jeremy posted some details above. Here are some more from the website (http://railsrumble.com/): [About the Contest] The Rails Rumble is a 48 hour web application development competition. As a contestant,

Re: Foreign key with tons of items

2008-10-26 Thread Fabio Natali
Dear Lars, thank you very much for your kind and fast reply. Lars Stavholm wrote: [...] > Have you tried filter_horizontal? > http://docs.djangoproject.com/en/dev/ref/contrib/admin/#filter-horizontal I am not sure I can really use filter_horizontal in my scenario. The actual structure I am using