Hello,
I created a website, using the IPN-Function.
Everything worked fine at first - the notification view was called and
the signal was sent.
But now (without any changes on the code), the IPN-Request from PayPAL
doesn't call the IPN-view anymore. The Request is logged in the apache
access-log bu
Is there anyway to access the request object from a generic view?
Specifically, I'd like to access the request.user object. I tried
doing it as follows:
(r'^$', 'django.views.generic.simple.direct_to_template', {'template':
'index.html', 'extra_context' : {'request' : request}}
hoping that the dic
On Wed, 2010-09-08 at 18:46 -0700, maroxe wrote:
> I want to use it later like this: RESOURCE_RENDERER'video' I cannot
> assign directly the function name(eg video_player) because it lives in
> a module that needs settings.py
>
> Any idea?
check out getattr()
--
regards
Kenneth Gonsalves
--
Y
Lance,
I wouldn't worry too much about having empty fields vs an extra table
in your database. I think having data models that are easy to work
with is far more important than making sure you don't have fields that
are empty some time. I wouldn't worry at all about a field that is
empty a lot. I w
I wonder any one is conneting Sybase ASE using pyodbc in Django? Any
wrapper available for that? Any solution?
Currently there are:
- sqlany-django (http://code.google.com/p/sqlany-django/) for Sybase
SQL Anywhere and not Sybase ASE
- django-pyodbc (http://code.google.com/p/django-pyodbc/) for MS
Hi, I am trying to understand an other magic thing about django: it
can convert strings to modules. In settings.py, INSTALLED_APPS is
declared like that:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
)
All it contains is strings. Bu
On the many to many field,
Great info, I'll look into those.
On combining the fields,
'Thumbs' is really Thumbnail images of 'Images'.
However, not all 'Images' have 'Thumbs'
Thinking that 3 possibly blank fields in 'Images' is more efficient
than 9 fields in a different table for each actual
On Sep 8, 5:56 pm, Bradley Hintze wrote:
> This is what I have in my please_wait.html
>
> src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js";>
> $.getJSON('{% url run_DHM %}')});
>
>
I
The Django team has just issued Django 1.2.2 to deal with a reported
security issue. Full details are available in the blog post:
http://www.djangoproject.com/weblog/2010/sep/08/security-release/
All users of Django 1.2 are urged to upgrade immediately.
--
"Bureaucrat Conrad, you are technicall
On Wed, 2010-09-08 at 08:53 -0500, RadicalEd wrote:
> Hi all, I've done a project to start 100% with Django, everything work
> perfectly in development with python manage.py runserver , the program
> work
> very well, like it has to, yesterday I finally could configure the
> server
> with Apache wi
Hi.
Being quite new in django,
I have a task to integrate data from multiple databases.
And I wonder if django-1.2 multibase capabilities can help me in that.
The idea is like that:
class PersonModel(Model):
id = AutoKey(primary_key=True)
system = ForeignKey(SystemUsers, blank=Tru
On Wed, Sep 8, 2010 at 17:42, Kenneth Gonsalves wrote:
> On Wed, 2010-09-08 at 00:32 -0700, hemi19 wrote:
>> Iam new to the django and i want know how can i translate my site
>> language
>> according to the country or any language. suppose if my user selects
>> chinese
>> language then the site sh
Do you have it in the urls.py file?
Would be best to paste it into pastebin or here if it's few lines only
zalun
On 09/08/10 23:56, Bradley Hintze wrote:
> This is what I have in my please_wait.html
>
> src="
This is what I have in my please_wait.html
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js";>
$.getJSON('{% url run_DHM %}')
});
This is the django error
Caught NoReverseMatch while rendering: Reverse for 'run_DHM' with
arguments '()' and keyword arguments '{}' not found.
run
I created a library to address this kind of problems :
http://code.google.com/p/django-cube/
It bases the aggregation on a multidimensional view of your data (a
cube), so basically you can group_by in any way you want ("any way you
want" = "on all the dimensions that you want", so you have to decl
On 8 September 2010 22:15, maroxe wrote:
> Hi, There is something i don't get in django template system. I have a
> FileField in my model called myfile. If i pass an instance of my model
> to a template, i can access file.size (this is an example). Form where
> this variable 'size' come from?? it'
On 8 syys, 22:50, Heribert wrote:
> hi everyone,
>
> first of all: I'm totally new to django. I did the tutorial and now I
> want to go beyond what I've learnt there ... and write a simple app to
> manage all my projects in some kind of a archive.
> whenever I create a new project via the admin vi
Hi, There is something i don't get in django template system. I have a
FileField in my model called myfile. If i pass an instance of my model
to a template, i can access file.size (this is an example). Form where
this variable 'size' come from?? it's not part of the FileField class
as far as i know
Hi, In my models I want to have an optional field to a foreign key. I
tried this:
field = models.ForeignKey(MyModel, null=True, blank=True,
default=None)
But i am getting this error:
model.mymodel_id may not be NULL
i am using sqlite edit: if it can help, here is the exception
location:
cheers :D
2010/9/8 akaariai
> On 8 syys, 19:26, Bachir wrote:
> > This is an example:
> >
> > class UploadItem(models.Model):
> > file = models.FileField(upload_to=UploadItem.get_directory)
> >
> > class Meta:
> > abstract = True
> >
> > # I want videos to be storred in 'videos
hi everyone,
first of all: I'm totally new to django. I did the tutorial and now I
want to go beyond what I've learnt there ... and write a simple app to
manage all my projects in some kind of a archive.
whenever I create a new project via the admin view, a directory with
the name of the project i
On 8 syys, 19:26, Bachir wrote:
> This is an example:
>
> class UploadItem(models.Model):
> file = models.FileField(upload_to=UploadItem.get_directory)
>
> class Meta:
> abstract = True
>
> # I want videos to be storred in 'videos/' directory
> class Video(UploadItem):
> def ge
> EE.filter(dd__ppdd__user=2).distinct()
it work. The problem was mine. I must to put in the query the
"related_name" not the model name.
Thanks.
--
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...
with something like this:
my_query = PPDD.objects.select_related('dd__ee').filter(user=2)
can works,but i need do a distinct clause over the rows of "ee" , How
can I do that?
DD.objects.select_related('dd__ee').filter(user=2).distinct() don't
works, because this query pick all the columns,if i ca
I don't know of a web interface like that. But you might want to
checkout Fabric (www.fabfile.org) and Silverlining
(www.cloudsilverlining.org).
On Sep 8, 4:02 am, Mike Dewhirst wrote:
> A perl, C and C++ colleague is leaning towards python/django and needs
> an app roughly equivalent to Webmin.
This is an example:
class UploadItem(models.Model):
file = models.FileField(upload_to=UploadItem.get_directory)
class Meta:
abstract = True
# I want videos to be storred in 'videos/' directory
class Video(UploadItem):
def get_directory(self, instance, filename):
retur
OK, i got that.
Now my problem: I have an abstract class UploadItem that defines a field
called file like this:
self.file = models.FileField(upload_to=upload_to)
As you can see, in each child class, i have to call parent init method with
appropriate upload_to variable(say 'videos' for Video model).
http://tinyurl.com/2crk7rf
--
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
django-users+unsubscr...@googlegroups.com.
For more opt
Thanks Alexandre.
I put built a table from the good work of Justin Quick.
Find it at http://tinyurl.com/2crk7rf
On Sep 7, 3:09 pm, Alexandre González wrote:
> I'm using this snippet:
>
> http://djangosnippets.org/snippets/1494/
>
> I hope that this works for you!
>
>
>
>
>
> On Mon, Sep 6, 2010
with that query I got an error: "Cannot resolve keyword 'dd' into
field. Choices (the EE model fields)", because "EE" don't have a
foreign key to "DD", DD have an foreign key to "EE".
With "PPDD.objects.select_related().filter(user=2)" works, but that's
not the idea, because the query can grow
On Sep 7, 5:10 pm, Phlip wrote:
> [...]
>
> How do I get Ajax errors to print a simple exception trace to STDOUT,
> instead of going through all that baloney?
>
Firebug can display these Ajax errors quite easily and give you a lot
more information.
-BN
--
You received this message because you
On Sep 8, 3:25 pm, refreegrata wrote:
> Hello list, I have question. With this model:
> -
> 1) class EE(Persona):
> .
> 2) class DD(models.Model):
> ee_id = models.ForeignKey(EE)
>
> 3) The User table
>
> 4) class PPDD
On Wed, Sep 8, 2010 at 12:51 AM, Don wrote:
> I need to create a query that aggregates values by the year of a date
> field. I have not been able to discover a way to do this yet, perhaps
> someone can help. I can issue the following raw query, which gives the
> results I want:
>
> cursor.execute(
Lance,
Regarding the many to many field that shows too many images:
I've used this project with some success in the past:
http://code.google.com/p/django-ajax-filtered-fields/
They allow you to setup some ajax filtering for the field, which can
make it a lot easier to find what you are looking fo
Hello list, I have question. With this model:
-
1) class EE(Persona):
.
2) class DD(models.Model):
ee_id = models.ForeignKey(EE)
3) The User table
4) class PPDD(models.Model):
user_id = models.ForeignKey(User)
I think Firebug can help with this. If you open the "Net" tab, you can
see the ajax requests. Then click on the ajax request that errored. I
think you can look at the exception in html down in the firebug
window, or possibly click open in new tab to see it bigger. I'm not
doing it right now, so my
Reading CSV with Python, see:
http://www.linuxjournal.com/content/handling-csv-files-python
I'm not sure you need a dictionary view as well (?) - the above
tutorial shows how tuples are created, which may be sufficient for
your needs.
Working through a Django tutorial, or the first part of The Dj
Hi all, I've done a project to start 100% with Django, everything work
perfectly in development with python manage.py runserver , the program work
very well, like it has to, yesterday I finally could configure the server
with Apache with this manual
http://www.howtoforge.com/installing-django-on-de
Dnia 08-09-2010 o 15:41:13 Goran napisał(a):
Thanks for your help but I think that understand how template works.
My menu is drop down menu with menu items which comes from variable
{{ for menuitem in myvariable }}
{{ menuitem.title }}
{{ endfor }}
and myvariable is in my view:
myvariable = It
Thanks for your help but I think that understand how template works.
My menu is drop down menu with menu items which comes from variable
{{ for menuitem in myvariable }}
{{ menuitem.title }}
{{ endfor }}
and myvariable is in my view:
myvariable = Item.objects.all()
So if I extend base.html menu i
On 07/09/10 20:56, ranjan.kumar wrote
> forms.FileField(upload_to='some_dir/')
>
> The error message that i'm getting is: init() got an unexpected
> keyword argument ‘upload_to’
>
You're confusing forms.FileField [1] and models.FileField [2]
The latter is the one that takes the upload_to
Hi everyone,
I've found in documentation usage of custom file storage. There it is
like that (
http://docs.djangoproject.com/en/1.2/topics/files/#the-built-in-filesystem-storage-class
) -
from django.db import models
from django.core.files.storage import FileSystemStorage
fs = FileSystemStorage
Hi,
Does anyone know how to get the error message in the form template
when the user fails of check the terms of service form field when
using RegistrationFormTermsOfService ? The form returns due to
validation but I don't get the error message in
{{ form.tos.errors }} . Any ideas? Is it anything
This helps?
Test
function dothis ( var1, var2 ) {
if ( console !== undefined ) {
console.log ( var1 + " : " + var2 );
}
else {
alert ( var1 + " : " + var2 );
}
}
Have setup django-simple-friends,
adn can pass url to add/block/delete friends easily:
http://127.0.0.1:8000/friends/add/jim/
http://127.0.0.1:8000/friends/block/jim/
http://127.0.0.1:8000/friends/list/admin/
I have the friend list template setup but don't know what variables to
pick up from vi
Hi Béres,
many thanks for your quick response.
I am using Django 1.2.1.
I have been wondering whether I am experiencing this problem because
Installation -> CitlData is actually a one-to-many relationship and
values().annotate() cannot deal with that. However, this would be
strange since this is
Hi I'm sorry to post this question which is related to javascript because I
don't get early response from javascript forum
I don't know how to pass parameters to a function which is called when I
click
I tried this but it doesn't work
function details(id_application, id_server)
{
tableau
On 8 sep, 08:20, pk wrote:
> In my template, I have:
>
> Read More
> »
>
> I'm seeing that the url generated via the url template tag is, eg:
>
> http://mydomain.com/mysite/param0val/param1val/param2val/
>
(snip)
> My urls.py contains:
>
> (r'^(?P\w+)/(?P(\w|-)+)/(?P\d+)(-(\w+))*/
> $', 'myapp
A perl, C and C++ colleague is leaning towards python/django and needs
an app roughly equivalent to Webmin.
Does anyone know of some django-ish thing for him to look at?
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to
On Wed, 2010-09-08 at 00:32 -0700, hemi19 wrote:
> Iam new to the django and i want know how can i translate my site
> language
> according to the country or any language. suppose if my user selects
> chinese
> language then the site should be showed in chinese language or my user
> selects japane
In my template, I have:
Read More
»
I'm seeing that the url generated via the url template tag is, eg:
http://mydomain.com/mysite/param0val/param1val/param2val/
'mysite' is the project directory created via, eg, "django-admin.py
startproject mysite"; I don't want it to be part of the generate
Hi,
the way I understand the tagging module is:
you can have 2 tag fields for the model book, but they would
lead into the same cloud - and I need 2 seperated clouds for
one model.
So far I think the only solution for this is to have a 2. model
with a 1:1 relation to the model book
Someone a bet
Hi All,
Iam new to the django and i want know how can i translate my site language
according to the country or any language. suppose if my user selects chinese
language then the site should be showed in chinese language or my user
selects japanese site should show me japanese language (all the
On 8 sep, 04:13, maroxe wrote:
> Hi, When using Model class like this:
>
> class MyModel(models.Model):
> def __init__(self, *args, **kwargs):
> self.myfield = models.Field()
> super(MyModel, self).__init__(*args, **kwargs)
> It doesn't take into consideration myfield(in the ad
Hi
If anyone is using the app django-adminhelp (
http://github.com/semente/django-adminhelp) please contact me.
Thanks
Derek
--
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
55 matches
Mail list logo