Re: Django vs Postgres Connection

2010-12-17 Thread Mathieu Leduc-Hamel
check if postgresql is listening to 127.0.0.1, 0.0.0.0 or nothing in postgrsql

On Fri, Dec 17, 2010 at 3:30 PM, Servais Nabil <nabil.serv...@gmail.com> wrote:
> Hello, I think postgresql is not running or doesnt use the 5432 port. Check
> your processus.
>
> Le 17 déc. 2010 21:25, "Christophe Pettus" <x...@thebuild.com> a écrit :
>>
>> On Dec 17, 2010, at 12:02 PM, armandoperico wrote:
>>> On my local machine everything is running fine, but when i try to
>>> deploy to a running server with apache (mod_wsgi), i'm getting the
>>> following error (database related):
>>>
>>> Caught OperationalError while rendering: could not connect to server:
>>> Permission denied
>>> Is the server running on host "127.0.0.1" and accepting
>>> TCP/IP connections on port 5432?
>>
>> What's your database configuration on the Apache machine?
>>
>> --
>> -- Christophe Pettus
>> x...@thebuild.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-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django cache view

2010-11-12 Thread Mathieu Leduc-Hamel
Hi all,

I'm working on a e-commerce website and to make it work better we've
implemented a couple of caching strategy. But i was wondering, in our
system, we are using the cache middleware and the decorator to mark
some views as cacheable.

But, loading multiple times the same view, it seems there's some
activities on the database side.

I don't understand why,

The view is very simple and we've just put something like that:

@cache_page(3600)
def category(request, template=...)

What's used there as key in the cache ? What's not working ? I've
already configure the middleware and make sure memcached is working
properly.

What's not working ?

-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Unicode, utf8, mysql

2010-10-11 Thread Mathieu Leduc-Hamel
Hi all,

I'm the main maintainer of a website called l'Agenda Du libre du
Québec. On this website, people can submit events about free/open
software in their local community.

Yesterday, somebody tried to submit a new event, but the in
description of the event, there was a strange character: "→". Django
can deal with this unicode character, and MySQL, correctly configured,
should be able to also.

But it's not the case. MySQL just refuse to save it ! Saying that
there's an invalid character inside this field.

What can do ? I don't want to filtering it manually and just wait for
the next bug for the next incompatible character with MySQL !



-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Confoo 2011 Call for Speakers

2010-10-06 Thread Mathieu Leduc-Hamel
Greetings Djangoers,

We, Montréal-Python, are the coordinators of the Python track at
ConFoo 2011 and we are very proud to announce our call for speakers.

PHP-Québec, Montréal-Python, Montreal.rb, W3Qc, and OWASP Montréal are
organizing the first edition of the ConFoo conference, which will be
held in Montréal on March 9th through 11th at the Hilton Bonaventure
Hotel.  With over 500 expected attendees, ConFoo is one of the largest
Web development conference in North America.

ConFoo is about the Web, but it's also about showcasing the strengths
of different technologies.  Do you think that Python beats all the
other languages out there for Web development?  Do you think that
Django knocks Pylon's socks off?  Come and tell us why!

Sessions are one hour long and you can present in French or in
English, which ever your prefer.  Submissions are due for November 26;
for more details, visit the ConFoo website:

  http://confoo.ca/en/call-for-papers

By the way, we are perfectly aware that there is a slight clash with
PyCon.  You should not worry about that since all Python talks will
happen before Friday, giving you plenty of time for the commute
towards Atlanta.

Share the word!

-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Vim for Python and Django

2010-09-26 Thread Mathieu Leduc-Hamel
Anybody know of there's the same kind of resources for emacs ?

On Sun, Sep 26, 2010 at 7:22 PM, flebber <flebber.c...@gmail.com> wrote:
> Do the instructions here http://code.google.com/p/trespams-vim/wiki/readme
> only work on linux ? I tried to follow it on Windows as i wanted to
> download and try your version but received this error.
>
> C:\>hg clone https://trespams-vim.googlecode.com/hg/ trespams-vim
> 'hg' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\>
>
>
> On Sep 27, 2:55 am, ionut cristian cucu <cucife...@gmail.com> wrote:
>> Very helpful, thanks alot!
>>
>> 2010/9/26 Piotr Zalewa <zal...@gmail.com>:
>>
>> >  Hi Antoni,
>>
>> > Thanks for that!
>>
>> > zalun
>>
>> > On 09/26/10 10:36, Antoni Aloy wrote:
>> >> Hello all!
>>
>> >> In this list we have a recurrent thread: "What'ts the best IDE for
>> >> Django and Python development?" trespams-vim is my try to answer this
>> >> question for people who likes to have a very powerful editor and needs
>> >> to have an editor which is able to run in the desktop as well as in a
>> >> remote session. I have updated the previous version with delimMate and
>> >> easytags, so actually you'll find:
>>
>> >> * Syntax highlight
>> >> * Python autocompletion
>> >> * Smart tabbing
>> >> * Templates for Python, Django, js, html, ... (just try to edit a
>> >> python file and press sbu + tab as an example)
>> >> * Add/remove comments on multiple lines
>> >> * Tabs
>> >> * Surround
>> >> * marks
>>
>> >> etc. etc. :
>>
>> >> This is a list of my favorite shortcuts
>>
>> >>http://code.google.com/p/trespams-vim/wiki/readme
>>
>> >> So, you'll find a collection of plugins and .vimrc settings that I
>> >> have found very useful in my day-by-day work in Python and Django.
>>
>> >>http://code.google.com/p/trespams-vim/
>>
>> >> Happy coding!
>>
>> > --
>> > blog  http://piotr.zalewa.info
>> > jobs  http://webdev.zalewa.info
>> > twit  http://twitter.com/zalun
>> > face  http://facebook.com/zaloon
>>
>> > --
>> > 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 unsubscribe from this group, send email to 
>> > django-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/django-users?hl=en.
>
> --
> 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 unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: GoFlow - anybody out there used it?

2010-09-06 Thread Mathieu Leduc-Hamel
Another option might be http://github.com/knipknap/SpiffWorkflow at
the time where i was searching for a workflow solution for my project
it seems in pretty good shape. Although, the API was not enough
Pythonic and a little too complicated.

I finally didn't need to use a worlkflow solution and choose to use
repoze.workflow which is more a kind of statemachine...

good luck and i would be interested to have your impressions

On Mon, Sep 6, 2010 at 9:51 AM, Matias <matiassu...@gmail.com> wrote:
> El 06/09/10 14:23, Steve Boyle escribió:
>>
>> Hi,
>>
>> I've been writing an application that requires a workflow component
>> and rather than build one from scratch looked around to see what was
>> already out there.
>>
>> One app that was mentioned a number of times was "GoFlow" which
>> apparently is based on "OpenFlow" a Zope product.
>>
>> It feels as though the project has died judging by the activity /
>> commits etc, and unfortunately my impression is that there is a *lot*
>> of tidy up required on the code&  docs.
>>
>> Has anybody else actually used this project, and if so what are your
>> thoughts?
>>
>> It might save me investing a load of time in something that could have
>> been better spent writing something from scratch.
>>
>> Many thanks
>>
>>
>> Steve
>>
>
> Did you give a look to ProcessMaker? At the time I had to implement a
> workflow solution, processmaker and its API did the job for us.
>
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: PIL on 10.6 = PAIN

2010-09-01 Thread Mathieu Leduc-Hamel
This is because you should not use the Python interpreter from you're
Mac installation. Are you using buildout ? VirtualEnv? or nothing ?

Buildout:

/opt/local/bin/python2.6 bootstrap.py

Virtualenv:

virtualenv -p /opt/local/bin/python2.6 

Nothing:

/opt/local/bin/python2.6 manage.py runserver

On Tue, Aug 31, 2010 at 9:40 PM, keynesiandreamer
<keynesiandr...@gmail.com> wrote:
> So I tried the Macports option and it started to look good, but then I
> got:
>
> --->  Installing py26-pil @1.1.7_1
> --->  Activating py26-pil @1.1.7_1
> Error: Target org.macports.activate returned: Image error: /opt/local/
> Library/Frameworks/Python.framework/Versions/2.6/bin/pilconvert.py
> already exists and does not belong to a registered port.  Unable to
> activate port py26-pil. Use 'port -f activate py26-pil' to force the
> activation.
> Log for py26-pil is at: /opt/local/var/macports/logs/
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-
> pil/main.log
> Error: Status 1 encountered during processing.
> To report a bug, see <http://guide.macports.org/#project.tickets>
> Ben-Jammin-MacBook:~ martinek$ port -f activate py26-pil
> Warning: Failed to open Portfile from registry for py26-pil @1.1.7_1
> --->  Activating py26-pil
> Error: port activate failed: sqlite error: attempt to write a readonly
> database (8)
> Ben-Jammin-MacBook:~ martinek$ sudo port install py26-pil
>
> Sudo didn't work either
> :-(
>
> I am not even sure what DB is being discussed there...
>
> I also tried reinstalling PIL after the failure of MacPorts and
> something might have worked here. I don't get the same problem at the
> python prompt trying import _imaging
>
> Unfortunately Django/Pinax doesn't seem to see this after reactivating
> the ENV and restarting the server:
>
> BLurghh!!!
>
> Is it worth trying to remake the virtualenv I am working with? Would
> that help or is the problem still up the stream?
>
> -Ben
>
> On Aug 31, 11:49 am, keynesiandreamer <keynesiandr...@gmail.com>
> wrote:
>> Thanks Bill and Mathieu!
>>
>> I will try the Mac port option first, in fact I did look at it last
>> night probably around 1am or so...
>>
>> I treied rebuilding the virtual env I was using as well just to
>> verify, but the problem seem higher up the stream and Bill indicated.
>> I will take a look for the ld.conf equiv in OSX at lunch today.
>>
>> Thanks!
>> Ben
>>
>> On Aug 31, 10:20 am, Mathieu Leduc-Hamel <marra...@gmail.com> wrote:
>>
>>
>>
>> > To work with PIL and other librairies a little bit weird and difficult
>> > to install the best way is to install Macport and after that:
>>
>> > port install py26-pil
>>
>> > and you'll need to use the python of the macport installation:
>>
>> > $ /opt/local/bin/python2.6
>>
>> > It's the samething on linux, i'm alway using the PIL package from my 
>> > distro...
>>
>> > On Tue, Aug 31, 2010 at 7:10 PM, Bill Freeman <ke1g...@gmail.com> wrote:
>> > > This sounds more like libjpeg isn't on the library load path, a
>> > > system, rather than python, setting.
>>
>> > > I haven't done this with a Mac, but PIL has been troublesome on *nix
>> > > servers for us as well.
>>
>> > > The common problems for us don't sound like your problem.  [Some
>> > > versions of PIL install as "Imaging" rather than PIL.  If libjpeg
>> > > isn't installed first, including development data (headers, stub
>> > > library (called import library on Windows)) when your packaging system
>> > > separates them, when you first build PIL, you can rebuild it until you
>> > > are blue in the face and it won't pick up libjpeg that you installed
>> > > later - need to totally remove PIL and rebuild]
>>
>> > > You seem to have successfully built to use libjpeg, but it isn't
>> > > there.  I can think of three possibilities:
>>
>> > > 1. It really isn't there, maybe the reverse problem of installing a
>> > > "development" package but not the main one.
>>
>> > > 2. It's there, but it doesn't match the version your _imagning.so was
>> > > built against.
>>
>> > > 3. It's there, but the library loader hasn't been told about it.  On
>> > > linux this means findable via ld.conf (or ld.so.conf) and ldconfig has
>> > > been run since.  Package installation scripts usually take care of
>> > > this, but it sometimes needs to be done by hand, if you're just

Re: PIL on 10.6 = PAIN

2010-08-31 Thread Mathieu Leduc-Hamel
To work with PIL and other librairies a little bit weird and difficult
to install the best way is to install Macport and after that:

port install py26-pil

and you'll need to use the python of the macport installation:

$ /opt/local/bin/python2.6

It's the samething on linux, i'm alway using the PIL package from my distro...

On Tue, Aug 31, 2010 at 7:10 PM, Bill Freeman <ke1g...@gmail.com> wrote:
> This sounds more like libjpeg isn't on the library load path, a
> system, rather than python, setting.
>
> I haven't done this with a Mac, but PIL has been troublesome on *nix
> servers for us as well.
>
> The common problems for us don't sound like your problem.  [Some
> versions of PIL install as "Imaging" rather than PIL.  If libjpeg
> isn't installed first, including development data (headers, stub
> library (called import library on Windows)) when your packaging system
> separates them, when you first build PIL, you can rebuild it until you
> are blue in the face and it won't pick up libjpeg that you installed
> later - need to totally remove PIL and rebuild]
>
> You seem to have successfully built to use libjpeg, but it isn't
> there.  I can think of three possibilities:
>
> 1. It really isn't there, maybe the reverse problem of installing a
> "development" package but not the main one.
>
> 2. It's there, but it doesn't match the version your _imagning.so was
> built against.
>
> 3. It's there, but the library loader hasn't been told about it.  On
> linux this means findable via ld.conf (or ld.so.conf) and ldconfig has
> been run since.  Package installation scripts usually take care of
> this, but it sometimes needs to be done by hand, if you're just, for
> example, unpacking a tarball.  I don't know the equivalent for osx.
>
> Good luck.
>
> Bill
>
> On Tue, Aug 31, 2010 at 12:41 PM, keynesiandreamer
> <keynesiandr...@gmail.com> wrote:
>> Howdy!
>>
>> I have been working with Django/Pinax on a 10.6.4 system with python
>> 2.6.6 and have had no luck getting PIL to work. I have looked through
>> about 10-15 paged including ones listed on this group with no results.
>> Currently the error I am getting is:
>> The _imaging C module is not installed
>>
>> I have verified _imaging.so is in the file system. So it seems like a
>> syspath issue. I tried verifying that in the python prompt:
>>
>>>>> import _imaging
>> dlopen("/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
>> lib/python2.6/site-packages/PIL/_imaging.so", 2);
>> Traceback (most recent call last):
>>  File "", line 1, in 
>> ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/
>> Versions/2.6/lib/python2.6/site-packages/PIL/_imaging.so, 2): Symbol
>> not found: _jpeg_resync_to_restart
>>  Referenced from: /opt/local/Library/Frameworks/Python.framework/
>> Versions/2.6/lib/python2.6/site-packages/PIL/_imaging.so
>>  Expected in: flat namespace
>>  in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
>> python2.6/site-packages/PIL/_imaging.so
>>
>> Any help would be greatly appreciated, too many hours stuck on this
>> with no results.. :-(
>>
>> --
>> 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 unsubscribe from this group, send email to 
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
> --
> 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 unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to turn off CSRF in django 1.2?

2010-08-26 Thread Mathieu Leduc-Hamel
If I was you,

I would not install django directly on the system. It's not generally
a good practice.

The best thing you might do is to use of these two methods:

1. virtualenv 
(http://tumblr.intranation.com/post/766290325/python-virtualenv-quickstart-django)

2. buildout (http://jacobian.org/writing/django-apps-with-buildout/)

As you wish these two methods worked pretty well, on my side i like
buildout cause it's easier to maintain.

On Thu, Aug 26, 2010 at 1:07 PM, Sven Bröckling <s...@broeckling.de> wrote:
> Hi Alan,
>
>> I developed in a system that uses django 1.2, but the server is still
>> django 1.0.2.
>> Upgrading for a moment is not possible. Unless someone knows a nice
>> simple alternative, in order to keep my web portal compatible between
>> 1.0.2 and 1.2, I would like to switch off CSRF on my developing
>> computer.
>> How can I do this simply and easily?
> I have one project which has several issues with django 1.2, and so i
> use 1.1 for that, 1.2 for other projects.
>
> I have two versions of Django in my home dir, both svn checkouts. I need
> only one version at a time, so i wrote two quick and dirty shell aliases
> to switch the django version.
>
> [s...@troy sven] which django1.1
> django1.1: aliased to sudo rm -f
> /usr/lib/python2.6/dist-packages/django; sudo ln -s
> /home/sven/projects/programming/python/django/django-1.1/django
> /usr/lib/python2.6/dist-packages/
>
> [s...@troy sven] which django1.2
> django1.2: aliased to sudo rm -f
> /usr/lib/python2.6/dist-packages/django; sudo ln -s
> /home/sven/projects/programming/python/django/django-trunk/django
> /usr/lib/python2.6/dist-packages/
>
> Sven
>
> --
> 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 unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>



-- 
Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: virtualenv and standalone scripts

2010-08-24 Thread Mathieu Leduc-Hamel
And what about using "console_scripts" entry in your setup.py script ?

http://www.google.com/search?q=console_scripts


On Mon, Aug 23, 2010 at 11:11 PM, Oivvio Polite  wrote:

> On Mon, Aug 23, 2010 at 10:54:21PM +0200, Oivvio Polite wrote:
> >
> > What's the right way to go about it?
> >
>
> Ok, just did some more googling and found out about custom management
> commands, that clearly are the django way of solving my problem.
>
> oivvio
>
>
> --
> http://pipedreams.polite.se/about/
>
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: adding a summary field to a model

2010-08-19 Thread Mathieu Leduc-Hamel
But by the way you field seem to be a sum of some others, maybe it should
not be a new field but just a new method returing the resulting calculation
depending of the attributes of your instance. No ?

On Thu, Aug 19, 2010 at 4:56 PM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:

> On 19 août, 16:25, Nick  wrote:
> > You need to look at overriding the model's save method in order to add
> > data from one field to another dynamically.
>
> Useless denormalization (until proved otherwise of course...).
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: connect to database from template

2010-08-19 Thread Mathieu Leduc-Hamel
You have to forget the php when you code something in Python and Django.

The process doesn't fallow the same way it does in PHP.

It's complete new world (and a more beautiful and peaceful one i think).

Your connection will be keep alive, don't worry about that. What do you mean
by connection ? The connexion to the database ?

On Thu, Aug 19, 2010 at 10:30 AM, Imad Elharoussi  wrote:

> In my view.py I did this but I don't know how to make the connection to the
> server permanent
>
>
> 2010/8/18 Renne Rocha 
>
>>  You have to do a view that handle the action of getting the content
>> of the treeview...
>>
>>  It seems you don't know how Django works. Take a look at the
>> tutorial first. Don't code Django like you code PHP...
>>
>> On Wed, Aug 18, 2010 at 11:01 AM, Imad Elharoussi
>>  wrote:
>> > I want to connect to a server and get a tree object regularily and show
>> the
>> > modifications in the treeview
>> > do you know how can i do this?
>> >
>> > 2010/8/18 Renne Rocha 
>> >>
>> >>  I believe not... but why are you trying to do this?
>> >>
>> >>  It is not the right use for the template layer of Django...
>> >>
>> >> On Wed, Aug 18, 2010 at 10:53 AM, Imad Elharoussi
>> >>  wrote:
>> >> > Hello
>> >> >
>> >> > Can we connect to a database from the template like in php?
>> >> >
>> >> > --
>>
>> >> > 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 unsubscribe from this group, send email to
>> >> > django-users+unsubscr...@googlegroups.com
>> .
>>
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/django-users?hl=en.
>> >> >
>> >>
>> >> --
>>
>> >> 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 unsubscribe from this group, send email to
>> >> django-users+unsubscr...@googlegroups.com
>> .
>>
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/django-users?hl=en.
>> >>
>> >
>> > --
>>
>> > 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 unsubscribe from this group, send email to
>> > django-users+unsubscr...@googlegroups.com
>> .
>>
>> > For more options, visit this group at
>> > http://groups.google.com/group/django-users?hl=en.
>> >
>>
>> --
>> 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 unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django and php

2010-08-19 Thread Mathieu Leduc-Hamel
Have you took a look at the tutorial on the django webpage ? It's a must to
read before doing anything with django.

After that i can propose to you a solution:

If i was you i would code 2 views

One for the rendering on the page
One as ajax view

The first one would use the javascript to reload something every minutes and
the second would just fetch the data from the database.

Look in the documentation to know how to develop correct ajax views...

ciao

mathieu

On Thu, Aug 19, 2010 at 11:01 AM, Imad Elharoussi  wrote:

>
> You said that we must not think in a PHP way while using django
>
> can you please give me a solution to my problem
>
>
> I have to connect every minute to a server and get an object from it an
> show the modifications
>
> can you please tell me what django give as solution to this
>
> 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-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to execute some user defined codes (functions) when Django boot?

2010-08-18 Thread Mathieu Leduc-Hamel
The problem with that way, as said before is that you don't really know if
your code will be executed at startup in the wsgi context... and exactly at
what time.

2010/8/18 skyjur 

> You could try to create an app with models.py file and put your calls
> in models.py. Then register your app in installed apps, above all
> other apps.
>
> source:
> http://stackoverflow.com/questions/2610088/can-djangos-auth-user-username-be-varchar75-how-could-that-be-done
>
> On Aug 18, 1:18 pm, Emily Rodgers 
> wrote:
> > Hi,
> >
> > I still don't really understand what you are trying to do, but it
> > sounds like Mathieu does and has offered you some pretty useful
> > advice.
> >
> > If his link below helps you fix what you are trying to do, please let
> > us know what you did (this is really useful for others with the same
> > problem), and if not, please come back and ask again.
> >
> > Em
> >
> > On Aug 18, 7:05 am, Tang Daogang  wrote:
> >
> >
> >
> > > hi, Emily,
> >
> > > Let me introduce Scala/Lift as example.
> >
> > > Every lift project has a file named 'Boot.scala', this file will only
> > > be executed once when this project boots up. In this file, we can
> > > write some initial codes to initial project and some userdefined
> > > structures.
> >
> > > Emm, that's it. I want to find one file acting like Boot.scala of Lift
> > > within Django, but failed. If there is one file like that, I will put
> > > my plugins registering codes into it, thus, when I type "python
> > > manage.py runserver", it can be executed automatically and only once.
> > > By it, my plugins can be registered when app boot up.
> >
> > > Do you understand my meaning? Welcome suggestion.
> >
> > > On 8月17日, 下午8时45分, Emily Rodgers  wrote:
> >
> > > > On Aug 17, 2:26 am, Tang Daogang  wrote:
> >
> > > > > Dear all,
> >
> > > > > Recently, I have developed a plugin system for my app, and I want
> to
> > > > > register those plugins when my app boot up, this need to execute
> some
> > > > > user defined codes (functions) in app boot procedure, I don't know
> > > > > where insert my registering codes to, anyone can help?
> >
> > > > > Thank you.
> >
> > > > Hi,
> >
> > > > I don't know how to help you, but I think it is because you haven't
> > > > explained what you want to do thoroughly enough.
> >
> > > > What do you mean by a plugin system, and what do you mean by
> > > > registering them with the app on boot up? Are you talking about
> > > > including another python module in your code? Or perhaps including
> > > > another django app in your code?
> >
> > > > Can you give us a bit more information (and maybe examples) of what
> > > > you are trying to do.
> >
> > > > Cheers,
> > > > Em
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to execute some user defined codes (functions) when Django boot?

2010-08-18 Thread Mathieu Leduc-Hamel
Richard,

it's not the good way to do this, in the settings.py cause as i said before,
the code in the settings.py is executed every time somebody initiate a
session for the first time. The point there is a way to have a part of code
common to all currently connected user.

Tang,

I'm not an expert of the middleware development in Django but from what i
saw in the documentation it could be a great way to do that. Look at this
comment by example:

"For performance reasons, middleware classes are only instantiated *once* in
long-running server processes; this means that you can’t count on
__init__ getting
called every time a request runs, only once at server startup.
"
"

- http://www.djangobook.com/en/beta/chapter16/


You'll need to test if it's true but there's a great possibility it would be
the case in real world experimentation.

But if i was you i would really try twod.wsgi cause this guy is using
something that have bean used from time to time in the Pylons world where
this kind of use case is perfectly solvable.

2010/8/18 Richard Colley 

> Why not call your "boot" code from settings.py?
>
> On Aug 18, 4:05 pm, Tang Daogang  wrote:
> > hi, Emily,
> >
> > Let me introduce Scala/Lift as example.
> >
> > Every lift project has a file named 'Boot.scala', this file will only
> > be executed once when this project boots up. In this file, we can
> > write some initial codes to initial project and some userdefined
> > structures.
> >
> > Emm, that's it. I want to find one file acting like Boot.scala of Lift
> > within Django, but failed. If there is one file like that, I will put
> > my plugins registering codes into it, thus, when I type "python
> > manage.py runserver", it can be executed automatically and only once.
> > By it, my plugins can be registered when app boot up.
> >
> > Do you understand my meaning? Welcome suggestion.
> >
> > On 8月17日, 下午8时45分, Emily Rodgers  wrote:
> >
> >
> >
> > > On Aug 17, 2:26 am, Tang Daogang  wrote:
> >
> > > > Dear all,
> >
> > > > Recently, I have developed a plugin system for my app, and I want to
> > > > register those plugins when my app boot up, this need to execute some
> > > > user defined codes (functions) in app boot procedure, I don't know
> > > > where insert my registering codes to, anyone can help?
> >
> > > > Thank you.
> >
> > > Hi,
> >
> > > I don't know how to help you, but I think it is because you haven't
> > > explained what you want to do thoroughly enough.
> >
> > > What do you mean by a plugin system, and what do you mean by
> > > registering them with the app on boot up? Are you talking about
> > > including another python module in your code? Or perhaps including
> > > another django app in your code?
> >
> > > Can you give us a bit more information (and maybe examples) of what
> > > you are trying to do.
> >
> > > Cheers,
> > > Em
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to execute some user defined codes (functions) when Django boot?

2010-08-17 Thread Mathieu Leduc-Hamel
Paul, no it's not exactly the point. When you said some code on the boot up
it means really a piece of code shared by everyone and executed just one
time, by example, for mod_wsgi it would be when apache is starting.

That's exactly what's done in the Pylons world to be able to load some piece
of code like the different middleware initialization. It could be useful
when you need launch some external long running process or anything like
that.

But putting the code anywhere cause it would be evaluated when the code is
loaded is not safe cause you don't if everything was correctly loaded a this
time...

On Tue, Aug 17, 2010 at 5:13 PM, Paul Winkler <sli...@gmail.com> wrote:

> Seems to me that "on boot up" doesn't mean anything in a shared-
> nothing architecture like Django's.  For example if you deploy on eg.
> mod_wsgi.
> You have no idea how long any particular thread or process is going to
> live,
> and no idea how often this "boot" code would get run.
>
> But assuming that's OK, one naive strategy would be to just call the
> function(s) at top level in some module that gets imported by your
> app.
> Good enough?
>
> On Aug 17, 9:12 am, Mathieu Leduc-Hamel <marra...@gmail.com> wrote:
> > Tang,
> >
> > do you mean :
> >
> > "How to execute some pieces of code when you launch the "runserver"
> command
> > by example" ? If this is what you mean, it's not a easy thing to do right
> > now. Then only way i found it possible is by using: twod.wsgi
> >
> > With twod.wsgi you can use the entry points system of python and do, like
> in
> > Pylons, an entry defined by Paster "app_factory"
> >
> > You can see an example there:
> http://packages.python.org/twod.wsgi/manual/paste-factory.html#using-...
> >
> > mathieu
> >
> > On Tue, Aug 17, 2010 at 2:45 PM, Emily Rodgers <
> emily.kate.rodg...@gmail.com
> >
> > > wrote:
> > > On Aug 17, 2:26 am, Tang Daogang <daogangt...@gmail.com> wrote:
> > > > Dear all,
> >
> > > > Recently, I have developed a plugin system for my app, and I want to
> > > > register those plugins when my app boot up, this need to execute some
> > > > user defined codes (functions) in app boot procedure, I don't know
> > > > where insert my registering codes to, anyone can help?
> >
> > > > Thank you.
> >
> > > Hi,
> >
> > > I don't know how to help you, but I think it is because you haven't
> > > explained what you want to do thoroughly enough.
> >
> > > What do you mean by a plugin system, and what do you mean by
> > > registering them with the app on boot up? Are you talking about
> > > including another python module in your code? Or perhaps including
> > > another django app in your code?
> >
> > > Can you give us a bit more information (and maybe examples) of what
> > > you are trying to do.
> >
> > > Cheers,
> > > Em
> >
> > > --
> > > 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 unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> <django-users%2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
> >
> >
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Chopping Queryset

2010-08-17 Thread Mathieu Leduc-Hamel
If you want the job offer of the current logged user it should be pretty
simple using a filter like that:

jobsfound.filter(userdetail__user=request.user)

But if i was you i would invert the order of these two filter like that:

jobsfound = joblist.objects.filter(userdetail__user=request.user)
jobsfound = jobsfound.filter(name__icontains=cd['jobsearchitem'])



On Tue, Aug 17, 2010 at 4:20 PM, Niall  wrote:

> Hey,
> Given the models below, I want to display all jobs, but mark those of
> the User that is logged in?
>
>
> My Model definition---
> User model is the built in User model.
>
> class joblist(models.Model):
>name=models.CharField(...)
>userdetail = models.ManyToManyField(User,through='userextra')
>
> class userextra(models.Model):
>joblist = models.ForeignKey(joblist)
>user = models.ForeignKey(User)
>comments= models.CharField(max_length=16384, blank=True,
> null=True)
>
>
> Views.py
> jobsfound=joblist.objects.filter(name__icontains=cd['jobsearchitem'])
>
>
> Template
> {% for row in joblist %}{{row.name}}
> {% if user.is_authenticated() %}
> {{row.comments}}
> {%endfor%}
>
>
>
> I don't know if I should be adding more to the filter statement in
> views.py or doing something in the template.
> Note: I want all jobs printed (within the search criteria) but
> displaying the comments of the authenticated user.
>
>
> Any help appreciated,
> N
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Proxy models and Meta options

2010-08-17 Thread Mathieu Leduc-Hamel
Hi all,

I've just used a proxy model in my own custom application and i've just
found a small problem. Right now, to be able to create a Proxy model, i'm
force to redefine a Meta options like that:

class NewDiscount(Discount):
class Meta:
proxy = True

The problem i have is that the original discount object defined the
following Meta options:

class Discount(models.Model):
class Meta:
verbose_name = _("Discount")
verbose_name_plural = _("Discounts")
unique_together = ('slug', 'amount')

Since i've overwritten the Meta class I should copy the original Meta
options inside my Proxy model like that:

class NewDiscount(Discount):
class Meta:
proxy = True
verbose_name = _("Discount")
verbose_name_plural = _("Discounts")
unique_together = ('slug', 'amount')

But, when I'm doing that, Django throw me an error saying:

"store.discount: "unique_together" refers to site. This is not in the same
model as the unique_together statement."

It means that i can't add the unique_together clause in the Meta class cause
the fields are not directly the property of my proxy model !!!

How it's possible ? What should I do ?

Mathieu Leduc-Hamel

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to execute some user defined codes (functions) when Django boot?

2010-08-17 Thread Mathieu Leduc-Hamel
Tang,

do you mean :

"How to execute some pieces of code when you launch the "runserver" command
by example" ? If this is what you mean, it's not a easy thing to do right
now. Then only way i found it possible is by using: twod.wsgi

With twod.wsgi you can use the entry points system of python and do, like in
Pylons, an entry defined by Paster "app_factory"

You can see an example there:
http://packages.python.org/twod.wsgi/manual/paste-factory.html#using-custom-factories

mathieu

On Tue, Aug 17, 2010 at 2:45 PM, Emily Rodgers  wrote:

> On Aug 17, 2:26 am, Tang Daogang  wrote:
> > Dear all,
> >
> > Recently, I have developed a plugin system for my app, and I want to
> > register those plugins when my app boot up, this need to execute some
> > user defined codes (functions) in app boot procedure, I don't know
> > where insert my registering codes to, anyone can help?
> >
> > Thank you.
>
> Hi,
>
> I don't know how to help you, but I think it is because you haven't
> explained what you want to do thoroughly enough.
>
> What do you mean by a plugin system, and what do you mean by
> registering them with the app on boot up? Are you talking about
> including another python module in your code? Or perhaps including
> another django app in your code?
>
> Can you give us a bit more information (and maybe examples) of what
> you are trying to do.
>
> Cheers,
> Em
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Changing a model of place from the admin site

2010-08-17 Thread Mathieu Leduc-Hamel
Thanks Andy,

It might be a solution and maybe the only one as you said. I'll maybe try it
or somebody propose me this other solution:

Create a subclass of the models classes i would like to move by creating
proxy objects. It force you create sometime a large number of object but it
might less dangerous to break something...

On Tue, Aug 17, 2010 at 11:14 AM, AndyB <andy...@gmail.com> wrote:

> I did something similar by subclassing AdminSite and overriding the
> index method. Copy the original method from contrib.admin and modify
> app_list before you render the template.
>
> It does break breadcrumbs and intermediate app pages (/admin/someapp/)
> but with some shameless hackery I fixed this too:
>
>def app_index(self, request, app_label, extra_context=None):
>p = request.path.split('/')[-2].replace('_','-')
>if p=='cms':
>p='general-content'
>elif p=='auth':
>p='users'
>return HttpResponseRedirect('/admin/#'+p)
>
> (this basically redirects /admin/auth/ and /admin/cms/ to a named
> anchor on the index page instead)
>
> Andy
>
> On Aug 16, 4:41 pm, Mathieu Leduc-Hamel <marra...@gmail.com> wrote:
> > Hi all,
> >
> > I'm currently developing a e-commerce website using satchmo and
> > django. I would like to simplify the admin pannel from the user
> > perspective. This is why i would like to change the different group of
> > models. Right now, these group are organized by application. But when
> > using some external dependencies it some become a big mess to deal
> > with so many different group of options.
> >
> > Is it possible
> >
> > There is a example of what i would like to do. There you have a part
> > of my admin site hierarchy. I would like to move "Categories" and
> > "Discounts" from the "Product" group to the "Store" group.
> >
> > auth
> >   Groups
> >   Users
> > Contact
> >   Persons
> >   Organizations
> > Product
> >   Categories
> >   Discounts
> > Store
> >   Style
> >   Color
> >   Size
> >
> > How can it be done ?
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Best OS - VPS environment

2010-08-16 Thread Mathieu Leduc-Hamel
Yeah but it's a little bit simpler with apache and mod_wsgi...

If i don't want to run a separate service like gunicorn or something like,
how can we do the same thing than apache+mod_wsgi but with nginx.

We've tried passenger but it's not very stable and not necessarily always
product's ready.

On Mon, Aug 16, 2010 at 6:43 PM, daniels  wrote:

> +1 for Debian or FreeBSD and Nginx
> Really fast/easy to setup and works withouth any problems.
>
> On Aug 16, 12:48 pm, Alex  wrote:
> > FreeBSD
> >
> > On Mon, Aug 16, 2010 at 12:39 PM, Kenneth Gonsalves  >wrote:
> >
> > > On Mon, 2010-08-16 at 01:54 -0700, Dan wrote:
> > > > What do people recommend?
> >
> > > debian lenny
> > > --
> > > regards
> > > Kenneth Gonsalves
> >
> > > --
> > > 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 unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Changing a model of place from the admin site

2010-08-16 Thread Mathieu Leduc-Hamel
Hi all,

I'm currently developing a e-commerce website using satchmo and
django. I would like to simplify the admin pannel from the user
perspective. This is why i would like to change the different group of
models. Right now, these group are organized by application. But when
using some external dependencies it some become a big mess to deal
with so many different group of options.

Is it possible

There is a example of what i would like to do. There you have a part
of my admin site hierarchy. I would like to move "Categories" and
"Discounts" from the "Product" group to the "Store" group.

auth
  Groups
  Users
Contact
  Persons
  Organizations
Product
  Categories
  Discounts
Store
  Style
  Color
  Size

How can it be done ?

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.