How to write the reverse function for the following

2010-06-07 Thread Superman
The urlconf: url(r'^register/$', register, { 'backend': 'registration.backends.default.DefaultBackend' }, name='registration_register'), The view: def register(request, backend, success_url=N

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Superman
h variables diff  between shell and code > execution. Another way check this error path is there libxml2 or not. > it may be in usr/lib/python2.5. or something like that. > > On Jun 2, 4:57 pm, Superman wrote: > > > I have a django site that is integrated with scrapy, but whe

Unable to import libxml2mod from the python script

2010-06-02 Thread Superman
I have a django site that is integrated with scrapy, but when the scrapy code is called from the view, I get this error: File "/usr/local/lib/python2.5/site-packages/libxml2.py", line 1, in import libxml2mod ImportError: /usr/local/lib/python2.5/site-packages/ libxml2mod.so: undefined

Re: Tricky Django tables setup

2009-12-10 Thread Superman
assign as many specs to a project that you want, > with additional fields (basically a many to many relation). > > On Dec 10, 10:57 am, Superman wrote: > > > By the way this is what the three models roughly look like. > > > Class Projects(model.Models): > >      t

Re: Tricky Django tables setup

2009-12-10 Thread Superman
(Specs) Class Specs(model.Models): title = models.CharField(max_length=200) On Dec 10, 10:53 am, Superman wrote: > Thank you DR for your response. > > Yes that helps in a way, as that is what I am planning to do. But at > the moment I can store the name of Projects, Categories and Sp

Re: Tricky Django tables setup

2009-12-10 Thread Superman
information. How can I set that table up... in a way that it can expand both sideways and downwards? On Dec 10, 10:38 am, Daniel Roseman wrote: > On Dec 10, 3:19 pm, Superman wrote: > > > > > Hi guys, I can't wrap my head around this problem I have... someone > > p

Re: One to many mixins?

2009-12-10 Thread Superman
Can you not create another Field in SubForm 1 model? Like so: class SubForm1(models.Model): def __unicode__(self): return "SubForm1" Form1 = models.ForeignKey(Form1) Form2 = models.ForeignKey(Form2) ## some fields here On Dec 10, 8:53 am, Shai wrote: > Hi all, > > I'm not sure my t

Tricky Django tables setup

2009-12-10 Thread Superman
Hi guys, I can't wrap my head around this problem I have... someone please help. The Problem: I have a list of various projects, in a Project Model. Each of them has a foreign Key to a Category model. Each Category has a Many to Many Relationship to a Specification model. So it is like this. Proje

Re: @login_required() dont work

2009-07-28 Thread Superman
Still doesn't work :( I have the same problem. I use python 2.5 and my code is... from django.contrib.auth.decorators import login_required @login_required def vote(request, poll_id): p = get_object_or_404(Poll, pk=poll_id) try: ... --~--~-~--~~~---~--~~