Re: Trouble with static content guide for development

2008-02-24 Thread Colin
Nevermind, as soon as I posted this I found my typo. [sigh]. Sorry. On Feb 25, 1:52 am, Colin <[EMAIL PROTECTED]> wrote: > Hey, > > I just started working with Django, and don't want to deal with > setting up Apache or anything else on my development box for static > content. I found the

Trouble with static content guide for development

2008-02-24 Thread Colin
Hey, I just started working with Django, and don't want to deal with setting up Apache or anything else on my development box for static content. I found the following page for setting up Django to serve static content during development:

Re: newforms pre-populating with model

2008-02-24 Thread James Bennett
On Sun, Feb 24, 2008 at 11:02 PM, k4ml <[EMAIL PROTECTED]> wrote: > Get the instance:- > customer = Customer.objects.get(id=1) > > Create form instance and pass a dict of data from customer instance:- > form = CustomerForm(initial=customer.__dict__) #instance of ModelForm If you have a look

Re: Chapter 7: Form Processing

2008-02-24 Thread Malcolm Tredinnick
On Sun, 2008-02-24 at 21:35 -0800, nwgadgetguy wrote: [...] > If the second example is followed, then the HTML code would be under > mysite\books\templates, > NOT mysite\books\templates\books, which makes it a confusing fix (why > have another DIR [books] > under templates when templates is

Re: Chapter 7: Form Processing

2008-02-24 Thread nwgadgetguy
> On Jan 16, 5:42 pm, Mikey3D <[EMAIL PROTECTED]> wrote: > > Hi Rajesh, > The book chapter 7 doesn't say new sub-dir called books in your > application's templates directory. For the beginners who are reading > the Django book will get confusing. >On Jan 16, 3:27 pm, Rajesh Dhawan <[EMAIL

newforms pre-populating with model

2008-02-24 Thread k4ml
I guess my use case is very common but somehow I can't find any examples that did as what I want. I just want to provide a form to edit an existing record so it supposed to be as simple as:- Get the instance:- customer = Customer.objects.get(id=1) Create form instance and pass a dict of data

call, the sexy girl in your home free

2008-02-24 Thread funny sex
http://www.ukvisafree.blogspot.com open the top link and click the any right side of the ads , the sexy girl in your home free --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Best practices for creating Manager methods?

2008-02-24 Thread davenaff
Thanks for your responses. I don't think my question was all that clear, however, thanks to Ivan I've found the similar discussion topic he referenced:

Re: When ForeignKey fields are left blank, objects don't appear in admin change list. Why?

2008-02-24 Thread Kenneth Gonsalves
On 25-Feb-08, at 8:00 AM, biancaneve wrote: > ForeignKey field to blank=True, have you tried setting null=True also? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ Foss Conference for the common man: http://registration.fossconf.in/web/

When ForeignKey fields are left blank, objects don't appear in admin change list. Why?

2008-02-24 Thread biancaneve
Hi, I've just added a few new fields to my fairly simple employee database to allow entry of an emergency contact person for each employee. One of these fields is a ForeignKey, designed to allow users to select the relationship between the employee and their contact (eg. parent, spouse, friend

Re: Random FAQ Suggestion

2008-02-24 Thread Malcolm Tredinnick
On Sun, 2008-02-24 at 15:41 -0800, machineghost wrote: > I just looked at the FAQ page for the first time in awhile today, and > I found a question that had kind of a surprising answer: > > http://www.djangoproject.com/documentation/faq/#where-can-i-find-django-developers-for-hire > Where can

Re: Random UnicodeDecodeError ??

2008-02-24 Thread jphoude
I'm having the same problem with django svn (rev 7135). It happens only with fcgi (I'm using lighttpd), not with "runserver". Also, sometimes there's no error, but usually the second time I reload an exception is raised (so the same page can display fine one time, and the next time it raises an

Generic Calendar Application

2008-02-24 Thread Justin Lilly
Hey guys, I have a generic calendar application which is based on one of the django snippets. It is decoupled from a model unlike the one on djangosnippets.org. Even if you don't pass your model data to it, it will still render a calendar . Feel free to read more about it at

Re: Best practices for creating Manager methods?

2008-02-24 Thread Ivan Illarionov
> def create_user(self, username, email, password=None): > def make_random_password(self, length=10, > allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'): > > These two methods seem to involve situations where they need to act on > a model, but the object instance hasn't

Random FAQ Suggestion

2008-02-24 Thread machineghost
I just looked at the FAQ page for the first time in awhile today, and I found a question that had kind of a surprising answer: http://www.djangoproject.com/documentation/faq/#where-can-i-find-django-developers-for-hire Where can I find Django developers for hire? Consult our developers for hire

get a new experience

2008-02-24 Thread kamla
get a new experience http://xrl.us/hotohot --~--~-~--~~~---~--~~ 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 this group,

Re: Best practices for creating Manager methods?

2008-02-24 Thread Alex Koshelev
Manager instance is accessed by model class not instance. So there is no way to get model instance inside manager method (of course except situations when you pass it directly). If you need some extra functionality for instances the best way is to create model methods. Manager operates with the

Hot College..School..Babes..Amateurs..Big (.)(.)

2008-02-24 Thread Sakshi
Hot College..School..Babes..Amateurs..Big (.)(.)..For All This Visit: http://celebs-online.blogspot.com Hot College..School..Babes..Amateurs..Big (.)(.)..For All This Visit: http://celebs-online.blogspot.com Hot College..School..Babes..Amateurs..Big (.)(.)..For All This Visit:

Best practices for creating Manager methods?

2008-02-24 Thread davenaff
What are the best practices for using Managers? >From the Django model reference, I find this quote "Adding extra Manager methods is the preferred way to add "table- level" functionality to your models. (For "row-level" functionality -- i.e., functions that act on a single instance of a model

Re: Django minify and combine script?

2008-02-24 Thread Rob Hudson
There's also this blog post: http://pedro.valelima.com/blog/2008/jan/17/deploying-compacted-javascript-django/ > > On Sat, Feb 23, 2008 at 8:26 AM, Thierry <[EMAIL PROTECTED]> wrote: > > >  I've recently made the switch from Symfony to Django. > > >  Some interesting code here :) > > >  When

hi

2008-02-24 Thread sosso
Hi i want be hacker can any one help me im egyptien guy --~--~-~--~~~---~--~~ 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

Re: Django admin error?

2008-02-24 Thread Karen Tracey
> On Sat, 2008-02-23 at 06:42 -0800, PB wrote: > > When trying to add 46.229253 to a floatfield > > I get displayed error: > > > Please enter a valid decimal number with a whole part of at most -19 > > digits > > > Any ideas? On Sun, Feb 24, 2008 at 9:04 AM, PB <[EMAIL PROTECTED]> wrote: > > Hi,

Re: Moving active site from 0.96 to current svn

2008-02-24 Thread richard
Got it. Thanks. On Feb 24, 12:38 pm, "Phil Davis" <[EMAIL PROTECTED]> wrote: > On 24/02/2008, richard <[EMAIL PROTECTED]> wrote: > > > > > I'd like to migrate a biggish mission critical 0.96 django powered > > site to a recent development version so my ongoing work harnesses > > newer

Re: Django admin error?

2008-02-24 Thread PB
Hi, I'm using Django 0.96. The model has the lines: latitude = models.FloatField(null=True, max_digits=12, decimal_places=31, blank=True) longitude = models.FloatField(null=True, max_digits=12, decimal_places=31, blank=True) Then when trying to use the admin tool it throws the above error.

Re: Django Filebrowser with FastCGI

2008-02-24 Thread shabda
I think, In a lot of old code, _ was automatically imported as ugettext, while the newer code explicitly imports it as from django.utils.translation import ugettext_lazy as _ Might be when you are running fastcgi, you are hitting some path where, _ is not imported, while under mod_python, you are

Re: Moving active site from 0.96 to current svn

2008-02-24 Thread Phil Davis
On 24/02/2008, richard <[EMAIL PROTECTED]> wrote: > > I'd like to migrate a biggish mission critical 0.96 django powered > site to a recent development version so my ongoing work harnesses > newer goodies, in particular newer new forms. To do this I need to > assess how much of my code will

Moving active site from 0.96 to current svn

2008-02-24 Thread richard
I'd like to migrate a biggish mission critical 0.96 django powered site to a recent development version so my ongoing work harnesses newer goodies, in particular newer new forms. To do this I need to assess how much of my code will break against the many changes since 0.96. Is there a list I can

Re: Django Filebrowser with FastCGI

2008-02-24 Thread patrickk
hi stephane, i´ve never used the filebrowser with fastcgi. not sure whether this is a django or a filebrowser-issue. maybe someone with more experience using fastcgi has an idea ... patrick On Feb 23, 3:12 pm, Rufman <[EMAIL PROTECTED]> wrote: > Hey Guys > > I'm using the django filebrowser

Re: Need some help with a query if you can :)

2008-02-24 Thread Darthmahon
Hi Guys, Just wondered if anyone else could help out on this one? To me it doesn't seem like it's a difficult thing to do, I just can't get it to work :( Cheers, Chris On Feb 23, 11:48 am, Darthmahon <[EMAIL PROTECTED]> wrote: > Hmmm ok, can't get this to print anything. When trying to print