And in my experience - Gentoo will be better for developers
Mike Ramirez пишет:
> On Friday 03 July 2009 11:36:04 am developingchris wrote:
>> Looking for opinion of the best distro for a developer machine for
>> django.
>>
>> I'm on ubuntu now, its going ok. I'm having keyboard issues, and
>> won
Hello. I have such model class in tours/models.py:
from django.db import models
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.models import User
class Profile(models.Model):
regnum = models.CharField(_('registration number'), maxlength=32)
pvnnum
oh sorry. I've fixed that. That is because of form_for_model. Now I'm using
form_for_instance and all is working well ;) thanks
2007/9/6, RajeshD <[EMAIL PROTECTED]>:
>
>
> > --
> > so.. the problem is:
> >
> > Request Method: GET
> > Request URL
Hello. I have such model class:
from django.db import models
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.models import User
class Profile(models.Model):
regnum = models.CharField(_('registration number'), maxlength=32)
pvnnum = models.CharField(_(
Russell Keith-Magee пишет:
> On 9/7/07, Oleg Korsak <[EMAIL PROTECTED]> wrote:
>
>> I just want to create form_for_model and/or form_for_instance and then
>> delete one field (user). Is it possible or do I need to manually create my
>> own form?
>
> Sure
Hello. I have:
def save_profile(request):
if request.user.is_authenticated():
if request.method == 'POST':
try:
profile_obj =
Profile.objects.get(user__exact=request.user)
ProfileForm
Hello. How can I get a form name from the POST request?
Also how can I explore a "request" object to see what it contains?
Thanks.
signature.asc
Description: OpenPGP digital signature
this will work only for case if some_field is blank=True,null=True. in
any other case it will fail at f.save(commit=False) because of invalid
form data (some_field is empty and still required)
Nathaniel Whiteinge пишет:
> Your best bet is probably to use ``save(commit=False)`` [1]_ to get a
> Prof
Hello. I have such models:
class Country(models.Model):
name = models.CharField(_('name'), maxlength=32)
def __unicode__(self):
return self.name
class Meta:
verbose_name = _('country')
verbose_name_plural = _('countr
but Country class doesn't have such field 'tour' ! ;/
Alex Koshelev пишет:
> class Country(models.Model):
> #...
> class Meta:
> ordering = ('name','tour',)
>
> On 23 сент, 03:47, Oleg Korsak <[EMAIL PROTEC
Hello! I have such models:
class Country(models.Model):
name = models.CharField(_('name'), maxlength=32)
def __unicode__(self):
return self.name
class Meta:
verbose_name = _('country')
verbose_name_plural = _('countr
l пишет:
> Am I missing something or wouldn't
> Tours.objects.all().order_by('tours_country.name')
> work?
> -richard
>
>
> On 9/24/07, Oleg Korsak <[EMAIL PROTECTED]> wrote:
>> Hello! I have such models:
>>
>> class Country(mode
Hello. I have such code:
tour_paginator =
ObjectPaginator(Tour.objects.extra(where=['tours_country.id=tours_tour.country_id'],
tables=['tours_country']).order_by('tours_country.name'), 20)
tours = tour_paginator.get_page(page - 1)
then in tours I have such set:
[, , , , ]
then I'm doing this:
f
Hello! I have many `tour` objects as a key for a `tour_dict` dictionary.
How can I access tour_dict values using tour? Like tour_dict[tour]...
template will not work with [ ]
signature.asc
Description: OpenPGP digital signature
Hello! Is there any built-in method to make my form show required field
label with bold (or some king of mark like "*") and other fields as
normal text
signature.asc
Description: OpenPGP digital signature
hello! is it possible to do something like that?:
class ModelClass(models.Model):
parent = models.ForeignKey(ModelClass,blank=True,null=True)
signature.asc
Description: OpenPGP digital signature
gt;
> Does this work?
>
>
> On Oct 18, 10:21 am, [EMAIL PROTECTED] wrote:
>> I'm also looking for this very same solution...
>>
>> Any advice is greatly appreciated!
>>
>> Thanks,
>> Carlos :)
>>
>> On Oct 7, 11:38 am, Oleg Korsak
Yeah, you are right. Actually I'm trying to get most actual (latest by
timestamp) records per group.
2012/2/10 Dennis Lee Bieber :
> On Fri, 10 Feb 2012 02:39:33 +0200, ??
> wrote:
>
>>Is it possible to write ORM-way request to be same as this SQL:
>>SELECT mo.* FROM (SELECT mi.* FROM my
Hello. After upgrading PostGIS to 2.0.0 version and migrating DB (took
some time) I still have one problem:
django.db.utils.DatabaseError: operator class "gist_geometry_ops" does
not exist for access method "gist"
I've found a discussion here: https://code.djangoproject.com/ticket/16455
So looks
sorry? which one SQL? :) I'm trying to run tests with Jenkins CI, but
it fails on creating DB.
7 апреля 2012 г. 21:56 пользователь Christophe Pettus
написал:
>
> On Apr 7, 2012, at 11:41 AM, Oleg Korsak wrote:
>
>> So looks PostGIS 2.0.0 is unusable with Django right now?
&
I'm not sure, but there must be a 404 template :)
22.06.2012 0:24 пользователь "Taras_96" написал:
> Ok - I'm pretty sure that I should be returning 500s. Is there any way of
> catching 404s and returning a JSON response for them as well?
>
>
> On Friday, 22 June 2012 00:08:39 UTC+10, Kurtis wrot
That's what mod_wsgi does!
2012/6/22 Jonathan Hayward
> Will a slightly older version of Pinax, installed on top of a newer
> version of Django, take advantage (or be configurable to take advantage) of
> multiple cores?
>
> In other words, if one request is rendering and another request comes in
looks like GeoDjango is dead, it is not solved for almost half of the year
четверг, 19 июля 2012 г., 21:23:03 UTC+3 пользователь Dominique Guardiola
Falco написал:
>
>
> Is there a tutorial describing how to do this somewhere please ?
> Because right now, geodjango is unusable with PostGreSQL 9 +
RM
> features. I didn't do anything special for Django (1.4.1) or GeoDjango, but
> setting up PostGis does need to be done right, and the special version of
> psycopgsl is required - all of that is well documented, though.
>
> -WBTD.
>
>
>
> On 4 Aug 2012, at 0
I know a dirty hack - try to change your field from:
fld = models.ForeignKey('ModelName', ...
to:
fld = models.ForeignKey('package.ModelName', ...
This is why I DON'T have "+" sign... but I need it :)
2011/12/30 torgia :
> If I have a model with a Foreignkey field, the django admin shows a
> plus
Hi. Could you paste full field definition in your case? I have same
problem and looks like I know when it doesn't have plus sign
2011/12/30 K.C. Smith :
> Thanks for your input. I think you're probably right about non-
> editable objects. Unfortunately, that's not it in this case.
>
> K.C.
>
> O
awesome!
2011/12/31 Jason Ford :
> Our app, FeedMagnet (built in Django!) gathers content from social
> networks in real-time, curate the feed, and then display it. All day
> today, FeedMagnet is powering the Verizon screen in Times Square
> (running on the giant MTV HD display) – showing real-tim
Great!
21 нояб. 2013 г. 22:17 пользователь "SteveB" написал:
> Hi,
>I want to offer something the the community of Django users.
> If you like the safety net of having each request handled by a
> transaction, but don't want unnecessary blocking on highly concurrent web
> applications, then th
28 matches
Mail list logo