Dnia 25-09-2010 o 06:17:10 ydjango napisał(a):
I am stacking filters on queryset. For some reason the second filter
in stack is not applying and it is not giving any error either. Any
way to debug what is going on?
python manage.py shell
Import ur model, and build ur queries live. ipython ha
Are you sure you are saving the new QuerySet that gets created by the
filter? I'm guessing you are doing something like:
qs = MyModel.objects.filter(field1="somevalue")
if condition:
qs.filter("someothervalue")
What you need to do is save the value of the second filter() call.
qs = MyModel.o
I've tried to do something like that:
class Pacienti_manager(models.Manager):
def get_visible(self):
return(super(Pacienti_manager,
self).get_query_set().filter(pacient_id__exact=pacient_id)
but still no go, I tried
def queryset(self, request):
qs= super(Pacient, self).queryset(request)
r
Hi,
I finally came up with the same conclusion and I moved the allnew
django directory to /Library/Python/2.6/site-packages/ to replace the
old one.
It seemed to work.
Thanks for your quick answer!
François.
On 25 sep, 04:57, Karen Tracey wrote:
> 2010/9/24 François Bonnefont
>
>
>
> > I am
Hi,
I want to add a ForeignKey field in UserProfile. Sth like this:
from myapp.models import Person
class Profile(models.Model):
user = models.ForeignKey(User, unique=True,
verbose_name=_('user'))
name = models.CharField(_('name'), max_length=50, null=True,
blank=True)
about = m
i think you use a string for filling that field . but can you please
post the form code too ?
out of topic :
Are you iranian ?
--
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.
Thanks Shawn. I looked back in my model and found I left off something
in my unicode.
On Sep 24, 1:44 pm, Shawn Milochik wrote:
> We need more information. Preferably the full traceback.
>
> In short, something is trying to add a date object to a unicode text
> object. Possibly the date as a da
On Sep 25, 9:51 am, ionut cristian cucu wrote:
> I've tried to do something like that:
> class Pacienti_manager(models.Manager):
> def get_visible(self):
> return(super(Pacienti_manager,
> self).get_query_set().filter(pacient_id__exact=pacient_id)
> but still no go, I tried
> def queryset(
Thanks for replying so quickly.
I thought that since I could not find the problem, I'll just paste the
contents of the files into an email.
# models.py
from django.db import models
from django.contrib import admin
from blog import posts
class Posts(models.Model):
title = models.CharField(max_le
Hello,
You're assuming that form are called only from views. Some Form methods
are mostly used inside templates like as_p for example. Another
assumption you made is that all url point to html ressources. Images,
javascripts can have their url. Generation of pdf, csv and AJAX
mechanics are o
Le 25/09/2010 14:52, werefr0g a écrit :
You're assuming that form are called only from views. Some Form
methods are mostly used inside templates like as_p for example.
Sorry for the double post but this statement is far from accurate (to be
kind with myself). You can use form in a template wi
Hello,
I'm not legitimate to answer you but I'm adding other options that
experienced people can comment.
I'd rather use a ForeignKey in that context but I don't have to think to
much to performances in my apps. You can easily add status, handle i18n
this way. I must confess that writing "d
Hello Aug dawg,
Your code seems fine. You said: " I even manually created a
superuser". What does it mean?, How did you create super user?, and
check your auth_user_user_permission table in the database. Does it
mapped your user and required permissions.
good luck!
On Sep 25, 8:36 pm, aug dawg w
Hey,
I do have problem with SITE_ID. I don't really get this. What is it?
I am using the django registration from bitbucker. When I click on
register I get the following error-message:
You're using the Django "sites framework" without having set the
SITE_ID setting. Create a site in your databas
http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#site-id
On Sep 25, 2010, at 10:50 AM, craphunter wrote:
> Hey,
>
> I do have problem with SITE_ID. I don't really get this. What is it?
>
> I am using the django registration from bitbucker. When I click on
> register I get the fol
Yes, I have read it, but I don't really get it. What is the meaning of
it?
Craphunter
On 25 Sep., 16:51, Max Countryman wrote:
> http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#site-id
>
> On Sep 25, 2010, at 10:50 AM, craphunter wrote:
>
> > Hey,
>
> > I do have problem with SIT
Yes, I have read it, but I don't really get it. What ist the meaning?
What do I have to do?!
Craphunter
On 25 Sep., 16:50, craphunter wrote:
> Hey,
>
> I do have problem with SITE_ID. I don't really get this. What is it?
>
> I am using the django registration from bitbucker. When I click on
> re
Have you set SITE_ID in your settings.py file and run 'python manage.py syncdb'?
On Sep 25, 2010, at 10:59 AM, craphunter wrote:
> Yes, I have read it, but I don't really get it. What ist the meaning?
> What do I have to do?!
>
> Craphunter
>
> On 25 Sep., 16:50, craphunter wrote:
>> Hey,
>>
Hello,
I searched the web for your error message and found that maybe you
should see at INSTALLED_APPS level [1].
Regards,
[1] http://www.pubbs.net/200908/django/40799-django-sites-framework.html
--
You received this message because you are subscribed to the Google Groups "Django
users" gr
When I say I manually created a superuser, I used the command 'python
manage.py createsuperuser' and created another one. What was that
about the auth_user_user_permission
table?
On Sat, Sep 25, 2010 at 10:42 AM, nyambaa wrote:
> Hello Aug dawg,
> Your code seems fine. You said: " I even manuall
I am about a week into learning Django, having developed with PHP and
the CodeIgniter framework for the past 3 years. That said, I'm used
to making a change to a file, refreshing my browser and seeing the
results.
Django's "syncdb" aside, it's been pretty weird having to restart the
Django webser
MAMP can be a bit of a pain I think sometimes to modify, though I haven't used
it much in the past few years. You can use the Mac's built-in apache server
though with mod_python. Check out
http://www.google.com/search?q=mod_python+mac+os+x&ie=UTF-8&oe=UTF-8&hl=en&client=safari
Sent from my iPho
On 25/09/10 15:57, craphunter wrote:
Yes, I have read it, but I don't really get it. What is the meaning of
it?
Consider a website that has multiple blogs, all of which are deployed to
the same database.
Consider that you want each blog to be a separate URL: www.blog1.com,
www.blog2.com, bu
On 25/09/10 16:07, Derek wrote:
I am about a week into learning Django, having developed with PHP and
the CodeIgniter framework for the past 3 years. That said, I'm used
to making a change to a file, refreshing my browser and seeing the
results.
Django's "syncdb" aside, it's been pretty weird h
Thanks for the quick response, guys. I guess what confuses me is the
need to EVER restart the server to pick up changes (excluding db
syncs). It's been stated in many places (including Tim's response)
that the test server will automatically pickup code changes, but on
several occasions I've made
This problem turned out to be related to specificity. Another url
pattern was overriding the pattern that I was testing.
On Sep 24, 9:43 pm, Brandon Taylor wrote:
> So it appears to be something with django-cms' urls that are causing
> issues with testing. I'm able to test any URL that isn't cont
http://pastebin.com/aY6tZm6j
What's wrong with that code ?
Thank you,
cheers
--
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
dja
On 25/09/10 19:36, Derek wrote:
on several occasions I've made changes to a view, and got a "cannot load
page/no response" (from the browser, not a Django error). Once I quit
the server (Control-C), start it up again and refresh the page, it
works fine.
I get that sometimes too - I think it's
Dnia 25-09-2010 o 21:39:15 CarloRatm napisał(a):
http://pastebin.com/aY6tZm6j
What's wrong with that code ?
Thank you,
cheers
http://docs.djangoproject.com/en/1.2/topics/http/urls/#example
And check what ^ char mean
http://en.wikipedia.org/wiki/Regular_expression_examples
--
Linux user
On 25/09/10 20:39, CarloRatm wrote:
http://pastebin.com/aY6tZm6j
What's wrong with that code ?
Thank you,
cheers
^blog/ ^(?Pd+)$
should be
^blog/ ^(?P\d+)/$
??
Tim.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group,
Dnia 25-09-2010 o 22:04:16 Tim Sawyer
napisał(a):
On 25/09/10 20:39, CarloRatm wrote:
http://pastebin.com/aY6tZm6j
What's wrong with that code ?
Thank you,
cheers
^blog/ ^(?Pd+)$
should be
^blog/ ^(?P\d+)/$
??
Tim.
use raw definitions like django docs says.
And why do u put ^ wit
On 25/09/10 21:14, bagheera wrote:
Dnia 25-09-2010 o 22:04:16 Tim Sawyer
napisał(a):
On 25/09/10 20:39, CarloRatm wrote:
http://pastebin.com/aY6tZm6j
What's wrong with that code ?
Thank you,
cheers
^blog/ ^(?Pd+)$
should be
^blog/ ^(?P\d+)/$
??
Tim.
use raw definitions like django
Hi all,
I just start to use Dajax with my Pinax based project
I followed the installation steps
and it's almost working :P
I tried to do a test just copying the following code from Dajax examplex:
http://www.dajaxproject.com/random/
I'ts calling the randomize function correctly (and I can debug i
some extra informations:
I'm adding this lines to my base html:
{% dajaxice_js_import %}
The response has the value(seems right):
Dajax.process([{"cmd": "as", "id": "#result", "val": "5", "prop": "value"}])
and my js raise this error:
Uncaught ReferenceError: Dajax is not defined
It's working now.. I was referencing another jquery file
2010/9/25 Daniel França
> some extra informations:
> I'm adding this lines to my base html:
> type="text/javascript">
> {% dajaxice_js_import %}
>
> The response has the value(seems right):
> Dajax.process([{"cmd": "as", "
35 matches
Mail list logo