Hello people,
On my dev box I'm having problems using the MEDIA_URL. I'm running the
development server with the 'not-recommended' hack for serving static
files, and I believe MEDIA_URL and MEDIA_PATH are correct (similar
config work fine on production).
Mind you, files get uploaded and saved v
Hello,
I know many before me have asked about making a dynamic
limit_choices_to tag. So far, I've had no luck (note to Aidas:
couldn't make your solution work!).
Anyway, I'm thinking on doing it the old school way, which is creating
arrays of JS objects with the relationships between 2
objects,
I tried to put this list on the wiki but i can't create the page
because the wiki seems to think I'm a spammer. I assume it's because
it's mostly links but i tried to upload it in sections and it seems
like I've been blacklisted. Any help?
--~--~-~--~~~---~--~~
Yo
OK, I fixed it, by defining a 'computed' method that returns the int
value in str form. So silly!
def prva_registracija_mm_str (self):
return str(self.prva_registracija_mm)
Ohwell :-)
On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> Forgot to say, I have the same l
No, it does NOT work for me.
Finally I found a reason.
I use old Django version and I must use
get_gallery() and not gallery.Similarly
get_created() and not created,
so
wanted_user =
photos.get_object(id__exact='3').get_gallery().get_created()
--~--~-~--~~~---~--~
Adrian Holovaty wrote:
> From the looks of that traceback, you're using the "postgresql"
> backend rather than the "postgresql_psycopg2" backend. To use Django
> with psycopg2, make sure your DATABASE_ENGINE setting is set to
> 'postgresql_psycopg2'.
True, problem fixed.
Thanks Adrian,
Lorenzo
Check this out.
http://code.djangoproject.com/wiki/NewbieMistakes
Cheers,
/Paul
--~--~-~--~~~---~--~~
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.
I´m trying to send an email to the user for activating his/her account:
right now it has the form /activate-account/?passwordhash×tamp-
of-date-joined
any better ideas?
thanks,
patrick
Am 17.07.2006 um 19:21 schrieb patrickk:
>
> thanks, I did use do_html2python ... but for the wrong manipula
Hi Sasha,
On Tue, 2006-07-18 at 06:26 +, sasha wrote:
> I'm sorry this is the method I've been trying to use
>
> def previous(request, picture_id):
> artist_id =
> Picture.objects.select_related().get(id=picture_id).artist_id
> try:
> previous_picture_id =
> Picture
The Washington City Paper needs a Web Programmer to helm the technical
rebirth of the alt newsweekly on the Web. Your job would be to help
rethink and rebuild the site and site architecture, publish newspaper
content on the Web weekly, produce Web-based projects daily, and
rebuild and update inter
Thanks Paul! My problem exactly!On 7/18/06, Paul Childs <[EMAIL PROTECTED]> wrote:
Check this out.http://code.djangoproject.com/wiki/NewbieMistakesCheers,/Paul-- Александр ВладимирскийОаклэнд, Калифорния
--~--~-~--~~~---~--~~
You received this message because you are
Great collection. :-)
Will it be more informational if there is one line of summary for
each tutorial?
- Cheng
On Jul 18, 2006, at 3:34 AM, [EMAIL PROTECTED] wrote:
>
> Hi all,
>
> I put together a compilation of 30 Django tutorials. They're mostly
> from the community page but I think it's n
next problem with my user registration process:
how do I send the password to registered users after they confirmed
their registration?
the process should look like this:
1. registration
2. email confirmation
3. account activation & email with username and password
4. now the user can log in
s
On 7/18/06, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote:
> since the password is stored encrypted, I´m not sure how to send it.
There isn't any way to get at the 'raw' password once it's been
encrypted; you'll need to work around this by emailing the password
before it's encrypted, or by h
I'm having a similar issue. Here's a summary of my model.
class Encyclopedie(models.Model):
titre = models.CharField(maxlength=100, unique=True)
index = models.ForeignKey("Page", related_name="index_set",
blank=True, null=True)
class Page(models.Model):
encyclopedie = mod
Hello,
I have an error with a model and would like to know if it is something
impossible to do in Django or should be considered a bug...
I modeled a rudimentary inventory system : I have Hosts and Persons
responsible for them (Admin class omitted).
class Person(models.Model):
name =
Take a look at this page for a start:http://www.djangoproject.com/documentation/models/m2o_recursive2/It's for one-to-many, but it might work...CoreyOn Jul 18, 2006, at 3:20 PM, Guillaume Pratte wrote:Hello,I have an error with a model and would like to know if it is something impossible to do in D
>Wound up just copying the admin media directories into my media
>directory. Pipe up if there's a better way ...
Instead of copying, you can use a symbolic link to the media files:
If the httpd.conf had:
alias /media/ /home2/rp/webapps/django/media_files/media
the link would be similar to:
I have models for baked goods and their ingredients, imaginatively
named BakedGoods and Ingredients. I need to save the order of the
ingredients for purposes of making informative labels. So, there's a
third model, LabelIngredients, that is described by:
baked_good = models.ForeignKey( Ba
Actually, for a further while I'm at it, is there a way to add class:
collapse to the M2M field?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
Hi there,
iam building a mutlilingual site and i maybe wrong but LocaleMiddleware
primarily seems to be made to offer translated content solely based on
cooky, accept-language http header, etc.. but in the end it all seems
to result in different content for the same url.
What i would like to hav
Forgive me if I'm mis-understanding you here, but to sort the select box
of your ingredients you can add an 'ordering' to your ingredients model,
like so...
class Ingredient(models.Model)
name = models.CharField()
...
class Meta:
ordering = ['name']
Which will sort the Ingre
On 7/18/06, Guillaume Pratte <[EMAIL PROTECTED]> wrote:
> Is there a way around?
The problem is that if you don't specify the 'related_name' argument
for the foreign keys, the API wil default to calling both of them
'person'. And since you can't have two different things being
'host.person', it e
On 7/18/06, littleswo <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> iam building a mutlilingual site and i maybe wrong but LocaleMiddleware
> primarily seems to be made to offer translated content solely based on
> cooky, accept-language http header, etc.. but in the end it all seems
> to result in
thanks james ... your answer leads to more questions:
1. so what do you do when a user forgot his password? you obviously
can´t email it, so you have to set a new one. that seems a little
complicated (for the user).
2. the user should set his own password, I agree. but that doesn´t
mean, I´
This seems indeed to be the solution!
class Host(models.Model):
[...]
person_in_charge = models.ForeignKey(Person,
related_name='hosts_in_primary_charge_set')
backup_person = models.ForeignKey(Person,
related_name='hosts_in_secondary_charge_set')
Thanks.
Le mardi 18 j
Thanks Waylan,
that should solve my problems.
Regards,
littleswo
--~--~-~--~~~---~--~~
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
It's considered bad practice to keep a user's password anywhere on your
server in plain view. Many users use the same password across multiple
systems, and if your server was ever compromised, the attacker would
then have emails, usernames and passwords for a lot of different people
(dependin
On Jul 17, 2006, at 10:43 AM, Todd O'Bryan wrote:
> Would anyone object to a patch for FormFields that would allow a (by-
> default None) keyword argument for display_name. Validator error
> messages would be updated to use the display_name if it's defined, or
> the field_name, if not.
>
> I thin
On 7/18/06, patrickk <[EMAIL PROTECTED]> wrote:
> 1. so what do you do when a user forgot his password? you obviously
> can´t email it, so you have to set a new one. that seems a little
> complicated (for the user).
Check out the PasswordResetForm, a manipulator defined in
django.contrib.auth.for
On 7/18/06, James Bennett <[EMAIL PROTECTED]> wrote:
> My personal preference is never to send the password over the wire
> when there's not an extremely compelling reason to. So, if it were me,
> I wouldn't send the password.
(but please note that's just me personally; the PasswordResetForm
mani
Hello djangoers,
I'm new to Django and very excited about it. I've build a browsing tool
for my legacy database.
I have a question. I'd like to write a Python script that would be
executed on the server and do some work with the data, using Django
database API. Just like in manage.py shell, but
Most systems do, if they don't send the password, they send a time
sensitive link (randomly generated and hard to guess) that will take the
user to a password change form where s/he gets to enter a new one.
James Bennett wrote:
> (but please note that's just me personally; the PasswordResetForm
I have three tables: pubs, routes, and addresses, there is a
hierarchical relation ship between them:
one pub has many routes which in turn has many addresses.
Simplified models:
class Publication(models.Model):
code = models.CharField(blank=True, maxlength=10, unique=True)
name = model
thanks james, jay ...
I do see your arguments. it´s just a litte bit frustrating ...
building the website using django was damn fast. now i´m stuck with
the registration process ... it already took me twice as long as
building the actual website. it´d be cool to have some kind of "best
pr
Nope, you understood just fine. I was trying to order it in the M2Mi
model.
Thanks for the assist!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-u
Fixed, but not understood...
Another post suggested that the order of the class declaration inside
models.py was important, so I changed mine to reflect that. Order
became Ingredients, BakedGoods, LabelIngredients.
Also based on reading that post, I changed the LabelIngredients class
to:
On Tue, 2006-07-18 at 22:52 +0200, Maciej Bliziński wrote:
> I already checked the documentation for manage.py, but it doesn't
> mention anything about executing a script.
Magus- from #django @ Freenode provided a solution:
import sys,os
sys.path.append('/path/to/root/of/django/projects/')
os.en
Here's the code used in the Tutorial example for collapsing in the admin
interface:
class Admin:
fields = (
(None, {'fields': ('question',)}),
('Date information', {'fields': ('pub_date',), 'classes': 'collapse'}),
)
http://www.djangoproject.com/documentation/tutorial2/
"Maciej Blizinski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>On Tue, 2006-07-18 at 22:52 +0200, Maciej Blizinski wrote:
>> I already checked the documentation for manage.py, but it doesn't
>> mention anything about executing a script.
>
>Magus- from #django @ Freenode provided
Carlos Yoder wrote:
> Hello there,
>
> I'm currently developing my first app on Django, and it happens to be
> in Slovenia, land in which the beautiful Slovenian language is spoken.
>
> In this language, the rules of pluralization go very crazy, as the
> following example (for the word for 'dolp
On 7/19/06, Maciej Bliziński <
[EMAIL PROTECTED]> wrote:
I already checked the documentation for manage.py, but it doesn'tmention anything about executing a script.Sorry - nothing like that is in place at the moment. Other replies on this thread have shown two other alternatives; a third alternativ
Yep, but that doesn't work for intermediary tables, because the field
isn't BakedGoods.ingredient, it's LabelIngredients.ingredient_id. Or if
it does work, it has to reference a different table somehow.
I tried adding all that to the intermediary table, but nothing seemed
to have any effect.
la
As an interesting aside, the following portion of the class
LabelIngredients *does* seem to have an effect:
class Meta:
verbose_name = 'Label Ingredient'
ordering = [ 'order' ]
So the ordering is at least possible!
--~--~-~--~~~-
Here's how I did it for a similar situation I had.
class MyCategory(models.Model):
category = models.CharField(maxlength=50)
parent_category = models.ForeignKey('self', blank=True,
null=True, related_name='sub_categories')
def all_items(self):
data = list(self.ite
On 18-Jul-06, at 9:20 PM, va:patrick.kranzlmueller wrote:
>
> next problem with my user registration process:
> how do I send the password to registered users after they confirmed
> their registration?
>
> the process should look like this:
> 1. registration
> 2. email confirmation
> 3. account
I do something similar to Kenneth.the other approach is to use something like OpenID, and make it somebody else's problem.On 19/07/2006, at 3:16 PM, Kenneth Gonsalves wrote:On 18-Jul-06, at 9:20 PM, va:patrick.kranzlmueller wrote: next problem with my user registration process:how do I send the pas
> For full i18n pluralization use:
>
> (from http://www.djangoproject.com/documentation/i18n/#pluralization)
> [
> {% blocktrans count list|counted as counter %}
> There is only one {{ name }} object.
> {% plural %}
> There are {{ counter }} {{ name }} objects.
> {% endblocktrans %}
> ]
>
> And in
48 matches
Mail list logo