django for end users?

2006-07-11 Thread maphew
okay, here's the background: I've been maintaining some websites since the mid 90s. Most of it badly. I've coded by hand, used dreamweaver, blosxom, twiki, and a few other doodads along the way like wordpress and joomla. I'm sick of all of them and want "a better way". I wouldn't call myself a web

Re: Password Generator

2006-07-11 Thread Malcolm Tredinnick
On Wed, 2006-07-12 at 03:18 +, Scott McCracken wrote: > I also ran into this problem when trying to create new users in the > Django admin interface. According to the Django documentation "We've > added extra security to the stored passwords in Django's authentication > system. Thanks to a pat

Re: Password Generator

2006-07-11 Thread Scott McCracken
I also ran into this problem when trying to create new users in the Django admin interface. According to the Django documentation "We've added extra security to the stored passwords in Django's authentication system. Thanks to a patch from GomoX, passwords are now stored with a salt and use SHA-1

Re: ANN: Screencast showing a step by step installation of a real-life Django application on a WebFaction account

2006-07-11 Thread Kenneth Gonsalves
On 11-Jul-06, at 9:46 PM, Remi wrote: > PS: Since I'm posting here I'll also answer two questions that we > get a > lot: yes you can use the latest subversion Django code on our accounts > (this is what is done in the screencast) and yes you get your own > Apache2+mod_python instance which you

Re: How get user, included in generic views?

2006-07-11 Thread Joshua Tacoma
I don't know how to replicate it right now (I tried logging out and deleting cookies, no dice) but it did happen to me once or twice while I was developing something. If you only find this problem when you aren't logged in then treating 'not user' as equivalent to 'user.is_anonymous' should be ok

Re: Template tags and context processors

2006-07-11 Thread Malcolm Tredinnick
On Tue, 2006-07-11 at 15:38 +, plungerman wrote: > greetings, > > i have been working on a template loader to retrieve templates from the > database. after integrating the loader to work with the django's > admin, i now serve up templates from both the file system and the > database, for bot

Re: Limiting table editing in admin interface

2006-07-11 Thread Joshua Tacoma
Setting permissions on a per-entry basis isn't supported yet but people (mostly Chris Long) are working on it: http://code.djangoproject.com/ticket/2270 http://code.djangoproject.com/wiki/RowLevelPermissions -- Joshua --~--~-~--~~~---~--~~ You received this messa

Re: TABULAR ImageField gets deleted

2006-07-11 Thread Joshua Tacoma
I found this problem once myself: 1. Add a news_pic, upload the image. 2. Go to edit the parent news item, make some changes, save it. 3. Discover the image has been deleted. I dealt with it by moving core=True to another field, like 'title' or 'tags'. Notice that in step 2 the news_pic is displa

Re: Views and 404 - render_to_response

2006-07-11 Thread Bob
Thanks for your replies. slug = slug worked. I was just tired and must have made a mistake in there somewhere. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Limiting table editing in admin interface

2006-07-11 Thread Iain Duncan
Can anyone tell me if it's possible to limit which entries within a given table can be edited in the admin? I've made a client user account that can only edit certain models, but I would also like to make sure within those model/tables there are some entries that they can't change. ( ie no deleti

Re: Views and 404 - render_to_response

2006-07-11 Thread arthur debert
Bob wrote: > What would it be if I want to get my item from the database by the slug? this depends on the moel's ttribute name (the one that's a slug). If you can post you model's code, I can assiste further... cheers --~--~-~--~~~---~--~~ You received this me

Re: Referring to media files

2006-07-11 Thread keukaman
One more thing, if you don't mind. The documentation, and your context_processors.py show in the myapp directory. Can that file be in "mysite", rather than "myapp" so I don't have to repeat it for application I make? --~--~-~--~~~---~--~~ You received this message

Re: User never logs out

2006-07-11 Thread SmileyChris
I don't indent .not_anonymous to solve this problem. But it wouldn't mask it any more than .is_anonymous either. The reason I suggest this way, is that I'd rather have a template default to the "not logged in" section rather than just assume a logged in user when actually the user may just not be

Re: Having trouble with views

2006-07-11 Thread Tomas Jacobsen
Wow, thanks for the help! I do understand the principle of views and templates now, but I still need some help. I have managed to get out the slug name of my projects in "mydomain/portfolio/". But I don't know how I write the view for the detail page or how I get the right URL to the detail. I w

Re: Views and 404 - render_to_response

2006-07-11 Thread Bob
I don't understand the arguments for get_object_or_404. (just found out what "pk" means) What would it be if I want to get my item from the database by the slug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Hola

2006-07-11 Thread Facundo Casco
Hi, my native language is spanish. I'm learning both Django and Python and I'd like to help translating Django docs to spanish. Please contact me if there is some work in progress. Facundo Douglas Campos wrote: > I think that a "official translation team" would be awesome. If we can > concentrate

Re: How get user, included in generic views?

2006-07-11 Thread Guillermo Fernandez Castellanos
Hi, I do actually have a very similar problem, and I've also checked the more common errors (settings file,...). I put in my templates: {% if user.is_anonymous %} Welcome, new user. Please log in. {% else %} Welcome, {{ user.username }}. Thanks for logging in. {% endif % But then, I onl

Re: Views and 404 - render_to_response

2006-07-11 Thread arthur debert
Hi Bob. If you're getting 404's, then it's not in import problem on your view. >From your code this line grabbed my attention: p = get_object_or_404(Myclass, pk=slug) if your are searching against the pk, this will only get any results if the slug is the pk for your model (that will only happe

Re: list_filter and sing urls ..

2006-07-11 Thread Spock
Thanks ! ..that is what I need :) I'm always wonder how You find time for activity on this list ...36h day timezone ? :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: list_filter and sing urls ..

2006-07-11 Thread Adrian Holovaty
On 7/11/06, Spock <[EMAIL PROTECTED]> wrote: > def url_to_contract(self): > return '%s" % (self.id,self.owner) > >class Admin: > list_filter = ( 'owner', 'url_to_contract') > > And when page is rendered I'dont get html link only string " href..and so on" > Is there way to

TABULAR ImageField gets deleted

2006-07-11 Thread Enrico
Hi, I'm loosing my pic when I edit the model on the admin in TABULAR mode. I have the following model: class news(models.Model): name = models.CharField(maxlength=60) pub_date = models.DateField(default=datetime.now) content = models.TextField() class Admin:

list_filter and sing urls ..

2006-07-11 Thread Spock
Hello, I'm trying to build application based ond admin interface but here is problem :) If i create function that return html it is escaped when used in list_filter Example class Deal(Model): owner = CharField(maxlength=64) bla bla ... def url_to_contract(self): return '%s

Views and 404 - render_to_response

2006-07-11 Thread Bob
I'm not sure what I am doing wrong. I've tried a few things but it isn't working and I get a 404 error for everything: def detail(request, slug): p = get_object_or_404(Myclass, pk=slug) return render_to_response('myapp/detail.html', {'what goes here?': p }) # it did work with: return Ht

Re: Request context processors - shortcut

2006-07-11 Thread spako
Thanks, that's exaclty what i needed! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send ema

Re: Request context processors - shortcut

2006-07-11 Thread James Bennett
On 7/11/06, spako <[EMAIL PROTECTED]> wrote: > this is the only way i could get context processors specified in the > setting TEMPLATE_CONTEXT_PROCESSORS to be run in a view. i basically > want to know if what i do is the "correct" way of doing things and also > if there are other way of getting c

Request context processors - shortcut

2006-07-11 Thread spako
i'm going to be using custom context processors a lot so i've written my own shortcut to invoke RequestContext and get a template rendered. this is my function: def render_to_response_with_context_processors(template_name, request, args={}): """ this function was written to provide a "sho

How get user, included in generic views?

2006-07-11 Thread mamcxyz
I don't get the USER from context in generic views. I have configured the context procesors with django.core.context_processors.request, but not work in generic views...Why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

IBM Article on TurboGears (w / Django Comparison)

2006-07-11 Thread Ian Maurer
IBM has published the 2nd part in my two-part series on Web Development frameworks. http://www-128.ibm.com/developerworks/linux/library/l-turbogears/ Also, at the end of this article I include my comparison of the 2 frameworks. I tried to be as objective as possible. Hopefully both projects wil

OpenDocument and django

2006-07-11 Thread Javier Rivera
Hi ;). Let's start with some presentation, please jump ahead for the interesting stuff. We (I mean my company) have evaluating some options to make a kind of "business intelligence" web application. Basically a simple web page where users make some selections, the app query a database and ret

Password Generator

2006-07-11 Thread Tim
I'm pretty new at this Django stuff and I really like using the free Admin except for creating new users because it's difficult to create passwords. Is there anyone out there interested in building a "Django Password Generator" -- a utility to create the string for inserting new users? It would b

Re: Referring to media files

2006-07-11 Thread Steven Armstrong
On 07/11/06 04:22, keukaman wrote: > Thanks for the help. Will this work if my site is primarly flat pages? > This will work with any django template. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Including a php script in a template

2006-07-11 Thread Steven Armstrong
On 07/11/06 10:59, [EMAIL PROTECTED] wrote: > Hello all! > > Is it somehow possible to include an exisiting php-script which prints > a table and some textual data (after some large calculations) in a > django template? > I rather don't want to port the existing php-script as it makes it job > we

Re: The JavaScript ManyToMany Widget & view

2006-07-11 Thread Lucas Vogelsang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James Bennett wrote: > On 7/11/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote: >> I am looking for an implementation for a ManyToMany relation. I >> quite like the way one can create the relations in the admin >> interface. However I can't find a templ

ANN: Screencast showing a step by step installation of a real-life Django application on a WebFaction account

2006-07-11 Thread Remi
Hi all, There is now a screencast showing a step by step installation of a real-life Django application on a WebFaction account. The 19 minute screencast shows how to: - Install a default Django application using our control panel - Make it available over HTTPS as well (useful for the admin

Template tags and context processors

2006-07-11 Thread plungerman
greetings, i have been working on a template loader to retrieve templates from the database. after integrating the loader to work with the django's admin, i now serve up templates from both the file system and the database, for both the public and admin sites. one problem, however, is with temp

Re: FileBrowser Test Version

2006-07-11 Thread va:patrick.kranzlmueller
a new version of the filebrowser is available for download. CHANGES: 001: You may define an initial directory for each FileBrowseField by adding a path to the help_text: Like "FileBrowser: /images/blog/" or "FileBrowser: /documents/pdf/". 002: Sorting algorithm also works with Python 2.3 now

Re: The JavaScript ManyToMany Widget & view

2006-07-11 Thread James Bennett
On 7/11/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote: > I am looking for an implementation for a ManyToMany relation. I quite > like the way one can create the relations in the admin interface. > However I can't find a template nor a view for this in my django > source tree. Anybody can help me w

Are choices supported on DateField?

2006-07-11 Thread Carlos Yoder
Hello there, Is there a way to constrain a DateField with a choices tuple? I want the admin to restrict dates to valid months and years only. Maybe I should make this happen with two different IntegerFields? Best regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~

Re: Problems in encryption when creating a new user with Admin

2006-07-11 Thread Vizcayno
Malcom: Many thanks for your time and interest in answering and clarifying my doubts. According to this, it is now a little detail comparing with the general and nice architecture of Django. Very best regards. Vizcayno. --~--~-~--~~~---~--~~ You received this mess

Re: Including a php script in a template

2006-07-11 Thread Aidas Bendoraitis
I think, the only way to do that is to call the php script in shell from the Django view, retrieve the results into a string, and to pass it to the template. To execute a command in the shell from withing Python, you should write something like this: import os put, get = os.popen4("ls") # replac

The JavaScript ManyToMany Widget & view

2006-07-11 Thread Lucas Vogelsang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am playing around with python and django for about a week. and it has been great fun. I am looking for an implementation for a ManyToMany relation. I quite like the way one can create the relations in the admin interface. However I can't find

Re: Please help - FCGI installation woes

2006-07-11 Thread Carlos Yoder
Gábor, I'm reading Jeff's tutorial, and I believe I'm seeing the light at the end of the tunnel. Will update later, thank you! On 7/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > Carlos Yoder wrote: > > Hello guys, > > > > I'm having a lot of trouble trying to install a Django app on a sha

Re: Please help - FCGI installation woes

2006-07-11 Thread Gábor Farkas
Carlos Yoder wrote: > Hello guys, > > I'm having a lot of trouble trying to install a Django app on a shared > hosting (servage.net). > > The support people, even though they're very friendly an all, don't > know crap about Django or how to install it. They're OK for normal > tasks, but it gets

Re: FileBrowser Test Version

2006-07-11 Thread va:patrick.kranzlmueller
thanks. I will take a look at the bugs mentioned by archatas - so there'll probably be a new version for download later today. SVN: I´ve never worked with SVN (well, besides using django), no idea how to do the setup. It´d be very useful but I don´t have the time to digg into that right no

Re: FileBrowser Test Version

2006-07-11 Thread Phil Powell
This is fantastic stuff! I'll be taking a look at testing it out and possibly implementing for a current project (thousands of image files to manage). Any plans for a SVN address? -Phil On 08/07/06, patrickk <[EMAIL PROTECTED]> wrote: > > today we´ve finished the test version of our django fil

Re: FileBrowser Test Version

2006-07-11 Thread Archatas
Very nice, but there are some gotchas/bugs: 1. to make it work on Python 2.3, you need to change line 198 in views.py file_list.sort(cmp, lambda x: x[int(o)]) to file_list.sort(lambda x, y: cmp(x[int(o)], y[int(o)])) (sort method takes only the comparisson function as a parameter in Pytho

Please help - FCGI installation woes

2006-07-11 Thread Carlos Yoder
Hello guys, I'm having a lot of trouble trying to install a Django app on a shared hosting (servage.net). The support people, even though they're very friendly an all, don't know crap about Django or how to install it. They're OK for normal tasks, but it gets a little deeper, they forward my req

Including a php script in a template

2006-07-11 Thread [EMAIL PROTECTED]
Hello all! Is it somehow possible to include an exisiting php-script which prints a table and some textual data (after some large calculations) in a django template? I rather don't want to port the existing php-script as it makes it job well and is written by someone else. Thanks in advance --

Re: User never logs out

2006-07-11 Thread [EMAIL PROTECTED]
In my opinion (having gone through this problem), that would only mask the issue at hand, not solve it. I think it would be better if the code in the documentation used RequestContext instead of Context, specially the code in the tutorial. Maybe also throw in why RequestContext is used and what d

Re: django authentication with trac login

2006-07-11 Thread lawgon
still struggling with this - has anyone done it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this grou