I've been done my admin interface with TinyMCE. However, aftering
editing, I see words with HTML tags update to my website.
What's a good way to solve this?
Thank you!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
I've written a small project to upload and view images using a recent
development version of Django. In settings.py, I've defined
MEDIA_ROOT = join(PATH, 'media') # the full path to the media
subdirectory of my project directory
MEDIA_URL = '/media/'
I've created subdirectories /media/images in my
On Thu, Sep 15, 2011 at 09:43:57AM -0700, Tobia Conforto wrote:
> Hi all
>
> I'm adding an XML mapping feature to Django db models.
>
> The idea is to add as little XML mapping information as possible to existing
> models (such as: which fields get mapped to XML, what is their XPath...) in
> or
On Fri, Sep 16, 2011 at 11:28:33AM +0100, Tom Evans wrote:
> On Thu, Sep 15, 2011 at 5:02 PM, RedBaron wrote:
> > I am fairly new to Django and I think I pretty much get the basic idea
> > of ORM. However, there is a peculiar situation to which I do not see a
> > plausible solution. I have a legac
You could write a Python process that starts up a Socket Server and imports
all the Django stuff, just like the current server does for HTTP. Then
there's no need to "send the data to django". Might help:
http://docs.python.org/library/socketserver.html
On Mon, Sep 19, 2011 at 2:00 PM, Micke wro
Hi,
Im new to Django and need some help in the right direction.
I will create a socket server, that should recive raw udp data and put
it in a database. After that Django should present the data in a
customized view.
Is it possible to create the server in Django, like in the views file,
so it sta
On Sep 19, 9:51 pm, Andre Terra wrote:
> Have you considered using a cache/store backend like redis[1] instead of
> saving the result to the database?
I did not think of it, but the problem is that I need to use the value
in queries, filtering by several values of the model. How can I do
that if
Google+ is using OAuth2 pretty much like Facebook.
On Mon, Sep 19, 2011 at 10:24 PM, Javier Guerra Giraldez wrote:
> On Sun, Sep 18, 2011 at 1:17 PM, Subhranath Chunder
> wrote:
> > I've probably made the first attempt to integrate the Google+ with Django
> > authentication backend, in the for
On Sun, Sep 18, 2011 at 1:17 PM, Subhranath Chunder
wrote:
> I've probably made the first attempt to integrate the Google+ with Django
> authentication backend, in the form a pluggable Django app.
doesn't Google+ use oauth?
--
Javier
--
You received this message because you are subscribed to
Have you considered using a cache/store backend like redis[1] instead of
saving the result to the database?
Using this approach, you can write a custom model method for returning the
calculation, which can be called manually every time you need the result.
The key difference being that this method
Thank you Sebastien and Daniel for your replies.
Daniel, I am new to Django and Python which is why it's taking a while
to get used to it.
--
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@googleg
I want to save a calculated value to a model field. The calculation
takes a few seconds and I need to query by it, so I think the
denormalisation is justified.
The problem is that the calculation requires data from two related
models: one of which is the "through" model of a ManyToMany
relationshi
Sorry. The link for that project is
https://github.com/ecometrica/django-dbarray
Cheers,
Cliff
On Mon, 2011-09-19 at 11:15 -0400, J. Cliff Dyer wrote:
> You might want to look into django-dbarray on github. It seems to add
> support for postgresql array fields.
>
> I haven't used it before,
Do you work with Kabir Kukreti? He just asked the same question. Look
for my answer on that thread.
Cheers,
Cliff
On Mon, 2011-09-19 at 05:01 -0700, Arihant wrote:
> How can i store Postgress array types in Django models
>
--
You received this message because you are subscribed to the Goog
You might want to look into django-dbarray on github. It seems to add
support for postgresql array fields.
I haven't used it before, but it looks like you just need to do:
from django.db import model
import dbarray
class TestRun(models.Model):
function = models.CharField(m
On Monday, 19 September 2011 10:53:18 UTC+1, David wrote:
>
> Hi Daniel
>
> Having installed Django debug toolbar it looks like select_related is
> only performing one level of relation finding as opposed to following
> relationships through to their conclusion.
For the third time: select_rela
How can i store Postgress array types in Django models
--
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...@go
Hi
I have a legacy system, which uses Postgres array datatypes.We are
now migrating to Django, can any one suggest a method to get the array
types of Postgres in models.py ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Thanks all, lets see how much progress I can make in the next few
days, maybe finally commit some code to my github!
:P
On Mon, Sep 19, 2011 at 6:52 PM, Rajul Srivastava
wrote:
> Dear Alec,
>
> I would suggest that you learn Django first before you move on to Pinax,as
> Pinax is just a collectio
Le 19/09/2011 11:38, Daniel Roseman a écrit :
On Monday, 19 September 2011 10:29:17 UTC+1, David wrote:
Hi Daniel
Re: (2.)
company.purchase_set.all returns nothing in my template.
What happens when you try it in the shell?
Are you sure that you have any purchases for that company
Dear Alec,
I would suggest that you learn Django first before you move on to Pinax,as
Pinax is just a collection a number of commonly used Django apps. So you
must at least have a basic grasp of Django before you start with Pinax. Also
in the official documentation of Pinax, on the Getting Starte
Yes it has changed, but not so much that you can't follow tutorials.
On Mon, Sep 19, 2011 at 12:48 PM, Alec Taylor wrote:
> Adnan: Those tutorials seems 2-3 years old, has DJango changed
> significantly in those years?
>
> Deng: Thanks, I will do so :]
>
> --
> You received this message because
Adnan: Those tutorials seems 2-3 years old, has DJango changed significantly
in those years?
Deng: Thanks, I will do so :]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/ms
After reading the documentation again, and spending some time on
django-debug-toolbar, and watching the cookies in an Opera clean of
any other cookies, I believe we are running into a bug, and I filed a
ticket which you can see here:
https://code.djangoproject.com/ticket/16879
- Wim
On Sep 18, 7
OK I think I know why, and is this correct please?
class Company
class Person
class Purchase
Person is related to Company by a FK in Person called company. Class
Purchase is related to Person by a FK in Person called FK - not
company.
Therefore is it correct that Django's ORM only pursues comp
Even when specifying depth in the select_related line I cannot get
Django's ORM to look past one level below Company.
--
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 unsubscr
Hi Daniel
Having installed Django debug toolbar it looks like select_related is
only performing one level of relation finding as opposed to following
relationships through to their conclusion.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On Monday, 19 September 2011 10:29:17 UTC+1, David wrote:
>
> Hi Daniel
>
> Re: (2.)
>
> company.purchase_set.all returns nothing in my template.
>
What happens when you try it in the shell?
Are you sure that you have any purchases for that company?
> This is my select_related line:
>
> a
Hi Daniel
Re: (2.)
company.purchase_set.all returns nothing in my template.
This is my select_related line:
a = Company.objects.select_related().get(pk=pk)
Regarding your reply (1.) because there are no FK's in the company
table I had assumed that Django must be using reverse relations to
acce
On Monday, 19 September 2011 10:06:06 UTC+1, David wrote:
>
> Hello
>
> Can/does select_related traverse models in other installed apps? and
> if not, can it be?
>
> I have the following
>
> app1
> class company
> no FKs
>
> class person
> FK to company
>
> app2
> class purchase
> FK to
Hello
Can/does select_related traverse models in other installed apps? and
if not, can it be?
I have the following
app1
class company
no FKs
class person
FK to company
app2
class purchase
FK to person
I can access both company and person rendering like this in my
template:
company.person_set
31 matches
Mail list logo