Re: Media Server

2010-04-03 Thread orokusaki
Absolutely not. You're thinking of everything from a "how does it relate to my python program" standpoint. Using a media server has nothing to do with django from a programming stand point. Python is a great language but urlopen.read() is certainly not sufficient for handling your media requests. Y

django files based sessions

2010-04-03 Thread Pradnya
I am using windows XP and Python with django 1. changed the SESSION_ENGINE to 'django.contrib.sessions.backends.file' 2. SESSION_FILE_PATH = 'd:/tmp' 3. In view.py defined 2 methods/views as follows def show_login(request): request.session['test'] = "Hello World" return render_to_r

Re: Media Server

2010-04-03 Thread Daniel Roseman
On Apr 2, 8:49 pm, Enpaksh wrote: > Thanks this was my understanding. It looks like i have to route the   > url to view and thn make a call urlopen().read() to fetch the file   > from different server. > > Enpaksh Airon > Sent from my iPhone No! This is completely the wrong approach! If you do th

Re: Calling a method immediately after login

2010-04-03 Thread derek
On Apr 2, 1:58 pm, "ge...@aquarianhouse.com" wrote: > In this case you should overwrite the auth class. > > http://docs.djangoproject.com/en/dev/topics/auth/ > > On Apr 2, 1:40 pm, Derek wrote: > > > I am running Django 1.1 and using the Admin framework with the "built-in" > > user registration f

Re: global name 'self' is not defined

2010-04-03 Thread H . İbrahim Yılmaz
Any help please? 02 Nisan 2010 23:12 tarihinde H.İbrahim Yılmaz yazdı: > Hi, > I use simply {{zform.as_table}} for rendering my form... > Thanks. > > > 02 Nisan 2010 20:43 tarihinde Bill Freeman yazdı: >> You are discarding the result of your first render_to_response and displaying >> the second

Django-registration with django-profile

2010-04-03 Thread Alessandro Ronchi
I've made a profile model and attached it to django-profile app that works correctly (it shows /profiles/create/ with the form). I need to put together that profile model with django-registration, so when a user goes to /account/register/ must fill both user default values and my custom profile

Re: global name 'self' is not defined

2010-04-03 Thread Daniel Roseman
On Apr 3, 10:09 am, H.İbrahim Yılmaz wrote: > Any help please? Bill gave you the answer two messages ago: > > 02 Nisan 2010 20:43 tarihinde Bill Freeman yazdý: > >> You are discarding the result of your first render_to_response and > >> displaying > >> the second, which is always an empty form

Re: global name 'self' is not defined

2010-04-03 Thread H . İbrahim Yılmaz
Hi all, I change my view as below but, show no Form... from django.shortcuts import render_to_response from django import forms from yenicrm.musteri.models import * from yenicrm.ziyaret.models import * from django.contrib.auth.decorators import login_required from django.template import Context, R

'template_key' that is missing from the form

2010-04-03 Thread Egon Frerich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I deployed my test application (django 1.1.1, feincms) to a webserver (fcgi). When I tried to connect to the application I have got this error: ImproperlyConfigured at / 'PageAdmin.fieldsets[1][1]['fields']' refers to field 'template_key' that is

Re: 'template_key' that is missing from the form

2010-04-03 Thread Matthias Kestenholz
Hi Egon On Sat, Apr 3, 2010 at 12:35 PM, Egon Frerich wrote: > -BEGIN PGP SIGNED MESSAGE- > [...] > > Exception Type: ImproperlyConfigured at / > Exception Value: 'PageAdmin.fieldsets[1][1]['fields']' refers to field > 'template_key' that is missing from the form. > > > Any hints? > Thi

Re: Django comments application. How to make comments private by default?

2010-04-03 Thread Oleg Oltar
Yes, definitely. But I can't make it work: e.g. in my admin file class ArticleCommentModerator(CommentModerator): enable_field = 'enable_comments' auto_moderate_field='date_published' moderate_after=1 moderator.register(BaseArticle, ArticleCommentModerator) model class BaseArticle(m

Re: Media Server

2010-04-03 Thread Enpaksh
Yes tht is a posibility too and i have tried tht approach but the issue is tht there are lot of html files in my app and i am trying to avoid writing any explicit url because thn i have to keep track of all the pages tht reference to the media server in tht fasion. Can't i define my server

Re: Media Server

2010-04-03 Thread Daniel Roseman
On Apr 3, 1:10 pm, Enpaksh wrote: > Yes tht is a posibility too and i have tried tht approach but the   > issue is tht there are lot of html files in my app and i am trying to   > avoid writing any explicit url because thn i have to keep track of all   > the pages tht reference to the media server

cascade deletion happens before pre_delete signal is sent?

2010-04-03 Thread msoulier
I have a model A, which has a ForeignKey to model B. A --> B When B is deleted I want to save the As that are pointing at B by repointing them at a different B if possible. To do this I have a pre_delete signal registered for B models. Unfortunately does doesn't work. Django follows the rela

doesNotExist

2010-04-03 Thread Imuvy
Dear Django Users I'm new to django and I'm creating my first django application. I'm using the development version I was able to create a model and automatically create a form using modelform My model contains a lot of table/class but I'm going to create the form only by means of on table/class

Hosting for Django sites

2010-04-03 Thread django_jedi
Hi Folks, I'm wondering what people would recommend for hosting Django sites? I've read the blog posts; I'm wondering what the latest word on the street would be. We're talking about hosting multiple Django/Satchmo installs, possibly w/dedicated/managed servers. Among the leading contenders so f

Re: Hosting for Django sites

2010-04-03 Thread Ray Cote
We have experience with Webfaction, Slicehost, and Linode. Webfaction has excellent Django support, ability to generate basic app layouts, etc. Shell access (which is always important to us). Slicehost and Linode are excellent Django-serving platforms, but then again they are excellent genera

Re: Django-registration with django-profile

2010-04-03 Thread shacker
On Apr 3, 2:39 am, Alessandro Ronchi wrote: > I've made a profile model and attached it to django-profile app that > works correctly  (it shows /profiles/create/ with the form). > > I need to put together that profile model with django-registration, so > when a user goes to > > /account/register/

Re: How to use CommaSeperatedIntegerList with CheckboxSelectMultiple

2010-04-03 Thread ben
Either I don't understand how CheckboxSelectMultiple works or there is a bug in Django 1.2. I have tried the following custom multi select fields I have found around the web. http://www.djangosnippets.org/snippets/1200/ http://www.davidcramer.net/code/181/custom-fields-in-django.html Out of despe

MultiDB Syncdb script

2010-04-03 Thread Anand Agarwal
Hello everyone I am working on a project where we have multiple databases instance. We wanted a script to run through all databases to perform syncdb command. I tried looking on net but could not find one. So we decided to develop one on our own. I would like to share that script with the group as

Re: django authentication system

2010-04-03 Thread Anand Agarwal
I guess you can use django-openid, though i am not sure what exactly you are trying. -BootStrapToday http://www.bootstraptoday.com On Sat, Apr 3, 2010 at 1:04 AM, orokusaki wrote: > You have to use ``auth.models.User`` if you want to enjoy all the > benefits o

send an email to users after saving is_active=True

2010-04-03 Thread Alessandro Ronchi
I need to notify users when an admin activate them saving their profile with is_active=True. Is it possible? How? I need also to avoid email duplication when admin changes something different from is_active. thanks in advance! -- Alessandro Ronchi http://www.soasi.com SOASI - Sviluppo Softwar

Re: Django-registration with django-profile

2010-04-03 Thread Alessandro Ronchi
2010/4/3 shacker : > On Apr 3, 2:39 am, Alessandro Ronchi > wrote: >> I've made a profile model and attached it to django-profile app that >> works correctly  (it shows /profiles/create/ with the form). >> >> I need to put together that profile model with django-registration, so >> when a user goe

Re: Table in models.py not being created during syncdb

2010-04-03 Thread Dennis Kaarsemaker
On wo, 2010-03-31 at 10:16 -0700, wchildsuk wrote: > I'm using the django app, django-schedule (http://github.com/thauber/ > django-schedule) and am adding an additional table to map users to > calendars (see line 253 on dpaste). When I run syncdb it completely > ignores my table and doesn't thro

Re: Table in models.py not being created during syncdb

2010-04-03 Thread Wesley Childs
Yep definitely in installed_apps. After several hours of playing I've changed my method of implementation to work around this issue. Thanks for everyone's help on this issue, really appreciated. Wes On 3 April 2010 18:16, Dennis Kaarsemaker wrote: > On wo, 2010-03-31 at 10:16 -0700, wchildsuk

Table-level permission assignments?

2010-04-03 Thread Derek
The Django Book - http://www.djangobook.com/en/2.0/chapter06/#s-users-groups-and-permissions - implies that each class (aka "database table") registered for access via the admin interface, will also be made available to the permissions list so that permissions for it can be assigned to groups and/o

Re: Geodjango tutorials?

2010-04-03 Thread derek
On Apr 3, 4:16 am, Benjamin Welton wrote: > Hey All, > >     Im wondering if anyone has some good links to geodjango tutorials > (outside of the main one featured on geodjango.org)? Specifically any > related to Google Map integration (since that subsection appears to be > missing in the current d

Re: Geodjango tutorials?

2010-04-03 Thread derek
On Apr 3, 7:54 pm, derek wrote: > On Apr 3, 4:16 am, Benjamin Welton > wrote: > > > Hey All, > > >     Im wondering if anyone has some good links to geodjango tutorials > > (outside of the main one featured on geodjango.org)? Specifically any > > related to Google Map integration (since that subs

Re: Hosting for Django sites

2010-04-03 Thread Tim Shaffer
+1 for Webfaction Their hosting plans are great, and the customer service is absolutely amazing. I'm just on a shared plan, but usually get a response to tickets within an hour or so. Top notch. -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Hosting for Django sites

2010-04-03 Thread Anand Agarwal
We have been Rackspace for our product. We are very satisfied with their service. Customer support is fabulous. BootStrapToday www.bootstraptoday.com On Sat, Apr 3, 2010 at 8:09 PM, django_jedi wrote: > Hi Folks, > > I'm wondering what people would recommend for

Model inheritance foreign key user

2010-04-03 Thread Fredrik
Hi, I want to use it like this: """ class PersistentModel(models.Model): deleted = models.BooleanField(default = False) date_created = models.DateTimeField(default=datetime.now) date_edited = models.DateTimeField(default=datetime.now) owner = models.ForeignKey(User) class Contacts

Re: doesNotExist

2010-04-03 Thread Daniel Roseman
On Apr 3, 3:31 pm, Imuvy wrote: > Dear Django Users > I'm new to django and I'm creating my first django application. > I'm using the development version > > I was able to create a model and automatically create a form using > modelform > > My model contains a lot of table/class but I'm going to

Re: Geodjango tutorials?

2010-04-03 Thread Benjamin Welton
Awesome thanks alot derek. Ben derek wrote: On Apr 3, 7:54 pm, derek wrote: On Apr 3, 4:16 am, Benjamin Welton wrote: Hey All, Im wondering if anyone has some good links to geodjango tutorials (outside of the main one featured on geodjango.org)? Specifically any related

Re: Hosting for Django sites

2010-04-03 Thread Shawn Milochik
+1 for Webfaction also. I've only had to use customer service once and they were unhelpful, but the way the hosting site is set up make it trivial to create new Django apps, subdomains, and static sites for media URLs. For slightly less than I used to pay for fairly simplistic hosting that cou

Re: Model inheritance foreign key user

2010-04-03 Thread Thierry Chich
I think that if you want make inheritance it is because you want to have others subclasses. But then, your related name will be same for all the subclasses. There is no solution with the stable version. In the dev version, it is possible to add the origin class name in the related_name. It is

Re: Hosting for Django sites

2010-04-03 Thread django_jedi
Thanks guys. Very helpful. Confirming my research. We've been using Webfaction for a couple of sites to test drive them, and they come through w/flying colors. The only thing I'd like to see from them is 24/7 phone support (hey, I'm not asking for much, am I? ;-) -- You received this message

Re: Django-registration with django-profile

2010-04-03 Thread shacker
On Apr 3, 9:21 am, Alessandro Ronchi wrote: > > I solved with a custom django-registration backend with a custom form. > > The form save directly to profile model, and I don't need > django-profiles, because it's unuseful. > > With that solution I can ask users all their data on registration, in

Re: Model inheritance foreign key user

2010-04-03 Thread Fredrik
What I want is to "automatic" add an owner to every object.. Is there another way to accomplish the same? Fredrik On Apr 3, 10:48 pm, Thierry Chich wrote: > I think that if you want make inheritance it is because you want to   > have others subclasses. But then, your related name will be same

Re: cascade deletion happens before pre_delete signal is sent?

2010-04-03 Thread Tomasz Zieliński
On 3 Kwi, 16:05, msoulier wrote: > I have a model A, which has a ForeignKey to model B. > > A --> B > > When B is deleted I want to save the As that are pointing at B by > repointing them at a different B if possible. To do this I have a > pre_delete signal registered for B models. Unfortuna

Re: Hosting for Django sites

2010-04-03 Thread shofty
+1 for webfaction. this is a +1 from a proper noob. they were very helpful to me when i was struggling my way through my first django site, so if you're on a real steep learning curve, they will help you out. im not so sure for the 24/7 phone support, i raised an issue with them on twitter once a

Django comments & recaptcha

2010-04-03 Thread Bjorn Meyer
Hi folks, I am trying to add recaptcha to my comments section. I am currently trying to use MyRecaptcha, but I seem to be missing something to get it going. I think it is the configuration in the URLs file. I am using Django 1.1.1. If anyone has any ideas on how to get this going or if there i

Re: doesNotExist

2010-04-03 Thread ivan marchesini
Hi Daniel many thanks... that help me a lot.. now it works.. ;-) ivan > > That method should have gone in the TipoIndagine model. > -- > DR. > -- Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt. Preferisco formati liberi. Please try to avoid to send me .dwg, .doc, .xls, .pp

Re: Model inheritance foreign key user

2010-04-03 Thread Thierry Chich
Le 3 avr. 2010 à 23:37, Fredrik a écrit : What I want is to "automatic" add an owner to every object.. Is there another way to accomplish the same? I see. I have had a similar problem. I have tried a similar solution with exactly the same effect. I could have add manualy a foreignkey