On Fri, Sep 18, 2009 at 10:36 PM, Kyle MacFarlane
wrote:
> Everything works fine except when detecting management commands. It
> will only detect commands in the first package in sys.path underneath
> "company.*". Once it has checked one package in the namespace it does
I have a bunch of packages under a company namespace, and inside
"company.__init__.py" in every package I have only the following:
__import__('pkg_resources').declare_namespace(__name__)
Everything works fine except when detecting management commands. It
will only detect commands in the first
On Fri, Sep 18, 2009 at 4:38 PM, When ideas fail
wrote:
>
> Hello, can someone tell me what this error means? It seems to be
> stopping all my django stuff from working, it doesn't even render
> error pages anymore. I've tried deleting all the stuff i've done
> since
On Fri, Sep 18, 2009 at 10:13 PM, aa56280 wrote:
>
> When a new instance of some object is created, I need to send out X
> number of emails. X could potentially mean hundreds of emails.
>
> What would be the most efficient way to do this?
>
> I know if I use send_mass_mail()
When a new instance of some object is created, I need to send out X
number of emails. X could potentially mean hundreds of emails.
What would be the most efficient way to do this?
I know if I use send_mass_mail() it could potentially hang for quite a
long time.
Any thoughts greatly
the code I use is
active_list = UserProfile.objects\
.get_active_members()\
.exclude(user = current_user)
On Fri, Sep 18, 2009 at 7:28 PM, Daniel Roseman wrote:
>
> On Sep 18, 4:34 pm, Oleg Oltar ltarase...@gmail.com>
> wrote:
>
Hi Django peeps,
Right now, I am in the middle of trying to secure a django app's admin
and store areas (satchmo).
I have installed a self-signed certificate for testing purposes and I
am able to encrypt all pages just fine EXCEPT for the admin page. Here
is my setup:
ubuntu 8.04 and apache2
Looking for an experienced Django Freelancer/Contractor to help on an
exciting beta stage startup. We are building an accounting SaaS
application for small businesses. Some aspects are very challenging so
we are looking for experienced, senior developers.
The duration of the contract will be 3+
I need to check if 2 different entries in the database exist, and serve
different variables to the template if
1. they both exists
2. if only the first one exists
3. if only the last one exists
4. if none exists.
-
MV
--~--~-~--~~~---~--~~
You received this
The user model, because the model defined by AUTH_PROFILE_MODULE is
intended to be an extension to the actual user model. Namely the
profile.
Why would you bind something to a user's profile, instead of the user
itsself? If you want to "allow records of people without Users", then
use blank=True
Well, after further review it looks like changing the data and running
syncdb with initial_data is probably the culprit.. makes sense?
On Sep 18, 1:28 pm, Skylar Saveland wrote:
> I have a model on which django-mptt works with the simple test data.
> However, when I
On Sep 17, 11:39 am, Karen Tracey wrote:
>
> http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody
>
> Karen
Excellent! Thanks Karen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I have a model on which django-mptt works with the simple test data.
However, when I load the production data (where I have seen that
get_ancestor is not working) to my dev machine, get_ancestor returns
[].
In [5]: for p in Page.objects.filter(parent__isnull=False):
...: print p,
On Sep 18, 4:34 pm, Oleg Oltar wrote:
> Hi!
>
> I have following model:
>
> class UserProfile(models.Model):
> """
> User profile model, cintains a Foreign Key, which links it to the
> user profile.
> """
> about = models.TextField(blank=True)
>
Try this:
def get_active_members(self):
return return self.get_query_set().filter(is_active=True)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
I`d go with the first. It`s easier to get the current logged in user and all
other pluggable apps use User, so it's a common thing to do and you can
integrate things easily .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I'm still making my first site with django so I don't how much weight my
opinion has, but I used a seperate profile for ForeignKeys. I don't know
why, it just seemed logical at the time. It is easer as you can refer to
whats in a users profile easier. You can put things like {{
dijxtra wrote:
> and here is what I want to put in my template:
>
> {% url day year={% now "Y"%} month={% now "m"%} day={% now "d"%} %}
>
> but, ofcourse, I won't put that in my template because you can't have
> tag inside of a tag.
This may fall into the "just because you can doesn't mean
Hello i have solved using this option on the setting file:
FORCE_SCRIPT_NAME="/django/"
LOGIN_REDIRECT_URL="/django/richiedi/"
LOGIN_URL="/django/accounts/login/"
Thanks
Luca
On 18 Set, 17:49, Grant Livingston wrote:
> Would it not be better if you set your server
Hi!
I have following model:
class UserProfile(models.Model):
"""
User profile model, cintains a Foreign Key, which links it to the
user profile.
"""
about = models.TextField(blank=True)
user = models.ForeignKey(User, unique=True)
ranking = models.IntegerField(default
On Fri, 2009-09-18 at 15:29 +0100, Tom Evans wrote:
> On Fri, 2009-09-18 at 06:53 -0700, Daniel Roseman wrote:
> > On Sep 18, 1:01 pm, Tom Evans wrote:
> > > Hi all. I have a model form to update two attributes on a UserProfile.
> > >
> > > The form is simple:
> > >
> >
On Fri, 2009-09-18 at 06:53 -0700, Daniel Roseman wrote:
> On Sep 18, 1:01 pm, Tom Evans wrote:
> > Hi all. I have a model form to update two attributes on a UserProfile.
> >
> > The form is simple:
> >
> > class UserProfileSetRememberMeForm(forms.ModelForm):
> >
On Sep 18, 1:01 pm, Tom Evans wrote:
> Hi all. I have a model form to update two attributes on a UserProfile.
>
> The form is simple:
>
> class UserProfileSetRememberMeForm(forms.ModelForm):
> DURATION_CHOICES = (
> ( 0, 'Default (2 weeks)'),
> ( 1 * 7 *
Hello my web site is in www.mysite.net/django, so i have use the
"FORCE_SCRIPT_NAME = '/django/'" in the settings.py file.
So when i try to reach the admin site after the login he redirect my
in the correct url www.mysite.net/django/admin.
But when i try to reach others pages of the site where
On Thu, 2009-09-17 at 16:35 -0700, mediumgrade wrote:
> I have several views which generate some JSON data. They all end
> something like this:
>
> response = HttpResponse(pie_data, mimetype='application/json')
> response['Content-Disposition'] = 'attachment;
> filename=my_pie_chart.json'
>
>
Hi
I've met that problem before,because IE will cache data when the url and
parameters are the same as previous.
You can append a random number or timestamp to each request parameter, for
example:
first request
/foo?param1=xxx&_t=12020020302
second request
El Fri, 18 Sep 2009 05:07:51 -0700 (PDT)
dijxtra escribió:
> I'm sure I'll be hitting my head against the wall when I hear the
> answer, but before I do, I just can't get an idea how to solve this
> although it seems to me that the solution must be trivial. So, here is
> a
I'm sure I'll be hitting my head against the wall when I hear the
answer, but before I do, I just can't get an idea how to solve this
although it seems to me that the solution must be trivial. So, here is
a line from my url patterns:
url(r'^(?P\d+)/(?P\d+)/(?P\d+)/$', 'day',
name='day'),
and
Hi all,
I am having problems on executing the javascripts. At my django app, i added
this simple script to my base.html.
alert("ok");
I added these lines just after the body part by expecting to see an "ok" alert
message at the load of the first page of the application.
The code is
Hi all,
I am having problems on executing the javascripts. At my django app, i added
this simple script to my base.html.
alert("ok");
I added these lines just after the body part by expecting to see an "ok" alert
message at the load of the first page of the application.
The code is
Hi all. I have a model form to update two attributes on a UserProfile.
The form is simple:
class UserProfileSetRememberMeForm(forms.ModelForm):
DURATION_CHOICES = (
( 0, 'Default (2 weeks)'),
( 1 * 7 * 24 * 60 * 60, '1 week'),
)
YESNO_CHOICES = ( (0, 'No'), (1, 'Yes'), )
Oguz Yarimtepe wrote:
>
not django:
I think,you are using the "Prototype" javascript framework?
IIRC you _really_ should be using
Event.observe(window,'load', function () { ... });
to do stuff the "prototype way".
http://www.prototypejs.org/api/event/observe
Dunno if that's the actual issue (I
James Bennett wrote:
> On Thu, Sep 17, 2009 at 6:01 AM, Chris Withers wrote:
>> All of your problems seem to center on zipped eggs. These are evil
>> things anyway, and can be avoided by simply putting zip_safe=False as a
>> parameter to setuptools (whether it actually
Ok thanks a lot justind!
On Sep 15, 8:40 pm, justind wrote:
> Marco,
>
> See this portion of the
> docs:http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-ad...
> You can override change_form.html template and display what you need
> there.
>
> On Sep
I'm trying to use a FormWizard for a 2 step form. In the first form, I
want to populate the email and post code fields with data from the
current user (request.user.email, request.user.profile.code_postal),
but I can't see how to pass the data dictionary to the form?!? I see
how to pass initial
Hi,
I have my models defined like this.
class Image(models.Model):
description = models.CharField(max_length=500)
.
class ImageStatic(models.Model):
""" Image metadata not under change control
"""
def latest(self):
return
The regex looks fine, you need to stick this in your settings.py
FORCE_SCRIPT_NAME = '""
/ismail
On Fri, Sep 18, 2009 at 8:40 AM, blindrabb...@gmail.com
wrote:
>
> I'm been trying to get django work with lighttpd for a while. I
> finally got it working however there is
I'm been trying to get django work with lighttpd for a while. I
finally got it working however there is a weird error. Whenever I go
to a url, ankiResource.fcgi/ gets appended to the url. This causes
loads of 404's =(
I'm assuming this has something to do with my lighttpd setup, since it
works
38 matches
Mail list logo