Getting back to the same page after completing a task in another page

2008-05-10 Thread M.Ganesh
Hi all, Trying to learn django. I am displaying a list of records in a page. I have a link in that page which will take me to a form for adding one more record. How do I come back to the previous page after adding a record? I remember seeing somewhere a trick involving something like

Re: Group 'profile'

2008-05-10 Thread Marcin Gorczyński
Well thats what I did, a m2m in the user profile class, I meant having something like this: group.get_profile() like with the user class, but after rethinking I guess it can be done without it Sorry for the trouble On May 11, 5:46 am, phillc <[EMAIL PROTECTED]> wrote: > im not understanding

Re: doctest not running in an app

2008-05-10 Thread davenaff
I take that back. Not resolved. My directory structure looks like this: /appname/models.py /appname/utils/__init__.py (empty) /appname/utils/util1.py in util1.py, I do this: from appname.models import Class1, Class2 This causes the doctests in models.py to not run. If I change util1.py to:

Re: Group 'profile'

2008-05-10 Thread phillc
im not understanding whats limiting you from using get_profile to "extend" the user model... then in that having a foreign key (or m2m) to your group On May 10, 7:10 pm, Marcin Gorczyński <[EMAIL PROTECTED]> wrote: > Hello > > In my site I want users to belong to groups, but in a quite diffrent

Re: install question

2008-05-10 Thread phillc
if you set a file association of .py to the python.exe, you wont have to type python before each command On May 10, 4:12 pm, davenaff <[EMAIL PROTECTED]> wrote: > It sounds like you have an application configured to open .py files. > > Try: python manage.py etc. > > On May 10, 12:04 pm,

Re: Unicode slug?

2008-05-10 Thread Peter of the Norse
The regular expression you give will only match ACSII letters, numbers, and minus (-). If you have anything else, like a space orother punctuation, it will fail. One solution is to use slugify from django.template.defaultfilters. It will turn everything into a good slug. Then all you need

Re: new forms comments

2008-05-10 Thread phillc
django comments is being re-written as a google summer of code project http://code.google.com/soc/2008/django/appinfo.html?csaid=67A7AB4801F06D7B On May 10, 2:14 pm, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Hi, > > Any ideas where (which branch/patch/?) new comments using new forms is being >

Re: doctest not running in an app

2008-05-10 Thread davenaff
Thanks for the note. I actually just resolved this. I had created a module that resided in the appname directory, and was importing via: from appname.models import * I changed the import to: from projectname.appname.models import * And tests were correctly picked up. I think this is a bug?

Re: doctest not running in an app

2008-05-10 Thread phillc
can we see your models.py? On May 10, 9:00 pm, davenaff <[EMAIL PROTECTED]> wrote: > It is probably also worth noting that _doctest returns correct > (projectname.appname.models) object.__module__ values for Managers. > > On May 10, 5:49 pm, davenaff <[EMAIL PROTECTED]> wrote: > > > As I dig

Re: doctest not running in an app

2008-05-10 Thread davenaff
It is probably also worth noting that _doctest returns correct (projectname.appname.models) object.__module__ values for Managers. On May 10, 5:49 pm, davenaff <[EMAIL PROTECTED]> wrote: > As I dig into this, I've found that the problem is that the classes in > my models.py file are not being

Re: doctest not running in an app

2008-05-10 Thread davenaff
As I dig into this, I've found that the problem is that the classes in my models.py file are not being recognized as being from the module. Specifically, the _from_module function in the DocTestFinder class in _doctest.py is failing to identify the module as internal. Upon closer inspection

Group 'profile'

2008-05-10 Thread Marcin Gorczyński
Hello In my site I want users to belong to groups, but in a quite diffrent manner from what the contrib.auth Group model is capable of. What I would want is something like with profiles for users - you create a profile model and then someuser.get_profile(), but tinkering with the contrib.auth is

doctest not running in an app

2008-05-10 Thread davenaff
I've just begun using doctests and when I run manage.py test appname, the doctests in the models.py file aren't running. I have other apps in the project that have doctests that run fine. I also have taken the models in this app and pasted them into a different app. The doctests run fine in

Re: install question

2008-05-10 Thread davenaff
It sounds like you have an application configured to open .py files. Try: python manage.py etc. On May 10, 12:04 pm, garrettjohnson <[EMAIL PROTECTED]> wrote: > i just moved back to windows (after a horrible hardy heron update)... > > Everything seemed to install just fine, its in my

Re: auto admin for production

2008-05-10 Thread Doug B
> Why is that a bad idea? > If I mainly need CRUD operations it is natural to solve it with admin > interface. > Cannot these "security issues" if any eliminated, and use the admin > interface for a whole site? (if it needs just CRUD). ->ADMIN<- Interface. It wasn't designed to be an entire

install question

2008-05-10 Thread garrettjohnson
i just moved back to windows (after a horrible hardy heron update)... Everything seemed to install just fine, its in my site-packages and the bin is in my Path, but when 'django-admin.py' is called it tries to open the django-admin.py file itself... it is quite odd. Any hints? Im running vista.

Re: IIS 6 PyISAPIe problems

2008-05-10 Thread Phillip
Hi all, I just got wind of this thread today, and I'll be taking a look at what is causing this weirdness. I created a group for PyISAPIe support, and it would help a lot if you could head over there and post what versions of Django and Python you're using.

new forms comments

2008-05-10 Thread Ramdas S
Hi, Any ideas where (which branch/patch/?) new comments using new forms is being rewritten/implemented? Ramdas S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: auto admin for production

2008-05-10 Thread pihentagy
Jeff Anderson wrote: > pihentagy wrote: > > Hi all! > > > > I come to here from a little symfony background (a framework, which > > try to borrow good things from django), and would like to have an > > overview how django stacks up. > > > > I would like to ask, if the admin module can be used on

Re: IIS 6 PyISAPIe problems

2008-05-10 Thread rcs_comp
> > Traceback (most recent call last): > File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request > imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request > File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1, > in > from django.http import HttpResponse > ImportError: No

Re: Django with Ajax

2008-05-10 Thread Diego Ucha
Monica, I recommend this thread: http://groups.google.com/group/django-users/browse_thread/thread/a26d805427aa643f/c856de7596c3e249?hl=en#c856de7596c3e249 I think it will solve your problem. []s Diego Ucha On May 9, 2:52 pm, "Monica Leko" <[EMAIL PROTECTED]> wrote: > On 5/9/08, Richard Dahl

Re: PicklingError:?

2008-05-10 Thread Karen Tracey
On Sat, May 10, 2008 at 3:22 AM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > This view did work. However, I just did a 'svn up' and now I believe > the new queryset-refactor is causing my code not to work. Below is my > view: > > /// > > def tracking(request): >if request.POST: >

Re: Handle on request object from custom tag

2008-05-10 Thread T.garzon
Hi, It is very easy, see below: # The first argument *must* be called "context" here. def jump_link(context): return { 'link': context['home_link'], 'title': context['home_title'], } # Register the custom tag as an inclusion tag with takes_context=True. register.inclusion_tag('link.html',

Earn some money (note This Is not Fraud)

2008-05-10 Thread joheny bravo
Earn some money from home just signup in 30 seconds and get paid NO Credit Card is need noting Else is needed You can say money is One Click Away From You. Just click the link below. That is not the fraud. Everything is clear like crystal.

chils birth videos

2008-05-10 Thread joheny bravo
*Child Birth Video* http://www.ziddu.com/download.php?uid=brKhnJylaq2dlpSts6yZlJyiZa6WlZqr5 http://www.ziddu.com/download.php?uid=Z6ybnJ2ubKuZlJitsqyZlJyiZK6WlZqp4 http://www.ziddu.com/download.php?uid=aqugl5ilY6uim5ansKyZlJyiYq6WlZqp2

Rape Viedeo of a chinese girl

2008-05-10 Thread joheny bravo
Real Rape Video of a Chinese Girl *http://www.ziddu.com/download.php?uid=brGhlZWqaLOfnJettKyZlJyiZq6WlpWr6* http://groups.yahoo.com/groups/baba_sikandar_paki/join --~--~-~--~~~---~--~~

malika sherawat sex video

2008-05-10 Thread joheny bravo
*Malika Sherawat Sex Video.* * * * * *http://www.ziddu.com/download.php?uid=bLCdnZ2tb66hnOKnaaqhkZSpZqyel5ys9* http://groups.yahoo.com/groups/baba_sikandar_paki/join**