ModelAdmin Media assets with django 1.8

2020-06-11 Thread Amirouche Boubekki
Using Django 1.8, I do not understand what is the behavior of `Media` [0] inside a `ModelAdmin` subclass. In particular, whether the default behavior of form's media is applied in `ModelAdmin` that is: `extend=True` [1] I am under the impression that the behavior is implemented in

[ANN] copernic v0.1.1, Versioned structured data, with change-request mechanic, at scale.

2020-02-23 Thread Amirouche Boubekki
. But the history only store the differences between successive versions. The code is at: https://github.com/amirouche/copernic A demo is available at: http://copernic.space/about/ The license is AGPLv3+ -- You received this message because you are subscribed to the Google Groups "D

Re: [ANN] copernic v0.0.0

2020-02-19 Thread Amirouche Boubekki
On Monday, February 17, 2020 at 11:13:38 PM UTC+1, Amirouche Boubekki wrote: > > I am very pleased to announce that I will work on porting my work on a > versioned database (read: scalable wikidata) to Python and Django. > > If you want to know more and follow the de

[ANN] copernic v0.0.0

2020-02-17 Thread Amirouche Boubekki
I am very pleased to announce that I will work on porting my work on a versioned database (read: scalable wikidata) to Python and Django. If you want to know more and follow the development watch this: https://github.com/amirouche/copernic Cheers, Amirouche ~ https://hyper.dev -- You

Re: File upload error

2015-02-25 Thread Amirouche Boubekki
Héllo again (at last) On Mon, Feb 16, 2015 at 11:20 AM Sola Chong wrote: > I having a error "*expected string or buffer*" when submit to upload > avatar when edit profile. Can't figure out what is the problem.. > I've setup a small project with your code (and small

Re: File upload error

2015-02-16 Thread Amirouche Boubekki
Héllo Sola, Can you post the full stacktrace not only the error? Regards On Mon Feb 16 2015 at 11:20:42 AM Sola Chong wrote: > I having a error "*expected string or buffer*" when submit to upload > avatar when edit profile. Can't figure out what is the problem.. > >

Re: Django for latex

2015-01-23 Thread Amirouche Boubekki
On Fri Jan 23 2015 at 1:28:13 PM Hitesh Sofat wrote: > I want to generate pdf using latex. Please guide me for this , anybody > having any tutorial please share it here. > You might be interested by weasyprint . It can generate pdf from html

Re: Guidance needed - Real time and django

2014-09-02 Thread Amirouche Boubekki
2014-09-02 18:15 GMT+02:00 Robin Lery <robinl...@gmail.com>: > Thank you Amirouche! I will surely look onto that. And I saw many > tutorials on django + node.js and socket.io, and was just curious as to > what your thoughts are on this as the new version of socket.io has also

Re: Guidance needed - Real time and django

2014-08-31 Thread Amirouche Boubekki
ngs django-c10k-demo <https://github.com/aaugustin/django-c10k-demo> created by Aymeric Augustin django core contributor which use websockets - search://tornado - search://django+SSE - search://django+webRTC - search://django+pjax HTH, Amirouche > > Thank you. > > -- > You

Re: cms web buyilding

2014-08-19 Thread Amirouche Boubekki
ango applications instead of «hijacking» a CMS. I'm not saying that webmaster don't help the craft, I say that they have different skills and do different jobs. > > > On Saturday, August 16, 2014 10:01:02 PM UTC+1, Amirouche Boubekki wrote: > >> Reading my answer on a desk

Re: Should I use generic foreign key, and how?

2014-08-17 Thread Amirouche Boubekki
2014-08-17 11:24 GMT+02:00 Vladimir Chukharev : > > > On Saturday, August 16, 2014 10:46:33 PM UTC+3, Aaron Law wrote: >> >> >> Hi all, >> >> I have php web programming background, and new to Django. I am helping my >> brother to build an online system to manage

Re: Should I use generic foreign key, and how?

2014-08-17 Thread Amirouche Boubekki
2014-08-16 21:45 GMT+02:00 Aaron Law : > > Hi all, > > I have php web programming background, and new to Django. I am helping my > brother to build an online system to manage inventory, and I've got a > database design & coding problem recently. Needing help! > > That is, I

Re: cms web buyilding

2014-08-16 Thread Amirouche Boubekki
Reading my answer on a desktop computer, doesn't inspire me much. So I rewrite here... Sorry for the triple post... 2014-08-16 18:59 GMT+02:00 : > > > À Sat Aug 16 2014 12:04:20 GMT+0200 (CEST), ngangsia akumbo a écrit : > > I was having an argument about learning

Re: cms web buyilding

2014-08-16 Thread amirouche . boubekki
À Sat Aug 16 2014 12:04:20 GMT+0200 (CEST), ngangsia akumbo a écrit : > I was having an augment about learning how to code from scratch and using > content management systems like joomla, dupal to build websites. > > This guy was telling they can make any web application using Joomla the the

Re: cms web buyilding

2014-08-16 Thread amirouche . boubekki
À Sat Aug 16 2014 12:04:20 GMT+0200 (CEST), ngangsia akumbo a écrit : > I was having an augment about learning how to code from scratch and using > content management systems like joomla, dupal to build websites. > > This guy was telling they can make any web application using Joomla the the

Re: Model Objects and Updating db via XML

2014-05-23 Thread Amirouche Boubekki
m an atom file: https://github.com/liberation/django-swallow/blob/master/example/config.py HTH, Amirouche > Sayth > On 15/05/2014 1:13 am, "Tom Evans" <tevans...@googlemail.com> wrote: > >> On Tue, May 13, 2014 at 8:40 PM, Sayth Renshaw <flebber.c...@gmail.

Re: Interesting Django project folder structure.

2014-04-23 Thread Amirouche Boubekki
2014-04-21 16:00 GMT+02:00 Tianyi Wang : > Today I was reading through > http://www.deploydjango.com/django_project_structure (great resource) > > The suggested folder structure for a Django project from this site is like > below: > (I'm only interested in layout for Django

Re: Prototype of an Online Voting System (I need some constructive criticism here)

2013-12-13 Thread Amirouche Boubekki
- «vq_chc.final_count += final_count» works well. > You need to use Django update or the operation is not atomic. -- 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

Re: Prototype of an Online Voting System (I need some constructive criticism here)

2013-12-13 Thread Amirouche Boubekki
s instead of 8, no short names like «abt» instead of «about». It's useless cognitive load for the reader. HTH Thanks. > > I will gladly appreciate > Amirouche -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django/Web Programming Pattern

2013-11-14 Thread Amirouche Boubekki
Celery might overkill they are other more simple solutions that only involve your current database and cron jobs. Regards, Amirouche 2013/11/14 Jonathan Baker <jonathandavidba...@gmail.com> > You're welcome. I just set celery+rabbitmq up on a new project, and while > it can see

Re: Invitations Apps

2013-11-08 Thread Amirouche Boubekki
e ya. > > > > 2013/11/8 Amirouche Boubekki <amirouche.boube...@gmail.com> > >> >> >> >> 2013/11/8 Avraham Serour <tovm...@gmail.com> >> >>> You could create a invitation model, I don't see the problem >>> but maybe you don

Re: Invitations Apps

2013-11-08 Thread Amirouche Boubekki
too, So here's the problem, AllAuth make it easy to login >> with social accounts but does not manage invitations. >> I do not want to reinvent the wheel but if nobody did this before I'm >> afraid that i have to put my hands in the dough. >> >> Cheers ! >>

Re: Invitations Apps

2013-11-07 Thread Amirouche Boubekki
rhudec.github.io/authomatic/ something like that Both are nice and probably work but I couldn't use because I did not use django for this specific project and they did not integrate well. Hope this helps, Amirouche -- You received this message because you are subscribed to the Google Groups

[ANN] Django-Tests-Assistant

2013-10-13 Thread Amirouche Boubekki
jquery you might help by fixing it (wired GC bug I think). Thanks in advance. Anyway, have a good use of this app! Cheers, Amirouche [1] https://github.com/tests-assistant/tests-assistant/ [2] https://pypi.python.org/pypi/django-tests-assistant -- You received this message becau

Re: PyCons in Africa

2013-10-06 Thread Amirouche Boubekki
Hi, Great initiative! On Friday, October 4, 2013 6:13:44 PM UTC+2, Daniele Procida wrote: > > First of all, apologies if you have to read this more than once because of > the cross-posting. > > I've had an idea brewing recently. > > I went to meet Professor Judith Hall this afternoon to talk

Re: Search from database

2013-07-23 Thread Amirouche Boubekki
Apache solr or ElasticSearch: yes Haystack: maybe Regex: no 2013/7/21 Kamal Kaur > We can search from database using phonetic codes or queries. I want an > advanced search module in my project. That can suggest similar > spellings from database, if user enters

Re: Search from database

2013-07-21 Thread Amirouche Boubekki
You have to build it yourself or use something like solr http://lucene.apache.org/solr/ I forgot the name other of the buzzing one. maybe Haystack has support for suggestion. 2013/7/20 Kamal Kaur > Can we have a search module in django that can suggest resembling >

Re: Big Picture?

2013-07-14 Thread Amirouche Boubekki
The link to new version is missing: https://github.com/amirouche/experiments/tree/master/django-big-picture Thanks again, please share with us what were you misconceptions maybe one can improve from them or maybe can also make it more clear in the diagram :) 2013/7/14 Subhodip Biswas

Re: Big Picture?

2013-07-14 Thread Amirouche Boubekki
> >> I normally dislike technical "diagrams", but this is simple and awesome >> :-) -- it's a really nice "big picture" and introduction to the different >> components that can be hard to visualize in one's head when just getting >> started .. do you mind if I use it when introducing people to

Re: Big Picture?

2013-07-14 Thread Amirouche Boubekki
2013/7/8 Sanjay Bhangar <sanjaybhan...@gmail.com> > > > > On Sun, Jul 7, 2013 at 7:05 AM, Amirouche Boubekki < > amirouche.boube...@gmail.com> wrote: > >> Hi, >> >> I have a diagram I call big picture, you might find it useful (see >> attachme

Re: Big Picture?

2013-07-14 Thread Amirouche Boubekki
2013/7/7 Amirouche Boubekki <amirouche.boube...@gmail.com> > Hi, > > I have a diagram I call big picture, you might find it useful (see > attachment). > > Anything green is most of the time provided by the framework at least it > is the case in Django. > > Anythi

Re: soundx algo in search

2013-07-10 Thread Amirouche Boubekki
Héllo again, It sound like not something I would do in my application but in a separate daemon. Basically what you need is call a fonction that will return a list of names. The «function» is initialised with a certains number of names that it can return, is that it ? 2013/7/9 Harjot Mann

Re: redirct page

2013-07-06 Thread Amirouche Boubekki
Hi, Redirection is done in the view after form processing et al. with redirect shortcut 2013/7/6 Kakar Arunachal Service > Hi, > I am having trouble with redirecting the login page to index

Re: Embedded documents doubts

2013-07-03 Thread Amirouche Boubekki
This is a mongodb database design issue, please forward your question to mongodb user mailling list. AFAIK, it only makes sens if the contact is used nowhere else. 2013/7/2 Hélio Miranda > Hi > I have an application in Django-Tastypie and MongoDB, where I have to > enter a

Re: Missing peice before best practises

2013-07-03 Thread Amirouche Boubekki
. They are still improvements and stabilisation to be done on many (utility) apps... Everything I want to say is that outside the django tutorial, and anybooks you read, the best way to improve your skills it to [re]build something... Time to time, I think about writring a set of tutorial about

Re: URL shorteners

2013-07-01 Thread Amirouche Boubekki
Héllo, Are you looking for an API for a shorturl service or a standalone app to make a short url service ? Amirouche 2013/7/1 Larry Martell <larry.mart...@gmail.com> > I'm looking for a URL shortener I can use with my django project. I > want to be able to email a short lin

Re: django search query

2013-07-01 Thread Amirouche Boubekki
2013/7/1 Harjot Mann <harjotmann1...@gmail.com> > On Sun, Jun 30, 2013 at 11:18 PM, Amirouche Boubekki > <amirouche.boube...@gmail.com> wrote: > > You can do this by creating an extra field in the model with the name > > without vowels in it and doing a simple f

Re: django search query

2013-06-30 Thread Amirouche Boubekki
You can do this by creating an extra field in the model with the name without vowels in it and doing a simple filter on it ? Is that what you need ? 2013/6/30 Harjot Mann > On Sun, Jun 30, 2013 at 10:18 PM, Scot Hacker > wrote: > > This is

Re: Is here Ella cms (based on Django) users?

2013-06-13 Thread Amirouche Boubekki
creating-site-navigation > where should i paste those code? where must be placed views.py? > Please forward your question to ella-proj...@googlegroups.com Good luck :) > > понедельник, 10 июня 2013 г., 11:22:13 UTC+4 пользователь Amirouche > написал: > >> >>

Re: Point System in django

2013-06-13 Thread Amirouche Boubekki
2013/6/13 MattDale <mattdalesm...@gmail.com> > A quick google didn't turn up any packages for your specific case, but you > may not want to use a pre-built solution. > Amirouche wanted some more information about how you plan on implementing > the project. > > Here's a si

Re: Point System in django

2013-06-10 Thread Amirouche
Le lundi 10 juin 2013 12:59:05 UTC+2, coded kid a écrit : > > what is the best way to implement this? Users will pay a certain fee > and get some amount of points (100points) and for every video the user > watch, like 30points will be deducted. How can I go about this? is > there a package

Re: Is here Ella cms (based on Django) users?

2013-06-10 Thread Amirouche
Le lundi 10 juin 2013 00:48:06 UTC+2, Pavel a écrit : > > i have some newbie questions ^^ Can you elaborate on yours needs ? They are several CMS in Django: - djagnocms - amstrongcms - mezzanine -- You received this message because you are subscribed to the Google Groups "Django users"

Re: django's database system

2013-06-06 Thread Amirouche Boubekki
peewee looks more like django ORM 2013/6/5 Nikolas Stevenson-Molnar > Have you had a look at SQLAlchemy? http://www.sqlalchemy.org/ > > _Nik > > On 6/5/2013 3:29 AM, heni yemun wrote: > > Hi, > > I'm starting to develop some python

Re: Selecting site in admin

2013-05-29 Thread Amirouche Boubekki
Use groups maybe this can help http://stackoverflow.com/questions/8392780/django-admin-group-permissions-to-edit-or-view-models 2013/5/28 Mário Neto > Do you can this in your template > > > 2013/5/28 Victor > >> As a newbye I'm happily using admin. >>

Re: [ANN] Python in the browser by Python

2013-05-10 Thread Amirouche
Le jeudi 9 mai 2013 21:09:13 UTC+2, Javier Guerra a écrit : > > On Thu, May 9, 2013 at 11:55 AM, Amirouche Boubekki > <amirouche...@gmail.com > wrote: > > I just released a new version of PythonScript, a "variant" of Python > that > > compiles to

[ANN] Python in the browser by Python

2013-05-09 Thread Amirouche Boubekki
c of links <http://amirouche.github.io/sudo-python/> [source<https://github.com/amirouche/sudo-python/tree/gh-pages> ]. *100%)* Is it 100% compatible with CPython ? No, and it won't be, the only thing that will be 100% compatible with CPython is an interpreter translated to javascript (

Re: Django + Raspberry PI

2013-03-07 Thread Amirouche
On Thursday, March 7, 2013 8:08:45 PM UTC+1, Amirouche wrote: > > http://amirouche.github.com/blog/cross-compiling-a-gentoo.html > This will be a long way home for you I recommend you setup a cross compiler and use distcc -- You received this message because you are subscribed to t

Re: Django + Raspberry PI

2013-03-07 Thread Amirouche
http://amirouche.github.com/blog/cross-compiling-a-gentoo.html On Thursday, March 7, 2013 8:05:50 PM UTC+1, Amirouche wrote: > > > > On Friday, March 1, 2013 5:04:47 PM UTC+1, Shawn Milochik wrote: >> >> Yep, I got my full development environment for one of my company's

Re: Django + Raspberry PI

2013-03-07 Thread Amirouche
as compiled on the raspberry)... I divides by 6 the time needed to compile raspberry pi kernel with modules (less than 1hour) and you get all the benefit of a source distribution :) If you don't use a gentoo you can setup portage prefix or chroot. OR you can use distcc with a cross comp

Re: Django superstars I should be following?

2013-02-07 Thread Amirouche
On Tuesday, February 5, 2013 9:51:17 PM UTC+1, Glyn Jackson wrote: > > I'm looking for suggestions on who to follow on twitter. > Who are the Django superstars, and the opinionated and guy/grils I should > be following? > Me of course... Github following is

Re: How to deploy Django apps with Google App Engine

2013-01-20 Thread Amirouche
Héllo Harit, On Friday, January 18, 2013 6:56:17 PM UTC+1, Harit wrote: > > Hello Everyone > I am new user of Django and this community and want to know how can we > deploy Django apps on Google App Engine. > If it is Google App Engine and not Google Cloud you won't be able to use Django's

Re: Django lucene

2013-01-18 Thread Amirouche Boubekki
Héllo, I'm curious why do you use lucene instead of solr ? Thanks 2013/1/18 Harry Houdini > > I originally went down this path but I too ran into many problems getting > this to work and ended up using Whoosh instead. The site was small ~30 > pages or so it was still

Re: django: creating tag groups

2013-01-15 Thread Amirouche Boubekki
t; underlying Field >> > > It's just an example with the same queryset for both fields. > The example in the code is not working, «My» class is not referenced anywhere. I'm not familiar with multi-widgets but if a tree widgets is not what you want or don't get it work, I think it's the ri

Re: django: creating tag groups

2013-01-14 Thread Amirouche
Why are you creating two groups of tags ? Why not use a specific widgets like a tree widget ? On Monday, January 14, 2013 12:02:59 PM UTC+1, Sammael wrote: > > *The models* > > class TagGroup(models.Model): > name = models.SlugField(max_length=50, unique=True, db_index=True) > >

Re: Anyway to use innovaeditor in admin?

2013-01-14 Thread Amirouche
look at tutorials about other wysiwyg editors and django like the ck editor On Monday, January 14, 2013 3:39:36 PM UTC+1, frocco wrote: > > src='scripts/innovaeditor.js'> > > Initialize the Editor below any ** you’d like to replace. > >

Re: Project Structure - Lots of scattered custom views

2013-01-14 Thread Amirouche
2. Look at Pelican for an example app that does static blog generation from rst files and templates files. Of course if you don't need the rst part you can skip it. Best regards, Amirouche -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: How do I call a query set from views.py

2013-01-13 Thread Amirouche Boubekki
Héllo frocco, 2013/1/13 frocco > > in models.py > > def get_categories(self): > return self.objects.filter('category_class <> "sales' > Use classmethod decoratorto achieve that, like this: @classmethod

Re: Django Roles/Permissions

2013-01-13 Thread Amirouche
Héllo Chung, Did you have a look at https://github.com/lukaszb/django-guardian#usage it adds user permissions for objects, I don't know how it works with a Django 1.5 though. Regards On Sunday, January 13, 2013 1:39:45 AM UTC+1, Chung Wu wrote: > > Hi there, > > I am having difficulty

Re: Project Structure - Lots of scattered custom views

2013-01-13 Thread Amirouche
hand. Im just curious on this one; it could be an > alternative means of file storage and recognition. I understand this may > have some performance implications, but this is not going to break Django, > correct? Is this bad Django etiquette? > > Amirouche, a different w

Re: CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Amirouche
en : / Maybe restart gunicorn or whatever runs django... > I did no > > On Tuesday, January 8, 2013 8:09:03 PM UTC-5, Amirouche wrote: >> >> Did you check your cookies, is there any csrftoken ? >> >> Did you change SESSION_COOKIE_DOMAIN ? >> >&g

Re: CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Amirouche
Did you check your cookies, is there any csrftoken ? Did you change SESSION_COOKIE_DOMAIN ? On Wednesday, January 9, 2013 1:19:35 AM UTC+1, Saqib Ali wrote: > > BTW, I forgot to mention that my template contains the following HTML: > > {% csrf_token %} > > E-mail: type="text"

Re: Documentation of app_directories.Loader

2013-01-08 Thread Amirouche
Héllo Per-Olof, On Saturday, January 5, 2013 4:17:14 PM UTC+1, Per-Olof Åstrand wrote: > > I had a problem interpreting the documentation of app_directories.Loader > in > https://docs.djangoproject.com/en/dev/ref/templates/api/#loading-templates(I > use the dev version of Django). As I read

Re: Project Structure - Lots of scattered custom views

2013-01-08 Thread Amirouche
ng bare apps with some crazy model defined that only has 1 table row.», could you describe one of this table/row and generalize to the other similar tables ? Regards, Amirouche -- You received this message because you are subscribed to the Google Groups "Django users" group. To v

Re: sort cache

2013-01-08 Thread Amirouche
Héllo psychok7, On Tuesday, January 8, 2013 1:45:07 PM UTC+1, psychok7 wrote: > > Hi guys, just wondering if its possible to sort a django cache? I need to > add data with an auto increment id to the cache and sort it in reverse > order to get it back. I no this can be easily accomplished with

Re: Django admin

2013-01-07 Thread Amirouche
s template and css work. Regards, Amirouche -- 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/-/qN_u2T5HHhUJ. To post to this group, send email to dj

Re: Architectural question - decoupling modules but keeping some interaction

2013-01-07 Thread Amirouche
gist.github.com/4476673> . For the backend, the admin can do that, you will need to tweak a bit the admin so that it renders the correct form (or formset) depending on the user permissions. If this is correct, I don't know any app or framework that does what you are looking for in generic wa

Re: Question about URL namespaces

2013-01-07 Thread Amirouche
*tl;dr* if you do not reuse the same django application several times it is not useful. The following is a messy don't hesitate to ask for clarification so that me or someone else can contribute more documentation regarding this topic, there is probably more than that but that's what I

Re: Happy new year

2013-01-01 Thread Amirouche
Bonne année, paix et prosperités! Amirouche from Paris, FRANCE. On Monday, December 31, 2012 10:42:13 PM UTC+1, cingusoft wrote: > > Happy new year from spain to all django lovers. > I wish you a new year with tons of django projects. > > Cheers > Cingusoft > BlackBe

Re: Replicating same model for different deployed application.

2013-01-01 Thread Amirouche
also the django.contrib.site<https://docs.djangoproject.com/en/dev/ref/contrib/sites/>that can be helpful, you might also be interested in a search about «django subdomains». Amirouche > > Regards, > -Subodh > > On Sun, Dec 30, 2012 at 8:57 AM, Amirouche > <amirouche...@gmail.c

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Amirouche
ch library do you use ? If you use simplejson it's probably that see: https://github.com/simplejson/simplejson/issues/28 This relates to a hierarchical data structure where your datastructure at least the one you pasted is not, I already had troubles with big JSON files and simplejson, I have

Re: Getting Access to Object in Admin Panel

2012-12-30 Thread Amirouche
On Sunday, December 30, 2012 8:47:05 AM UTC+1, donarb wrote: > > You can code a string that references the __unicode__ method: > > list_display = ('__unicode__', ... > ref: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display -- You

Re: Serve static files in production server

2012-12-30 Thread Amirouche
k to use this trick in django or will it lead to problems (aka > memory problems and stuff like that)? > The documentation state «Again, this view is *not* hardened for production use» [1] What is the particular issue your are facing ? Maybe tproxy [2] can help. Regards, Amirouche [1]

Re: Replicating same model for different deployed application.

2012-12-30 Thread Amirouche
nancy for short, one django instance for several customer. They are several application that are labeled like that, I can't recommend any in particular since I don't use it them. Regards, Amirouche -- You received this message because you are subscribed to the Google Groups "Django users&

Re: Use GraphDB with Django

2012-12-17 Thread Amirouche
s easy, it has been done (disclaimer they are all my project and unmaintened so far): - https://github.com/amirouche/Flask-Bulbs - https://bitbucket.org/amirouche/flask-graphiti And for django: - https://bitbucket.org/amirouche/django-graphiti I'm not up-to-date regarding bulbflow but this must be pr

Re: Django performance vs others

2012-10-10 Thread Amirouche Boubekki
python-web-routing-benchmark.html If this is legit tests, they are impressive. Would you mind at least using the django-users@googlegroups.com ML... Thanks, Amirouche -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Managers, Queryset, inheritance and polymorphism

2012-10-09 Thread Amirouche Boubekki
Thx Lachlan, I'm not sure to understand everything, I think I will have to track this variables in the code to see how they are used. I found out about my bug, it was the import of a pyc that made all the machinery buggy. Thanks, Amirouche -- You received this message because you

Re: Django performance vs others

2012-10-06 Thread Amirouche Boubekki
; > Is it working code ? where does the returned response come from and how > does the 3 lines above can impact it ? > If you want to turn off the cache you have to change all that logical > code, not just the @decorator, right ? Seriously, dude. > I'm not into cache management par

Managers, Queryset, inheritance and polymorphism

2012-10-05 Thread Amirouche
get as results, the bug is in the second line: In [14]: PolymorphicQuerySet(Entry) > Out[14]: [, , , , > , , ] > In [15]: Entry.objects.all() > Out[15]: [] What am I doing wrong ? Thanks, Amirouche -- You received this message because you are subscribed to the Google Groups "Dja

Re: assign media to models

2012-10-05 Thread Amirouche
d the media inline instead of > having to add a Media instance first. Can anybody give me a hint how to > do this? > I think this involves javascript and creating custom admin views, look for that in the Django documentation. HTH, Amirouche -- You received this message because you a

Re: unicode decode errors in loggging on server

2012-10-05 Thread Amirouche
range(128) > > I'm a bit puzzled by this as I'm logging only to files, which should > be written as UTF-8... > If anyone has a clue, let me know! > It's seems like the string you interpolate is not ascii-decodable, try unicode.decode(encoding='utf-8') before interpolation Do yo

Re: Newbie Looking for Starter Plugin

2012-10-05 Thread Amirouche
elmed on the practices, code structure and the best way > forward. > You problem doesn't seem to be in the Django CMS-like vein of problems, yet it's it's doable, but can't give a precise answer without more information. Contact me directly if you want. Good luck Amirouche -- You

Re: Django testing strategy

2012-10-05 Thread Amirouche
te a model, celery process it, then I (or another user) change the model, then I send an email, I get an hardbounce etc...). Anyway, like I said in the other mail, I do think that manual is better. HTH, Amirouche -- You received this message because you are subscribed to the Goo

Re: Django testing strategy

2012-10-05 Thread Amirouche
hence developing it, that's also one of the reasons why generic apps are a good idea because they can be developped and properly tested separatly, can improve your productivity and you can open-source the generic app ;). Amirouche -- You received this message because you are subscribed to the Google G

Re: Django testing strategy

2012-10-05 Thread Amirouche
Please ignore this message I've hit «Post» by mistake I will edit my post :) -- 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/-/0S78LxSWkXoJ. To post to

Re: Django testing strategy

2012-10-05 Thread Amirouche
On Thursday, October 4, 2012 7:49:19 PM UTC+2, Daniele Procida wrote: > > I have started writing my first tests, for a project that has become > pretty large (several thousand lines of source code). > That is too, late! ;-) > > What needs the most testing - where most of the bugs or

Re: Newbie Looking for Starter Plugin

2012-10-05 Thread Amirouche
of any team involving building such a thing. That said Django-CMS and mezzanine provide a widget infrastructure it's just not presented like that. Cheers, Amirouche -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discus

Re: Django performance vs others

2012-10-05 Thread Amirouche Boubekki
> > I have had no idea until recently that django template are sooo slow... > other engines do the same... but spent less time. What the cool feature > prevent it for rendering it faster? The template parsing I guess, but I'm not sure. -- You received this message because you are subscribed to

Re: NetBeans IDE for Python

2009-02-25 Thread Amirouche aka Mouche
, hope it helps ! On Feb 26, 5:38 am, Amirouche aka Mouche <amirouche.boube...@gmail.com> wrote: > On Feb 4, 10:54 pm, phillc <spyyd...@gmail.com> wrote: > > > mine wasnt working exactly as you all described it... > > > until i moved my django symlink to

Re: NetBeans IDE for Python

2009-02-25 Thread Amirouche aka Mouche
On Feb 4, 10:54 pm, phillc wrote: > mine wasnt working exactly as you all described it... > > until i moved my django symlink to someplace else on my python path... > and it suddenly worked its really odd. uhh what do you mean ? > On Feb 3, 12:49 am, mrsixcount

Re: Processing a file...

2009-02-13 Thread Amirouche B.
thank you for your answers and the insight into the how servers works. Using a background process, is kind of a burden for deployement but let's do it the way it works :D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Processing a file...

2009-02-12 Thread Amirouche B.
Hello, I 'd like to process some file before saving it, let's say it's an audio file that I want to be converted to ogg before it lands in the database forever. I tried to run ffmpeg2theora in the save method of the models but this doesn't work verywell, the testserver hangup after the

Re: Must Have Python resources

2008-07-21 Thread Amirouche
On 21 juil, 11:11, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 21-Jul-08, at 1:53 PM, Hussein B wrote: > > > Well, I know this question isn't related to Django but I hope it is ok > > to ask. > > What are your favourite Python resources? > > diveintopython - how is that book outdated ?

Re: Must Have Python resources

2008-07-21 Thread Amirouche
gt; > On Jul 21, 5:44 pm, Amirouche <[EMAIL PROTECTED]> wrote: > > > > > > > On 21 juil, 11:11, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > > On 21-Jul-08, at 1:53 PM, Hussein B wrote: > > > > > Well, I know this question isn'

Re: Using multiple databases

2008-07-21 Thread Amirouche
Have a look a this http://code.djangoproject.com/ticket/4747 & http://trac.woe-beti.de/ On 21 juil, 03:04, CPF_ <[EMAIL PROTECTED]> wrote: > Ben Ford wrote: > > Hi There, > > > It has been possible in the past to use multiple databases with > > django. There was a branch for it and about a year

Re: Unicode errors

2008-07-19 Thread Amirouche B.
it works, I don't know why but... --~--~-~--~~~---~--~~ 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

Re: Unicode errors

2008-07-19 Thread Amirouche B.
here are my models http://dpaste.com/66067/ I use smart_unicode even if it's already UTF-8 and no more error but nothing appears in the admin detailed view of posts On 19 juil, 14:49, Amirouche <[EMAIL PROTECTED]> wrote: > I'm using the trunck version > > Environment: > >

Re: Unicode errors

2008-07-19 Thread Amirouche
') Template error: In template /home/amirouche/local/src/django/django/contrib/admin/ templates/admin/change_form.html, error at line 19 Caught an exception while rendering: 'ascii' codec can't encode character u'\u2605' in position 0: ordinal not in range(128) 9 : {% block stylesheet

Unicode errors

2008-07-19 Thread Amirouche
I got an encoding error while rendering in the admin some text I parsed from a feed with feedparser Caught an exception while rendering: 'ascii' codec can't encode character u'\u2605'. everything is utf-8 compliant (db = sqlite3) so I don't understand, the error happenned in *force_unicode*.

Re: Customizing Django's Auth System

2007-10-18 Thread Amirouche
if you only need User, write you own User model, no ? On Oct 18, 7:34 pm, "Hugh Bien" <[EMAIL PROTECTED]> wrote: > Hi all, > > I was wondering if it was possible to customize Django's Auth system to not > include permissions, groups, or messages. For the app I'm working on, just > have a User

newforms admin branch ?

2007-10-07 Thread Amirouche
: should I merge the trunk and newforms-admin branch together. Regards, Amirouche B. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

  1   2   >