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 follow
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:
http://www.djangoproject.com/documentation/0.96/static_f
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 a
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 alrea
> 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 PROTECT
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 fro
http://www.ukvisafree.blogspot.com
open the top link and click the any right side of the ads &call, 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 thi
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:
http://groups.google.com/group/django-users/browse_thread/thread/d1649d9d6153b948/233ca8422a73cd3e?lnk=gst&q=class+static+manager+methods#233ca8
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/
--~--~-~--~~
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 e
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 I
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 e
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
http://justinlilly.c
> 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 been
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
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, s
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 se
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:
http://celebs-o
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 ob
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 sear
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 this
> 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,
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 goodies,
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.
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
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 br
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 w
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 (ht
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 th
29 matches
Mail list logo