On 12/10/06, Darin Lee <[EMAIL PROTECTED]> wrote:
> In the console, if I populate the Contest, the instance produces a
> "category_set" method/property (as expected and documented). However,
> if you "dir(c.category_set)" there is no "finalist_set" method/
> property in the category_set's namespac
When I input some text with newline characters in TextField under
admin page, I found that the newline character in database is
represented as \r\n. My django site is running at linux, other program
under linux always treat newline as \n. This cause some compatible
problems. How can I change the re
I'm toying around with converting my forms over to newforms and have
come across a problem which may be just user error.
I have a form:
class AddForm(Form):
flags = MultipleChoiceField(choices=[("A", "Aquatic"), ("C",
"Canopy")])
I have a view, which for the moment, is just trying to redisp
Hi All,
Just curious, does the Django Database API support nested
relationships more than one level deep? It's starting to look like it
doesn't... for example, let's say I have three tables: Contest,
Categories, and Finalists; related as such: Contest, Category foreign
keys to Contest, Fi
Sorry. Can't believe I forgot to mention that part!
The error was that theid could not be found in the database. Which made
no sense to me since I was trying to create a new user.
I was able to do this, however, after much experimentation:
new_user = user_profile.objects.create(user_id=the_user
On 12/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> new_profile = user_profile(user=some_user)
>
> but it gives me an error.
What error? Without seeing the exact error message, it's hard to debug ;)
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
I am having this exact issue. How does one instantiate a userprofile
object?
I've tried something like
new_profile = user_profile(user=some_user)
but it gives me an error.
I'm really not sure what to do, I follow the guide linked above but now
I'm stuck.
Thanks in advance.
-Dougal
On Dec 2,
I'm trying to create a simple invoice application where an Invoice has
(0..n) LineItems.
I've created form that contains a few entries for line items, and using
the standard AddManipulator I'm able to save a new invoice and its line
items to the database.
But I would like to add some code that p
One of the things I was hoping for in newforms but haven't found is a
way to do a composite form field that uses multiple elements
that reduce to a single python object. E.g.,
>>> class MyForm(Form):
... postdate = CompositeField(ChoiceField(choices=['Jan', ...]),
...
On Dec 9, 2006, at 10:56 AM, mezhaka wrote:
>
> try
> {% extends "/blog/base.html" %}
> instead of
> {% extends "/blog/base" %}
In addition, he should remove the leading '/' from the path in the
extends clause. If you code a leading slash, os.path.join() ignores
the template path.
Don
-
Hi Baurzhan,
On 12/10/06, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote:
> Hello Kai,
>
> On Sun, Dec 10, 2006 at 12:23:09AM +0100, Kai Kuehne wrote:
> > > {% extends "/blog/base" %}
> > Doesn't work.
>
> {% extends "blog/base.html" %} works for me.
Ok, it was the leading slash, thanks! :)
> Wi
Hello Kai,
On Sun, Dec 10, 2006 at 12:23:09AM +0100, Kai Kuehne wrote:
> > {% extends "/blog/base" %}
> Doesn't work.
{% extends "blog/base.html" %} works for me.
With kind regards,
--
Baurzhan Ismagulov
http://www.kz-easy.com/
--~--~-~--~~~---~--~~
You receiv
Sorry, forget to paste the blog/base.html. So, here it is:
{% load comments.comments %}
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>
My django blog: {% block title %}Generic Page{%
endblock %}
{% block extrahead %}{%
On Sat, Dec 09, 2006 at 03:03:15PM -0800, Snirp wrote:
> That does not work Baurzhan, still the same error.
>
> [C:\temp\mysite] has now been set in the following locations:
>
> - As a value of the system variable "DJANGO_SETTINGS_MODULE"
> - In sys.path
> - As a PYTHONPATH windows registry valu
Hi,
On 12/9/06, mezhaka <[EMAIL PROTECTED]> wrote:
>
> try
> {% extends "/blog/base.html" %}
> instead of
> {% extends "/blog/base" %}
Doesn't work.
Kai
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django user
That does not work Baurzhan, still the same error.
[C:\temp\mysite] has now been set in the following locations:
- As a value of the system variable "DJANGO_SETTINGS_MODULE"
- In sys.path
- As a PYTHONPATH windows registry value
None of this works.
--~--~-~--~~~---
Hello Anton,
On Sat, Dec 09, 2006 at 08:49:25PM +0200, Anton Daneika wrote:
> I tried entering a Cyrillic text for the poll question attribute, while
> playing with example polls application. This resulted in a bunch of question
> marks on the view page, instead of the expected "Как дела?" poll q
Hello Snirp,
On Sat, Dec 09, 2006 at 08:20:02AM -0800, Snirp wrote:
> environment variable DJANGO_SETTINGS_MODULE undefined
I assume mysite is the project you've created under c:\temp using
"django-admin.py startproject mysite". To use the shell, you need to
have the following environment variab
Well, i succeeded in importing the path into sys.path by making a
".PTH" file. This however did not solve anything yet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
It's ok. I've found the answer in another post from tonight (on
'combining' generic views).
http://groups.google.com/group/django-users/browse_thread/thread/609a869092acf42c/e7690f2b19812003?#e7690f2b19812003
--~--~-~--~~~---~--~~
You received this message beca
try
{% extends "/blog/base.html" %}
instead of
{% extends "/blog/base" %}
by the way what does the blog/base.html looks like?
On Dec 9, 8:10 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote:
> Hi list!
> I've got a problem:
>
> settings.py:
> TEMPLATE_DIRS = ( '/home/kai/Projekte/kaikuehne/template
Hello, django users.
I tried entering a Cyrillic text for the poll question attribute, while
playing with example polls application. This resulted in a bunch of question
marks on the view page, instead of the expected "Как дела?" poll question,
which was in Cyrillic.
My firefox character encoding
I am following the tutorials from the Dajngo book. At chapter four, i
am first getting the following error after runnning
>>>from django.template import Template
in the python shell.
environment variable DJANGO_SETTINGS_MODULE undefined
Next i tried to fix this by adding a Windows system variab
>> I want a page which displays both the details of an object and the list of
>> the objects.
Really important question: is the object you want the details of
related to the list of objects, via a ForeignKey or ManyToManyField?
Because if so, you don't need to do any view combination at all. (Of
c
Hi list!
I've got a problem:
settings.py:
TEMPLATE_DIRS = ( '/home/kai/Projekte/kaikuehne/templates' )
home.html:
{% extends "/blog/base" %}
I get the following error:
"Template '/blog/base' cannot be extended, because it doesn't exist"
But, the file does exist:
$ ls -l /home/
Ahah! I was sure I had already gone through the template files and
checked permissions, but this time around home.html wasn't correct. I
changed it along with all the css and image files and the site works
again. Thanks Jeremy.
--~--~-~--~~~---~--~~
You received
Hi !
I have some tasks to do at startup time, or at the first access of an
application (some cleanup of "persistent" ajax states). How do I implement
that best in a way that it works with the development server and with
mod_python ?
I tried putting it into the __init__.py of my application, b
In the API documentation it says:
Many-to-many relationships
"Both ends of a many-to-many relationship get automatic API access to
the other end. The API works just as a "backward" one-to-many
relationship.
The only difference is in the attribute naming: The model that defines
the ManyToManyField
Is it possible to restrict the list of "would be deleted" objects when
asking to delete a specific object using the admin interface?
I have several thousand records related to the object to be deleted. Is
is quite useless (and time consuming) to display the list of 3000+
records to ask for co
After solving a problem described at:
http://groups-beta.google.com/group/django-users/browse_frm/thread/b453f0c91e29cc04?hl=nl
I continued developping my model. Unfortunately a new problem arose.
Given the following model, I get an error message in admin after
successfully saving an article and
After many many trail and error I maybe found a 'bug'.
I simplefied the above model till it worked again. Then I added the
next field option and the error arose.
"unique=True" in MenuItem > name
Complete simplefied model with error:
###
from django.db import models
cla
http://www.gotapi.com/ - very neat, lots of APIs to go through (HTML,
Javascript etc) and now including python.
No django as yet. :(
However, you can't download copies of XML formats to see how others
have done it (eg python).
Cheers,
Tone
--~--~-~--~~~---~--~~
32 matches
Mail list logo