add"self"
2008/4/14, Malcolm Tredinnick <[EMAIL PROTECTED]>:
>
>
>
> On Sun, 2008-04-13 at 22:04 -0700, Brandon Taylor wrote:
> > Hello everyone,
> >
> > I'm pretty new to Django, so please bear with me.
> >
> > When I'm defining a model, and I want to return a value to use in the
> > admin
Hi,
I am going through the tutorial and have come to Decoupling the
URLconfs @ http://www.djangoproject.com/documentation/tutorial03/
When I decouple the page at http://192.168.0.101:8000/polls/ just
gives me a "It Worked!" welcome page. I've attached my urls.py configs
Thanks for your help,
How to use dojo toolkit in django project?
Where to store the dojo toolkit in the project and how to use them in
the html page?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Yes, so thats fair enough - it just means that maybe MAYBE the dj
script is being called - but when i access it via www.gfdfdf.com/admin/
it gives me a 404
On Apr 11, 4:28 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Fri, Apr 11, 2008 at 9:28 AM, Aldo <[EMAIL PROTECTED]> wrote:
>
> > Fair
I just installed MacPorts as instructed with X11 and XCode 3.0 on OSX
version 10.5.2 MacBook and I'm not finding the usual .bash_profile
or .profile and therefore get this error.
Thanks for any help,
Jason
--~--~-~--~~~---~--~~
You received this message because
Uhmm and this has what exactly to do with Django? ;-)
But in general, just add this to your ~/.profile (just create it if
you don't have it)
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/man:$MANPATH
export LD_LIBRARY_PATH=/opt/local/lib:$LD_LIBRARY_PATH
(among
El Sun, 13 Apr 2008 19:42:19 -0300
"Ramiro Morales" <[EMAIL PROTECTED]> escribió:
>
> On Sun, Apr 13, 2008 at 7:36 PM, Gonzalo Delgado
> <[EMAIL PROTECTED]> wrote:
> > Hi there, I'm trying to move my django projects to 0.97-pre (trunk). The
> > first error I get is this one (when trying to
On 14-Apr-08, at 12:43 PM, Duke wrote:
> How to use dojo toolkit in django project?
> Where to store the dojo toolkit in the project and how to use them in
> the html page?
http://www.djangoproject.com/documentation/serialization/
--
regards
kg
http://lawgon.livejournal.com
On 14-Apr-08, at 2:02 PM, Kenneth Gonsalves wrote:
>> How to use dojo toolkit in django project?
>> Where to store the dojo toolkit in the project and how to use them in
>> the html page?
>
> http://www.djangoproject.com/documentation/serialization/
sorry - that is for ajax. Use dojo in django
On Mon, Apr 14, 2008 at 2:13 AM, Duke <[EMAIL PROTECTED]> wrote:
> Where to store the dojo toolkit in the project
The same place you put all other CSS stylesheets, JavaScript, images
and other static files. Similarly, they will be served the same way.
There is specific documentation on how to
On 10 Apr., 09:49, jurian <[EMAIL PROTECTED]> wrote:
> Does anyone else think I should add a ticket request for this as a
> future feature?
Yes, please do. I can even contribute some code if that feature will
make it into django.
The only thing you need to do is specify a MEDIA_URL in your
On Fri, Apr 11, 2008 at 1:09 PM, andy baxter
<[EMAIL PROTECTED]> wrote:
> What /should/ be inside the project folder?
I often get severely flamed for saying this, but:
I very rarely have a "project folder". All it is is a place to stick a
settings file and a root URLConf module, both of which
On Mon, Apr 14, 2008 at 4:41 AM, fizban <[EMAIL PROTECTED]> wrote:
> In fact by default it only returns "object" (or the
> template_object_name name you pass), but I need it to return "year",
> "month" and "day" too. This is because in my *_detail.html template
> I'd have to keep on
Hello,
I'm trying to extend django.views.generic.date_based (specifically
object_detail). The goal is to make it return more context variables
(is that how they are called?) then it is supposed to return.
In fact by default it only returns "object" (or the
template_object_name name you pass),
On 14 Apr, 11:48, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 14, 2008 at 4:41 AM, fizban <[EMAIL PROTECTED]> wrote:
> > In fact by default it only returns "object" (or the
> > template_object_name name you pass), but I need it to return "year",
> > "month" and "day" too. This is
I mean: ok I can use the {% with %} tag, but why do I have to parse
some object's date (one or more time doesn't really matter) if the
view has those variables already set up (gets them from the urlconf)?
I don't know, it doesn't probably matter at all on performance, but
I'm used to avoid any
On Thu, Apr 10, 2008 at 2:49 AM, jurian <[EMAIL PROTECTED]> wrote:
> Does anyone else think I should add a ticket request for this as a
> future feature?
I'm ambivalent, but leaning toward "no". In my experience, it's very
rare to have media files that are truly coupled to a single specific
On 14 Apr., 11:45, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 10, 2008 at 2:49 AM, jurian <[EMAIL PROTECTED]> wrote:
> > Does anyone else think I should add a ticket request for this as a
> > future feature?
>
> I'm ambivalent, but leaning toward "no". In my experience, it's very
I've tried that method and make my own object list in the customized
change_list.html.
That REALLY duplicate a lot of works. Is it possible to add a hook
function (middleware?) just
before the change_list template being rendered? In that way, I might
be able to modify the
data before it is passed
On Mon, Apr 14, 2008 at 6:03 AM, Waldemar Kornewald
<[EMAIL PROTECTED]> wrote:
> I agree that you can't always reuse those media files, but why does
> that mean there shouldn't be an easy (automatic) way to serve media
> files?
Because Django should have nothing whatsoever to do with your
On Mon, 14 Apr 2008 00:13:35 -0700 (PDT)
Duke <[EMAIL PROTECTED]> wrote:
>
> How to use dojo toolkit in django project?
> Where to store the dojo toolkit in the project and how to use them in
> the html page?
>
http://code.djangoproject.com/wiki/AJAX/Dojo/RefactoredFormSubmit
Feel free to
On 14 Apr., 13:12, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 14, 2008 at 6:03 AM, Waldemar Kornewald
>
> <[EMAIL PROTECTED]> wrote:
> > I agree that you can't always reuse those media files, but why does
> > that mean there shouldn't be an easy (automatic) way to serve media
> >
REAL BRUTAL RAPE VIDEOS HERE.SEE IT AND ENJOY. ALL THE GIRLS WERE
SCREAM .BUT IT IS SWEAT.THE LINK IS BELOW
http://onlinemillionare.blogspot.com/
ENJOY HOW SWEET IT IS
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Dear Folks,
I wish to read an entire template into a string or at least use a
method in django.template that will output the template as a string.
Note I am not trying to render the template I am just trying to save
it in a string.
I hope you can help me in this request or at least point me in
Hi,
I'm using Fedora Core 4 and MySQL as my database for Django.
I installed mysql-python from here
http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/MySQL-python-1.2.0-1.i386.rpm
Then I run Django (the dev version - 0.97-pre-SVN-unknown) and it
tells me this :
nandu wrote:
Dear Folks,
I wish to read an entire template into a string or at least use a
method in django.template that will output the template as a string.
Note I am not trying to render the template I am just trying to save
it in a string.
I hope you can help me in this request or at
On Mon, 14 Apr 2008 00:13:35 -0700 (PDT)
Duke <[EMAIL PROTECTED]> wrote:
> Where to store the dojo toolkit in the project
You can avoid all of the static files issues with dojo by serving it
from AOL, like so:
http://o.aolcdn.com/dojo/1.1.0/
dojo/dojo.xd.js">
I'm doing it that way, both in
Hi,
Here is a link to technomobilequebec.com, a small computer services
and repair website.
This site is powered by a development snapshot of notmm (revision 674)
and also requires a modified Django tree.
Moreover, it uses FastCGI to communicate with Nginx, which makes
things
quite efficient
I cannot beleive it :o Video!
http://videoriporter.hu/vr/fs?content=/vr/player/1320/date/count
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Not render, just load.
I think `django.template.loader.find_template_source` can help
On Apr 14, 4:17 pm, Darryl Ross <[EMAIL PROTECTED]> wrote:
> nandu wrote:
> > Dear Folks,
>
> > I wish to read an entire template into a string or at least use a
> > method in django.template that will output
On Mon, Apr 14, 2008 at 3:03 AM, garazy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am going through the tutorial and have come to Decoupling the
> URLconfs @ http://www.djangoproject.com/documentation/tutorial03/
>
>
> When I decouple the page at http://192.168.0.101:8000/polls/ just
> gives me a
Big cheers and big thanks!
Has anyone tried merging qs-rf and nf-admin already?
MS
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi all,
I'm using a ModelForm with a ModelChoiceField. I need to set the
queryset of this field using a variable that's passed to the form
constructor. I couldn't declare the field in the class itself, because
I don't have access to the variable at the class level. How could I
fix this?
Bram
Hello,
I've got a little question about using sessions outside of a view. I'm
trying to implement a tag that keeps track of a certain variables that
have to be set into a session. Within the tag I don't have access to
the request object. According to the docs the SessionStore provides a
way of
On Mon, Apr 14, 2008 at 3:41 AM, Aldo <[EMAIL PROTECTED]> wrote:
> Yes, so thats fair enough - it just means that maybe MAYBE the dj
> script is being called - but when i access it via www.gfdfdf.com/admin/
> it gives me a 404
>
(You've switched from http://www.musicischarity.com to
On Mon, Apr 14, 2008 at 8:06 AM, martyn <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm using Fedora Core 4 and MySQL as my database for Django.
> I installed mysql-python from here
>
> http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/MySQL-python-1.2.0-1.i386.rpm
> Then I
Why don't you use the extra_context parameter to generic views? Or am I
misunderstanding what you are trying to do?
def myview(request):
context = dict()
context["my_custom_var"] = "wwgd"
return generic_view(request, extra_context = context, bla=blah,...)
--
Norman J. Harman Jr.
Hi all,
Ive been using Django for a while now, and there has been one page in
my application that has been running very slowly no matter what I do.
Im using Django 0.96.1.
The page in question renders approximately 8 tables, each with about
50 rows.
This does not seem like the kind of page that
The immediate solution is to download the source and compile. A
better solution, i.e. a prebuilt RPM, might be available from
somewhere, I haven't searched.
---Peter
On 4/14/08, martyn <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm using Fedora Core 4 and MySQL as my database for Django.
> I
Hi,
I'm following along in the book, and noticed that when "ordering" is
used in the Meta class (Chapter 5, page 77) it is a list. However,
later, when used in the Admin class (Chapter 6, page 91), it's a
tuple.
Testing it out, it seems to work okay either way, but I wondered if
there was a
Imagine:
from django.db import models
class Mtmfield(models.Model):
afield = models.TextField()
class Place(models.Model):
somefield = models.ManyToManyField(Mtmfield,
related_name='a_name_that_cant_have_conflicts')
class Meta:
abstract = True
class Restaurant(Place):
I recently translated Django on croatian language, it works like a
charm, but only on my computer? :) Today when I deployed application
to server, hr localization didn't worked. In settings.py I have 'hr'
just like I have at my home. Folder 'hr' is at right place, and, what
is very important,
Ok, I'll get the source from SVN, I think I'll have to get setup
tool.
I tried this solution on my computer, I needed "setuptool" because
installer is written in Python.
Thanks.
On 14 avr, 16:52, "Peter Herndon" <[EMAIL PROTECTED]> wrote:
> The immediate solution is to download the source and
There hasn't been any updates on the django-updates mailing list since
March 18. At the time, someone on IRC said they thought it was due to
the traffic from the sprint but that was a month ago. I am tracking
trunk with my projects and it was really convenient to get email
updates on trunk
On Mon, Apr 14, 2008 at 10:43 AM, John-Scott
<[EMAIL PROTECTED]> wrote:
> There hasn't been any updates on the django-updates mailing list since
> March 18. At the time, someone on IRC said they thought it was due to
> the traffic from the sprint but that was a month ago. I am tracking
>
I think this has largely been supplanted by empty & brosner's TWiD (This
Week in Django) podcast. They go over all of that stuff along with spiffy
interviews and whatnot. Its very neat stuff.
-justin
On Mon, Apr 14, 2008 at 11:43 AM, John-Scott <[EMAIL PROTECTED]>
wrote:
>
> There hasn't been
I have recently been working on the admin interface for a django
site. There is one model under an application that will only show up
if I set a user as a super user. I can assign them privileges to
create, change and delete these objects but they do not show up and
when I point the browser to
You could do something like this:
f = forms.form_for_model(modelname)
f.base_fields['fieldname'].queryset = (query_based_on_variable)
I automatically do this for a number of forms (to enforce role-based access)
by looping through the base fields:
get_form(model_type, r):
f =
Did you recompile your .po files on the server?
On Mon, 2008-04-14 at 17:31 +0200, Boris Ozegovic wrote:
> I recently translated Django on croatian language, it works like a
> charm, but only on my computer? :) Today when I deployed application
> to server, hr localization didn't worked. In
I have a form set up and all working, its basically straight out of
the Form Processing chapter of the django book:
class ContactForm(forms.Form):
email = forms.EmailField(required=True)
message = forms.CharField()
phone_number = forms.CharField()
def contact(request):
form =
On Apr 14, 11:45 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 14, 2008 at 10:43 AM, John-Scott
>
> <[EMAIL PROTECTED]> wrote:
> > There hasn't been any updates on the django-updates mailing list since
> > March 18. At the time, someone on IRC said they thought it was due to
>
On Mon, Apr 14, 2008 at 11:45 AM, James Bennett <[EMAIL PROTECTED]>
wrote:
>
> On Mon, Apr 14, 2008 at 10:43 AM, John-Scott
> <[EMAIL PROTECTED]> wrote:
> > There hasn't been any updates on the django-updates mailing list since
> > March 18. At the time, someone on IRC said they thought it was
To have successful web site you need
First you need to put your hand in good idea for your site
Than you need web page making software links to free download 4
webpage / html editors including front page 2003
How to chose your web hosting and get the best offers
Links to 5 email extracting +
On 14 Apr, 16:54, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Why don't you use the extra_context parameter to generic views? Or am I
> misunderstanding what you are trying to do?
>
> def myview(request):
> context = dict()
> context["my_custom_var"] = "wwgd"
> return
fizban wrote:
>
> On 14 Apr, 16:54, "Norman Harman" <[EMAIL PROTECTED]> wrote:
>
>> Why don't you use the extra_context parameter to generic views? Or am I
>> misunderstanding what you are trying to do?
>>
>> def myview(request):
>>context = dict()
>>context["my_custom_var"] = "wwgd"
I have a setup that I figured I could just crib off of the
User/Group/Permission code because the setup is basically identical, but
falling a bit short here (perhaps I'm just not looking at the right code).
I have three classes, As, Bs & Cs.
A has a M2M relationship with both B & C.
B has a M2M
Hi,
I'm getting the following error when using a direct_to_template view:
TypeError at /help/
direct_to_template() takes at least 2 non-keyword arguments (1 given)
I have the following code on my urls.py:
urlpatterns = patterns('django.views.generic.simple',
(r'^$', 'redirect_to', {'url':
On Mon, Apr 14, 2008 at 11:58 AM, e <[EMAIL PROTECTED]> wrote:
>
> I have a form set up and all working, its basically straight out of
> the Form Processing chapter of the django book:
>
> class ContactForm(forms.Form):
>email = forms.EmailField(required=True)
>message = forms.CharField()
On Mon, Apr 14, 2008 at 1:37 PM, Filipe Correia <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm getting the following error when using a direct_to_template view:
>
> TypeError at /help/
> direct_to_template() takes at least 2 non-keyword arguments (1 given)
>
> I have the following code on my urls.py:
Thanks! I was trying to use a + concatenator and it just wasn't happy.
Brandon
On Apr 14, 1:00 am, 1234 <[EMAIL PROTECTED]> wrote:
> add "self"
>
> 2008/4/14, Malcolm Tredinnick <[EMAIL PROTECTED]>:
>
>
>
> > On Sun, 2008-04-13 at 22:04 -0700, Brandon Taylor wrote:
> > > Hello everyone,
>
>
Jonathan,
I consider those to be utility libraries (unlikely to comprise your
entire app) and should be fine for use. You may want to document what
versions you will be using to package with your project/application so
that the judges can replicate.
Daniel
On Apr 13, 7:46 pm, Jonathan
On 14 Apr, 19:33, "Norman Harman" <[EMAIL PROTECTED]> wrote:
>
> myview should be in the views.py of your app. The urlpatterns above is
> pointing to some django views file. You shouldn't edit the django
> source if you can avoid it.
myview resides in views.py and I'm importing it correctly
Thank you. My eyes were repeatedly missing it, somehow :|
Cheers,
Filipe
On Apr 14, 7:21 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 14, 2008 at 1:37 PM, Filipe Correia <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm getting the following error when using a direct_to_template
Hi, all!
I am fairly new to Django, but I think I've looked rather thoroughly
at the available documentation, and couldn't come up with an answer,
so I'll ask here, and please forgive me if it's a FAQ.
I would like to do basically two things, both are related to the admin
views and to users.
How about:
a = A.objects.get(pk=1)
c = C.objects.filter(Q(a__exact = a) | Q(b__a__exact = a)).distinct()
hth,
-richard
On 4/14/08, Jeff Gentry <[EMAIL PROTECTED]> wrote:
>
>
> I have a setup that I figured I could just crib off of the
> User/Group/Permission code because the setup is
django version 0.96.1 on windows xp home.
error is caused by statement in view:
pdata = myfile.objects.filter(mmtype__eq="W")
where the model is:
mxt = (
('N", 'Narrow'),
('W', 'Wide'),
)
class Example(models.Model):
name=models.Charfield(maxlength=30)
try this
pdata = myfile.objects.filter(mmtype__exact="W")
hth,
-richard
On 4/14/08, Jaap <[EMAIL PROTECTED]> wrote:
>
>
> django version 0.96.1 on windows xp home.
>
> error is caused by statement in view:
> pdata = myfile.objects.filter(mmtype__eq="W")
>
> where the model is:
>
> mxt = (
>
I have 3 models: Magazine, Issue and Article.
Each Magazine has 1 or more Issues and each Issue has 1 or more
Articles.
Article has models.ForeignKey(Issue) and models.ForeignKey(Magazine).
Issue has models.ForeignKey(Magazine)).
In the admin, when creating a new article, I choose which Magazine
Thanks - that worked. I then tried
pdata=myfile.objects.filter(mmtype__in=["W", "X"])
and that worked too!
Question: where can I find the complete documentation of the filter
expressions? I've been reading a lot about Django and Python - and
don't know where to find this information in the pile
The help_text for my ManyToManyFields dissapears when I use
"filter_interface=models.HORIZONTAL" (or "=models.VERTICAL").
I figure that it's the JavaScript in the filter_interface, as the
help_text is there before the JavaScript modifies the field. Using
trunk.
Florin Niculescu a sustinut doua concerte, la inceputul lunii, la
Paris.
www.romaworld.ro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
This is where I would suggest you rethink your data model. Is there a
reason to link Article to both Issues and Magazine?
Why not something like:
Issues has FK (magazine) to Magazine
Articles has FK (issue) to Issues
Issues could be configured to return its magazine.title and
self.issue_number
http://www.djangoproject.com/documentation/db-api/#field-lookups
On Apr 14, 3:02 pm, Jaap <[EMAIL PROTECTED]> wrote:
> Thanks - that worked. I then tried
> pdata=myfile.objects.filter(mmtype__in=["W", "X"])
> and that worked too!
>
> Question: where can I find the complete documentation of the
Richard,
I see your point, but there could be many, many issues for each
magazine, and over a hundred magazines total, so I don't want to make
the users wade through a few thousand issues each time. I'd like to be
able to drill down, first pick a magazine, then one of its issues.
What I'm
On Mon, Apr 14, 2008 at 4:07 PM, Rodrigo Culagovski <[EMAIL PROTECTED]>
wrote:
> The help_text for my ManyToManyFields dissapears when I use
> "filter_interface=models.HORIZONTAL" (or "=models.VERTICAL").
> I figure that it's the JavaScript in the filter_interface, as the
> help_text is there
On 14 Apr, 20:43, fizban <[EMAIL PROTECTED]> wrote:
> So there must be something wrong in the way I pass data to myview
> (it's either year/month/day/slug/ or the queryset). The queryset
> itself, however is setup right because it works when I use
> 'object_detail' instead of myview. Same goes
OK, I seem to have found a way to achieve the first task, even though
it doesn't seem to be a rather elegant one. Here's the code that I
wrote for it:
from django.contrib.admin.views.main import change_list
def index(request):
# Copy the GET dict in order to modify it
g =
It sounds like what's lagging is the rendering - try saving the
rendered page as html, how long does Firefox/Firefox with Fasterfox
take to display that? You might also want to try with Fasterfox
disabled, some of its tweaks might be detrimental if you're querying a
server on the same machine.
AFAIK, Django accepts lists and tuples interchangeably (if
isinstance(xxx, (list, tuple)) allows for xxx to be either of the two)
in many cases.
On Apr 14, 11:22 am, Kevin Cole <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm following along in the book, and noticed that when "ordering" is
> used in the
The documentation on how the user can change the language of a page/
site (from: http://www.djangoproject.com/documentation/i18n/), in the
section "The set_language redirect view", gives the following code:
{% for lang in LANGUAGES %}
{{ lang.1 }}
{% endfor %}
This of course means the
On Apr 14, 8:42 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Not render, just load.
>
> I think `django.template.loader.find_template_source` can help
>
> On Apr 14, 4:17 pm, Darryl Ross <[EMAIL PROTECTED]> wrote:
Thank you for your reply.
I tried using
On Mon, 2008-04-14 at 04:04 -0700, Leon wrote:
> I've tried that method and make my own object list in the customized
> change_list.html.
> That REALLY duplicate a lot of works. Is it possible to add a hook
> function (middleware?) just
> before the change_list template being rendered?
You're
On Mon, 2008-04-14 at 08:23 -0700, Michael Newman wrote:
> Imagine:
>
> from django.db import models
>
> class Mtmfield(models.Model):
> afield = models.TextField()
>
> class Place(models.Model):
> somefield = models.ManyToManyField(Mtmfield,
>
On Mon, 2008-04-14 at 17:31 +0200, Boris Ozegovic wrote:
> I recently translated Django on croatian language, it works like a
> charm, but only on my computer? :) Today when I deployed application
> to server, hr localization didn't worked. In settings.py I have 'hr'
> just like I have at my
On Mon, 2008-04-14 at 08:22 -0700, Kevin Cole wrote:
> Hi,
>
> I'm following along in the book, and noticed that when "ordering" is
> used in the Meta class (Chapter 5, page 77) it is a list. However,
> later, when used in the Admin class (Chapter 6, page 91), it's a
> tuple.
Both work.
>
On Mon, 2008-04-14 at 17:03 -0700, Simon Tite wrote:
[...]
> However, instead of clicking on submit, I would prefer the user to
> click on just a regular link, so I nead to write something like..
>
>
> http://www.pointy-stick.com/blog/
--~--~-~--~~~---~--~~
Some of my project app's models have a DateTimeField where the value
is UTC while others have EDT/EST values. This is because I populate
some models (ie. a blog entry) via django-admin while other data is
populated via my flickr/del.icio.us accounts (via django-syncr ).
When displaying
I think I convoluted my case by putting that related_name in there. This
doesn't work without the related_name option too.
I was looking into it further and I realized that the problem with the
syncdb is the fact that m2m_db_table is the same on each inherited field.
Essentially this could be
I talked with a couple of folks at PyCon about using GeoDjango for my
app. I am working on getting all the pieces installed, but frankly, I
am completely overwhelmed by all the terminology.
My use case is this:
My app creates a trip which as a lat/lng pair as a starting point and
a lat/lng pair
Great. I'll wait for the newforms-admin branch integration.
Is there any document about this newforms-admin?
On Apr 15, 9:22 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-04-14 at 04:04 -0700, Leon wrote:
> > I've tried that method and make my own object list in the
On Mon, 2008-04-14 at 23:38 -0400, Michael wrote:
> I think I convoluted my case by putting that related_name in there.
> This doesn't work without the related_name option too.
>
> I was looking into it further and I realized that the problem with the
> syncdb is the fact that m2m_db_table is
I have a form where I want to do something like,
class SetDefaultForm(forms.Form):
topics = forms.ModelChoiceField()
def __init__(self, user):
super(SetDefaultForm, self).__init__()
self.fields['topics'].queryset = Topic.objects.filter(user)
This does not work, of
On Mon, 2008-04-14 at 20:50 -0700, Leon wrote:
> Great. I'll wait for the newforms-admin branch integration.
>
> Is there any document about this newforms-admin?
Django's wiki and documentation and things really are very
search-engine-friendly. :-)
Sure, just give the modelchoicefield Topic.objects.all() to start
with, as this will never actually get used.
On Apr 14, 11:14 pm, shabda <[EMAIL PROTECTED]> wrote:
> I have a form where I want to do something like,
>
> class SetDefaultForm(forms.Form):
> topics = forms.ModelChoiceField()
>
Hi,
I've stumbled on OrderingField in django.db.models.fields.
That looks very interesting to me but I could not find any example of
use, either in Django itself or on the web.
Do you know what it is, and how to use it?
Thanks a lot!
Julien
PS: Here's its code:
class
On Apr 15, 8:16 am, nandu <[EMAIL PROTECTED]> wrote:
> On Apr 14, 8:42 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
>
> > Not render, just load.
>
> > I think `django.template.loader.find_template_source` can help
>
> > On Apr 14, 4:17 pm, Darryl Ross <[EMAIL PROTECTED]> wrote:
>
> Thank you
96 matches
Mail list logo