Re: Style guide for section headers in docs?

2011-01-02 Thread Gabriel Hurley
And that's what I get for having an MLA reference sitting on my desk... - Gabriel -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group,

app loading

2011-01-02 Thread Alex Kamedov
Hi all! Happy new year! Sorry for my bad english. On this weekend I reviewed app-loading branch[1] and want to propose some improvements. Now app-loading branch resolve how to load application, store its meta data and load its models. I plan to extend it to get simple way for replacing the same t

Add admin.py if it is installed when you run startapp.

2011-01-02 Thread James Hancock
Django-dev, I know this is probably just lasy, but can we have startapp check if admin is installed and if it is, add an admin.py file? If it isn't safe to assume then I understand not doing it, but it seems that if you have the admin installed and you create a new app you normally use admin.py s

Re: app loading

2011-01-02 Thread Łukasz Rekucki
On 2 January 2011 12:17, Alex Kamedov wrote: > Hi all! Happy new year! > Sorry for my bad english. > On this weekend I reviewed app-loading branch[1] and want to propose some > improvements. > Now app-loading branch resolve how to load application, store its meta data > and load its models. > I pl

Re: Add admin.py if it is installed when you run startapp.

2011-01-02 Thread Russell Keith-Magee
On Sunday, January 2, 2011, James Hancock wrote: > Django-dev, > > I know this is probably just lasy, but can we have startapp check if admin is > installed and if it is, add an admin.py file? > > If it isn't safe to assume then I understand not doing it, but it seems that > if you have the admi

Re: app loading

2011-01-02 Thread Alexander Dutton
I don't know how useful this will be as it's mostly a 'this is how we tackled the problem'. I haven't worked out how your parameters are passed to the views, so it's possible you may be interested On 02/01/11 11:17, Alex Kamedov wrote: > INSTALLED_APPS will be low level API to install applications

Remove admonition in admin docs?

2011-01-02 Thread Adam V.
Since older "versionadded/changed" tags were dropped in 1.3, should the admonition mentioning 0.96 on top of the admin docs also be dropped? "The admin site has been refactored significantly since Django 0.96." http://docs.djangoproject.com/en/dev/ref/contrib/admin/ If so, I have a doc patch

Re: contrib 's FormWizard needs a lot of work

2011-01-02 Thread Miguel Araujo
Hi Stephan, Sorry If I didn't answer before, I have been on vacations. I have given you some feedback in my pull request: https://github.com/stephrdev/django-formwizard/pull/5 I will start soon writing a draft and trying to help you make django-formwizard the official replacement. Cheers,

Re: app loading

2011-01-02 Thread Alex Kamedov
2011/1/2 Łukasz Rekucki > > What about application order? It's important in some parts of Django, > like template loading order. Can you describe this problem with more details? Usualy each applications has own path for its templates. > For backward compatibility it checks on setting load stage

Re: Add admin.py if it is installed when you run startapp.

2011-01-02 Thread James Hancock
Ohh, I like that idea, so basically you mean a way to allow installed apps to have an effect on what startapp gives you initially. I really like that idea a lot. I am all about making things easier. While we are on the topic does anyone think that there is any other ways to make startapp be smarte

Re: app loading

2011-01-02 Thread Łukasz Rekucki
On 2 January 2011 19:27, Alex Kamedov wrote: > > 2011/1/2 Łukasz Rekucki >> >> What about application order? It's important in some parts of Django, >> like template loading order. > > Can you describe this problem with more details? > Usualy each applications has own path for its templates. Yes

Problem with ``Model.objects.create``

2011-01-02 Thread Yo-Yo Ma
I apologize ahead of time, if this bug is rather a user error. If you have a model: class Foo(Model): spam= CharField(max_length=30) xyz= CharField(max_length=30) def __unicode__(self): return self.xyz and you use it in the shell like this: >>> Foo.objects.create(xyz="Hello

Re: Remove admonition in admin docs?

2011-01-02 Thread Russell Keith-Magee
On Mon, Jan 3, 2011 at 1:13 AM, Adam V. wrote: > Since older "versionadded/changed" tags were dropped in 1.3, should > the admonition mentioning 0.96 on top of the admin docs also be > dropped? > >    "The admin site has been refactored significantly since Django > 0.96." > > http://docs.djangopro

Re: Problem with ``Model.objects.create``

2011-01-02 Thread nasp
This is a user error, validation checks are performed on model.clean() . This mailing list is for development purpose, please use django-usersmailing list or #django irc . --

Re: Problem with ``Model.objects.create``

2011-01-02 Thread Russell Keith-Magee
On Mon, Jan 3, 2011 at 7:46 AM, Yo-Yo Ma wrote: > I apologize ahead of time, if this bug is rather a user error. > > If you have a model: > > class Foo(Model): >    spam= CharField(max_length=30) >    xyz= CharField(max_length=30) > >    def __unicode__(self): >        return self.xyz > > and you

Re: app loading

2011-01-02 Thread Alex Kamedov
Thank you. I see the problem now. What about this? INSTALLED_APPS = ( 'django.contrib.sessions', ('comments', 'django.contrib.comments'), (gallery, App(path='my_gallery', db_prefix='new_gallery', verbose_name=u'My new gallery')), ... ) 2011/1/3 Łukasz Rekucki > On 2 January 20