Model reversion

2012-05-09 Thread Alireza Savand
Hi First of all i know there is a plugable app called *django-reversion*, leave it now! I like to discus about some idea to implement a simple reversion app. i have couple of thoughts about it, all i need is just another people's ideas about it. If i'm wrong correct me! The model that used to

Re: Model reversion

2012-05-09 Thread Alireza Savand
Thanks for your reply and the link. But what about binary items, i mean files. should we keep eyes on them, and if user delete them we should not delete them and just hide them? Or reversion is just about text and text ? And something else, reversion model shoulda trace the creator of the chang

Re: Search in Django

2012-05-09 Thread Alireza Savand
Haystack is highly recommended! I can't give you helpful advice to guide you which backend is lighter, because i using it with Solr and it was/is prefect! But you can compare the backends itself to find-out which one is lighter to use. And i think by simple you mean a full-text search engine with

Re: Model reversion

2012-05-10 Thread Alireza Savand
Another thing is which library shoulda be used to generate diff and do path on versions? there is some of them such as: - *difflib * - *google-diff-match-patch * - *** * * The google-diff-

pre_save vs post_save

2012-05-12 Thread Alireza Savand
Hi What is the different between pre_save signal and post_save singal. I know post_save will emited after model instance saved, and pre_save is before the saving the instance[?] but what it the point of pre_save when we cannot access the object data before the data changes. I mean user try to ch

Re: pre_save vs post_save

2012-05-12 Thread Alireza Savand
the use cases, but I'm sure you can think of others. > > Karl Sutt > > > > On Sat, May 12, 2012 at 10:46 AM, Alireza Savand > wrote: > >> Hi >> >> What is the different between pre_save signal and post_save singal. >> I know post_save will emited aft

Re: pre_save vs post_save

2012-05-12 Thread Alireza Savand
e your model definition and signal > connectors etc. > > Karl Sutt > > > > On Sat, May 12, 2012 at 11:38 AM, Alireza Savand > wrote: > >> Thanks for your answer Karl >> Actually yes, i want to do some versioning on model instance, but the >> problem is

Re: pre_save vs post_save

2012-05-12 Thread Alireza Savand
e this is clear and helps. > > Karl Sutt > > > > On Sat, May 12, 2012 at 12:00 PM, Alireza Savand > wrote: > >> Okay >> here the paste >> http://dpaste.de/Oa9cM/ >> And the Model is just *Poll model* from the tutorial on the django >> official

Get request.user outside of [admin|models|views].py

2012-05-13 Thread Alireza Savand
Hi Let me explain it. i developing and app to trace the models activity, hmmm. actualy it's reversioning app for other models. As a reversioning model shoulda store user_id. What i'm trying to do is to connect those models post_save signal to create a reversion on each changes. But i don't want

Re: Use Django to implement my GUI!

2012-05-13 Thread Alireza Savand
https://github.com/toastdriven/django-tastypie On Sunday, May 13, 2012 2:14:36 PM UTC+4, Eugene NGONTANG wrote: > > Hi! > > I'm a python developper, but new in django. > > I'm devolopping a multi clients-server application. > > The server and the clients are communicating via sockets, The serve

Re: Use Django to implement my GUI!

2012-05-13 Thread Alireza Savand
lement my gui with django and when i will master > well django, i could use tastypie, and turn my server to support REST, it > will be a good thing. > > But please let's keep using only django for the begining. > > Thanks. > > > 2012/5/13 Alireza Savand > >

Re: pre_save vs post_save

2012-05-13 Thread Alireza Savand
Okay, i found a problem in it. One of my models doesn't use *id* as a default *pk*. is use different primary key, called *iso.* So here the traceback http://dpaste.de/o7kSw/ It's not working with those model with different primary key :| On Saturday, May 12, 2012 3:13:28 PM UTC+4, Karl Sutt wrote

Re: pre_save vs post_save

2012-05-13 Thread Alireza Savand
; instance = sender.objects.get(id=kwargs['instance'].id) > > > to "iso" and that should to the trick. Try it, as I haven't verified it. > And let us know. > > Good luck, > > Karl Sutt > > > > On Sun, May 13, 2012 at 2:39 PM, Alireza

Re: pre_save vs post_save

2012-05-13 Thread Alireza Savand
Aha i solved it sender.objects.get(id=kwargs['instance'].id) be sender.objects.get(*pk*=kwargs['instance'].*pk*) Thank you again Karl ;) On Sunday, May 13, 2012 5:39:34 PM UTC+4, Alireza Savand wrote: > > Okay, i found a problem in it. > One of my models does

Re: Get request.user outside of [admin|models|views].py

2012-05-13 Thread Alireza Savand
Also i found https://github.com/seveas/django-echelon very usefull Specially *CurrentUserFiled* For the information, use shoulda be always authenticated so it's not a case here! Thank you On Sun, May 13, 2012 at 6:27 PM, Rafał Stożek wrote: > It is possible using simple middleware and > http://d

Project/App announcement - django-cuser

2012-05-14 Thread Alireza Savand
Hi I don't i can use mailing-list to announce a project, i just try ;D Okay, i just released an app named *django-cuser, *it's fork of django-echelon but without audit stuff I did not doing anything cool in it, just pypi pkg added, and remove unnecessary stuff. PyPi: http://pypi.python.

Custom JS problem in django's admin

2012-05-20 Thread Alireza Savand
Hi I have the following dummy java script file => https://gist.github.com/2757531 , that i used django.jQuery instead of *$*selector, but it's not working. Weird thing is when i manually write that js script at the chrome's console it's works! Thanks -- You received this message because you

Re: Custom JS problem in django's admin

2012-05-20 Thread Alireza Savand
PM UTC+4, Alireza Savand wrote: > > Hi > I have the following dummy java script file => > https://gist.github.com/2757531 , that i used django.jQuery instead of > *$*selector, but it's not working. > Weird thing is when i manually write that js script at the chrome&#x

django-crequest - New app announcement

2012-05-24 Thread Alireza Savand
Hi Yesterday i released an app for django. *Basically it's just a middleware to access current request of your django application from anywhere in your code.* Other information described in the README and pypi page. pypi: http://pypi.python.org/pypi/django-crequest github repo: https://g

Re: django-crequest - New app announcement

2012-05-24 Thread Alireza Savand
. But with this middleware i have it already :| On Thu, May 24, 2012 at 4:46 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On May 24, 12:35 pm, Alireza Savand wrote: > > Hi > > Yesterday i released an app for django. > > *Basically it's just a mi

Re: django-crequest - New app announcement

2012-05-24 Thread Alireza Savand
On Thursday, May 24, 2012 4:46:34 PM UTC+4, bruno desthuilliers wrote: > > On May 24, 12:35 pm, Alireza Savand wrote: > > Hi > > Yesterday i released an app for django. > > *Basically it's just a middleware to access current request of your > django >

Re: Accessing request.user in a ModelAdmin function

2012-06-14 Thread Alireza Savand
On Thursday, June 14, 2012 3:04:54 PM UTC+4, Paulo Almeida wrote: > > Hi, > > I would like to access the request.user in a ModelAdmin function, so I can > filter the results of a query based on the logged in user. I have these > models: > > class Speaker(models.Model): > name = models.CharF

Re: Accessing request.user in a ModelAdmin function

2012-06-14 Thread Alireza Savand
And if it's just for logged-in user, you can do like https://gist.github.com/2930287 at the ModelAdmin -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/mxxG

Why doesn't Django support subdomain url conf?

2012-06-16 Thread Alireza Savand
Have extremely control on URLs with django is easy as possible. But why there is nothing about handling subdomains url configration, all i found it was makinga middleware

Re: Why doesn't Django support subdomain url conf?

2012-06-16 Thread Alireza Savand
une 2012 13:48:16 UTC+1, Alireza Savand wrote: >> >> Have extremely control on URLs with django is easy as possible. >> >> But why there is nothing about handling subdomains url configration, all >> i found it was >> making<http://blog.101ideas.cz/posts/subd

Re: Why doesn't Django support subdomain url conf?

2012-06-17 Thread Alireza Savand
16, 2012 1:48:16 PM UTC+1, Alireza Savand wrote: >> >> Have extremely control on URLs with django is easy as possible. >> >> But why there is nothing about handling subdomains url configration, all >> i found it was >> making<http://blog.101ideas.cz/

Where admin classes should be registered ?

2012-06-27 Thread Alireza Savand
Hi Common way to create [model|admin] classes is implement and create them in [models|admin].py file. But as standard non-django way is to create a python package named admin for AdminClass es and create a file for each admin class. But i couldn't find any standard way to register those admin cl

Re: Where admin classes should be registered ?

2012-06-27 Thread Alireza Savand
As your approach, at admin/__init__.py i have to from myapp.admin.ouradmin import * That means import all of the classes inside that files. On Wed, Jun 27, 2012 at 2:54 PM, Matt Schinckel wrote: > I generally register admin models where I define them, and then just > import that > file in admi

Re: Where admin classes should be registered ?

2012-06-27 Thread Alireza Savand
hon should find them at the filesystem and initial them or they will be initialized by django ? On Wed, Jun 27, 2012 at 6:28 PM, Daniel Roseman wrote: > On Wednesday, 27 June 2012 08:54:07 UTC+1, Alireza Savand wrote: >> >> Hi >> Common way to create [model|admin] classe

Re: Announcment - django-databrowse

2013-01-10 Thread Alireza Savand
ill be faster and cleaner without those app. >> >> I've extracted and adopted it. >> Now it's available as stand-alone package pypi. >> >> pypi: >> http://pypi.python.org/pypi/**django-databrowse<http://pypi.python.org/pypi/django-databrowse> >&

Announcement - dango-databrowse 1.1 released

2013-02-26 Thread Alireza Savand
.com/isthisthat [2]: https://www.transifex.com/projects/p/django-databrowse/ Regards, Alireza Savand -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

[ANN] Released django-markwhat version 2014.9.20

2014-09-20 Thread Alireza Savand
* Compatibility with django>=1.5. * Wheel support. * Running tests with ``tox``. Github repository: https://github.com/Alir3z4/django-markwhat Release notes: https://github.com/Alir3z4/django-markwhat/releases/tag/2014.9.20 PyPi package: http://pypi.python.org/pypi/django-markwhat Thanks, Alireza S

ANN - django-databrowse 1.3 released.

2013-12-26 Thread Alireza Savand
://github.com/Alir3z4/django-databrowse/tree/1.3 Regards, Alireza Savand -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.co