Re: Deploying Django on a server with mod_userdir

2010-05-21 Thread Graham Dumpleton
On May 22, 2:37 pm, Benjamin Webber wrote: > It appears that Apache was not given permission to access the /home/ > username/django directory and write to the database. Fixing the > permissions fixed everything. BTW, strongly recommend you use mod_wsgi daemon mode,

[slightly OT] how to increase fcgi timeouts

2010-05-21 Thread Kenneth Gonsalves
hi this is slightly OT, but I have implemented nginx+fcgi and find that fcgi timesout after 40 seconds - and some of my queries run longer than that. I have searched the net for this, and find many complaints, but no solution. Has anyone on this list solved this problem. -- Regards Kenneth

Re: Deploying Django on a server with mod_userdir

2010-05-21 Thread Benjamin Webber
It appears that Apache was not given permission to access the /home/ username/django directory and write to the database. Fixing the permissions fixed everything. On May 21, 6:18 pm, Ben wrote: > Hi everyone, I'm just starting out with Django and really enjoying it. >

Re: submit form to the db table with ForeignKey value

2010-05-21 Thread Rolando Espinoza La Fuente
On Fri, May 21, 2010 at 6:59 PM, Goran wrote: [SNIP] > Region: >                    -- Region -- >                    {{ region }} >                    {% for reg in region %} >                        {{ reg }} >                    {% endfor %} >                     > > view

submit form to the db table with ForeignKey value

2010-05-21 Thread Goran
Hi, I'm novice with django and I use simple form with select option method. Options come from db and it works fine. When user submit form i have selected option as string and can not save it to db because this table is models.ForeighKey(AnotherTable) and I need ID of selected option to pass it to

Deploying Django on a server with mod_userdir

2010-05-21 Thread Ben
Hi everyone, I'm just starting out with Django and really enjoying it. For a project I am trying to install it on an Apache server at school with multiple users. The userdir module is enabled such that users can create their own websites. I'd like to allow some of these users to tinker with

Re: How can you include annotated results in a serialized QuerySet

2010-05-21 Thread ab3
Ok, I will use values() on the qs as an workaround for the problem. On May 21, 8:02 am, Russell Keith-Magee wrote: > On Fri, May 21, 2010 at 9:41 AM, Werner wrote: > > Hello, > > > How can you include annotated results in a serialized QuerySet? > >

How to save links in the TextField

2010-05-21 Thread nameless
I have a simple Blog model with a TextField. What is the best way to save links in the TextField ? 1) Saving link in the database in this form: http://www.example.com and then using some filter in the template to trasform it in form: http://www.example.com>http://www.example.com 2) Saving

Re: Django for desktop application

2010-05-21 Thread Baurzhan Ismagulov
On Wed, May 19, 2010 at 03:51:54PM -0700, Ahmed Salem wrote: > now i found dijango but i ask about can it conected with jython and > perform desktop app Perhaps it could for some definitions of "desktop app", although this wouldn't be my first choice. With kind regards, -- Baurzhan Ismagulov

custom m2m through model

2010-05-21 Thread Rolando Espinoza La Fuente
Hi, we faced this sceneraio: sql tables already generated: foo ( id int pk, name char ) bar ( id int pk, name char ) foo_bar (foo_id int, bar_id int) We turn into django models for read-only purposes: class Foo(...) name = CharField(...) bars = ManyToMany('Bar', through='FooBar')

Line continuation in block tag?

2010-05-21 Thread Thomas Allen
Is that possible in a Django template? If my tag spans more than one line, it is rendered as plaintext. Thomas -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe

Re: Looking for a Django Developer

2010-05-21 Thread Andy McKay
On 2010-05-21, at 9:49 AM, Tom X. Tobin wrote: > Job postings are perfectly relevant for django-users. (Although > follow-up replies to job postings should be handled via private email, > and not on-list.) > > By the way, djangogigs is not free; it costs $145 to post a job listing there.

Re: how template tag extends works

2010-05-21 Thread Brendan Smith
i don't know for sure the exact answer of whether or not your include is cached, someone more intimate with core would know better than i... but, i would recommend making your own template tag for doing this ( http://docs.djangoproject.com/en/dev/howto/custom-template-tags/) On Fri, May 21,

Re: how template tag extends works

2010-05-21 Thread paul
On May 21, 12:46 am, Marcus Carlsson wrote: > Does example.html print the data in `item` and if so, why not make the > loop in example.html and just use include one time in your "main" > template? > > Concerning your actual question. Even if it's cached it seems like

Re: Looking for a Django Developer

2010-05-21 Thread Tom X. Tobin
On Fri, May 21, 2010 at 11:40 AM, Juan Hernandez wrote: > why don't we talk about our lives in this lists? > PLEASE! > Tis is a technical list... use djangogigs instead!!! Job postings are perfectly relevant for django-users. (Although follow-up replies to job

Re: Looking for a Django Developer

2010-05-21 Thread Juan Hernandez
why don't we talk about our lives in this lists? PLEASE! Tis is a technical list... use djangogigs instead!!! On Fri, May 21, 2010 at 12:16 PM, Kashif Ali wrote: > Hi, > > I am interested. I am a python django developer working from last 2 year > almost for an

Re: Looking for a Django Developer

2010-05-21 Thread Kashif Ali
Hi, I am interested. I am a python django developer working from last 2 year almost for an American company devpond.com for the development of their indoor used applications. We have one commercial application too that you can see here (http://www.devpond.com/vscontrol/) and more coming soon. I

The Onion wants you! (If you're a front-end developer, that is.)

2010-05-21 Thread Tom X. Tobin
The Onion is looking for a front-end web developer to join our web technology team; the position is based in our Chicago office. We're looking for someone who: - is a religious fanatic about semantic markup and clean styling. - is comfortable working with templating languages. (In our case,

Re: Reload WSGI per request?

2010-05-21 Thread VWAllen
Thanks, Matt and Graham, this looks perfect, I'll give it a shot. V -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: hyperlinks within admin interface

2010-05-21 Thread urukay
I did something similar in my project. Here is part of my admin.py class InvoiceAdmin(admin.ModelAdmin): def get_urls(self): urls = super(InvoiceAdmin, self).get_urls() my_urls = patterns('', url(r'^admin/invoice/view/(?P\d+)/$',

hyperlinks within admin interface

2010-05-21 Thread Ben
Is it possible to mess with the __unicode__ method of a model to enable a model instance to return a link to itself when viewed within the admin interface? What I want is for there to be a link on an item in an inline which takes the user to it's own edit page. For example, I have a Survey system

Re: Django Sphinx Foreign key search

2010-05-21 Thread urukay
Well, still trying to solve it...maybe i found the right way to do it, but it's still in progress. If anything shows up, i'll keep you updated. Hopefully this during few days i'll solve it. Radovan yafeng wu wrote: > > Hi, > > I got the same problem when building my website. Have you solved

Re: Django Sphinx Foreign key search

2010-05-21 Thread urukay
I need to search over Model1, but the query should "look" also in Model2 if there is a match aand if there is, it returns Model1 which has relation with Model2 which contains searched string. But i'll take look at Haystack, maybe it'll be better for my needs. Thanks a lot. David De La Harpe

Using new messages framework within built-in admin ?

2010-05-21 Thread Nicolas Steinmetz
Hi, For some actions I made from the Django built-in admin, I would like to improve the user experience with a better distinction between sucess & error messages. With Django 1.1.x, I used to use Model admin actions [1] with statements like : modeladmin.message_user(request, "%s

Re: how template tag extends works

2010-05-21 Thread Marcus Carlsson
Does example.html print the data in `item` and if so, why not make the loop in example.html and just use include one time in your "main" template? Concerning your actual question. Even if it's cached it seems like bad practice to me so I would avoid using this method but without more info about

FileField url not quoted in admin interface.

2010-05-21 Thread J.Y. Hsu
I guess this is another "limitation" of Admin Interface? I have a Model with FileField, I uploaded a file with non-latin chars in filename. And the admin didn't to use urllib.quote_plus to quote the filename as my web server (apache) do. So, Anywhere I can activate/hack out this feature?

Problem with editing UserProfile through the admin interface.

2010-05-21 Thread Anatoliy Guts
Hello. I have problem with editing UserProfile through the admin interface. I have such classes: class UserProfile(models.Model): user = models.OneToOneField(User) credits = models.PositiveIntegerField() class ModelProfile(UserProfile): description =

Re: Reorder fields in tabular admin inline

2010-05-21 Thread Dirk Eschler
Hello Danfi, thanks alot for your reply. I've just found another solution using a custom form for the inline like this: from django.forms import ModelForm from django.contrib.contenttypes import generic class BarInlineForm(ModelForm): class Meta: model = Bar fields =

Re: How to pass the data submitted in 1 page to the next page?

2010-05-21 Thread ravi krishna
Thanks for ur reply Ankit. But its not working. Can u please tell me the steps in details On Fri, May 21, 2010 at 3:08 PM, ankit rai wrote: > > > On Fri, May 21, 2010 at 3:06 PM, ankit rai wrote: > >> Make two separate views for handling the page.Enter

Re: How to pass the data submitted in 1 page to the next page?

2010-05-21 Thread ankit rai
On Fri, May 21, 2010 at 3:06 PM, ankit rai wrote: > Make two separate views for handling the page.Enter the data in page one > and pass it as a query param or post method. In your *url.py* mapped the > second page and pass the param in post or get method > > > # url.py > >

Re: How to pass the data submitted in 1 page to the next page?

2010-05-21 Thread ankit rai
Make two separate views for handling the page.Enter the data in page one and pass it as a query param or post method. In your *url.py* mapped the second page and pass the param in post or get method # url.py (r'^admin/xyz/(?P[a-zA-Z0-9-]+)$','xyz.views.myView'), view.py def

How to pass the data submitted in 1 page to the next page?

2010-05-21 Thread ravi krishna
Hi, I have 2 pages. My first page has a form( simple html form) with 3 fields.I want to display the data entered in first page ,to second page. I am a beginner with Django framework, Somebody please help me to solve this. I will post my 'VIEW' n 'html file for the first page ' here. VIEW: def

Re: Reorder fields in tabular admin inline

2010-05-21 Thread Danfi
use filedsets can dispaly them in that way , but it looks differently from django.contrib import admin from models import * class BarAdmin(admin.ModelAdmin): fieldsets = [ (None, { 'classes': ('field3',), 'fields': ['field3'] }), (None, {

Re: SCORM(Sharable Content Object Reference Model) Compliant for Django?

2010-05-21 Thread Zeal
Hi, Ryan, You mentioned that SCORM is supported in your system, could you tell me more about how do you integrate SCORM compliant with your Django Application? Do you just use PyAmf and Flex to handle that? Thanks a lot! Regards, Zeal Hua -- You received this message because you are

Re: Problems with url encoding

2010-05-21 Thread Danfi
maybe you lack of "?"before {{slug_plataform}} Return to list On 5月20日, 上午10时25分, Caumons wrote: > Hi everybody. > > I am having problems with the urlencoding. I explain. In a template I > have the following code: > > class="link">Return to list > > In the view I pass the

Re: is it possible ?

2010-05-21 Thread Danfi
ChangeList is in the file /python**/Lib/site-packages/django/contrib/ admin/views/main.py ,and we use ModelAdmin so change_view function can direct to be used. On 5月21日, 下午2时08分, rahul jain wrote: > Hi Danfi, > > Thanks for your quick response. But can you explain a

Re: how template tag extends works

2010-05-21 Thread paul
sorry -- I made a mistake -- I meant include instead of extends :-p {% for item in items %} {% include "example.html" %} {% endfor %} does example.html get opened for every iteration of the loop, or just at the first iteration, and then perhaps cached? On May 21, 12:36 am, paul

how template tag extends works

2010-05-21 Thread paul
hi -- given this example template: {% for item in items %} {% extends "example.html" %} {% endfor %} When this block is evaluated during template rendering, does the file "example.html" get opened for every iteration of the loop, or might the contents of "example.html" get cached the first

Re: is it possible ?

2010-05-21 Thread rahul jain
Hi Danfi, Thanks for your quick response. But can you explain a little more how can we connect ChangeList class with that function change_view. Confuse about it. --RJ 2010/5/20 Danfi : > In Auth group you can create a group and set the limits. > > see different panel maybe

Re: How can you include annotated results in a serialized QuerySet

2010-05-21 Thread Russell Keith-Magee
On Fri, May 21, 2010 at 9:41 AM, Werner wrote: > Hello, > > How can you include annotated results in a serialized QuerySet? > > I have this serialized query: > serializers.serialize('json', >