Re: Best django ecommerce aplication?

2011-05-19 Thread Bruno Ripa
Hi, i meant that such interfaces is closer to "windows-app-style" than to web structures, simply as that. Anyway, customers recognize that, and appreciate. +1 for lfs for that. 2011/5/20 Kai Diefenbach > Servus, > > > On 2011-05-19 10:47:24 +0200, Bruno Ripa said: > > Anyway, we are evalu

Re: Best django ecommerce aplication?

2011-05-19 Thread Kai Diefenbach
Servus, On 2011-05-19 10:47:24 +0200, Bruno Ripa said: Anyway, we are evaluating http://www.getlfs.com/ (Lighting Fast Shop), another implementation of ecommerce shop, based on django.  even if based on older contepts - like floating menus What does this mean? What is more up-to-date? Kai

Re: Static files

2011-05-19 Thread Derek
On May 18, 10:03 pm, Kevin Monceaux wrote: > John, > > On Wed, May 18, 2011 at 09:12:59AM -0700, John Wheeler wrote: > > I had to change > > >    return render_to_response('index.html', {'form': form}) > > > to > > >    return render_to_response('index.html', {'form': form}, > > context_instance=R

Re: learning Django after a break -- site tutorials, examples

2011-05-19 Thread Mike Dewhirst
On 20/05/2011 1:35pm, John Griessen wrote: I've gone through the Django 1.2 tutorial to the point of creating an admin site, then had to switch to other work for months. What are some good simple example sites or tutorials for creating a top page ( index.html ) and using templates with css?

Re: learning Django after a break -- site tutorials, examples

2011-05-19 Thread Shawn Milochik
I don't think either of the things you're asking for samples of are related to Django. Do you have a specific Django-related question? If not, try w3schools for their tutorials on Web design. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django FCGI process randomly dying

2011-05-19 Thread Alexander Schepanovski
Or just don't use fcgi. Django's runfcgi command uses flup package which is slow and buggy. Just switched ne of our projects to uwsgi and load average dropped from 12 to 4. On 18 май, 21:07, Simon Connah wrote: > On 18 May 2011, at 10:14, Vincent den Boer wrote: > > > On Monday 16 of May 2011 14:

Re: REMOTE_USER authentication to 'Admin'?

2011-05-19 Thread Jeff Blaine
Thanks Jacob and Ramiro. I finally figured it out, and unfortunately it was, of course, something stupid :( I had changed the directory name holding my WSGI app and had not changed the Apache config's path reference in *both* places (ScriptAlias and Directory). SIGH. That was causing the stati

learning Django after a break -- site tutorials, examples

2011-05-19 Thread John Griessen
I've gone through the Django 1.2 tutorial to the point of creating an admin site, then had to switch to other work for months. What are some good simple example sites or tutorials for creating a top page ( index.html ) and using templates with css? John -- You received this message because y

Re: [help]django's FloatField can't insert the mysql's double type data.

2011-05-19 Thread Karen Tracey
The error is occurring on the same line of code as it was before, only now it's reporting that a decimal isn't callable where before it was saying that a float isn't callable. So whatever was causing that problem is still afflicting the project, changing float to decimal didn't fix that. I don't kn

Re: how to save image in postgreSQL database

2011-05-19 Thread ramnivas indani
ok but how can i achieve it in Django means how can i store images in Django python using URI -- 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, sen

Re: how to save image in postgreSQL database

2011-05-19 Thread Simon Connah
On 19 May 2011, at 20:38, ramnivas indani wrote: > ok thanks, is there any online tutorial for that from where i can learn about > URI? This is a good introduction to the subject: http://en.wikipedia.org/wiki/Uniform_Resource_Identifier Simon. -- You received this message because you are su

session handling

2011-05-19 Thread man_kum
Hello , I am new to Django and trying to handle signin/ signout request according to following documentation http://docs.djangoproject.com/en/1.3/topics/auth/#how-to-log-a-user-in I am using fiddler tool on windows for testing the get/post requests Problem : when I make a post request with us

abstact model base class field override

2011-05-19 Thread Valya Golev
Hi, Can anybody please tell me that's the problem with overriding a field from an abstact base model class? It's somewhat against the whole "OOP" thingy and I can't see any technical limitation. What am I missing? -- Valya Golev -- You received this message because you are subscribed to the

Re: REMOTE_USER authentication to 'Admin'?

2011-05-19 Thread Ramiro Morales
On Thu, May 19, 2011 at 6:02 PM, Jeff Blaine wrote: > I'm kind of at the point where I consider this a bug in some fashion, > regardless > of my specific problem (which persists). Well the auth application has a rather large set of tests that exercises both creating, specifying (in the AUTHENTICA

Aw: Virtualized Django app image for dev replication?

2011-05-19 Thread Juergen Schackmann
Hi ydjango, from personal experience, Virtualbox is really easy to use and setup and quite lightweight. If you use e.g. this image http://www.turnkeylinux.org/django, you will be ready to go very fast. Regards, Juergen -- You received this message because you are subscribed to the Google Groups

iteration over fk in django

2011-05-19 Thread Arye Lukashevski
If I have table like this represented in django model person -- id name worker -- personid jobid job --- id desc wage w=Worker.objects.filter(http://groups.google.com/group/django-users?hl=en.

Re: Django model manager "live" object issues

2011-05-19 Thread Kirill Spitsin
On Wed, May 18, 2011 at 11:45:46PM -0700, James Hargreaves wrote: ... > Firstly, when I query for LIVE objects in my view via > Article.live.all() if I refresh the page repeatedly I can see (in > MYSQL logs) the same database query being made with exactly the same > date in the where clause - ie -

Re: REMOTE_USER authentication to 'Admin'?

2011-05-19 Thread Jeff Blaine
I'm kind of at the point where I consider this a bug in some fashion, regardless of my specific problem (which persists). AUTHENTICATION_BACKENDS = ( 'mybackends.MyRemoteUserBackend', ) If I define AUTHENTICATION_BACKENDS in settings, no default fallen back on. If my hand-specified stuff do

Re: django deployment

2011-05-19 Thread Shawn Milochik
Eric, What I like about deploying with gunicorn is this: It only takes one line in an nginx config: proxy_pass http://127.0.0.1:9876; And you run it as simply as running the dev server: ./manage.py run_gunicorn 127.0.0.1:9876 That's it. You can deploy in production. No Apache config,

Re: Question

2011-05-19 Thread james...@gmail.com
On May 19, 12:27 am, yevishere wrote: > Hi all, > I am a newbie and I have a problem. Please read the following before you ask any other question: http://www.catb.org/~esr/faqs/smart-questions.html > I am using admin.py and > I have a ton of numerical fields in columns > I was wondering how I

Re: how to save image in postgreSQL database

2011-05-19 Thread Eric Chamberlain
On May 19, 2011, at 6:30 AM, Ram wrote: > hello everyone i am studying python for my college project in which i > am sending some text and image in URL i want to store it to postgreSQL > database i know how to read data from URL but not about images how can > i perform it please help. Storing BL

Re: django deployment

2011-05-19 Thread Eric Chamberlain
On May 19, 2011, at 11:40 AM, Shawn Milochik wrote: > There are a lot of options for this. > > One way is as you described. Another would be to serve the images from > another server entirely, like Amazon's S3. > > It depends on how you want to do it and what resources you have available. > >

weird error with MS Excel 2010 exports

2011-05-19 Thread Bobby Roberts
hi. Regardless of how we try to export from a view into an excel file, we get a weird msgbox reading: "The file you are trying to open, 'filenamehere.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before ope

Re: how to save image in postgreSQL database

2011-05-19 Thread ramnivas indani
ok thanks, is there any online tutorial for that from where i can learn about URI? -- 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: django deployment

2011-05-19 Thread Shawn Milochik
There are a lot of options for this. One way is as you described. Another would be to serve the images from another server entirely, like Amazon's S3. It depends on how you want to do it and what resources you have available. If you specifically want to know whether there are additional advan

django deployment

2011-05-19 Thread Praveen Krishna R
*Hey, * * * *This Regarding the static file serving, What I understood, after reading some docs on the internet is,* * * *Keep a server like Nginx as a front end proxy infront of Apache, and nginx also serves the Static Files, * *(please correct me if I am wrong.) * * * *My Question is If I use th

Re: Virtualized Django app image for dev replication?

2011-05-19 Thread Eric Chamberlain
On May 18, 2011, at 7:30 PM, ydjango wrote: > I am thinking of creating a virtualized image of my complete django > app with mysql so that I can clone/copy it on developers, qa and demo > laptops. That way I do not have to do greenfield install on each > developer computer which can take many hou

Re: Question

2011-05-19 Thread yevishere
Thanks for your help. I will write a webpage, i realized it was a stupid subject after I posted it. On May 19, 7:58 am, AJ wrote: > Not related to your question but just a suggestion: > > Please try to put a relatively better subject of the question. It helps > folks on the forum to quickly parse

Re: Built-in login form via inclusion tag

2011-05-19 Thread Kirill Spitsin
> On 13 Maj, 14:55, Gabe wrote: ... > > It seems like it don`t know enything about form variable. How can I > > give it to it via inclusion tag? You should return template context with `form` variable:: from django.contrib.auth.forms import AuthenticationForm @register.inclusion_tag("yo

Re: [help]django's FloatField can't insert the mysql's double type data.

2011-05-19 Thread Korobase
I change the floatField to DecimalField and the error also out show: And from django debug information I can't location which field resulting this error!! TypeError at /admin/main/myitem/add/ 'Decimal' object is not callable Request Method:POST Request URL: http://localhost:8000/admin/main/myi

Re: how to save image in postgreSQL database

2011-05-19 Thread AJ
As Simon mentioned that it is a bad idea and I agree but just for the answer's sake you could save them as BLOBs http://www.postgresql.org/files/documentation/books/aw_pgsql/node96.html Am I correct folks? -AJ On Thu, M

Re: Question

2011-05-19 Thread AJ
Not related to your question but just a suggestion: Please try to put a relatively better subject of the question. It helps folks on the forum to quickly parse a problem that maybe of their interest or of their expertise. Just my $0.02. :) On Wed, May 18, 2011 at 6:27 PM, yevishere wrote: > H

Re: Best django ecommerce aplication?

2011-05-19 Thread Nan
Wow, just in the few months since we settled on Satchmo for our store, the e-commerce ecosystem seems to have really exploded, and some of the alternatives matured significantly. It's awesome to see the growth, and I'm not sure we would have made the same decision now. On May 19, 9:31 am, podio

Need help writing a custom admin widget (pasting image from clipboard rather than uploading a file)

2011-05-19 Thread Eran
I have a Model with an ImageField, and the use case I am interested in is that instead of the user uploading an image file from their computer, they will "paste" the contents of their clipboard (e.g. they took a screenshot using PrintScreen) into this field. Using the helpful information at htt

Re: Nested template variable lookup

2011-05-19 Thread Tom Evans
On Thu, May 19, 2011 at 1:07 PM, Geoff Kuenning wrote: > Thanks, Tom, that was HUGELY helpful!  I had been thinking about using > a filter expression, but it's so much easier to have sample code. > > I have another question, though (not just for Tom).  The article Tom > linked to > (http://groups.

Re: how to save image in postgreSQL database

2011-05-19 Thread Simon Connah
On 19 May 2011, at 14:30, Ram wrote: > hello everyone i am studying python for my college project in which i > am sending some text and image in URL i want to store it to postgreSQL > database i know how to read data from URL but not about images how can > i perform it please help. Don't. Save t

Re: Selecting distinct months from a QuerySet

2011-05-19 Thread Scott Gould
I'd either add a manager with a method that did the query you describe in SQL, or (if you're wanting the whole queryset anyway) just calculate it via: months = list(set(x.datetime_field.month for x in queryset)) months.sort() On May 19, 1:03 am, Ian Turner wrote: > Hi, > > I would like t

Re: Json serialization for use in JS

2011-05-19 Thread Tom Evans
On Thu, May 19, 2011 at 1:23 PM, Jonas Geiregat wrote: > Hello, > I'm also finding the built in serialization a bit overhead. Me too! I use a simple HttpResponse subclass for generating JSON though: from django.http import HttpResponse from django.utils import simplejson class JsonResponse(Htt

how to save image in postgreSQL database

2011-05-19 Thread Ram
hello everyone i am studying python for my college project in which i am sending some text and image in URL i want to store it to postgreSQL database i know how to read data from URL but not about images how can i perform it please help. -- You received this message because you are subscribed to

Re: Best django ecommerce aplication?

2011-05-19 Thread podio
Thanks you all I will study them all ! -- 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 django-users+unsubscr...@googlegroups.com.

Re: Json serialization for use in JS

2011-05-19 Thread Jonas Geiregat
Hello, I'm also finding the built in serialization a bit overhead. It puts to much information in your JSON string that can be modified such as the PK field. I often import json ( http://docs.python.org/library/json.html ) and serialize the data myself before passing it to the render method. Th

Re: Nested template variable lookup

2011-05-19 Thread Geoff Kuenning
Thanks, Tom, that was HUGELY helpful! I had been thinking about using a filter expression, but it's so much easier to have sample code. I have another question, though (not just for Tom). The article Tom linked to (http://groups.google.com/group/django-users/browse_thread/thread/ 6f4b7d95e4d0c81

Re: Best django ecommerce aplication?

2011-05-19 Thread Bruno Ripa
Hi, we used satchmo for several ecommerce applications, integrating several technologies: - satchmo for ecommerce - Plone for content management - xdv (now diazo) for the presentation layer It is of course a good product, but it needs some tuning and at least a little/medium rethinking of the

Re: Best django ecommerce aplication?

2011-05-19 Thread Filip Jukić
I don't have any experience with ecommerce in Django but I ran across this blog post a few days ago, maybe it will help you: http://readncode.com/blog/the-state-of-ecommerce-in-django/ On May 19, 1:00 am, podio wrote: > I was thinking to migrate my page to python, I choose Django and know > need

Django model manager "live" object issues

2011-05-19 Thread James Hargreaves
Hello, I am using Django. I am having a few issues with caching of QuerySets for news/category models: class Category(models.Model): title = models.CharField(max_length=60) slug = models.SlugField(unique=True) class PublishedArticlesManager(models.Manager): def get_query_set(self):

Re: Best django ecommerce aplication?

2011-05-19 Thread Matthias Kestenholz
On Thu, May 19, 2011 at 1:00 AM, podio wrote: > I was thinking to migrate my page to python, I choose Django and know > need a shop aplication I was thinking in http://satchmoproject.com/. > > There some other else better? I wouldn't use the term "Better". Maybe there are others more suitable to

Json serialization for use in JS

2011-05-19 Thread redfive
I'm trying to return some JSON from one of my views. My objects are simple and I can get the built-in json serializer working, but wanted a cleaner object when I deserialize in my webpage, i.e. I don't want the pk or model entries. What is the best way to go about that? I played around a little wit

Re: TypeError: get_models() got an unexpected keyword argument 'include_auto_created'

2011-05-19 Thread zhang kai
I get this error too, and I found it's because I installed django1.3 before I uninstall django1.1. So I uninstall them all and reinstall the django1.3 everything is OK. You can have a try. On Apr 8, 7:47 am, LIU Liang wrote: > I get a pinax project from SVN, then I new a django project for lance

Re: retrieving current user in view

2011-05-19 Thread Tom Evans
On Thu, May 19, 2011 at 7:33 AM, Michel30 wrote: > This gives me a file field, a browse button and a submit button. What > I'd like to have is a submit button only, click that opens a file > dialog. > Any ideas? You cannot do that. File controls are strictly only opened by browsers under direct u

Re: modelformset_factory instance not saving

2011-05-19 Thread piker
Thanks for the reply. formset.is_valid returns False but formset.errors returns an empty list.The same applies for the SpeciesFormSet.What would this suggest? Cheers. On May 19, 7:04 pm, Daniel Roseman wrote: > On Wednesday, May 18, 2011 11:46:14 PM UTC+1, piker wrote: > > > I have a modelformset

Re: modelformset_factory instance not saving

2011-05-19 Thread Daniel Roseman
On Wednesday, May 18, 2011 11:46:14 PM UTC+1, piker wrote: > > I have a modelformset_factory instance displaying beautifully, but not > saving to the database. > If anyone can spot any mistake i've made in the code it would be much > appreciated.(i'm using Django 1.3 by the way). > > def warnin

Re: Question

2011-05-19 Thread Gabriel Gunderson
On Wed, May 18, 2011 at 4:27 PM, yevishere wrote: > I am using admin.py and > I have a ton of numerical fields in columns > I was wondering how I could have a little window where I could ask the > user to filter a specific column by numerical value. Something like > list all values from column 1,

Re: pg_dump iom_catalog tables

2011-05-19 Thread Gabriel Gunderson
On Wed, May 18, 2011 at 2:41 PM, William Hudspeth wrote: > pg_dump -C -h localhost -U wilbur -t achon_group -t achon_grouping -t > brecciation -t chon_class -t chon_group -t chon_petro -t > chon_petro_subtype -t iron_group -t iron_struc -t loan -t met_type -t > metrefs1 -t other_notes -t photo_log

Re: Need help with a form instance

2011-05-19 Thread Oleg Lomaka
That is weird. I don't see serious errors in your view code. I would look at request.POST. May be you forgot to include formset.management_form into your template or something like this... ps: if you use django 1.3, there is a django.shortcuts.render method that is looks nicer then render_to_respo