Re: Create User from an User extension

2010-11-13 Thread Karim Gorjux
On Sat, Nov 13, 2010 at 00:08, Steve Holden wrote: > When you add a Persona the UserInline lets you enter a User record, but > the User has to be saved before the Persona. You could do this by > extending the Persona.save() method to save the User as well. Thanks a lot. I'll

Create User from an User extension

2010-11-12 Thread Karim Gorjux
Hi all, I successfully extended the User as described in the authorization documentation. Now I would like to use and edit the User and my class Persona not like two entity but just one. When I want to create a Persona, I have also to create a User first. Now the steps are too long, how I can

Create a simple Editor with image support

2010-11-08 Thread Karim Gorjux
Hi all, I would like to create a "improved" flatpage application adding a editor and the support of image files. My target is to edit a static web page load images and see a preview. I can add easily a editor like tinymce, I would try also FCKeditor, but what about the handle of images? Could you

Re: django-cms error: no module named simplesite.urls

2010-11-04 Thread Karim Gorjux
On Thu, Nov 4, 2010 at 19:35, Karim Gorjux <lemieli...@gmail.com> wrote: > Hi all, I'm just taking a look to the django-cms. I followed all the > instruction, but when I try to connect to the site I get this error my mistake. Was the settings.py wrong! :-| -- K. Blog Per

django-cms error: no module named simplesite.urls

2010-11-04 Thread Karim Gorjux
Hi all, I'm just taking a look to the django-cms. I followed all the instruction, but when I try to connect to the site I get this error - log - File

Re: How create a simple "brochure" website in django?

2010-11-04 Thread Karim Gorjux
Now I'm trying django-cms, but I would like to find some really essential to study on. -- K. Blog Personale: http://www.karimblog.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How create a simple "brochure" website in django?

2010-11-04 Thread Karim Gorjux
On Thu, Nov 4, 2010 at 18:26, James wrote: > Yes, there is. > > You should take a look at "Practical Django Projects" (be sure to get > the 2nd edition)  by James Bennett. In the book he creates a > simple-cms with a tinymce editor. > > He has the source code published here:

Re: How create a simple "brochure" website in django?

2010-11-04 Thread Karim Gorjux
On Thu, Nov 4, 2010 at 15:06, bruno desthuilliers wrote: > You may not realize that what you're describing here is a full blown > CMS, and as such is a tad more complex than simple thing like a blog > or wiki or dumbed-down twitter clone. I strongly suggest you try

How create a simple "brochure" website in django?

2010-11-04 Thread Karim Gorjux
Hi all! I'm a relative newbie in Django and I spending a lot of time study it in these days. I read many tutorials and books and I'm surprised to found very interesting resource to how create a wiki, a blog, app like twitter even a social bookmarking website but I never found a simple tutorial to

Re: Cherokee for home developing

2010-11-01 Thread Karim Gorjux
On Mon, Nov 1, 2010 at 21:21, Max Countryman wrote: > Karim, I would set it up using a UNIX socket. Then all you have to do is rm > the socket path. :) There is no need to kill uWSGI in that case. Let me study that, because there is always a newbie side in me that sometimes scream

Re: Cherokee for home developing

2010-11-01 Thread Karim Gorjux
On Sun, Oct 31, 2010 at 01:27, Max Countryman wrote: > Yes, absolutely. :D Good luck! Max, I'm trying with uwsgi and Cherokee. Seems to work, but if I edit the code, I have to kill the uwsgi process to see the modification on the browser. Is that normal? -- K. Blog Personale:

Re: Add admin action to Django User

2010-11-01 Thread Karim Gorjux
Maybe you'll find this also useful: http://www.theotherblog.com/Articles/2009/06/02/extending-the-django-admin-interface/ -- K. Blog Personale: http://www.karimblog.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Add admin action to Django User

2010-11-01 Thread Karim Gorjux
On Mon, Nov 1, 2010 at 05:03, Django-learner wrote: > Hi, I want to add an customized action to user management in django > admin site. I can see that only delete selected user is available, how > can I add more to that? Did you try to google that? This is my **first**

Re: Cherokee for home developing

2010-10-30 Thread Karim Gorjux
Thanks for all your answer, the topic get a little divergence, but it's ok, I still use Cherokee for developing even if is not so comfortable as I thought. > The best way to save yourself time and effort is really to use the > Django development server when testing out alterations. Yes I guess

Re: Cherokee for home developing

2010-10-29 Thread Karim Gorjux
I have just one question. While I'm editing the source of the project, to see the result I have always to restart the server or there is another way? -- K. Blog Personale: http://www.karimblog.net -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Cherokee for home developing

2010-10-28 Thread Karim Gorjux
On Thu, Oct 28, 2010 at 21:06, Robbington wrote: > Glad to finally see some one using Cherokee with django. Dont just use > it in development, its actually less memory intensive than apache as > well as having an awesome admin interface. Now I can just develop on Django

Re: Cherokee for home developing

2010-10-28 Thread Karim Gorjux
On Thu, Oct 28, 2010 at 19:32, Karim Gorjux <lemieli...@gmail.com> wrote: > Hi all! I'm trying to create my devbox for Django and I use a server I fixed the problem with the settings.py and now admin works. The problem now is to avoid the flup's "Unhandled Exception" a

Cherokee for home developing

2010-10-28 Thread Karim Gorjux
Hi all! I'm trying to create my devbox for Django and I use a server in my lan with Ubuntu and Cherokee installed in. For every project I use virtualenv so I install django and flup and I create in cherokee panel the virtual server using the path of my virtualenv. All I do is explained in the

Re: With apache2 and mod_python I can't get static files loading in admin

2010-10-01 Thread Karim Gorjux
On Fri, Oct 1, 2010 at 15:17, Daniel Roseman wrote: > Either use > a DocumentRoot directive Thanks! I solved the problem using the directive. Thanks really a lot! :-) -- K. Blog Personale: http://www.karimblog.net -- You received this message because you are subscribed

Re: I don't understand the difference between these two views

2010-09-02 Thread Karim Gorjux
On Thu, Sep 2, 2010 at 17:46, Daniel Roseman wrote: > See here for an explanation: > http://docs.djangoproject.com/en/1.2/ref/templates/api/#subclassing-context-requestcontext > especially the "Note" box a screen or so down. Thanks! Now everything is clear -- Karim Gojux

I don't understand the difference between these two views

2010-09-02 Thread Karim Gorjux
Working on the Coltrane's Book :-) ... I create two views that do the same thing but the first one use the generic view and the second a render to response. I don't understand why because both works but the second besides don't passe the category object, don't load the

Re: How to create a gerarchical list in admin for flatpages?

2010-08-31 Thread Karim Gorjux
On Tue, Aug 31, 2010 at 14:11, Karim Gorjux <lemieli...@gmail.com> wrote: > I would like to > realize a easy admin page for my flat pages that in Django-CMS is > called "site map". I found what I need. Is here: http://code.google.com/p/django-mptt/ -- Karim Gojux w

Re: Overriding flatpages class meta

2010-08-31 Thread Karim Gorjux
Try to modify the flatpages source! You can find it directly in your django installation. -- Karim Gojux www.karimblog.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

How to create a gerarchical list in admin for flatpages?

2010-08-31 Thread Karim Gorjux
Hi all! I'm working to create my CMS on Django, I would like to realize a easy admin page for my flat pages that in Django-CMS is called "site map". How I can do that? Are there any tutorial or how to about that? Have you any advice? Thanks! The site map in Django-CMS:

Re: Problems loading static files on runserver (I mean images and css)

2010-08-27 Thread Karim Gorjux
On Fri, Aug 27, 2010 at 10:57, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > Thanks a lot for all your advices. I work a lot on settings.py and now is more professional. The mistake was in ADMIN_MEDIA_PREFIX = '/media/' I changed it in ADMIN_MEDIA_PREFIX = '/admin-media/'

Problems loading static files on runserver (I mean images and css)

2010-08-27 Thread Karim Gorjux
As I read here http://docs.djangoproject.com/en/dev/howto/static-files/ I configure the settings.py and the urls.py to load a template in runserver. ## urls.py ## from django.conf import settings [...] (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root':

Re: Newbie question about url and seo

2010-08-20 Thread Karim Gorjux
On Fri, Aug 20, 2010 at 18:19, David Euzen wrote: > Hello, > > you should think of it in terms of ressource, not of file. URLs are > about ressources not about files even if sometimes ressources are > files. Thanks for your answer. Was very useful! Have a nice day. --

Newbie question about url and seo

2010-08-20 Thread Karim Gorjux
Hi all! This is my first post here in the list, I'm new in django and python but I really found it fun and exciting so here we are! My first question is pretty simple. I noted that the url I create using urls.py are cleaned and pretty but there is no index.html or simila. It seems that every url

Re: Can I simply disable the CSRF? crazy

2010-08-17 Thread Karim Gorjux
On Tue, Aug 17, 2010 at 23:29, Rolando Espinoza La Fuente wrote: > See csrf_exempt decorator: > http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#exceptions I had problems too, but the decorator is a good patch for the moment :-) Thanks! -- Karim Gojux