On 16 sep, 18:06, cool-RR wrote:
> Hello!
>
> There's something that's bothering me:
>
> When developing a Django application, what is `sys.path` supposed to
> contain? The directory which contains the project, or the directory of
> the project, or both?
sys.path always starts with the directory
On 16 sep, 22:11, ringemup wrote:
> Is it possible for a model to inherit from an abstract model, which in
> turn inherits from a non-abstract model?
I don't thinks so, but I may be wrong. Now nothing prevents you from
trying by yourself, it shouldn't take long to find out !-)
--
You received t
Hi Girish,
On 17 Sep 2010, at 06:28, girish shabadimath wrote:
> thanks for d reply,,,but im new to python n django,,,dint do ne python unit
> testing before,,can u plz give me some links or hints to start with...
IN that case I'd recommend this book:
http://www.amazon.com/Django-Testing-Deb
hello,
I don't understand because django-mailer truncate my log file every
time run cronjob for send email, this is my config in settings.py
import logging
LOGFILE = "site.log"
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)-12s %(levelname)-8s %
(lineno)d
Howto config gunicorn for view in the console debug info, as the same,
run_server command?
Thanks in advanced
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe fro
Hi,
If the user is logged in, instead of
user = User.objects.get(username=nome)
you can use
user = request.user
See:
http://docs.djangoproject.com/en/dev/topics/auth/#authentication-in-web-requests
Nuno
2010/9/17 Giovanna Ronzé :
> Dado que um usuário está logado e quer mudar sua senha, co
Hello,
I don't accuratly understand what your asking for, sorry. Have you seen
what's in http://docs.djangoproject.com/en/1.2/topics/auth/ ? I think
that views.password_change already manages what your describing. If not,
could you express what doesn't fit your expectations, please?
Regards
Hi!
I've a Create-Read-Update-Delete application and some form with
multiple pages created with FormWizard.
How can i allow users to update data using a FormWizard?
With singles forms I'm using generic_views, but I can't figure how to
do this with FormWizards..
--
You received this message becau
hi,
i'm writing a little statistical app for a django-project. everytime a
very model is saved, something's stored in the db, depending on the
model's attributes. if one of the attributes changes, I have to change
the statisitical data otherwise it would leed to inconsistency. I need
to know the o
On Sep 17, 10:13 am, bruno desthuilliers
wrote:
> On 16 sep, 18:06, cool-RR wrote:
>
> > Hello!
>
> > There's something that's bothering me:
>
> > When developing a Django application, what is `sys.path` supposed to
> > contain? The directory which contains the project, or the directory of
> > th
Hi,
I am experiencing an issue on annotate function only on my production
site only when executing the code on a normal navigation (the shell
command on production has no problem).
This is the pseudo code :
# models
class Competition(model):
title = char
published = bool
date = date
On Thu, Sep 16, 2010 at 10:55 PM, Brian Neal wrote:
> On Sep 16, 7:37 pm, Karen Tracey wrote:
> >
> > Use this widget for the field:
> >
> > http://docs.djangoproject.com/en/1.2/ref/forms/widgets/#django.forms
> >
> > with render_value=False
> >
> Note that the docs indicate the default valu
Hey,
I keep getting this annoying problem that when I download and install
a new django package, say django-registration it reverts django from
version 1.2 to 1.1... Is there anyway to avoid this as it messes up my
databases each time for each django project I am running.
I've used a variety of m
Hi Robbington.
I'd suggest to use virtualenv and keep to use *only* pip
that way only you have the power to change anything
to update Django to a version above 1.2 simply
pip -E your_virtual_environment install Django>=1.2
zalun
On 09/17/10 13:02, Robbington wrote:
> Hey,
>
> I keep getting thi
Hi,
I built a site with django. Now i have a stupid (i couldnt understand) problem.
Everything works perfect but when i try to login and
registration/login.html is rendered, there is a margin at the top of
the login.html. And the font size increases 1 or 2 points. Font family
and other css elemen
Cool, thanks.
I guess I will have to start using virtualenv, it came installed with
my vps stack script, but I disabled it as I was having probs using
postgres. I guess I never gave it a great deal of time.
I just dont get why its now reverted to v1.1, its not even on my
python path, print sys.pa
Sure, it's easy enough to find out if it works in a general sense --
but I'm also concerned about running into subtle bugs down the road,
and having to restructure my entire database as a result.
On Sep 17, 4:15 am, bruno desthuilliers
wrote:
> On 16 sep, 22:11, ringemup wrote:
>
> > Is it pos
style of html documents depends on browser defaults which may take
precedence other your styles.
I rememer vaquely that there are browser rendering and some other
component rendering which affect resulted document appearence.
Try different browser at least.
On Sep 17, 2:19 pm, ozgur yilmaz wrot
just an idea - use database triggers
On Sep 17, 12:53 pm, Julian wrote:
> hi,
>
> i'm writing a little statistical app for a django-project. everytime a
> very model is saved, something's stored in the db, depending on the
> model's attributes. if one of the attributes changes, I have to change
>
I have a bunch of models and I want to specify which models (tables)
are stored on which PostgreSQL database. I've read the documentation
and I know I can use the using() function. I'm just wondering this
can't be specified in the model's meta data:
class Meta:
using = 'db_name'
or:
I'm looking to add request.user.username to the content of the 500
error email that gets sent to settings.ADMINS. Of course, this assumes
that you're using the AuthenticationMiddleware.
I've tried the following:
- Adding username to request.COOKIES via response.set_cookie(). This
works, but if y
Hi,
add a middleware class and write a
def process_exception(self, request, exception):
function where you send the mail yourself.
look at http://bitbucket.org/ashcrow/django-error-capture-middleware to get an
idea,
of how to preceed errors yourself...
regards
Hinnack
>reply to message:
>da
Hi,
I'm trying to create a form that is specialized in displaying a list of
items. This form should have fields/features for filtering, paging and
sorting. Here's what I have so far :
from django import forms
from django.db import models
class ModelListForm(forms.Form):
def display_gri
hi,
I've written successfully an custom filter for the admin-interface. if
I visit
http://localhost:8000/admin/usertracking/analyze/
coming from http://localhost:8000/admin/), none of the filters is
applied, although it's marked as "selected" on the right side on the
website. the reason is proba
On Fri, Sep 17, 2010 at 10:58:19AM +0530, girish shabadimath wrote:
> hi Paul,
>
> thanks for d reply,,,but im new to python n django,,,dint do ne python unit
> testing before,,can u plz give me some links or hints to start with...
http://docs.djangoproject.com/en/1.2/topics/testing/
has plenty
On Fri, Sep 17, 2010 at 10:58:19AM +0530, girish shabadimath wrote:
> hi Paul,
>
> thanks for d reply,,,but im new to python n django,,,dint do ne python unit
> testing before,,can u plz give me some links or hints to start with...
http://docs.djangoproject.com/en/1.2/topics/testing/
has plenty
Hello,
I am trying to set up a blog on my django-based website. I followed
the examples here:
http://docs.djangoproject.com/en/1.1/ref/contrib/syndication/
The docs are great, and it was pretty easy to set up. And it sort-of
works. But there are a couple of problems I can't figure out.
First: A
My first post on this list. I wish to try out a blogging app developed
in Django, called Mango, and according to its instructions I just need
to get Django installed. I'm looking for a little guidance with this.
Also, I'd like to determine just what kind of mess I've created with
my attempts at ins
Thanks for the thorough email. Hopefully somebody else can tell you more
about what you did bc I'm not that familiar with the Django internals, but
shared hosting is just hard to navigate. (I assume you are using a shared
hosting account, thus the sudo command - run as administrator - doesn't
work.
On 09/17/2010 01:51 PM, Thomas wrote:
4. Per instructions at djangoproject.com for "Installing an official
release", I ran "tar xzvf Django-1.2.3.tar.gz", changed to the new
Django directory, and ran "sudo python setup.py install". When
authentication failed (and for what reason, I have no idea,
Django is a Python module like any other. You won't be able to install it on
shared hosting because you won't have permissions to the package directory. You
can easily get around this by using virtualenv.
Here are the basics you'll need:
download virtualenv
extract the tarball
do not try to i
Hi,
recently I discover that is possible to pass queryset filters as GET
argument:
http://stackoverflow.com/questions/1652305/is-there-a-way-to-filter-a-queryset-in-the-django-admin/1652377#1652377
Unfortunately I'm not be able to do that trick on a TabularInline class :(,
any idea??
Many thanks
Hello all, I just downloaded the IE9 beta to see if everything worked
as expected. However when going to 127.0.0.1 with IE9 using the
django dev server, i get:
[Errno 10054] An existing connection was forcibly closed by the remote
host
Not sure what is going on. Any ideas?
Thanks
--
You rece
One easy solution for this is to override the __init__() of your model
and save the values of the properties you care about in a dictionary
within your instance, such as self.orig_values.
Then, override the save() and compare the values of your model to
self.orig_values to see if they've changed.
I am using virtualenv 1.5 to install multiple version of django in
same PC.
My Django is works fine with virtualenv, follow this link
http://pypi.python.org/pypi/virtualenv#downloads
but me face problem with MySQLdb when i configure the database in
setting.py file.
Error is :
ImproperlyConfigured
Hi,
On Sat, Sep 18, 2010 at 4:41 AM, TheIvIaxx wrote:
> Hello all, I just downloaded the IE9 beta to see if everything worked
> as expected. However when going to 127.0.0.1 with IE9 using the
> django dev server, i get:
>
> [Errno 10054] An existing connection was forcibly closed by the remote
36 matches
Mail list logo