Re: Split models.py to smaller parts.

2009-05-03 Thread johan.uhIe
Thank you for the explanation. I think this trick is not in the Documentation yet, I've opened a ticket for it ... http://code.djangoproject.com/ticket/10985 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: Need help first user of django..

2009-04-16 Thread johan.uhIe
You already know the Django Documentation. Another good ressource is the Django Book. Have a look at this: http://djangobook.com/ Maybe you should work through the entire book to get a good understanding how forms and flatpages work. --~--~-~--~~~---~--~~ You receiv

Re: How To Change App Label in Admin Pages

2009-04-09 Thread johan.uhIe
I'd also liked to know ... On 8 Apr., 13:36, Burcu Hamamcıoğlu wrote: > I have a question about Internationalization; is there anyway to change the > name of app name in admin pages. But I dont't want to override admin html > pages. Can i add a new name to appp like verbose name in models? --~--

Re: Details

2009-04-09 Thread johan.uhIe
When you have a look at the error and at your urlsconf.py, you might see that the error does not include your urlconf.py, which it actually should, so the problem must be, that Django is not using your urlconf. Have you included the urlconf in your projects urls.py? Could be something like this:

Re: how to use email instead of username for user authentication?

2009-04-07 Thread johan.uhIe
The slugify function may also provide you with valid usernames, if you feed it with first and last name for example. But always be certain, that the username is unique, just as malcolm described. --~--~-~--~~~---~--~~ You received this message because you are subscr

How to make a preview page for (dynamic) forms

2009-03-13 Thread johan.uhIe
Hello, I have been thinking about a problem a bit, found a pretty nice solution and would like to know, what others think of it and if there are downsides I have forgotten about. Starting point is a form, that has dynamically generated parts. In my example, I generate a form from a model via Mod

Strange behaviour with templates, dictionarys, key/value, tuple as key and nested for loop Bug?

2009-03-10 Thread johan.uhIe
I have the following hierarchical data structure making use of the datetime-object, dictionarys, arrays and tuples all at once. { datetime : { (datetime, datetime) : [,] } } So a dictionary, holding datetime objects as keys and another dictionary as value. The sec

With inheritance extended User Model + admin.ModelAdmin = Change Password does not work

2009-03-09 Thread johan.uhIe
Hi, i'm having some problems with the following. Set-Up: I am extending the User Model with inheritance just as descirbed here: http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/ I think it is working pretty well since it is pretty powerfull and authenticat

Re: Extending the User Model with Inheritance | How to save extended data

2008-11-10 Thread johan.uhIe
So I have just had a try with a new written UserManager and it works. My model looks the following way now: from django.db import models from django.contrib.auth.models import User, UserManager import datetime class NewUserManager(models.Manager): def

Extending the User Model with Inheritance | How to save extended data

2008-11-09 Thread johan.uhIe
Hello People, I'm just getting started with Django and am currently trying to get my head around the User/Authenticating-Backend. I want to save extra data to the User Model so i followed the inheritance way described here: http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-w