Re: django and scale9x (socallinuxexpo)

2011-01-21 Thread Russell Keith-Magee
On Sat, Jan 22, 2011 at 7:12 AM, gfonk wrote: > Greetings Django users group, > > I would like to invite the Django project to represent and attend the > 9th Southern California Linux Expo.  The show will be held February > 25th-27th, 2011 at the Hilton LAX in Los

Dose anyone know how to modify inline display model.

2011-01-21 Thread eilinx.liu
I have there models one is main and the others are actions and interruptions. main is is my main models,actions and interruptions are sub model. normally in admin interface data will show like this structure. Main Actions(1) Actions(2) Actions(3) Interruptions(1) interruptions(2) interruptions(3)

django and scale9x (socallinuxexpo)

2011-01-21 Thread gfonk
Greetings Django users group, I would like to invite the Django project to represent and attend the 9th Southern California Linux Expo. The show will be held February 25th-27th, 2011 at the Hilton LAX in Los Angeles, CA. SCALE 9x will be an excellent venue to increase awareness and showcase

Re: Where Is My Javascript Code's Problem?

2011-01-21 Thread Marchegay Xavier
reciever => receiver ?? On Fri, Jan 21, 2011 at 10:01 PM, hank23 wrote: > Here's my javascript function code: > > function addRecipient() > { > alert("Entering addRecipient function!") > var list = document.getElementById('recipientlist'); >

Import problem: app name cannot be the same as project name?

2011-01-21 Thread Edwin
I have an app that's called the same way as my project name (let's name it 'blog'). My directory structure is: blog apps blog models.py books management models.py Everything works fine except that when i created a custom command inside another app,

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-21 Thread Osiaq
Maybe decorate the view with @csrf_extempt and test it like this: ---views.py--- from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_exempt @csrf_exempt def contact(request): form = ContactForm() ...some wicked logic here ... return

Re: 4 different domains on single apache/mod_wsgi

2011-01-21 Thread Osiaq
Graham, daemonize is a trick a was looking for :) Thank you for the great idea :) Problem solved. On Jan 20, 3:16 am, Graham Dumpleton wrote: > Technically it should be able to made to work. I would recommend though you > use mod_wsgi daemon mode and delegate each

Re: Django + CSS

2011-01-21 Thread Osiaq
No Vovk, it is not :) Official Django docs are missing some vital stuff :) On Jan 20, 5:56 am, Vovk Donets wrote: > Man, this is just a quote from Django Documentation. > > 2011/1/20 Osiaq > > > Same problem here. Follow those rules, is simple

Re: Localisation

2011-01-21 Thread Ramiro Morales
On Tue, Jan 18, 2011 at 11:40 AM, David Walker wrote: > Thanks Lachlan. > > The middleware was the bit I was missing.  The only mention of it on > the Django website appears to be on the Middleware page.  Perhaps it > should go on the localisation pages? There is a "How Django

Re: Can someone help with Many-to-many referencing and then calculations against another field on the linked model

2011-01-21 Thread Sean Wallace
Hi Trevor, On Fri, Jan 21, 2011 at 1:47 PM, Trevor Stanley wrote: > def get_fringe_value(self, fringe): should be def get_fringe_value(self): I don't think you are using the local variable "fringe" anywhere in this method, so you should get rid of it. and >

ModelForm changing default field for ForeingKey

2011-01-21 Thread Jonas Geiregat
Hello, I'm creating a subset of a ModelForm. class FavArtistForm(ModelForm): class Meta: model = FavArtist fields = ('artist',) widgets = { 'artist': CharField(), } The field artist is of the type ForeignKey which is by default

Re: Where Is My Javascript Code's Problem?

2011-01-21 Thread Ivo Brodien
> reciever.value = “”; should be reciever.value = rlist; btw: this is a django list and not JavaScript. -- 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

mysql -> sqlite3 migration error

2011-01-21 Thread neridaj
I'm trying migrate some tables for the first time and I'm not sure how to resolve this error. It looks like things fail when this file is called: films:0006_migrate_country, which in turn is failing to create the films_filmdistribution table. Any thought on how to resolve this? Thanks for any

Re: Where Is My Javascript Code's Problem?

2011-01-21 Thread hank23
I was actually hoping to see the results of the code altering the screen fields dynamically when I click the button to call the javascript function. So if this won't do it, then how do I through the javascript function code cause the screen fields to be refreshed when the code changes them? On

Re: Can someone help with Many-to-many referencing and then calculations against another field on the linked model

2011-01-21 Thread Trevor Stanley
Kenneth I have tried your line and I also removed the call to ('qft') on the fringe_value. I now get this error. I'm sure there must be something fundamentally wrong with my approach what am I missing!?! Model changed to: def get_fringe_value(self, fringe): """select record by ID

Re: Where Is My Javascript Code's Problem?

2011-01-21 Thread Mo J. Al-Mughrabi
Lol Sent from my iPhone On Jan 22, 2011, at 12:34 AM, Sandro Dutra wrote: LOL! What are you trying to do, guy? It's obvius the alert box will appear, 'cause it's a visual element. But the rest of the code only set a bunch of variables, it's not printing anything, it's not

Re: Where Is My Javascript Code's Problem?

2011-01-21 Thread Sandro Dutra
LOL! What are you trying to do, guy? It's obvius the alert box will appear, 'cause it's a visual element. But the rest of the code only set a bunch of variables, it's not printing anything, it's not launching any alert, so what are you waiting to happen? 2011/1/21 hank23

Where Is My Javascript Code's Problem?

2011-01-21 Thread hank23
Here's my javascript function code: function addRecipient() { alert("Entering addRecipient function!") var list = document.getElementById('recipientlist'); var rlist = list.value; var reciever = document.getElementById('recipient'); rlist =

Re: Looking for OAuth provider packages for django

2011-01-21 Thread Eric Chamberlain
If I hadn't searched Google yet, I would have probably asked if there are any packages, rather than asking if there are good ones that people would recommend. On Jan 21, 2011, at 12:27 PM, Shawn Milochik wrote: > Did you search Google yet? > -- You received this message because you are

How To Create A Button Control That Does Not Submit The Form

2011-01-21 Thread hank23
I have a text field for entering a destination email address. Once the address is entered I want to click a button on my screen which will then append the new email address to another textarea field on the screen, which will hold the entire list of recipients of the email message. I would like my

Re: Looking for OAuth provider packages for django

2011-01-21 Thread Shawn Milochik
Did you search Google yet? -- 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 django-users+unsubscr...@googlegroups.com. For more

Sitemap generation problem

2011-01-21 Thread galago
I can't find out how to pass corrent location to the sitemap element. I have declared: def items(self): return Category.objects.all() How can i generate my correct urls from my urlconf file: url(r'^category/(?P[\w\-_]+)/$', 'show_category', name='show_category'), I have no idea hot to

Re: Can someone help with Many-to-many referencing and then calculations against another field on the linked model

2011-01-21 Thread Trevor Stanley
Rainy Thanks for the feedback and I'm sure you are right that the line is incorrect. However I need a bit of instruction. I have read extensively over the last year but I think I must be missing a fundamental thing. This is the first programming I've ever done so you may need to spell it

Re: Django + CSS

2011-01-21 Thread Mike Ramirez
On Friday, January 21, 2011 11:11:30 am brian.mus...@ff.com wrote: > @ Eric of course I tried putting full url in template first and u know > that didn't work - I wish it were that simple. That's what I'm > talking about. Why not? > What do you mean?

Re: Django + CSS

2011-01-21 Thread Javier Guerra Giraldez
On Fri, Jan 21, 2011 at 2:11 PM, brian.mus...@ff.com wrote: > why > does it have to be so modular and abstract? because it's a good thing? of course, there are several 'shortcuts' for common ways to tie modules together. maybe there could be a couple more --

Looking for OAuth provider packages for django

2011-01-21 Thread Eric Chamberlain
Hi, We need to implement an OAuth provider in django. Are there any good packages already out there? -- Eric Chamberlain -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django + CSS

2011-01-21 Thread brian.mus...@ff0000.com
Osiaq thanks dude, it worked! Not sure why it had to be so complicated. I just started with this stuff just recently (python + django) - working my way thru the django book. When u search Django CSS there are dozens of different explanations for how to import (import css files) - there should

Re: DjangoAMF status

2011-01-21 Thread Joni @ mindpulse
Comparing all of them, It looks like PyAMF is the way to go, having oficial sopport for django and all. Though I'm concerned about one particular issue... Suppose I have two django models related by a FK. class Category(models.Model): name = models.CharField(max_length=100) class

Re: Installing Django on Linux-Derbian using virtualBox on Windows 7 Machine

2011-01-21 Thread Matteius
I want to let you know that I have written some documents that could really help with precisely what you are trying to do: http://code.google.com/p/classcomm/wiki/CreateFromScratch Then you can demo my application and learn about deploying a Django based project for prod use here:

Re: Pinax: worth installing?

2011-01-21 Thread Jason
Yeah, I've done it both ways for my projects. I just assumed that in this case it would auto load data if they are calling it 'ready to use'. Pretty minor complaint on my part really. And if after I loaded the data everything worked fine, I wouldn't have brought it up in the first place. On Jan

Re: Pinax: worth installing?

2011-01-21 Thread Mike Ramirez
On Friday, January 21, 2011 09:25:52 am Mike Ramirez wrote: > nor does it or should it load the test data. > My mistake on this part, it does if the data is named initial_data.[xml|json] but this is a feature I don't use or see used often myself. Mike -- The more laws and order are made

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-21 Thread scabbage
I tried the following: 1. Change everything to use POST 2. Do $ curl -d "name=Bob=926ab8c4fca858fdf0c441784687d402" http://localhost:8000/demo/test/ But I'm still getting the same CSRF error. Not sure why. Also, the token seems to stay the same after restarting the server. Is this

Re: Pinax: worth installing?

2011-01-21 Thread Mike Ramirez
On Friday, January 21, 2011 09:12:11 am Jason wrote: > I manually import the data using - > loaddata (I assumed this would have been done automatically during > syncdb but that's OK). syncdb[1] does not work this way. It's meant to do one thing and one thing only. Take new models and convert

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-21 Thread scabbage
That's what I'm looking for. Thanks :) On Jan 20, 4:32 pm, Russell Keith-Magee wrote: > On Fri, Jan 21, 2011 at 4:40 AM, scabbage wrote: > > How do I include CSRF token in a curl request then? I use curl for > > debugging. Cannot seem to find any

Re: Pinax: worth installing?

2011-01-21 Thread Jason
I can't go into too much more detail since I pretty quickly gave up on it. Basically here's a summary of my experience: I've known about Pinax for some time now and decided I might try it out a base for my next Django project. The computer I normally use at work is Windows XP. I have a

Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Jason
http://virtualboxes.org/images/debian/ Download a ready to use Debian image here. Make sure you know how to use VirtualBox. On Jan 21, 8:08 am, Mike Ramirez wrote: > On Friday, January 21, 2011 07:00:51 am Steven Elliott Jr wrote: > > > > he is not doing dual boot - he is

Re: Current Django 1.3 Alpha 2 Documentation as PDF

2011-01-21 Thread ckar...@googlemail.com
Updated to Rev. 15257: Udjango-trunk/docs/internals/contributing.txt Udjango-trunk/docs/howto/static-files.txt Udjango-trunk/docs/howto/initial-data.txt Udjango-trunk/docs/topics/http/middleware.txt Udjango-trunk/docs/topics/auth.txt Udjango-trunk/docs/topics/cache.txt U

Re: Django Email

2011-01-21 Thread Shawn Milochik
http://docs.djangoproject.com/en/dev/topics/email/#the-emailmessage-class http://docs.djangoproject.com/en/dev/topics/email/#sending-multiple-e-mails -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Mike Ramirez
On Friday, January 21, 2011 07:00:51 am Steven Elliott Jr wrote: > > he is not doing dual boot - he is running linux under windows! > >Right, which I think is horrible and usually very slow as well; it might > be better to install the Linux OS on a separate partition on the computer. > I

Re: DjangoAMF status

2011-01-21 Thread martinpajuste
In addition to the PyAMF, Flashticle , amfast , Plasma. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django Email

2011-01-21 Thread Tom Evans
On Fri, Jan 21, 2011 at 3:28 PM, hank23 wrote: > OK what exactly is django-mailer? > http://lmgtfy.com/?q=django-mailer HTH Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: templates - pulling child templates

2011-01-21 Thread Tom Evans
On Fri, Jan 21, 2011 at 2:59 PM, km wrote: > Hi all, > > The docs say we can have multiple child templates extending the parent > template. But then how to render multiple  child templates in one call ? > > regards, > KM > I don't think the docs say that. Each call to

Re: Django Email

2011-01-21 Thread Anurag Chourasia
Googling for django-mailer gets me to this page http://code.google.com/p/django-mailer/ Regards, Anurag On Fri, Jan 21, 2011 at 8:58 PM, hank23 wrote: > OK what exactly is django-mailer? > > On Jan 19, 4:32 pm, Eduardo Cereto

Re: Django Email

2011-01-21 Thread hank23
OK what exactly is django-mailer? On Jan 19, 4:32 pm, Eduardo Cereto Carvalho wrote: > django-mailer[1] is a nice application to have around if you're planning to > send too much emails. It queues messages and retry failled attempts. > > [1] > > > > > > On Wed, Jan 19,

Re: Django Email

2011-01-21 Thread hank23
OK. Any idea if there's a good django coding example somewhere showing basic settings for sending email, how to setup the smtp connection so I can use it to send multiple messages if desired, without having to get a new connection for each message, etc.? On Jan 19, 4:09 pm, Shawn Milochik

Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Steven Elliott Jr
> > > While I am sure we can all sympathize with confronting a technical problem > that we don't understand, this OP has the flavor of trolling perhaps. At any > rate this is the wrong list for these pleadings. I don't even see a question You're so right; I don't know why I am wasting my

Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Joel Goldstick
On Fri, Jan 21, 2011 at 10:00 AM, Steven Elliott Jr wrote: > > > he is not doing dual boot - he is running linux under windows! > >Right, which I think is horrible and usually very slow as well; it might > be better to > install the Linux OS on a separate partition on the

Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Steven Elliott Jr
> he is not doing dual boot - he is running linux under windows! Right, which I think is horrible and usually very slow as well; it might be better to install the Linux OS on a separate partition on the computer. I personally hate running anything in a virtual machine. I'd rather

Re: templates - pulling child templates

2011-01-21 Thread km
Hi all, The docs say we can have multiple child templates extending the parent template. But then how to render multiple child templates in one call ? regards, KM On Fri, Jan 21, 2011 at 8:14 PM, km wrote: > > Hi all, > > On Fri, Jan 21, 2011 at 6:03 PM, Daniel

Re: templates - pulling child templates

2011-01-21 Thread km
Hi all, On Fri, Jan 21, 2011 at 6:03 PM, Daniel Roseman wrote: > On Friday, January 21, 2011 12:08:57 PM UTC, km wrote: >> >> Hi all, >> >> I am trying to display a parent django template (base.html) with a view >> function called "base" like this: >> >> def

Re: how create an action in admin for single object?

2011-01-21 Thread Ivo Brodien
> In your solution, how do you redirect from the view to the admin? > > HttpResponseRedirect(request.get_full_path()) > and > HttpResponseRedirect(request.META.get(‘HTTP_REFERER’) > > both redirect me to the action_view url not the admin page i came from. I see my mistake. the referrer is the

Re: how create an action in admin for single object?

2011-01-21 Thread Ivo Brodien
> > I usually do this by setting up a method to return an HTML link to a custom > admin page, referencing that in the list_display tuple: > > class MyModelAdmin(admin.ModelAdmin): > list_display = ('name', 'action_link') > > def action_link(self, obj): > return

Re: how create an action in admin for single object?

2011-01-21 Thread Daniel Roseman
On Friday, January 21, 2011 1:03:12 PM UTC, Ivo Brodien wrote: > > How can I create an action for an object in the change list? > > At the moment, I created an admin action with an intermediate page and I am > only selecting on object, but that is not nice and too complicated for the > workflow.

how create an action in admin for single object?

2011-01-21 Thread Ivo Brodien
How can I create an action for an object in the change list? At the moment, I created an admin action with an intermediate page and I am only selecting on object, but that is not nice and too complicated for the workflow. I thought the way to go would be to put a little form inside the

Re: Server side Python API with PHP

2011-01-21 Thread Daniel Roseman
On Friday, January 21, 2011 11:51:04 AM UTC, SleepyCal wrote: > > Yeah, but this is for server side only, so the internal webapps can talk to > each other. > > I guess the main question is, would a message queuing systems (such as > rabbitmq) combined with AMQP be more appropriate for these

Re: templates - pulling child templates

2011-01-21 Thread Daniel Roseman
On Friday, January 21, 2011 12:08:57 PM UTC, km wrote: > > Hi all, > > I am trying to display a parent django template (base.html) with a view > function called "base" like this: > > def base(request): >return render_to_response('base.html') > > The base.html gets displayed in the

Re: templates - pulling child templates

2011-01-21 Thread David De La Harpe Golden
On 21/01/11 12:08, km wrote: > Hi all, > > I am trying to display a parent django template (base.html) with a view > function called "base" like this: > > def base(request): >return render_to_response('base.html') > > The base.html gets displayed in the browser(firefox 3.x) but the child

Re: templates - pulling child templates

2011-01-21 Thread Tom Evans
On Fri, Jan 21, 2011 at 12:08 PM, km wrote: > Hi all, > > I am trying to display a  parent django template (base.html) with a view > function called "base" like this: > > def base(request): >    return render_to_response('base.html') > > The base.html gets displayed in

templates - pulling child templates

2011-01-21 Thread km
Hi all, I am trying to display a parent django template (base.html) with a view function called "base" like this: def base(request): return render_to_response('base.html') The base.html gets displayed in the browser(firefox 3.x) but the child html pages, holding content details, which

GeoDjango admin and data reprojection

2011-01-21 Thread Luca Casagrande
Hello everybody, I have simple model defined like this: class point(models.Model): geom = models.PointField(srid='3004') object = models.GeoManager() In PostGIS spatial_ref_sys table and in proj's epsg file I changed the proj string adding the +towgs84 parameters to have a better

Re: Server side Python API with PHP

2011-01-21 Thread Cal Leeming [Simplicity Media Ltd]
Yeah, but this is for server side only, so the internal webapps can talk to each other. I guess the main question is, would a message queuing systems (such as rabbitmq) combined with AMQP be more appropriate for these sorts of tasks? The webapps themselves need to respond within 0.5 - 1.0

Re: Server side Python API with PHP

2011-01-21 Thread Kenneth Gonsalves
On Fri, 2011-01-21 at 11:32 +, Cal Leeming [Simplicity Media Ltd] wrote: > So, I have put some thought into writing the core library functions in > Python, then exposing an API which PHP can query per request. sounds like what facebook is doing -- regards KG http://lawgon.livejournal.com

Server side Python API with PHP

2011-01-21 Thread Cal Leeming [Simplicity Media Ltd]
Hey all, I am in the process of migrating a significant amount of PHP code to Python, however many of the sites still need to run in PHP, which means we'd end up having to maintain two separate frameworks. So, I have put some thought into writing the core library functions in Python, then

Re: question update: django auto filling some data based on model attribute

2011-01-21 Thread Tom Evans
On Thu, Jan 20, 2011 at 3:55 PM, Mo Mughrabi wrote: > Any one? please, I been researching since yesterday > http://stackoverflow.com/questions/4725685/django-auto-filling-some-data-based-on-model-attribute > I don't mean to be obvious here, but the simple answer is to

Re: Mongo - testing

2011-01-21 Thread Konrad Delong
On 20 January 2011 22:26, Andrew Marder wrote: > Has anyone had any luck setting up testing databases with mongo? Right > now I'm using pymongo in a single app, and I thought it would be cool > if in that app I could see if my code was being tested and in that > case I

Re: Installing Django on Linux-Derbian using virtualBox on Windows 7 Machine

2011-01-21 Thread Celso González
On Fri, Jan 21, 2011 at 07:10:25AM +0530, Kenneth Gonsalves wrote: > On Thu, 2011-01-20 at 22:58 +0100, Ivo Brodien wrote: > > > But in order to do that, don't I need to have the Django source file > > somewhere in my computer/ or in my case. > > > > apt-get gets packages from the internet. > >