Re: django authentication with trac login
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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: User never logs out
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 do we get from it for free. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Including a php script in a template
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 --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Please help - FCGI installation woes
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 request to a 'Senior' tech, and that can take a full day until the ticket gets answered (usually unsuccessfully). The problem is, I'm stuck with them and must get this app to work VERY soon (remember, perfectionists with deadlines?). I really want this to happen, since the alternative is to continue regurgitating C# crap that I'm just sick and tired of. So, enough of ranting. Can anybody direct me into a step-by-step explanation of the install process? I've look here (http://www.djangoproject.com/documentation/fastcgi/) but I just don't know what to do. I tried the last entry (create .htaccess and mysite.fcgi), but to no avail -- I don't really know how to test or see whether Django is installed, running, or whatever. Since I don't have shell access (they don't support ssh for 'security reasons'), I understand I won't be able to use manage.py, so "syncdb" will have to be via phpMyAdmin or similar, and so on. Here's what I did: * Downloaded the latest DJango snapshot onto $webroot/django_src * Created a file for my project at $webroot/avtopage I don't really know how to continue. Questions arising are: * How do I tell the installed Python to 'see' django_src? If that's thru symlinking to $python/site-packages/, the tech support guys told me they can do it. * What do I do to have my 'avtopage' directory (accesible via http://domain/avtopage) to be Django-enabled? ... but I'm sure I'm missing something big here. (it shows it used the development server to work on the app, doesn't it?) I just don't know where to look, sorry to sound so whiny, but I don't have anybody else to turn to but you, the community. Thanks for the time to read this, and if you can help me out, you don't know how big of a Django evangeliser you'll find in me! (at least in Slovenia, where I'm currently based) =) Best regards and thanks a million, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: FileBrowser Test Version
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 Python 2.3) 2. The links in the admin breadcrubs are not relative as in the original admin, therefore I need to change all templates if I have my django project in some directory instead of in the root of the domain. 3. If I upload an image to the root of uploads, the thumbnail isn't showed, because of additional slash in the path that is added next to the dir_name which doesn't exist. I think, you should also check whether dir_name is set at all, and only then add that slash at the end. 4. It works in Firefox, but it seems a little bit strange and may not work in other browsers, because all the uploaded images are being accessed with additional slash at the end of the URL. That were my notices. But on the whole, great work! Aidas Bendoraitis [aka Archatas] patrickk wrote: > today we´ve finished the test version of our django filebrowser. > > some screenshots are here: > http://www.vonautomatisch.at/django/filebrowser/ > > you can download the filebrowser here: > http://www.vonautomatisch.at/django/filebrowser/FileBrowser.zip > > installation shouldn´t take more than 5-10 minutes. > requirements: we are using PIL to create the thumbnails. > > this version is for testing (although we´re already using it). I hope > that some of you will find the time to install the filebrowser. > feedback is more than welcome. > > thanks, > patrick --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: FileBrowser Test Version
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 filebrowser. > > some screenshots are here: > http://www.vonautomatisch.at/django/filebrowser/ > > you can download the filebrowser here: > http://www.vonautomatisch.at/django/filebrowser/FileBrowser.zip > > installation shouldn´t take more than 5-10 minutes. > requirements: we are using PIL to create the thumbnails. > > this version is for testing (although we´re already using it). I hope > that some of you will find the time to install the filebrowser. > feedback is more than welcome. > > thanks, > patrick > > > > > > --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: FileBrowser Test Version
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 now. patrick Am 11.07.2006 um 12:53 schrieb 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 filebrowser. >> >> some screenshots are here: >> http://www.vonautomatisch.at/django/filebrowser/ >> >> you can download the filebrowser here: >> http://www.vonautomatisch.at/django/filebrowser/FileBrowser.zip >> >> installation shouldn´t take more than 5-10 minutes. >> requirements: we are using PIL to create the thumbnails. >> >> this version is for testing (although we´re already using it). I hope >> that some of you will find the time to install the filebrowser. >> feedback is more than welcome. >> >> thanks, >> patrick >> >> >> >>> >> > > > --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Please help - FCGI installation woes
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 a little deeper, they forward my request to a > 'Senior' tech, and that can take a full day until the ticket gets > answered (usually unsuccessfully). > > The problem is, I'm stuck with them and must get this app to work VERY > soon (remember, perfectionists with deadlines?). I really want this to > happen, since the alternative is to continue regurgitating C# crap > that I'm just sick and tired of. > > So, enough of ranting. > > Can anybody direct me into a step-by-step explanation of the install > process? I've look here > (http://www.djangoproject.com/documentation/fastcgi/) but I just don't > know what to do. I tried the last entry (create .htaccess and > mysite.fcgi), but to no avail -- I don't really know how to test or > see whether Django is installed, running, or whatever. > > Since I don't have shell access (they don't support ssh for 'security > reasons'), I understand I won't be able to use manage.py, so "syncdb" > will have to be via phpMyAdmin or similar, and so on. > > Here's what I did: > > * Downloaded the latest DJango snapshot onto $webroot/django_src > * Created a file for my project at $webroot/avtopage > > I don't really know how to continue. Questions arising are: > > * How do I tell the installed Python to 'see' django_src? If that's > thru symlinking to $python/site-packages/, the tech support guys told > me they can do it. > * What do I do to have my 'avtopage' directory (accesible via > http://domain/avtopage) to be Django-enabled? > > ... but I'm sure I'm missing something big here. (it shows it used the > development server to work on the app, doesn't it?) > > I just don't know where to look, sorry to sound so whiny, but I don't > have anybody else to turn to but you, the community. > > Thanks for the time to read this, and if you can help me out, you > don't know how big of a Django evangeliser you'll find in me! (at > least in Slovenia, where I'm currently based) =) > > Best regards and thanks a million, > hi, first thing: you have to make sure that they support FASTCGI. when you know that they do, ask them how they do it. (ask them how they manage Ruby-on-Rails projects for example. i saw on their webpage that they do support Ruby-on-Rails, and that one is usually hosted using fastcgi) there are some documents about how to set up django on dreamhost.com. it should be similar to servage.net: http://wiki.dreamhost.com/index.php/Django http://www2.jeffcroft.com/2006/may/11/django-dreamhost/ regarding the ftp+syncdb problem: then probably the easiest way is to syncdb somewhere else, and then dump the database to a file, and restore it on the servage-database. also to make python know about django, is nothing magical. as you see in the dreamhost-wiki django howto, they simple create a suitable django-fastcgi python script, and inside they add the django-dir to sys.path. i hope this helps. if not, reply :-) gabor --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Please help - FCGI installation woes
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 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 request to a > > 'Senior' tech, and that can take a full day until the ticket gets > > answered (usually unsuccessfully). > > > > The problem is, I'm stuck with them and must get this app to work VERY > > soon (remember, perfectionists with deadlines?). I really want this to > > happen, since the alternative is to continue regurgitating C# crap > > that I'm just sick and tired of. > > > > So, enough of ranting. > > > > Can anybody direct me into a step-by-step explanation of the install > > process? I've look here > > (http://www.djangoproject.com/documentation/fastcgi/) but I just don't > > know what to do. I tried the last entry (create .htaccess and > > mysite.fcgi), but to no avail -- I don't really know how to test or > > see whether Django is installed, running, or whatever. > > > > Since I don't have shell access (they don't support ssh for 'security > > reasons'), I understand I won't be able to use manage.py, so "syncdb" > > will have to be via phpMyAdmin or similar, and so on. > > > > Here's what I did: > > > > * Downloaded the latest DJango snapshot onto $webroot/django_src > > * Created a file for my project at $webroot/avtopage > > > > I don't really know how to continue. Questions arising are: > > > > * How do I tell the installed Python to 'see' django_src? If that's > > thru symlinking to $python/site-packages/, the tech support guys told > > me they can do it. > > * What do I do to have my 'avtopage' directory (accesible via > > http://domain/avtopage) to be Django-enabled? > > > > ... but I'm sure I'm missing something big here. (it shows it used the > > development server to work on the app, doesn't it?) > > > > I just don't know where to look, sorry to sound so whiny, but I don't > > have anybody else to turn to but you, the community. > > > > Thanks for the time to read this, and if you can help me out, you > > don't know how big of a Django evangeliser you'll find in me! (at > > least in Slovenia, where I'm currently based) =) > > > > Best regards and thanks a million, > > > > > hi, > > first thing: you have to make sure that they support FASTCGI. > > when you know that they do, ask them how they do it. > > (ask them how they manage Ruby-on-Rails projects for example. i saw on > their webpage that they do support Ruby-on-Rails, and that one is > usually hosted using fastcgi) > > there are some documents about how to set up django on dreamhost.com. it > should be similar to servage.net: > > http://wiki.dreamhost.com/index.php/Django > http://www2.jeffcroft.com/2006/may/11/django-dreamhost/ > > regarding the ftp+syncdb problem: > > then probably the easiest way is to syncdb somewhere else, and then dump > the database to a file, and restore it on the servage-database. > > also to make python know about django, is nothing magical. as you see in > the dreamhost-wiki django howto, they simple create a suitable > django-fastcgi python script, and inside they add the django-dir to > sys.path. > > i hope this helps. if not, reply :-) > > gabor > > > > -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
The JavaScript ManyToMany Widget & view
-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 a template nor a view for this in my django source tree. Anybody can help me with this? regards, lucas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Signed with GPG & Enigmail - see http://www.vincisolutoins.ch/pgp/ iD8DBQFEs6IN3RQ/RpGW2HgRAtp4AKC6TzEoshyKZ9XeKQIcMIgtUd3UVgCfXY87 wtHiIxGRXmmdbc8xCy0kVl4= =TykZ -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Including a php script in a template
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") # replace ls with php --parameters filetoexecute.php result = "".join([line for line in get.readlines()]) Try that, maybe it will lead you to success. Aidas Bendoraitis [aka Archatas] On 7/11/06, [EMAIL PROTECTED] <[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 > well and is written by someone else. > > Thanks in advance > > > > > --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Problems in encryption when creating a new user with Admin
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 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Are choices supported on DateField?
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 --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: The JavaScript ManyToMany Widget & view
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 with this? That's because it's generated entirely with JavaScript. The admin views create a normal HTML 'select' element in the page, but also ensure that the files 'SelectBox.js' and 'SelectFilter2.js' are included inside script tags; these contain the JavaScript which turns the normal 'select' into the nice filter interface. Code is in these files: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/js/SelectBox.js http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/js/SelectFilter2.js -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: FileBrowser Test Version
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 (thanks Archatas) 003: Additional slashes are only used for folders now I still need to look at the breadcrumbs. thanks for your feedback, patrick Am 11.07.2006 um 12:39 schrieb 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 > Python 2.3) > > 2. The links in the admin breadcrubs are not relative as in the > original admin, therefore I need to change all templates if I have my > django project in some directory instead of in the root of the domain. > > 3. If I upload an image to the root of uploads, the thumbnail isn't > showed, because of additional slash in the path that is added next to > the dir_name which doesn't exist. I think, you should also check > whether dir_name is set at all, and only then add that slash at the > end. > > 4. It works in Firefox, but it seems a little bit strange and may not > work in other browsers, because all the uploaded images are being > accessed with additional slash at the end of the URL. > > That were my notices. But on the whole, great work! > > Aidas Bendoraitis [aka Archatas] > > patrickk wrote: >> today we´ve finished the test version of our django filebrowser. >> >> some screenshots are here: >> http://www.vonautomatisch.at/django/filebrowser/ >> >> you can download the filebrowser here: >> http://www.vonautomatisch.at/django/filebrowser/FileBrowser.zip >> >> installation shouldn´t take more than 5-10 minutes. >> requirements: we are using PIL to create the thumbnails. >> >> this version is for testing (although we´re already using it). I hope >> that some of you will find the time to install the filebrowser. >> feedback is more than welcome. >> >> thanks, >> patrick > > > > --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Template tags and context processors
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 templatetags that retrieve django template code from the database. the root of the problem is that the templatetags use the Context object rather than the RequestContext object, which contains all of the information contained in the TEMPLATE_CONTEXT_PROCESSORS tuple stored in the settings.py file. so, for example, the auth object is unavailable to me, which means i cannot use a code block like: {% if not user.is_anonymous %} logout {% else %} login {% endif %} which is stored in the database and which i retrieve using a templatetag. in my template tag, i tried to over-ride Context with from django.template import RequestContext as Context and i did the same in my views file, but neither worked. i read in the documentation that generic views use the RequestContext by default, but my pages that use generic views were not rendering the templatetag properly either. the rendering process for templatetags happens long after the view phase, it seems. can anyone suggest a way to force the use of RequestContext instead of Context when creating template tags? thanks in advance. yours, steve --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
ANN: Screencast showing a step by step installation of a real-life Django application on a WebFaction account
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 area) - Create a database using the control panel - Change your database password using the control panel - SSH into your shell account - Replace the django module with the latest subversion version - Replace the django default project with your own project - Configure your project settings, sync your database - Restart your Apache+mod_python instance - Play with the admin area - Play with the actual application The screencast can be downloaded from http://blog.webfaction.com/django-screencast Many thanks to Ian Holsman (http://feh.holsman.net) for making this screencast. Remi. http://www.webfaction.com - Hosting for an agile web 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 can stop/start on your own :) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: The JavaScript ManyToMany Widget & view
-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 template nor a view for this in >> my django source tree. Anybody can help me with this? > > That's because it's generated entirely with JavaScript. > > The admin views create a normal HTML 'select' element in the page, > but also ensure that the files 'SelectBox.js' and > 'SelectFilter2.js' are included inside script tags; these contain > the JavaScript which turns the normal 'select' into the nice filter > interface. > But this is only half of the code. I am also interested in how django transforms(I suppose this is in some view?) the formdata(from the selectbox) into a ManyToMany-Object. How it determines what to add and what relation to remove. lucas > Code is in these files: > > http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/js/SelectBox.js > > http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/js/SelectFilter2.js > > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Signed with GPG & Enigmail - see http://www.vincisolutoins.ch/pgp/ iD8DBQFEs9Ok3RQ/RpGW2HgRAl5wAJ42+MBMkWPQjeuHa578BG0e9I0q6wCZAX99 y5syS5Rr/q9eZN+SIIWy7kA= =FE5J -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Including a php script in a template
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 > well and is written by someone else. > > Thanks in advance > The guys who wrote the django apps for pycon use both php and django templates. Have a look at their repo [1], specifically [2] and [3]. Maybe you can use their template loader in combination with django's include tag? Not sure if this is what you're after, but it may get you started. cheers Steven [1] http://us.pycon.org/repo [2] http://us.pycon.org/repo/django/trunk/pycon/core/template_loaders.py [3] http://us.pycon.org/repo/django/trunk/pycon/templates/pycon/ --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Referring to media files
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" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Password Generator
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 be a great way to attract some visitors to a new project, for example. ;-) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
OpenDocument and django
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 returns a spreadsheet with some (well, some thousands of lines) data to further process. I had make some test with Zope and the zopedb product. Even make some small test app. But I don't like it a lot, except by the way it generates openoffice documents with the ZPT (Zope template system). Some weeks ago we try Django. I made our test app (it's probably going into production next week, yes it was a very nice test app. No I'm not sure about it, it has been done with the svn version of django and I'm not too confident to put it on production, even if this app is only going to be used by 4 or 5 users). HERE GOES THE INTERESTING STUFF We search google for some info on opendocument support in django and we find nothing. Creating spreadsheets was our goal so we develop something similar in the test app. We add a module to create odt documents, odt stands for "open document text". They are the .doc of openoffice. We decided to share it here to get some feedback. We are planing to restructure it to make it able to produce spreadsheets. It could probably be easy to expand to work with the other open document formats, or even with the Office XML files. It's just a small script that relies on the power of the django template system. Usage: 1) Installation : Just drop the openoffice.py module in your app dir. 2) Create the document: Create an odt document, as complex as you like. If you use openoffice to do it, please go to the configuration and uncheck "Optimize XML for size". This will make the XML of the saved file much more human readable. Save it to a file like test.odt 3) Somewhere in you template path make some dir to store the document. Let's say it will be called test 4) Unzip test.odt inside test. 5) Locate and edit context.xml file. Treat it as a any django template. 6) In your views add: from yourapp.openoffice import * def odt(request): return odtgen('temp',{context},'filename.odt') The odtgen function expects the name of the dir where the original file is unpacked, a context used to render context.xml and a default filename for the attachment. The scripts imports the zip library, so it must be installed. I believe it's installed by default with python, but I'm not completely sure. It should be considered pre-alfa software. I haven't even tried it in a production server yet. The download link: http://www.box.net/public/m8q3p8thnj And that's all. Javier (a long post in bad english, if you really read until here thank you ;). --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
IBM Article on TurboGears (w / Django Comparison)
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 will benefit from this additional exposure. Thanks to everyone who has helped create these great projects and continue working on them. Special thanks to Kevin and Adrian for offering feedback. If you catch any issues with this article, please send me an email and I will get a fix in. regards, Ian (This exact post will appear in both newsgroups, but I didn't cross-post since I thought that might be frowned upon...) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
How get user, included in generic views?
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 Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Request context processors - shortcut
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 "shortcut" when using context processors if i use this a lot i'll come up with a better (shorter) name """ t = template_loader.get_template(template_name) c = RequestContext(request, args) return HttpResponse(t.render(c)) 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 context processors to run. (i.e. not having to invoke RequestContext)? --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Request context processors - shortcut
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 context processors to run. (i.e. not > having to invoke RequestContext)? render_to_response takes an optional 'context_instance' argument which can tell it to use RequestContext or any other subclass of Context you might have defined, instead of the default. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Request context processors - shortcut
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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Views and 404 - render_to_response
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 HttpResponse("You are looking at post for the slug: %s" % slug) I think I have imported everything that I need: HttpResponse, Http404, render_to_response, get_object_or_404 --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
list_filter and sing urls ..
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" % (self.id,self.owner) class Admin: list_filter = ( 'owner', 'url_to_contract') And when page is rendered I'dont get html link only string "http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
TABULAR ImageField gets deleted
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: pass class news_pic(models.Model): parent = models.ForeignKey(news, edit_inline=models.TABULAR) pic = models.ImageField(upload_to='news', core=True) Any ideas? Regards. Enrico --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: list_filter and sing urls ..
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 disable escaping mode from list_filter without change > django sources ? Yes, there's a way! Set the "allow_tags" attribute on your function. Example: def url_to_contract(self): return '%s" % (self.id,self.owner) url_to_contract.allow_tags = True Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: list_filter and sing urls ..
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, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Views and 404 - render_to_response
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 happen if you've overriden django's pk) if your model has a field called 'slug' you must match it against that: p = get_object_or_404(Myclass, slug=slug) hope that helps arthur --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How get user, included in generic views?
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 only can see in my browser: Welcome, . Thanks for logging in. Any hint would be greatly apreciated, thanks! G On 7/11/06, mamcxyz <[EMAIL PROTECTED]> wrote: > > 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 Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Hola
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 the resources, noobs will find their way easily > > > On 7/4/06, Frankie Robertson <[EMAIL PROTECTED]> wrote: > >> No, I would like to see a unified effort, if you look at the comments >> for a lot of the documentation you'll find links to translations into >> the commenters native tounge. It would be nice to see what the core >> team had to say about this. >> >> On 03/07/06, Douglas Campos <[EMAIL PROTECTED]> wrote: >> >>> Is there already a task force to translate the docs? >>> >>> >>> On 7/2/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: >>> On 7/2/06, mamcxyz <[EMAIL PROTECTED]> wrote: > Con respecto a django, no hay mucha informacion en español, asi que te > tocaria leer la documentacion (que es buena) en ingles. > This is a shame, of course, but my Spanish is too bad to do much about it. :( > > > > -- AMV Multiviajes Argentina Esmeralda 847 Piso 12 Of. 'G' C1007ABI - Buenos Aires Argentina Tel: +54 11 5031-3060 / 3061 Fax: +54 11 4313-6141 --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~--- begin:vcard fn:Facundo Casco n:Casco;Facundo org:AMV Multiviajes Argentina S.R.L. adr:Piso 12 Oficina 'G';;Esmeralda 847;Buenos Aires;CF;C1007ABI;Argentina email;internet:[EMAIL PROTECTED] tel;work:+54 11 5031-3060 / 3061 tel;fax:+54 11 4313-6141 url:http://www.multiviajesar.com.ar version:2.1 end:vcard
Re: Views and 404 - render_to_response
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 "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Having trouble with views
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 want the URL to be "mydomain/portfolio/category_slug/project_slug" like "mydomain/portfolio/3d/house/". My urls.py looks like this: from django.conf.urls.defaults import * from myproject.portfolio.models import Project from myproject.portfolio.models import Category urlpatterns = patterns('', # Polls: (r'^polls/$', 'myproject.polls.views.index'), (r'^polls/(?P\d+)/$', 'myproject.polls.views.detail'), (r'^polls/(?P\d+)/results/$', 'myproject.polls.views.results'), (r'^polls/(?P\d+)/vote/$', 'myproject.polls.views.vote'), # Portfolio: (r'^portfolio/$', 'myproject.portfolio.views.index'), (r'^portfolio/(?P\d+)/$', 'myproject.portfolio.views.list'), (r'^portfolio/(?P\d+)/(?P\d+)/$', 'myproject.portfolio.views.detail'), # For homepage: (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'homepage.html'}), # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), ) My portfolio/view.py looks like this: from django.shortcuts import render_to_response from myproject.portfolio.models import Project from myproject.portfolio.models import Category # Create your views here. def index(request): latest_project_list = Project.objects.all().order_by('-created') return render_to_response('portfolio/index.html', {'latest_project_list': latest_project_list}) my portfolio/index.html looks like this: Projects {% if latest_project_list %} {% for project in latest_project_list %} {{ project.title }} {% endfor %} {% else %} No Projects are available. {% endif %} I don't think my urls.py is correct for this type of setup, but Im not shure. Would really appreciate all the help I can get. And thank you again Malcom for all your help! My portfolio app is still missing from the main menu inside admin, but still works if I type in the direct url to it. "mydomain/admin/portfolio/project/" . If anyone could spot the error in my model.py (posted in the first post) that is causing the portfolio to disappear, please let me know! --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: User never logs out
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 getting passed to context. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Referring to media files
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 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Views and 404 - render_to_response
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 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Limiting table editing in admin interface
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 deleting the home page and stuff ) Thanks Iain --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Views and 404 - render_to_response
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 email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: TABULAR ImageField gets deleted
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 displayed but its input field is blank. I think the admin mistakes this blank input field for a blank image and then deletes the image. I'm looking into it myself, but I haven't been able to verify my theory... only that this messy solution worked in a pre-magic-removal gallery app that I threw away (magic removal was a bit traumatic for me). -- Joshua --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Limiting table editing in admin interface
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 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Template tags and context processors
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 both the public and admin sites. one problem, however, > is with templatetags that retrieve django template code from the > database. the root of the problem is that the templatetags use the > Context object rather than the RequestContext object, which contains > all of the information contained in the TEMPLATE_CONTEXT_PROCESSORS > tuple stored in the settings.py file. so, for example, the auth object > is unavailable to me, which means i cannot use a code block like: > > {% if not user.is_anonymous %} > logout > {% else %} > login > {% endif %} I'm not quite sure I understand your problem. A Template object is passed a Context instance when it is rendered. This could be an instance of the Context class or an instance of a subclass of Context (e.g. RequestContext). That instance is passed around within the template whenever a context is required. So if your template is passed a RequestContext by whatever calls it at rendering time, you will have access to the user variable. Within templates, when template tags are called to be rendered, I am pretty sure we just pass in the same context instance (i.e. we don't create a new Context-specific class). So it sounds like your templates are not being called with a RequestContext instance in the first place. Are they? Note that if you are using something like render_to_response() to render the template, you will need to call it as render_to_response(template_name, data_dict, RequestContext(request)) in order to pass a RequestContext instance to the template ultimately, instead of just a Context. If the above scattershot approach to information dispersal hasn't answered your question somehow, perhaps you could clarify a bit more what you are actually seeing happen? Best wishes, Malcolm --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How get user, included in generic views?
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. {% if user and not user.is_anonymous %} Welcome, {{ user.username }}. Thanks for logging in. {% else %} Welcome, new user. Please log in. {% endif %} This is only a work-around: if you can replicate it then I'd say it's ticket-worthy. -- Joshua --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: ANN: Screencast showing a step by step installation of a real-life Django application on a WebFaction account
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 can stop/start on your own :) why dont you sit on #django also and answer these questions -- regards kg http://lawgon.livejournal.com http://avsap.org.in --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Password Generator
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 encryption instead of MD5." If anyone could shed some light on a SHA-1 password generator it would be much appreciated. Thanks! --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: Password Generator
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 patch from GomoX, passwords are now stored with a > salt and use SHA-1 encryption instead of MD5." > > If anyone could shed some light on a SHA-1 password generator it would > be much appreciated. Thanks! To quote from mail I sent to this list just yesterday: "To create this string from the raw password, you have to use some code like that found in django.contrib.auth.models.User.setpassword() (you can't use that code precisely, because it is designed to work with a user object)." Malcolm --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
django for end users?
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 developer though I've done similar things at times. I don't call myself a designer, though occasionally I've hacked together some css that hangs together most of the time for most browsers. I like what I see in django: the goals of doing the boring stuff so you don't have to, the user community, the focus on aesthetics and usability, the blend of developers AND designers, that it's python, and so on. Here's the rub: I don't have the time -- or energy -- to dive in and learn django *right now*. At some point down the road I'd like to though. What I want is to have a basic cms or blog system out of the box, a la wordpress and brethren, based on django (because I think it's a foundation with more solidity than what I've experienced so far). Is there something like this available? If not now, will there be? When? Or is django's aim to forever be a toolkit for real developers and to stay out of the realm of applications? thanks for your time and thoughts, -matt --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---