django.contrib.auth.views.password_change how to

2007-10-31 Thread Gigs_
can anyoune give me simple example how to use: django.contrib.auth.views.password_change? thanks! --~--~-~--~~~---~--~~ 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

login page?

2007-10-31 Thread Gigs_
hi im trying to use generic password_change. i log in and i go to change password. when i click on pass change link im redirected to login page, but im already loged in. so i think that something is not good with my login page. here is views.py login funct def login_page(request): if reques

why is this happening?

2007-10-30 Thread Gigs_
error: IntegrityError at /accounts/register/ accounts_playersprofile.first_name may not be NULL Request Method: POST Request URL:http://localhost:8000/accounts/register/ Exception Type: IntegrityError Exception Value:accounts_playersprofile.first_name may not be NULL Ex

Re: user registration problem

2007-10-30 Thread Gigs_
thanks On Oct 30, 1:59 pm, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > On 30.10.2007, at 13:38, Gigs_ wrote: > > > > > im getting this error all the time. > > > IntegrityError at /accounts/register/ > > column username is not unique > > Reque

Re: user registration problem

2007-10-30 Thread Gigs_
its working now. On Oct 30, 1:59 pm, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > On 30.10.2007, at 13:38, Gigs_ wrote: > > > > > im getting this error all the time. > > > IntegrityError at /accounts/register/ > > column username is not unique >

Re: user registration problem

2007-10-30 Thread Gigs_
that username is not taken. On Oct 30, 1:59 pm, Matthias Kestenholz <[EMAIL PROTECTED]> wrote: > On 30.10.2007, at 13:38, Gigs_ wrote: > > > > > im getting this error all the time. > > > IntegrityError at /accounts/register/ > > column username is

user registration problem

2007-10-30 Thread Gigs_
im getting this error all the time. IntegrityError at /accounts/register/ column username is not unique Request Method: POST Request URL:http://localhost:8000/accounts/register/ Exception Type: IntegrityError Exception Value:column username is not unique Exception Loca

Re: newbie: user proile in models

2007-10-29 Thread Gigs_
is username and password and email stored under user or i need to make models.CharField for them? On Oct 26, 7:03 pm, dunia <[EMAIL PROTECTED]> wrote: > Gigs_ wrote: > > how do you people createuserprofile in models? > > i want to createduserprofile for users to register &

newbie: user proile in models

2007-10-26 Thread Gigs_
how do you people create user profile in models? i want to created user profile for users to register i have don it like this, but i have feeling that it could be better class PlayersProfile(models.Model): user = models.ForeignKey(User) first_name = models.CharField(maxlength=20) last

first website with django

2007-10-17 Thread Gigs_
hI! I'm going to start my first website (with django). I need some guidelines what to do first, where to start etc.? Website will be for some tennis game tournament, so it will have database with registered users. Registered users could register for upcoming tournaments (after they login) in s

Re: django.views.generic.create_update.update_object

2007-10-12 Thread Gigs_
i found solution in djangobook chapter9 at the end On Oct 12, 6:37 pm, Gigs_ <[EMAIL PROTECTED]> wrote: > if i wanna update object in django generic > (django.views.generic.create_update.update_object) im using object_id > and all work fine if i passwww.myurl.com/books/edit/obje

django.views.generic.create_update.update_object

2007-10-12 Thread Gigs_
if i wanna update object in django generic (django.views.generic.create_update.update_object) im using object_id and all work fine if i pass www.myurl.com/books/edit/object_id/. but what if i want to access my object with object name like book title? can i do that too? --~--~-~--~~-

Re: generic views

2007-10-11 Thread Gigs_
yes i figure out that after marty replay On Oct 11, 10:01 pm, jake elliott <[EMAIL PROTECTED]> wrote: > Marty Alchin wrote: > > You'd replace "what goes here" with what you put in > > "template_object_name": "author" (only without the quotes). Of course, > > it'd be a little more readable if you

Re: generic views

2007-10-11 Thread Gigs_
yes i know. this is just for learning. thanks On Oct 11, 8:06 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > You'd replace "what goes here" with what you put in > "template_object_name": "author" (only without the quotes). Of course, > it'd be a little more readable if you use the plural "autho

Re: generic views

2007-10-11 Thread Gigs_
name" : "author", "extra_context":{'name':'john', 'lname':'doe'} } urlpatterns = patterns('', # we'll add URL patterns here (r'author_list.html$', list_detail.object_list, author_list_info), ) On

Re: generic views

2007-10-11 Thread Gigs_
so if this is my template for that list my template my books app {% for name in "what goes here" %} {{ name }} {% endfor %} On Oct 11, 7:47 pm, Gigs_ <[EMAIL PROTECTED]> wrote: > so i cant get list from models? > from Author.objects.all() > > On Oct 11, 4:

Re: generic views

2007-10-11 Thread Gigs_
so i cant get list from models? from Author.objects.all() On Oct 11, 4:03 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > the list you want to use in template must be in template context. use > "extra_context" value > > On 11 окт, 17:31, Gigs_ <[EMAIL PROTECTED

generic views

2007-10-11 Thread Gigs_
hi all im learning django with djangobook.com im stuck in chapter 9 at Lists of objects. i just cant get any list of objects in my template. what should i put in template to make this work? thanks! --~--~-~--~~~---~--~~ You received this message because you are

need to know to start learn django

2007-05-23 Thread Gigs_
What i need to know, except python before i start learn django? thank you --~--~-~--~~~---~--~~ 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

need to know to learn django

2007-05-23 Thread Gigs_
What I need to know to learn django, except python(HTML, javascript, sql, etc)? thanks --~--~-~--~~~---~--~~ 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@googleg