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,
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
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.
>
On Fri, May 21, 2010 at 6:59 PM, Goran wrote:
[SNIP]
> Region:
> -- Region --
> {{ region }}
> {% for reg in region %}
> {{ reg }}
> {% endfor %}
>
>
> view
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
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
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?
>
>
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
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
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')
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
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.
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,
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
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
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
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 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,
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
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+)/$',
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
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
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
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
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
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?
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 =
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 =
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
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
>
>
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
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
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, {
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
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
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
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
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
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
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',
>
40 matches
Mail list logo