I just tried GEdit on the basis of this thread to replace a very good
but slow Komodo. GEdit is not good, or should I say, the plugins that
let it be a python dev environment are not good. Perhaps I've
selected and incompatible set of plugins, because they started off
working somewhat decently,
I have the following:
Model Person
Model Stat
Model Stat Value
Model Team
A Team has a set of Stats relevant to it. A person is on multiple
teams, and has stats for his/her performance on that team which are
stored as Stat Values. Stat values are unique by Person, Stats, and
Team.
I want to b
Hi all,
I have a migrations tool made by me for an internal project.
I couldn't find anything at the time and I made my own.
It uses the Command pattern (took the idea from the Rails migrations)
and plain MySql queries with a parser made with Antlr ... I know it is
not portable but this may be ch
I have a user profile defined in web.core.models.py and I cannot get
this to work at all. I am constantly getting the following:
>>> User.objects.get(username="Alex")
>>> User.objects.get(username="Alex").get_profile()
Traceback (most recent call l
Thanks, worked perfectly.
Not sure if it's just me and my lack of sleep or the docs aren't that
clear on this item. I didn't see much regarding this on the Internet
so there must not be scores of others making the same mistake.
--~--~-~--~~~---~--~~
You received t
On Sep 4, 2:07 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> The Django team is pleased to announce the release of Django 1.0 this evening:
>
> Download:http://www.djangoproject.com/download/
> Release notes:http://docs.djangoproject.com/en/dev/releases/1.0/
>
> Have fun with it, and we'll see
I am very interested in this as well. I had to abandon formsets
because they were too difficult to get working for creating associated
objects at the same time as the original object.
I was sure this was a common issue but could find absolutely no
information about how to do this reasonably clea
Try using Linux then. I just created an Ubuntu dev platform for
Django on my AMD64 and everything worked very easily. You can even
install Ubuntu from windows using Wubi -- practically a one-click
install. Python, MySQL, and all the libs are all ready to go for
AMD64, you just install using the
i use the form i make with
ModelForm. Nothing append. I don't understand because i don't
customise the form, i just exclude some fields.
Is it possible there is a bug in ModelForm.ImageField ??
Thanks
Alex
--~--~-~--~~~---~--~~
You received this messa
I ran into this same problem but the code snippets you guys gave
weren't working. In case anyone is reading this in the future, here is
what you want:
dict([(k, [unicode(e) for e in v]) for k,v in errors.items()])
The above line will give a dictionary of field names mapping to lists
of errors.
hello! I'm trying to make registration based on django-registration
and django-profiles.
What I want is to have initial form for not only with just login-
password-email fields but also to add some custom fields from
userProfile model.
Can anybody help? How can I add additional fields?
--~--~-
http://www.satchmoproject.com/
good luck
On Sep 10, 9:07 pm, aftalavera wrote:
> Hi there,
>
> Where can I found sample about real apps usgin html templates with
> Django templates?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hello all! First of all sorry for my english.
I have made a small form, just 10 fields. now I see that page loads
much slower then without this form...
I found problem in this part of form:
age = forms.ChoiceField(required=True, choices=AGE_CHOICES,
initial='18')
without this field page loads
Hello all!
First of all sorry for my bad english:)
I have made a small form, only 10 fields. But now I see that page
loads more than two times slower!
I found problem in this field:
age = forms.ChoiceField(required=True, choices=AGE_CHOICES,
initial='18')
without this field page loads much fast
Thanks for reply, Jim.
Hmm, just saved full page to disk. Almost the same time... now i think
it's just cost of transferring of big select box. I'll make it a bit
smaller.
Gzip will help me I think)
Thanks again.
On May 16, 4:44 pm, Jim wrote:
> > I have made a small form, only 10 fields. But
Good job! Didn't have much time to check the content but the first 4
or 5 videos seemed very interesting.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djan
Hi,
What would be the best way to convert NodeList created from template
back to a string?
I'm trying to implement a two-pass rendering.
--
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...@googlegrou
3:49 2010] [error] [client 192.168.x.xxx] ImportError:
DLL load failed: The specified module could not be found.
After some Googling, it turns out the problem was with Python 2.6.1
under Windows. Installing the latest version, 2.6.5, solved this
problem immediately for me. Hopefully this will be
om before the js can act on their
values.
This seems like a familiar nut that must be well documented
somewhere... :) any help, pointers very appreciated.
Thanks
Alex
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
nd rendering to that. Keeping the template as html seems like
the right thing to do). I was hoping you'd scream 'don't be daft -
everyone does this...' :)
Alex
--
You received this message because you are subscribed to the Google Groups
&q
on it'
Alex
and thanks Matt for that json version info which was confusing me
--
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 from this
her ideas?
Thanks for any thoughts,
Alex
--
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 from thi
= Othermodel(name="Test")
om.save()
count = om.reel_set.count() #this causes the error
Thanks,
Alex
--
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...@
if this is answered elsewhere but just couldn't find it!
Thanks
Alex
--
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 from this group, send e
I'm having some strange behavior when using Django and Postgres. My
system time zone is EDT and when running datetime.now( ) from a
*Python* shell I get the correct time. If I run a Django shell
through manage.py it is an hour behind. I similarly have set up a
view on a web page to display the t
> Works fine here with Django 1.0.2-1+lenny1; which version do you have?
Django 1.2.1 (installed manually, not through apt) on Kubuntu 10.04,
Python 2.6.5, Postgres 8.4.4.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
> TIME_ZONE = 'America/Los_Angeles'
This actually led to the solution, which was a stupid error on my
part. Somehow TIME_ZONE got into my settings.py file twice and I was
changing the first instance, which was getting overwritten with the
second instance (default Chicago TZ) later.
--
You rec
FreeBSD
On Mon, Aug 16, 2010 at 12:39 PM, Kenneth Gonsalves wrote:
> On Mon, 2010-08-16 at 01:54 -0700, Dan wrote:
> > What do people recommend?
>
> debian lenny
> --
> regards
> Kenneth Gonsalves
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users"
I have tried setting a username parameter in the url pattern and view
with no success. How should this be done? I need a - oh that's how it
works - moment.
Any help very appreciated.
Alex
--
You received this message because you are subscribed to the Google G
mport user_activated
user_activated.connect(user_profile)
I picked this up from this thread :
http://stackoverflow.com/questions/3114976/extending-django-registration-using-signals/3124006#3124006
Hope this helps.
Alex
--
You received this message because you are subscribed to the Go
I am trying to write an application that allows two different kinds of
authentication: Users in the wild can register and use the site with a
new username, password and email and authenticate as usual, and others
can use a single-sign-on solution provided by my university. django-
cas (http://code.
Is it anything to do with the tos
field being a checkbox?
Thanks Alex
--
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 from this group, send e
Hi all,
Slug autocomplete feature is really cool with:
prepopulated_fields = {'slug':('title',)}
Is it possible to prepopulating slug field even after save - when I
want to change title for example?
Actually I use django-multilingual and prepopulating of slug works
only for the first language (
creation in admin.
Is there any setting to do it without changing Django internal source
code?
On 24 Жов, 18:29, Alex wrote:
> Hi all,
>
> Slug autocomplete feature is really cool with:
>
> prepopulated_fields = {'slug':('title',)}
>
> Is it possible to prepopu
rans-database joins, or having trans-
database key constraints, vs. within a single database?
Does anyone see any other optimal ways to keep my table namespace
clean?
Thanks
Alex
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
On Oct 30, 1:00 am, sami nathan wrote:
> Whenever I try to execute a python script that is located in the
> /usr/local/bin, python gives me the error 'python: can't open file
> 'django-admin.py': [Errno 2] No such file or directory'.
Please type the following commands (without the $ prompt) and p
across database boundaries?
And/or is there a good way for me to customize the names of the tables
created by eg., auth, to dampen my urge to use a different database
just for the sake of namespace hygiene? (I'm thinking that the answer
to this is "no".)
Thanks
Alex
On Nov 1, 7:58
at I did not miss something very obvious :-)
Thanks in advance
Alex
--
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 from this group, send email to
django
Posting this question made me rethink the problem... And it was a very
small mistake: {% trans "..." %} is not able to mark multilined...
Just use one line and everything will work.
Hope this helps someone :-)
Alex
On 5 Mrz., 04:19, Alex wrote:
> I've got some very simply
Hi.
Can anybody suggest an idea how to deal with SMTP server with Secure
Password Authentication in Django?
--
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 from t
No.
I've just googled a bit for SPA, SPA+python. But I did not find
anything helpfull.
On 13 апр, 18:44, Massimiliano della Rovere
wrote:
> i think the python modules
> - smtplib
> - email
> will help. Have you already tried these ones?
>
> On Tue, Apr 13, 2010 at 14:
and filling in both the start and end date/time
forms:
"IntegrityError at /admin/reg/workshop/1/
datatype mismatch"
I can provide the entire error message if so desired.
thanks
-Alex
--~--~-~--~~~---~--~~
You received this message because you are subscr
", " }}{%
endif %}
Perhaps this is not the right way to go about this though? If anyone
has a solution it would be much appreciated.
Thanks
Alex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
estions. I'm rather new to Python, so I
appreciate all the help I can get :)
--Alex
--~--~-~--~~~---~--~~
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
Wow, that was incredibly simple. Thanks for the help! I have a strong
feeling I'm not going back to PHP...
--Alex
On May 15, 4:47 pm, jonknee <[EMAIL PROTECTED]> wrote:
> On May 15, 6:17 pm, Alex <[EMAIL PROTECTED]> wrote:
>
> > I'm working on my first Djan
ng of something like the following, which
obviously doesn't work:
queryset =
Quote.objects.filter(source=TVEpisode.objects.filter(TVSeries.objects.filter(authors__slug__iexact=slug)))
Is there an easy way to filter by groups like this?
Thanks,
Alex
--~--~-~--~~~---~-
I'm not sure if this is any closer, but maybe it is:
queryset = Quote.objects.filter(source in
series.tvepisode_set.select_related()),
There's something wrong with the "source in" part, though...
On May 16, 3:39 pm, Alex <[EMAIL PROTECTED]> wrote:
> I'm playin
Alright, I think it works now with this:
queryset = Quote.objects.select_related(slug)
Much simpler than what I was trying...
On May 16, 3:55 pm, Alex <[EMAIL PROTECTED]> wrote:
> I'm not sure if this is any closer, but maybe it is:
>
> queryset = Quote.obje
I'd like to make a link to an item based on which class it is in. I'm
creating a quotes database that has quotes from movies, tv shows, etc.
Movie, TVShow, etc. are all separate classes, and they have separate
URLs for viewing them. I'm trying to create a link to the source based
on which subclass
Thanks Karen!
alex
On Jun 2, 5:18 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 2, 2008 at 3:33 AM, Alexandre Parenteau <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm a newbie with Django, and I&
I already have {{ MEDIA_URL }} set in html, css, and js templates and
that's working great. I would like to start setting far future caching
headers on media files based on the git abbreviated commit hash for
each file. i can think of three options for implementing this and
would appreciate feedba
I have been trying to find a fairly generic way of creating forms that
fill related models similar to the admin method of presenting the main
form and then multiple forms for related objects that can be added in
batches (ex, the tabular form). This is a common requirement but I
haven't been able
Hello Friends,
Please go through the text.
Bill Gates thinks Google should be worried!
---
You must have heard by now about Agloco and how many people think it
is going to be bigger than Google... Now Bill Gates is on record
saying they have a great busine
Hello Friends,
Please go through the text.
Bill Gates thinks Google should be worried!
---
You must have heard by now about Agloco and how many people think it
is going to be bigger than Google... Now Bill Gates is on record
saying they have a great busine
Hi Friends,
This note is mainly to offer you a chance to help build AGLOCO - it
is a Member-owned Internet community.
Here is why I would like you to help. First - it is free. Second - it
is quick and easy to join. Third - AGLOCO's purpose is to get its
members their share of the money genera
Hello all,
I'm new to Django. :)
I'm following the online tutorial. I'm created a application called
"browser" and I'm writing my models. And I'm running into a subclassing
problem. Here is my code:
from django.db import models
class BasicContact:
contact_name = models.CharField(maxlength=
Hello!
Will you make the video available after the webcast?
Thanks.
On Saturday, June 30, 2012 7:10:27 PM UTC+4, Cal Leeming [Simplicity Media
Ltd] wrote:
>
> Hi all,
>
> As some of you know, I did a live webcast last year (July 2011) on our LLG
> project, which explained how we overcome some
specify a proxies dict for requests.
Good luck!
Best
Alex
On Tuesday, October 2, 2012 2:31:52 PM UTC-7, Victor Hooi wrote:
>
> heya,
>
> Thanks for the tips - you're probably right, I might need to whip out
> wireshark or something and see what exactly is going on.
>
I asked this originally on StackOverflow, but I realized you guys
might have more experience with these gnarly edge cases:
http://stackoverflow.com/questions/7131639/how-can-i-have-a-unique-together-constraint-involving-a-foreignkey-field-in-mysql
Thanks for your consideration,
-- Alex Ogier
Django 1.3 supposedly supports spanning model relationships in
list_filter, but when I try to use this feature, the admin page
redirects me to an unfiltered page.
For example, I have an admin list page for a class that looks like:
class PlayerAdmin(admin.ModelAdmin):
model = Player
list_f
r am I just overlooking
something simple? Any advice or links to relevant documentation would
be *much* appreciated. Thanks!
-Alex
--
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@google
there
something I'm still overlooking?
Thanks again,
-Alex
On Oct 28, 5:53 am, Tom Evans wrote:
> On Fri, Oct 28, 2011 at 7:50 AM, Alex wrote:
> > I've been scouring Google and the Django documentation and I can't
> > figure out how to do this. I'm working on
ossible to instruct pretch_related to not use the list of objects
but to use the query that produced the list instead?
Or to explicitly give pretech_related a query to use?
If that is not possible is there another way to go about this?
Thanks!
--Alex
--
You received this message because you are
Hi,
Summary:
I'm getting this error "(2026, 'SSL connection error: Failed to set
ciphers to use')", on the django error page and I don't know what i
happening!!!
I'm using apache / wsgi and my aplication it's on a virtualenv.
The main problem is that I can't connect to a remote mysql ove
What is 'queryset = queryset._clone()' statement in
django.views.generic.list_detail.object_list view used for?
Has it something to do with prevention of usage of cached results, to
allow QuerySet to reflect changes made to the database?
Should I use _clone(), too, if I'm reimplementing this view i
Hello!
Assume we have the following models:
class Book(models.Model):
title = models.CharField()
sequences = models.ManyToManyField(Sequence,
through='BookSequence')
class Sequence(models.Model):
name = models.CharField(unique=True)
class BookSequence(models.Model):
class Meta:
Hi,
Thanks for the nice sugar of django registration.
Has anyone figured out how to get the username of a new user account
into the activation email?
Personalising the experience is more likely to get activation clicked.
Ideas? Thanks in advance,
Alex
--
You
I am having a similar problem that started when I upgraded from django
1.4.x to 1.6.5
My parent model has a custom pk and the model in my inline is using the
default autogenerated id.
Here is some snippets from my models and admin:
(note I have edited down for simplicity and have not tested the
Hi,
The docs explain that it is possible to publish to the channel layer from
outside of a consumer:
https://channels.readthedocs.io/en/latest/topics/channel_layers.html#using-outside-of-consumers
I
need to do the opposite. I have a fairly complex python script that reads
live data from pu
On Sat, Oct 25, 2008 at 12:27 AM, gniquil <[EMAIL PROTECTED]> wrote:
> The reason I don't want to use apache is primarily due to 1. restarts
Why not use Apache with mod_wsgi? Then, you just touch a file to
reload your new code. No restart
Hi,
is there currently a way to have something like:
class Mother(models.Model):
firstborn = models.ForeignKey('Child',
limit_choices_to={'mother':lambda me: me})
class Child(models.Model):
mother = models.ForeignKey('Mother', related_name='children')
(taken from http://code.djangoproj
tions as a function of the current model
instance. "
On Mon, Oct 27, 2008 at 1:16 PM, Alex Rades <[EMAIL PROTECTED]> wrote:
> Hi,
> is there currently a way to have something like:
>
> class Mother(models.Model):
>firstborn = models.ForeignKey('Child',
> lim
et at the information in my
derivative class...
Does anyone have any ideas/suggestions?
Thank you,
Alex.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
PROFILE_MODULE would have
multiple values.
Any clues?
Thanks,
Alex.
On Oct 30, 4:33 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Oct 30, 8:11 pm, Alex G <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I've been trying for some time to create a polym
Hi, Antonio.
Try to replace `datetime.date.today()` with `datetime.datetime.now()` calls.
On Tue, Nov 4, 2008 at 23:58, Antonio Volpon <[EMAIL PROTECTED]>wrote:
>
> Hello.
>
> I am very new to Django and I'm having some problems in overriding the
> save method for a simple class. In particular,
Make `update_stock_status` a free function not `Sale` method.
On Wed, Nov 5, 2008 at 12:43, Low Kian Seong <[EMAIL PROTECTED]> wrote:
>
> My code is here
>
> http://dpaste.com/88831/
>
> It's not working I really don't know why the other part of the
> post_save is not even being executed
>
> On W
And how about to ignore `next` param in `create_account` view and explicitly
redirect user to his restricted area?
On Wed, Nov 5, 2008 at 17:12, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:
>
> Hello,
>
> I have the following situation:
>
> 1) User goes to a restricted area and is offered a cha
With simplejson module (that is part of django distribution) you can covert
to JSON any python objects. So create data structure you need and pass it to
simplejson dump/dumps functions.
On Thu, Nov 6, 2008 at 01:17, Darthmahon <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Ok I'm using the following cod
And what error message do you receive?
On Thu, Nov 6, 2008 at 09:46, Pawel Pilitowski
<[EMAIL PROTECTED]>wrote:
>
> Hi all,
>
> I'm in the process of trying to write an Upload Progress Bar for my app.
>
> I'm using the latest trunk version of Django, mod_python 3.3.1,
> Memcached, Apache 2.2.8 p
The is an existing db internalization application -
http://code.google.com/p/django-multilingual/. Try to look at it.
On Thu, Nov 6, 2008 at 11:20, Brandon Taylor <[EMAIL PROTECTED]>wrote:
>
> Hi everyone,
>
> I'm tasked with translating a mostly database-driven site into
> Spanish. I'm familiar
> Profile.objects.create(name=name, foo=foo)
How do you get this `name` and `foo` variables in `save` method?
On Thu, Nov 6, 2008 at 08:20, meppum <[EMAIL PROTECTED]> wrote:
>
> I've run into a funny case and I'm not sure how to best deal with it.
> Basically, I have the following classes.
>
>
quot;, "dayEvents": [{"id": "1",
"location": "1", "title": "Event 1"}, {"id": "2", "location": "1", "title":
"Event 2"}]}]'
On Thu, Nov 6, 2008 at 12:13, Darthmahon &
If you have `serverid` field in database so you can add reference with
custom column name [1]. For example:
server = models.ForeignKey(Server, db-column="serverid")
[1]: http://docs.djangoproject.com/en/dev/ref/models/fields/#db-column
On Thu, Nov 6, 2008 at 15:10, gv <[EMAIL PROTECTED]> wrote:
Try to set meta [1] `ordering` setting
[1]: http://docs.djangoproject.com/en/dev/ref/models/options/
On Thu, Nov 6, 2008 at 14:51, MikeKJ <[EMAIL PROTECTED]> wrote:
>
> Got something like this
>
> class A(models.Model):
>x
>class Admin:
>x
>
> class B(models.Model):
>
Django uploading mechanism allow you to add date-bases values to path. See
`upload_to` section in [1]
[1]: http://docs.djangoproject.com/en/dev/ref/models/fields/#filefield
On Thu, Nov 6, 2008 at 15:45, sadeesh Arumugam
<[EMAIL PROTECTED]>wrote:
> Hi Friends,
>
> I need a help from you. How to
Django-multilingual has its own discussion group:
http://groups.google.com/group/django-multilingual.
Try to ask there.
On Thu, Nov 6, 2008 at 18:44, Brandon Taylor <[EMAIL PROTECTED]>wrote:
>
> Hi Everyone,
>
> I'm having a hard time getting django-multilingual to work the way I
> expect.
>
>
The is no way to do "redirect to login page, if i hit back button
after logout". But what is wrong that user can see non-actual old
data? I think it has no matter.
On Nov 6, 8:27 pm, jai_python <[EMAIL PROTECTED]> wrote:
> Please help me out
--~--~-~--~~~--
There is no other way to do this in python/django layer. But you can try to
add your temp data in database layer and sort where.
On Thu, Nov 6, 2008 at 22:58, dexter <[EMAIL PROTECTED]> wrote:
>
> I have a queryset which I have looped thru and added a (temporary)
> data attribute to each instanc
`example.com` is default Site added by the project setup into sites contrib
application [1]
[1]:
http://docs.djangoproject.com/en/dev/ref/contrib/sites/#ref-contrib-sites
On Fri, Nov 7, 2008 at 00:12, webcomm <[EMAIL PROTECTED]> wrote:
>
> I don't understand the documentation. I am able to get
Hi, John
Try this:
Category.objects.exclude(bulletpoint__report=r)
On Fri, Nov 7, 2008 at 01:54, John M <[EMAIL PROTECTED]> wrote:
>
> i have a model at http://dpaste.com/88760/
>
> for a particular Report (r), I'd like to get all categories that
> aren't in it's bulletpoints.
>
> For example,
GenericForeignKey and content type application itself look very doubtful for
me. If you have a ForeignKey to the ContentType model then you depends on
order with ContentType objects creates on syncdb. Because ContentType that
references to some model can have different primary key any time you flus
The is not way to get list item by variable index with standard django
template tags.
On Fri, Nov 7, 2008 at 03:52, jago <[EMAIL PROTECTED]> wrote:
>
> I have a for loop over a list A.
>
> inside the loop I want to print out the item of list B at the index
> 'forloop.counter0' of list A.
>
> It
For example you can use `thread locals` to store there request object
On Fri, Nov 7, 2008 at 10:58, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> I have the following:
>
> ## MODELS
>
> class Category(models.Model):
>user = models.ForeignKey(User)
>name = models.CharField(max_length=200)
>
>
Hey guys,
I'm working on a Django application where I'd like to redirect IE6
users to a specific page encouraging them to update their browser.
How would be the most efficient way of doing this?
Thanks!
Alex
--~--~-~--~~~---~--~~
You received th
Try to connection handler without `sender` specified. And filter needed
models inside it.
def my_handler(sender, **kwargs):
if not isinstance(sender, CustomModel):
return
signals.pre_save.connect(my_handler)
On Fri, Nov 7, 2008 at 20:03, Vitaly Babiy <[EMAIL PROTECTED]> wrote:
> if
Did you read the documentation?
http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey
On Sat, Nov 8, 2008 at 09:58, sunn <[EMAIL PROTECTED]> wrote:
>
> How do I make a foreign key to self?
>
> class Page(models.Model):
>title = models.CharField(max_length=128)
>display = mod
I think you have a typo in this line, May be you write `Image.new` with
lowercase "L" not uppercase "I" as first char.
On Sun, Nov 9, 2008 at 02:54, Tsinga <[EMAIL PROTECTED]> wrote:
>
> Hi Djangonauts,
>
> I need your help
>
> I am trying to test a view using PIL(Python Imaging Library). This i
Use database backend for caching while testing. Tests create temporary
database so it will have no side effects.
On Sun, Nov 9, 2008 at 03:13, Adam Seering <[EMAIL PROTECTED]> wrote:
>
> Hi,
>I have a Django app that relies heavily on caching. I'd like
> "./manage.py test" to run on its
Do you have `login` function in this module?
On Mon, Nov 10, 2008 at 00:17, nkulmati <[EMAIL PROTECTED]> wrote:
>
> Hi guys!
>
> Ok this really pisses me off, because I am using the code directly
> from the documentation:
>
> def my_view(request):
>username = request.POST['username']
>pa
Please show complete template code
On Sun, Nov 9, 2008 at 20:55, Brandon Taylor <[EMAIL PROTECTED]>wrote:
>
> Hi everyone,
>
> I'm leveraging auth and have a login form that uses contrib.auth.forms
> AuthenticationForm.
>
> When displaying non-field-specific errors, I get interesting results:
>
1 - 100 of 1902 matches
Mail list logo