Re: How to customize admin interface to edit foreignkey objects on the same page?

2009-01-09 Thread itsnotvalid
ingle page editing possible in admin interface?( I know it is possible to do it in normal pages as long as I get all the data some way and another and create a form to display all the required fields) Thanks!! On Jan 9, 2:49 pm, itsnotvalid wrote: > I have two model, say CustomProfile and User

Re: Is Django best for modular extensible projects?

2009-01-09 Thread itsnotvalid
>From what I tried I think that Django doesn't support "pluggable" plug- in kind of things. I guess it works more like helper ready than simple "pluggable" plug-ins that doesn't require any programming from the users of those apps. But as people using Django is assumed to be able to handle python

Re: How to get the url for media_root?

2009-01-08 Thread itsnotvalid
Thanks a lot!! I completely missed the part regarding context processors... poor me... That means I am still not googlish enough... On Jan 9, 3:09 pm, Malcolm Tredinnick wrote: > On Thu, 2009-01-08 at 22:58 -0800, itsnotvalid wrote: > > Second question at the same time > &g

How to get the url for media_root?

2009-01-08 Thread itsnotvalid
Second question at the same time Anyways, I encountered a problem that when I want to get an item from my media directory, which is set correctly in settings.py, however I couldn't find a template tag to get the url of the media. Looked into the code for djangoproject.com and found that they

How to customize admin interface to edit foreignkey objects on the same page?

2009-01-08 Thread itsnotvalid
I have two model, say CustomProfile and User. When I want to edit CustomProfile I also want to edit the required User object at the same time, which means that for the admin it would look like they are joined together on the add/edit page of CustomProfile. However since I have different profiles

Re: NetBeans IDE for Python

2008-11-27 Thread itsnotvalid
It says for requesting username as password to access. Did I miss anything here? On Nov 27, 11:14 pm, Ovnicraft <[EMAIL PROTECTED]> wrote: > 2008/11/27 AndyB <[EMAIL PROTECTED]> > > > > > More to the point - has anyone figured out how to! I couldn't even > > find a dowload or repository link for

Re: Compare Lists for Unique Items

2008-11-27 Thread itsnotvalid
I would also think that way because if the number won't hit somethin like 100k+ all could be done on the database level because it would be easier to maintain. It would be even better if new CVS project can only be created through django or some other way which would be better to have a cron job s

Re: Creating a system with multiple types of users

2008-10-28 Thread itsnotvalid
Any reply yet? I also looked at the profile functionality from auth. Seems that I can only define a single profile for each user. What if I need to have different profiles for different users? On Oct 25, 1:25 am, itsnotvalid <[EMAIL PROTECTED]> wrote: > Is there any posts relat

Re: Creating a system with multiple types of users

2008-10-24 Thread itsnotvalid
erms is good. > > @permission_required("app.provider.can_view") > def view_func(request): > > also this way you can give the staff or Agents perms that the plebs also > have. > > you could also set a cookie/session var on login for is_a > that would be less db hits

Creating a system with multiple types of users

2008-10-21 Thread itsnotvalid
I am going to help some people making a website that has a few admins, a crowd of service providers (individuals) and customers. There could be agents who invites people to become service providers or customers as well. Looking at the user system provided by django, and as a new programmer to dja

Re: Authentication expiration time

2007-06-17 Thread itsnotvalid
That works, but it changes the behavior of all cookies set in the site. What if I need to have different expiration times for different cookies, or if I have to offer the user an option on how long the cookies' kept? --~--~-~--~~~---~--~~ You received this message

Re: Survey: FileBrowser and FancyUpload

2007-06-16 Thread itsnotvalid
By the way I like the idea of Gmail upload methods too. But a flash plugin could do something like "drag 'n drop" file uploading which, javascript doesn't seem to cut right now. It could be integrated as an option, not a requirement. --~--~-~--~~~---~--~~ You rece

Re: wicket like templating

2007-06-02 Thread itsnotvalid
As far as I know there isn't much a way to replace the default template system with another third-party one (except by extensive hacking). And by the way the uri of "wicket is http://wicket.sf.net/. Unfortunately this thing is written in Java, so there no way to "hack" it into python for now. By

Re: Stagnating Djangobook? Broken Atom feed?

2007-05-29 Thread itsnotvalid
I am hungry for the book. But if the book is going for reviews, is there no more major changes from svn-trunk to 1.0? It is only such a case if a book could really come out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Unicode-branch: testers wanted

2007-05-29 Thread itsnotvalid
Oh man... look like we are not going to file any tickets to code.djangoproject.com... I should feel sorry for that because I was one of them ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Unicode-branch: testers wanted

2007-05-28 Thread itsnotvalid
Thanks for fixing that. I also find using the smart_str() really handy, for cases where stuff getting out of python. Regards, itsnotvalid --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Unicode-branch: testers wanted

2007-05-28 Thread itsnotvalid
Michal, your error looks nearly identical to the one I encounter with admin interface. Except the byte offending is not the same. I guess there is something between the model class and database adapters which adds those strange bytes. --~--~-~--~~~---~--~~ You re

Re: Unicode-branch: testers wanted

2007-05-27 Thread itsnotvalid
I got an error when I am using admin interface to submit some forms as following the Django book (CH6). When the form in admin interface saving. Traceback (most recent call last): File "F:\python25\Lib\site-packages\django-svn\unicode\django\core \handlers\base.py" in get_response 77. response

Re: Frustration on TEMPLATE_DIRS

2007-05-26 Thread itsnotvalid
Actually in the meantime i figured out that using os.path.abspath('templates') would do the job, elegant as it should be. And it is platform independent. For the P.S. bit, I got the idea from djangoproject.com's SVN where they have templates and the rest put together in the same branch. I thought

Frustration on TEMPLATE_DIRS

2007-05-26 Thread itsnotvalid
I am a new user of Django (as well as Python) that finding the tricks on TEMPLATE_DIRS very frustrating. Here is the method of using relative path as written in Django Book: import os.path TEMPLATE_DIRS = ( os.path.join(os.path.basename(__file__), 'templates'), ) As usual, it doesn't work,