Re: Internal Error after chaning SITE domain name and modifying html file...?

2012-12-07 Thread Paul Backhouse
Is it a Site cache issue? https://docs.djangoproject.com/en/1.4/ref/contrib/sites/#caching-the-current-site-object Maybe try Site.objects.clear_cache() On Fri, 2012-12-07 at 00:03 -0800, easypie wrote: > I'm getting an 500 internal error. I did two things before this > happened. (1) I modified

Re: how to use named urls from apps

2012-11-29 Thread Paul Backhouse
Try {% url 'auth_login' %} That works for me in Django 1.4 On Thu, 2012-11-29 at 06:32 -0800, Mike wrote: > I'm trying to use the url template tag to call the login view from > contrib.auth. I've tried the following but none work: > > > {% url login %} > {% url auth:login %} > {% url

Re: Installing forum on django 1.4

2012-11-29 Thread Paul Backhouse
On Wed, 2012-11-28 at 03:15 -0800, Yogev Metzuyanim wrote: > Hi, > Did someone here managed to install a working forum on django 1.4, I > tried all these and I got all kinds of errors: > PyBB > django-forum > django-forumbr > askbot > snapboard > and more... I suspect your question is too

Re: content management in django

2012-09-25 Thread Paul Backhouse
On Tue, 2012-09-25 at 06:35 -0700, eclypcix wrote: > What I should have asked, is it okay to store all the site's html > content in a database? Is it usually done that way? > I'm not sure what you mean by "all the site's html". You wouldn't have _all_ the sites html in the database, django

Re: why Eclipse showed "Undefined Variable"

2012-09-25 Thread Paul Backhouse
On Tue, 2012-09-25 at 08:10 -0700, Maysxuan wrote: > I am new to Python & Django ,and I created a test project for Django > in Eclipse ,then got a "Undefined Variable". > > And who would tell me what happened? > > (Attachment is the screenshot) > You've imported "hello" from "zxcfa.views".

Re: content management in django

2012-09-24 Thread Paul Backhouse
I'm not sure that I fully understand your question, but, for the static content, django flatpages (https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/) may be what you are looking for. News editing would have to be handled by your news editing app! django-cms

Re: Setting an unusable password on an existing user

2012-09-21 Thread Paul Backhouse
Works for me... >>> from django.contrib.auth.models import User >>> user = User.objects.latest('id') >>> user.has_usable_password() True >>> user.set_unusable_password() >>> user.has_usable_password() False On Thu, 2012-09-20 at 23:16 -0700, nav wrote: > Hi, > > Is there any way to set the

Re: Django newbie with issues

2012-09-12 Thread Paul Backhouse
On Wed, 2012-09-12 at 02:46 -0700, Morrti wrote: > moving to 1.4 isn't a quick option for me/us so I'm stuck on 1.1 for a > while. Why is this? If you're new to Django you should dive in at the latest version. If your company has existing projects that are dependent on 1.1, then why not create a

Re: Id error

2012-08-31 Thread Paul Backhouse
In your CountryForm, calling super(self.__class__)... might not be a good idea. You should name the class, ie. super(CountryForm, self).save(*args, **kwargs) I'd also be wary of defining a class called 'Object', since python already has 'object' as part of its "new style" classes. Paul On

Re: Can somebody help me on how to handle this scenario?

2012-08-22 Thread Paul Backhouse
You shouldn't need to define "People" or "User", that already comes in django.contrib.auth.models. Just import User and make that your foreign key where needed. A smart way would be to use django.contrib.comments. https://docs.djangoproject.com/en/dev/ref/contrib/comments/ For more complex

Re: From Django 1.1 to Django 1.3.1 - Goes Very Slow

2012-08-21 Thread Paul Backhouse
On Tue, 2012-08-21 at 07:30 -0700, ydjango wrote: > > I have typical LAMP stack application. I use ORM very heavily. I > recently migrated from django 1.1 to django 1.3.1. > Application has become very slow even though I have doubled the > hardware. > > Two major changes have been: > 1) I have

Re: deprecation warning from HttpResponseRedirect(reverse(...))

2012-08-20 Thread Paul Backhouse
, Mike wrote: > > > On Saturday, August 18, 2012 1:31:42 PM UTC+2, Paul Backhouse wrote: > > I seem to be getting a DeprecationWarning when my view hits > this line of > > code: > > > > return HttpResponseRedi

Re: Django + FAPWS doesnt show the templates/view correct

2012-08-17 Thread Paul Backhouse
Are you sure it's a views/templates issue? You're getting content that looks correct in structure so I'd say the views + templates are fine. Looks like a CSS issue to me. If you're using firefox then install firebug and check the NET tab for 404s to your CSS files. Paul On Fri, 2012-08-17 at

Re: How well does South work in a team?

2012-08-16 Thread Paul Backhouse
On Thu, 2012-08-16 at 10:39 -0300, Tomas Neme wrote: > Well, if you push without pulling, this might happen, *Implicit git usage* :D I'd expect git to squeal about it being a non-fast-forward commit. -- You received this message because you are subscribed to the Google Groups "Django users"

Comparing packages django-groups and django-organizations

2012-08-13 Thread Paul Backhouse
Hi, For my site I want Users to be members of groups. Groups represents a bunch of people that want to discuss something on the site. Here's a brief list of requirements: Users can apply to join a group, or be invited to join. There are objects associated with each group which members can view

Re: Django app to update site through email

2012-08-13 Thread Paul Backhouse
I've just noticed that Askbot seems to do a lot of this already: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/management/commands/post_emailed_questions.py https://github.com/ASKBOT/askbot-devel/blob/master/askbot/mail/__init__.py I've not tested it, and I seem to remember reading a

Re: Django app to update site through email

2012-08-13 Thread Paul Backhouse
On Sat, 2012-08-11 at 13:21 +0300, Marwan Al-Sabbagh wrote: > I'm curious you said you have already implemented this. How did you > end up doing it. Well I just have a manage.py command that uses poplib to get mail. The mail contents are then parsed for app specific keywords (Eg the id of an

Django app to update site through email

2012-08-10 Thread Paul Backhouse
Hi there, The Django site I'm working on at the moment sends out emails when content is created/updated, using django-notifications. A feature I would like to add is where users can reply to these mails, ie comment on a topic. This reply then appears updated on the site. I've already written