Thanks everyone! This group is always so helpful and FAST!
I made a view.py file in the project root because I wanted to use data
from my apps to populate the home page. It worked great!
On Jul 6, 9:17 pm, "Milan Andric" <[EMAIL PROTECTED]> wrote:
> On Sun, Jul 6, 2008 at 10:52 PM, keegan3d <[EM
On Sun, Jul 6, 2008 at 3:12 PM, Molly <[EMAIL PROTECTED]> wrote:
>
> Millan,
>
> I'm doing this in dev environment with the built in webserver. No it's
> not a mod_python error.
>
> I'm using the static setup and I can get to it fine when I upload my
> photo.
> The problem is when I click the phot
On Jul 6, 3:53 pm, Christopher Clarke <[EMAIL PROTECTED]> wrote:
> class IssuerManaager(models.Manager):
>
> def with_aggs(self):
> from django.db import connection
> cursor=connection.cursor()
> cursor.execute("""
> select i.id,max(i.name), m.dateix AS
On Sun, Jul 6, 2008 at 5:53 PM, Christopher Clarke <[EMAIL PROTECTED]> wrote:
> Hi Guys
> I'm building a django based system for a company that monitors the mutuals
> funds industry
> We have Mutual Funds Companies (Issuer) who have one or more funds (Fund)
> and every month the funds submit a vo
On Sun, Jul 6, 2008 at 10:52 PM, keegan3d <[EMAIL PROTECTED]> wrote:
>
> Hey everyone,
>
> I am a little foggy on how I would go about making a home page, by
> that I mean the page that people see when they go to the main address:
> www.mysite.com.
>
> Should I make a "home page" app? or does djan
keegan3d wrote:
Hey everyone,
I am a little foggy on how I would go about making a home page, by
that I mean the page that people see when they go to the main address:
www.mysite.com.
Should I make a "home page" app? or does django have a way of dealing
with this?
Another solution would be f
Hey Dave,
Your homepage, or index view, is nothing more than a (r'^$', 'index',)
entry in your urlconfs, and an 'index' view somewhere in your codebase
(obviously it doesn't have to be called index). While I've got several
apps tied together for any one site, there's usually one app that's
Hey everyone,
I am a little foggy on how I would go about making a home page, by
that I mean the page that people see when they go to the main address:
www.mysite.com.
Should I make a "home page" app? or does django have a way of dealing
with this?
Thanks for the help!
-Dave
--~--~-~--
Oh, Fixed me, 404 (File not found!)
I was in situation like you, before. Some instruction or recipe assume you
have basic understanding of django.
There are a lot of django recipe assume that you put js or css under the
same place of admin media.
In this case, you don't need to configure media ur
Uh!! (Hits hand into forehead.) Yep, just including a template named
by a variable would have been much simpler.
However, it's all worked out nicely. Having seen just how easy it is
to write a custom template tag, I replaced the 'eval' tag with a
couple specialized tags, which render from anoth
On Thu, Jul 3, 2008 at 10:21 AM, antony_h <[EMAIL PROTECTED]> wrote:
>
> How could I repeat my 20 times?
> I've found how I can repeat it 5 times:
> {% for a in 12345|make_list %}
>
> {% endfor %}
> But it's not so great for e.g. a hundred
> Usage: my designer wants to test his layout and I don'
On Sun, Jul 6, 2008 at 12:05 AM, chefsmart <[EMAIL PROTECTED]> wrote:
>
> Does anyone know of a pluggable django ticketing app? Something like
> the apps used by webhosts for online support?
I have yet to see something available for Django that does
ticketing/issue tracking. But I may have misse
Many thanks for the help, Chatchai.
> Can you start web server and
> typehttp://localhost/usr/share/tinymce/www/tiny_mce.js
> and see if it return something rather than 400.
I get 404.
Here's url config:
urlpatterns = patterns('',
# Example:
# (r'^cms/', include('cms.foo.urls')),
On Sun, 2008-07-06 at 22:26 -0400, Michael Hrivnak wrote:
[...]
> The problem is that this is slow, I think because it's executing a new
> database query for each user. It's even worse because many objects in my
> data model have several many-ended relationships. Using 6 such getters on
> 10
I am using django 0.96.1 mostly for its database API on a large project. I
need to retrieve many-ended relationship data. For example, for every user,
I need to know what groups they are in. As expected, there is a many-to-many
relationship.
The code I've written will get a queryset of users
On Sun, 2008-07-06 at 13:44 -0700, Rob Hudson wrote:
> So if I understand correctly, you are saying make author a
> not-required field so is_valid() will validate to True. Then in my
> view do the commit=False on save, check if author is present and if
> not, set the default author, then call sa
Hi Guys
I'm building a django based system for a company that monitors the
mutuals funds industry
We have Mutual Funds Companies (Issuer) who have one or more funds
(Fund) and every month the funds submit a volume report
Here is a simplified version
class Issuer(models
You don't have to do the commit=False thing. You can check if author is
present in the clean() method, that will always be called.
On Sun, Jul 6, 2008 at 10:44 PM, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> So if I understand correctly, you are saying make author a
> not-required field so is_valid
Resolved.
A little black magic required:
http://www.zedkep.com/blog/index.php?/archives/85-Iterating-over-a-dictionary-in-Django-templates.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
ok, it's actually pretty complicated but I'll give you the specific
issue.
I'm making a dictionary of form fields, views.py:
form = RetailForm()
categories = ['Toys', 'Bird']
checkboxlist = {}
for category in categories:
num = 0
for field
If you only need to repeat a div-tag 20 times, and don't need any data from
any model, you could always do it with javascript.
Oscar
On Fri, Jul 4, 2008 at 6:07 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Create a 20-elemnt list inside your view and set it as a context
> variable?
>
>
So if I understand correctly, you are saying make author a
not-required field so is_valid() will validate to True. Then in my
view do the commit=False on save, check if author is present and if
not, set the default author, then call save(). Something like that?
On Sun, Jul 6, 2008 at 11:35 AM,
Millan,
I'm doing this in dev environment with the built in webserver. No it's
not a mod_python error.
I'm using the static setup and I can get to it fine when I upload my
photo.
The problem is when I click the photo it seems to be pointing to
somewhere else.
In my models:
=
I you want your data to be normalized, telephone_home char(9) should not
be an attribute of Person.
If mary is a Person you always can do:
mary.family.telephone_home to get her telephone_home.
Juanjo
--
mi blog: http://www.juanjoconti.com.ar
--~--~-~--~~~---~--~--
Hi,
I think in family class and person class.
I put in pseudocode:
Class Family
string name
telephon-home char(9)
Class Person
string name
string surname
telephone-home char(9)
mobile-phone char(9)
Every Person belongs to a Family.
How can I update Per
Thanks a lot,
Xan.
On Jun 25, 5:49 pm, Joel Bernstein <[EMAIL PROTECTED]> wrote:
> I don't suppose a CommaSeparatedIntegerField would work, would it?
>
> You'd lose some querying options that you'd have with a foreign key
> relationship, but that may not be important to you.
>
> On Jun 25, 10:37
Oh, `required=True` of course
On Jul 6, 10:31 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Field for `author` created with `required=False`. And `clean` method
> doesn't call `clean_author` if `author` data isn't present.
>
> On Jul 6, 10:14 pm, "Rob Hudson" <[EMAIL PROTECTED]> wrote:
>
> > Is
Field for `author` created with `required=False`. And `clean` method
doesn't call `clean_author` if `author` data isn't present.
On Jul 6, 10:14 pm, "Rob Hudson" <[EMAIL PROTECTED]> wrote:
> Is it possible to supply a clean_[fieldname] method to a ModelForm for
> custom validation rules like you
On Jul 5, 7:33 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> Having an exception
> for every possible response code is really overkill here, since it means
> you'll be raising status-code-related exceptions instead of more
> semantic ones.
Ah, makes sense.
> > * Shouldn't Django be consist
Is it possible to supply a clean_[fieldname] method to a ModelForm for
custom validation rules like you can with a normal Form? I've got a
form with an author column that maps to Django's User class. I want a
default to be set if none is given. I've tried many ways to
accomplish this and haven'
On Jul 6, 5:03 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> You're looking for ticket #6095. This is scheduled for inclusion in
> v1.0, so it should be in trunk in the near future.
Perfect, thanks!
--~--~-~--~~~---~--~~
You received this message because
First thing when you work with Java script is, make sure it is available. In
this case, where is your urls config.
>From these,
Can you start web server and type
http://localhost/usr/share/tinymce/www/tiny_mce.js
Hello,
I'm working through James Bennett's Practical Django Projects. Have brought up
the cms; would like to add Rich Text Editing, but the instructions in Bennet's
book don't seem to work for me.
Googling around, I find a number of recipes for adding RTE. Thought I try the
approach suggested
at HOME (developing) the urls (named urls) work fine. after I deploy
only the home page seams to have the urls right. the other pages the URL
templatetag returns no url.
kimus
On Fri, 2008-06-20 at 12:49 +0100, Kimus Linuxus wrote:
> this is very strange... changed some more templates (no chan
I think i've got it. Instead of putting this logic in a custom view I
should just override the change_view method of my custom ModelAdmin.
On Jul 6, 1:46 pm, Jan Rademaker <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm in the process of converting an app to nfa. In this app some
> models have their
On Sun, 2008-07-06 at 15:21 +0200, Florian Lindner wrote:
> Hello,
>
> how can I get an absolute URL including a hostname (e.g.
> http://www.example.org/dir/doc.html)
> in a template. I have an object which get_absolute_url I can use but
> what is the best way of getting the hostname in th
Hello,
how can I get an absolute URL including a hostname (e.g.
http://www.example.org/dir/doc.html)
in a template. I have an object which get_absolute_url I can use but
what is the best way of getting the hostname in the template?
Thanks,
Florian
--~--~-~--~~~---
On Jul 6, 12:13 pm, Aaron <[EMAIL PROTECTED]> wrote:
> So here's something really strange. I ran
>
> Python 2.5.2 (r252:60911, Jun 30 2008, 18:59:56)
> [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.>>>
> import sys
> >>> sys.path
Hi Alex,
Check out this: http://www.djangosnippets.org/snippets/414/
and this: http://www.djangosnippets.org/snippets/323/
On Sun, Jul 6, 2008 at 12:47 PM, Alex Rades <[EMAIL PROTECTED]> wrote:
> You mean this?
>
> http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIchangetheattributesforaw
oh yes, that makes sense! moved t.save() to just after its intialisation for
better overview.
thanks a lot, Malcolm
On Sun, Jul 6, 2008 at 2:01 PM, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
>
>
> On Sun, 2008-07-06 at 13:36 +0200, Andre Meyer wrote:
> [...]
> > >>> t = SimpleTask()
> > >>>
On Sun, 2008-07-06 at 13:36 +0200, Andre Meyer wrote:
[...]
> >>> t = SimpleTask()
> >>> t.title = 'first task'
> >>> t.done = False
> >>> n = SimpleNote()
> >>> n.title = 'first note'
> >>> n.text = "just some text for this note."
> >>> n.item = t
At this point, t hasnt' been saved, so it won't
On Sun, Jul 6, 2008 at 6:39 PM, Brandon Kelly <[EMAIL PROTECTED]> wrote:
>
> I'd like to store an additional field in my ManyToManyField's join
> table (a CharField, "notes"). I can think of a couple ways to go about
> this, but I'm wondering what the most Django-esque approach would be.
> Any sug
I'd like to store an additional field in my ManyToManyField's join
table (a CharField, "notes"). I can think of a couple ways to go about
this, but I'm wondering what the most Django-esque approach would be.
Any suggestions?
Thanks in advance!
--~--~-~--~~~---~--~
hi again
when looking at the database (sqlite, using SQLite Manager) i saw that the
field item_id in the simplenote table is NULL! after setting is manually to
the id of the task, task.notes.all() returns the correct non-empty list.
so, is this a bug in queryset-refactor or am i doing something w
Hello,
I'm in the process of converting an app to nfa. In this app some
models have their own change view. Some of these views fall-back to
using the standard amin view based on some condition; like this:
from django.contrib.admin.views.main import change_stage
def my_view(request, model_id):
hi all
so, i am trying to add notes to tasks in this simple model (using
newforms-admin 7844):
class SimpleItem(models.Model):
title = models.CharField(max_length=512)
class SimpleTask(SimpleItem):
done = models.BooleanField()
due = models.DateTimeField(null=True, blank=True)
class
You added an __init__ to your ModelForm class? If so, try this: add a
"fields" definition to your ModelForm's Meta class that includes this
new field. You can read more about it here:
http://www.djangoproject.com/documentation/modelforms/#using-a-subset-of-fields-on-the-form
On Jul 6, 5:35 am,
More cms and other apps are listed on http://djangoplugables.com/
On Jul 6, 1:45 pm, MiloZ <[EMAIL PROTECTED]> wrote:
> If you are searching for a simple cms, you can try
> this:http://code.google.com/p/django-simplecms/
>
> On Jul 5, 1:09 pm, Fernando Rodríguez <[EMAIL PROTECTED]> wrote:
>
> >
> > >> self.fields['short_name'] = forms.CharField(label='Short Name',
> > >> max_length=9)
>
> > This code would need to be added to an overridden __init__ in your
> > ModelForm.
I tried this, however it didnn't work. It seems like the form already
exists when __init__ is executed.
On Jul 3, 9
Hi,
I think it's a good idea for a new django project :-)
Another idea is using the database of a php soft like glpi, and let
inspectdb do the job.
On Jul 6, 7:05 am, chefsmart <[EMAIL PROTECTED]> wrote:
> Does anyone know of a pluggable django ticketing app? Something like
> the apps used by we
If you are searching for a simple cms, you can try this:
http://code.google.com/p/django-simplecms/
On Jul 5, 1:09 pm, Fernando Rodríguez <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there any open source django based cms you would recommend? Th
> eonlyone I've seen so far is PyLucid. What else is t
Scratch the locale-dependent idea, of course, but still...
On Jul 6, 1:05 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> Is this something that might belong in the humanize filters package?
> Either something like {{ quantity|currency }}, which takes the
> currency type from locale, if in u
52 matches
Mail list logo