I'm sorry, what I am actually able to add and edit profiles, but I'd like it
to be added at the time of user registration (as if it was part of the User
model, and not only after creating the new user in separate).
Thanks
Felipe
On Sun, Oct 5, 2008 at 12:43 AM, Felipe Sodré Silva <[EMAIL PROTECT
Erik, Malcolm,
Thanks for two very interesting answers - but which one is correct?
Malcolm, you are saying, in effect, that the code in Erik's post can
never work in the settings file?
John
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On Sun, 2008-10-05 at 00:45 -0700, Felipe Sodré Silva wrote:
> I'm sorry, what I am actually able to add and edit profiles, but I'd
> like it to be added at the time of user registration (as if it was
> part of the User model, and not only after creating the new user in
> separate).
Well, that's
On Sun, 2008-10-05 at 00:50 -0700, John Allen wrote:
> Erik, Malcolm,
>
> Thanks for two very interesting answers - but which one is correct?
> Malcolm, you are saying, in effect, that the code in Erik's post can
> never work in the settings file?
Even if it does work by accident, it would not
in Js, "document.URL" has the same function as get_ab_url().
--
真正的杰出,不是妙用规则的错层,而是极致的偏执于信念
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
Well the admin *already* does lots of things it 'was never intended to
do'.
Why have devs gone to all the effort of adding extra customization
hooks if extending the admin was such a fools errand? :)
To my mind the more versatile the admin gets the better it is for
Django.
Yes - there is a poin
On Sun, 2008-10-05 at 12:30 +0300, Erik Allik wrote:
> Malcolm,
>
> what if I did the from django.core.urlresolvers import reverse part in
> the function itself that gets called?
>
> def my_flatpage_url(o):
>from django.core.urlresolvers import reverse
>return '%s%s' % (reverse('my-si
Hi. I've followed these steps to create a profile model to my users:
http://www.djangobook.com/en/1.0/chapter12/#cn222
However, I'm still not able to add nor edit the profile information in the
admin interface. Is there any further step to take in order to be able to do
it?
Thank you!
Felipe
--~
On Sun, 2008-10-05 at 03:32 -0700, johnny wrote:
> Hi,
> I'm wondering if select_related() is used for the object_detail
> generic view. If not, shouldn't it be since it's more efficient?
> Also, is select_related only useful on a .get() method?
It's entirely up to you, when creating your que
Malcolm,
what if I did the from django.core.urlresolvers import reverse part in
the function itself that gets called?
def my_flatpage_url(o):
from django.core.urlresolvers import reverse
return '%s%s' % (reverse('my-site-index'), o.url)
ABSOLUTE_URL_OVERRIDES = {
'flatpages.flatpage'
Hello, everyone
I am getting a strange "permission denied" error on database server running
my site.
I am trying to send bulk mail to a huge list, it was working fine few days
ago but now it's dropping connections everytime. I had postgresql log
configured just few days ago and it's full of "une
Hi,
I'm wondering if select_related() is used for the object_detail
generic view. If not, shouldn't it be since it's more efficient?
Also, is select_related only useful on a .get() method?
thanks.
Johnny
--~--~-~--~~~---~--~~
You received this message because you
Malcolm,
Thanks, your explanation is clear for me and I certainly don't need to
live dangerously - the conventional usage of ABSOLUTE_URL_OVERRIDES
works fine for me. I was only trying to satisfy my curiosity about
using reverse() because I've read a number of posts from James Bennett
and others s
hi, when I was trying to use the Meta option 'unique_together' in my
Membership model below, a NameError happened, I don't know what the
problem is, I am using django 1.0 and sqlite3
regards,
Matrixer
---
class Membership(models.Model):
per
I have more than one input submit button and want to know which one
was clicked.
Request.POST does not have that information for some reason.
Using django 1.0 svn
I would appreciate if you can point me to right resource.
This is should be something very simple that I am missing.
On Oct 4, 11:4
hi, when I was trying to use the Meta option 'unique_together' in my
Membership model below, a NameError happened, I don't know what the
problem is, I am using django 1.0 and sqlite3
regards,
Matrixer
---
class Membership(models.Model):
per
I encountered this when I upgraded from my recent copy of 0.97 django
to 1.0-final. Why does MyForm not validate when instantiated as m =
MyForm({'bfield':'False'})?
In [27]: class MyForm(forms.Form):
bfield = forms.BooleanField()
:
:
In [28]: m = MyForm({'bfield':'False'})
On Sun, Oct 5, 2008 at 11:07 AM, globophobe <[EMAIL PROTECTED]> wrote:
> I encountered this when I upgraded from my recent copy of 0.97 django
> to 1.0-final. Why does MyForm not validate when instantiated as m =
> MyForm({'bfield':'False'})?
Because the field doesn't have "required=False"; all f
Hi,
On admin change list, I want to group objects based on a foreign key.
Is there a way to generate a hierarchy based on foreign/m2m key
instead of date?
Consider the following example-
class Book(models.Model):
# ...
publisher = models.ForeignKey(Publisher)
On Book's admin page, I wa
Small postscript to the above:
On 21 August, Jannis Leidel (http://jannisleidel.com/) posted that he
was using something like Erik's code:
from django.core.urlresolvers import reverse
ABSOLUTE_URL_OVERRIDES = {
'coltrane.entry': lambda o: reverse('coltrane_entry_detail',
kwargs={
What steps are needed to use the django cms outside of django. I have
a database , that i want to manipulate. it's just a db. I dont want
to learn SQLAlchemy for this , today. I just want to goof around with
it, run some queries, etc. is this possible?
--~--~-~--~~~
On 5 oct, 11:30, Erik Allik <[EMAIL PROTECTED]> wrote:
>
> what if I did the from django.core.urlresolvers import reverse part in
> the function itself that gets called?
>
> def my_flatpage_url(o):
>from django.core.urlresolvers import reverse
>return '%s%s' % (reverse('my-site-index'), o.
Hi Django users,
I have a project made of several app and I am adding a 'search' app
which provides searching facilities across all apps. Each app whose
content can be searched needs to register with the search app with
code such as:
def search_genf(request, search_terms):
# generate weighe
On 5 oct, 16:40, ydjango <[EMAIL PROTECTED]> wrote:
> I have more than one input submit button and want to know which one
> was clicked.
> Request.POST does not have that information for some reason.
>
> Using django 1.0 svn
>
> I would appreciate if you can point me to right resource.
> This is s
Arnaud Delobelle wrote:
> Hi Django users,
>
> I have a project made of several app and I am adding a 'search' app
> which provides searching facilities across all apps. Each app whose
> content can be searched needs to register with the search app with
> code such as:
>
> def search_genf(request
Ok, for example, I can pass in
Modelname.objects.select_related().all() for the queryset, obj's_Id
for the object_id. And the 'object' in the generic view will actually
be calling a .get(id=obj's_Id) on that lazy, select_related queryset?
thanks for the reply,
Johnny
On Oct 5, 3:18 am, Malcolm T
chiggsy wrote:
> What steps are needed to use the django cms outside of django. I have
> a database , that i want to manipulate. it's just a db. I dont want
> to learn SQLAlchemy for this , today. I just want to goof around with
> it, run some queries, etc. is this possible?
>
By "outside of
This article is a great resource as well--explains all you need to know very
nicely I think (I especially like the trick of finding number of descendants
(so number of comments associated with an item) just from inspecting the
values for "right" and "left"--single row query). I found this a while
> By "outside of Django" I'm guessing you mean "outside of a web environment"
Yes, that is what i meant.
>
> Yes, you can use Django components separately. At work we use Django's
> ORM for management scripts such as print accounting.
>
> I've set up a standalone Django template-- no views, mode
On Sun, Oct 5, 2008 at 9:47 AM, Matrixer <[EMAIL PROTECTED]> wrote:
>
> hi, when I was trying to use the Meta option 'unique_together' in my
> Membership model below, a NameError happened, I don't know what the
> problem is, I am using django 1.0 and sqlite3
>
> regards,
> Matrixer
>
> ---
On Oct 5, 7:12 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> Arnaud Delobelle wrote:
> > Hi Django users,
>
> > I have a project made of several app and I am adding a 'search' app
> > which provides searching facilities across all apps. Each app whose
> > content can be searched needs to register
Hello,
I am running through the Practical Django projects book. I've gotten
to the point where I am trying to view an entry detail, but the error
that I am getting is: No FlatPage matches the given query
Here's my urls.py:
from django.conf.urls.defaults import *
# Uncomment the next two lines
Hey, Malcolm, maybe an example could help. I'm reading the forms
documentation at http://docs.djangoproject.com/en/dev//topics/forms/
and I see this code as part of the view function for a contact form:
def contact(request):
if request.method == 'POST': # If the form has been submitted...
Have you looked at these notes on how to get the Practical Django
Projects examples to work:
http://blog.haydon.id.au/2008/08/notes-on-practical-django-projects.html
?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
After some more reading and testing I'll try to answer myself, if any
of you could confirm if I'm on the right track please let me know and
please correct me if I'm not using the right terminology as well:
First, in my URLConf I have a url pattern like:
(r'^search/$', 'books.views.search', {}, '
Anyone have anything to say about this problem?
On Sep 18, 2:16 pm, Dana <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Wondering why the Django admin Multiple Select box widget (in Django
> 0.96, not sure if 1.0 is different), only allows you to pass in single
> digit values via the URL. Basically, if I h
On Sun, 2008-10-05 at 16:03 -0700, Alexis Bellido wrote:
> After some more reading and testing I'll try to answer myself, if any
> of you could confirm if I'm on the right track please let me know and
> please correct me if I'm not using the right terminology as well:
>
> First, in my URLConf I
On Mon, Oct 6, 2008 at 7:06 AM, Dana <[EMAIL PROTECTED]> wrote:
>
> On Sep 18, 2:16 pm, Dana <[EMAIL PROTECTED]> wrote:
>> Im confused as to why I cannot select items above 9 and if this issue
>> is fixed in Django 1.0? Could someone test it on 1.0 and let me know?
>> Also, if you know how to get
Cool, now it's completely clear.
Thanks a lot Malcolm :)
--~--~-~--~~~---~--~~
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 unsubscribe from th
Hi, I'm reading the docs and was testing named url patterns, I have
something like this in my URLConf:
url(r'^search/(?P.*)$', 'books.views.search',
name='search_page'),
And the view is defined like this:
def search(request, words):
Now I'd like to print a link to the search page with certain
On Sun, 2008-10-05 at 18:09 -0700, Alexis Bellido wrote:
> Hi, I'm reading the docs and was testing named url patterns, I have
> something like this in my URLConf:
>
> url(r'^search/(?P.*)$', 'books.views.search',
> name='search_page'),
>
> And the view is defined like this:
>
> def search(req
Malcolm Tredinnick wrote:
> On Fri, 2008-10-03 at 13:29 -0400, Steve Holden wrote:
>
>> Alexis Bellido wrote:
>>
>>> Cool, thanks for the confirmation. I'm still devouring all the
>>> documentation, a couple of books and practicing a lot on Django :)
>>>
>>>
>> One of the things I
On Sun, 2008-10-05 at 06:42 -0700, Matrixer wrote:
> hi, when I was trying to use the Meta option 'unique_together' in my
> Membership model below, a NameError happened, I don't know what the
> problem is, I am using django 1.0 and sqlite3
>
> regards,
> Matrixer
>
> ---
On Oct 4, 3:34 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote:
> hi group. I need some help getting tinymce installed for flatpages in
> admin. I'm serving static content from an application called /static/
> with tinymce located in /static/js/tiny_mce/. I have read the docs on
> creating an admin
> Did you see this:
>
> http://code.djangoproject.com/wiki/AddWYSIWYGEditor
yeah i saw that and tried to follow it. Here's what i did:
1. d/l tinymce
2. uploaded to /static/admin/js/tiny_mce (i have static setup as an
app to serve static files)
3. I created a textarea.js file as instructed
On Oct 5, 9:35 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote:
> > Did you see this:
>
> >http://code.djangoproject.com/wiki/AddWYSIWYGEditor
>
> yeah i saw that and tried to follow it. Here's what i did:
>
> 1. d/l tinymce
> 2. uploaded to /static/admin/js/tiny_mce (i have static setup as an
>
> So you did this
> part?http://code.djangoproject.com/wiki/AddWYSIWYGEditor#UsingTinyMCEwithf...
>
> Do you have MEDIA_URL and MEDIA_ROOT setup correctly in settings.py?
> Are you using the development server? Do you have that setup to server
> static content?
yeah see my previous post. This i
Hi group. I have form on the right side of my website. It's a
simple site consisting of a single template and utlizes flat pages.
Now i can create content just fine and that is all working. The issue
is that the form is not showing up when I view the site. I'm assuming
that it is because some
On Sun, 2008-10-05 at 20:21 -0700, Bobby Roberts wrote:
> Hi group. I have form on the right side of my website. It's a
> simple site consisting of a single template and utlizes flat pages.
> Now i can create content just fine and that is all working. The issue
> is that the form is not showi
Hi All,
does anyone know of a way to turn off (disable/replace)
the rather long help text message for ManyToManyField's,
starting with "Hold down..."?
Any input appreciated
/Lars
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
Hi.
I've made a django installation a few months ago, but now I forgot where the
installation directory is (that is, the directory where I can edit Admin
template files and other contrib files).
Is there an easy way to discover where it is? I'm using MacOS X
Thanks !
Felipe
--~--~-~--~
I have been trying to add date to my template, but for the life of me
have not.
I have a field in the MYSQL db, and In my models class but when I put
the text box it doesn't post to the db. No field does. And the
calendar does show anything to debug.
{{ poll.question }}Time Sheet
{% if error
On Sun, 2008-10-05 at 07:40 -0700, ydjango wrote:
> I have more than one input submit button and want to know which one
> was clicked.
> Request.POST does not have that information for some reason.
So you mean you have the same problem you had when you first posted this
message less than one day
I'm just getting started in Django and I'm stuck.
I have defined in settings a variable called STATIC_ROOT that contains
the root URL where static assets are served. In development it's
something like static.example.com.local and in production it would be
static.example.com
How do I pass this al
Well what do you know! Someone went through the exact same thing as I
did and documented it here:
http://mccormac.org/blog/2007/apr/04/dynamically-serving-static-content-django/
This was exactly what I was looking for.
--~--~-~--~~~---~--~~
You received this mes
55 matches
Mail list logo