No the URLs are different and storage on the filesystem is also
different.
E.g.
URL /public/js/.. are stored on /opt/public/htdocs
URL /common/js/.. are stored on /opt/common/htdocs
URL appl application /appl/js is stored on /opt/appl/htdocs/media/js/
(Django)
In the development case I can copy tha
On 21/05/2012 2:45pm, Mike Dewhirst wrote:
On 21/05/2012 1:57pm, Aditya Sriram M wrote:
I'd like to represent foreign key relationships inside the Admin
interface when there are multiple nested one-to-many relationships.
Provided you have the admin app enabled, in your admin.py in the same
di
On 21/05/2012 1:57pm, Aditya Sriram M wrote:
I'd like to represent foreign key relationships inside the Admin
interface when there are multiple nested one-to-many relationships.
Provided you have the admin app enabled, in your admin.py in the same
directory as your models.py file you need some
I too have a similar issue. Any workarounds to achieve this...
On Saturday, 16 December 2006 09:52:39 UTC+5:30, Dan wrote:
>
> I'd like to represent foreign key relationships inside the Admin
> interface when there are multiple nested one-to-many relationships.
> Here's a simple example model to d
Help please! :-|
On Saturday, 19 May 2012 18:31:05 UTC+5:30, Aditya Sriram M wrote:
>
> I have a function like this..
>
> list_display = (..,get_link_to_users, ..)
>
>def get_link_to_users(self, obj):
> html_table = ' href="JavaScript:window.open(''../user/?q=%s'');"> My Users ' %
> (
Hello,
I have two local repos. The only difference between them is their DBs.
I'm trying to copy some tables from one DB to another via XML-RPC and
serializers.
I call my XML-RPC method from the shell. It returns a str
(serializer). Then I'm trying to deserialize that string:
for x in serializers
>>
>Forget Django for the moment, and study "database normalization".
>
>Then consider that Django, so far as I know, adds a primary key
> field to each table (model). The main purpose of integer primary key
> fields IS to be used as the target of foreign key lookups.
I understand this
Hi, I have a Facebook app developed with Django. The developer
who originally created it is no longer available, and the app needs
some modifications. If you are interested in finding out more about
this project, please send me an email (beebau...@gmail.com). Try to include
something that indic
I have to be missing something simple. I cannot get the pubdate from
my blog entries to show up in a syndication feed. Here is my model
and feed class:
feeds.py
from django.contrib.syndication.views import Feed
from blog.models import Entry
from django.utils.feedgenerator import Rss201rev2Feed
Hi,
If you're really sure completely reinstalling django is the way to go,
what I do is perform a file system search with keyword "django" and
delete as needed
On 5/18/12, doniyor wrote:
> Hey guys,
>
> i am getting this error while trying the command: django-admin.py
> startproject test
>
> can
> But your model structure doesn't seem to make sense. Why have two ForeignKeys
> From Members to Intro? That means that a member could point to different
> entries for village and household number, which can't be right. The usual
> thing to do is to have a single FK, and access eg member.intr
On Sun, May 20, 2012 at 02:08:14AM -0700, Mike Manfrin wrote:
> Holy moly.
>
> Turns out I was typing django_admin.py when I needed to type django-
> admin.py.
>
> I am feeling a terribly strange mix of relief and stupidity right
> now.
Just a quick tip, to avoid such mistakes in the future, try
thanks Paul and DR, your solution worked. anyway now i have a problem with
the validation of that form (her's the view):
*def anagrafica_save(request):*
*if request.method == 'POST':*
*form = AnagraficaForm(request.POST)*
*if'idsogg' in request.POST:*
*soggetto = A
unique_together needs to be in the inner Meta class.
But your model structure doesn't seem to make sense. Why have two ForeignKeys
From Members to Intro? That means that a member could point to different
entries for village and household number, which can't be right. The usual thing
to do is t
unique_together needs to be in the inner Meta class.
But your model structure doesn't seem to make sense. Why have two ForeignKeys
From Members to Intro? That means that a member could point to different
entries for village and household number, which can't be right. The usual thing
to do is t
Yes it is. It practically provides you with a template, rather than a blank
canvas which is what you get with Django. If you follow their instructions
it will take you 5 minutes to see what you get. It gives you a functional
site.
What do you expect from it?
On 20 May 2012 13:04, yugal wrote:
I am new to django, and am trying to build a data-based app.
The models are as follows.
class Intro(models.Model)
Village = models.CharField(max_length=150)
HouseholdNumber = models.IntegerField()
Address = models.CharField(max_length=150)
unique_together = ('Village','HouseholdNumber')
class
I think you need self.fields[field_name] = your new field.
Paul
On May 20, 2012, at 7:49 AM, luke lukes wrote:
> Hi. already tried this way --> fields are instantiated
> () but are not
> rendered in the template...
>
> Il giorno domenica 20 maggio 2012 03:25:36 UTC+2, somecallitblues ha scr
I just start a django-fairy project for django 1.3.1 here:
https://github.com/goFrendiAsgard/django-fairy It is just a simple (but I
think useful) python script that can help django newbie to develop
everything faster. The basic idea is:
1. When you make a view, usually you will make respe
Holy moly.
Turns out I was typing django_admin.py when I needed to type django-
admin.py.
I am feeling a terribly strange mix of relief and stupidity right
now.
On May 20, 3:36 am, Mario Gudelj wrote:
> Hey Mike,
>
> If you go to Python shell and do "import django", do you get an error
> messag
I use openshift.
OpenShift is Red Hat's Cloud Computing Platform as a Service (PaaS)
offering. OpenShift is an application platform in the cloud where
application developers and teams can build, test, deploy, and run their
applications.
It's free and support many languages and databases!
See mor
On Sunday, 20 May 2012 12:49:28 UTC+1, luke lukes wrote:
>
> Hi. already tried this way --> fields are instantiated
> () but are not
> rendered in the template...
>
>>
>> You should be assigning your new fields to `self.fields['fieldname']`,
not `self.fieldname`.
--
DR.
--
You received this m
Il giorno domenica 20 maggio 2012 13:49:28 UTC+2, luke lukes ha scritto:
>
> Hi. already tried this way --> fields are instantiated
> () but are not
> rendered in the template...
>
> Il giorno domenica 20 maggio 2012 03:25:36 UTC+2, somecallitblues ha
> scritto:
>>
>> Hey Luke,
>>
>> I don't t
Hi. already tried this way --> fields are instantiated
() but are not
rendered in the template...
Il giorno domenica 20 maggio 2012 03:25:36 UTC+2, somecallitblues ha
scritto:
>
> Hey Luke,
>
> I don't think you need to return anything, especially not a super class.
>
> Try this http://dpaste.c
Hi Alireza
I know it's little bit late to answer, but i hope this works for you
I gist the fixed version of yours here => https://gist.github.com/2757572
All you have to do is just put your custom js in one
*$(function(){*
*// here*
*)};*
scope.
;)
On Sunday, May 20, 2012 2:08:21 PM UTC+4,
Hi
I have the following dummy java script file =>
https://gist.github.com/2757531 , that i used django.jQuery instead of
*$*selector, but it's not working.
Weird thing is when i manually write that js script at the chrome's console
it's works!
Thanks
--
You received this message because you
Ooo.. Nice.
Hmm.. I tried this but it failed? Can you pls correct me?
def queryset(self, request):
result = super(CustomerAdmin,
self).queryset(request).prefetch_related()
return result
and my 'display list' for customer admin is..
list_display = ('get_user_name')
where defini
27 matches
Mail list logo