Re: virtualenv on Windows

2014-01-29 Thread Sam Lai
Oops, my memory failed me. They don't work with pip, but they do work with easy_install, which virtualenvs have as well (at least mine do). http://stackoverflow.com/a/5442340/150999 For example, easy_install C:\Users\sam\Downloads\Pygments-1.6.win-amd64-py2.7.exe On 29 January 2014 16:27, Mik

Re: Commercial Django e-commerce products

2014-01-29 Thread Alex Strickland
On 2014-01-28 03:39 PM, Alex Strickland wrote: Can anyone suggest any commercial Django e-commerce products? Thanks for the responses - rather thin on the ground compared to the PHP space :( . -- Regards Alex -- You received this message because you are subscribed to the Google Groups "Dja

Re: Commercial Django e-commerce products

2014-01-29 Thread Denis Cornehl
Hi Alex, there are additionally several open-source (non-commercial) e-commerce packages: - http://cartridge.jupo.org/ - https://www.django-cms.org/en/e-commerce/ (already mentioned by Serge) - http://docs.satchless.com/en/latest/ - http://getsaleor.com/ (based on satchless) - http://www.getlfs.c

Re: Need Help Moving Database to production server

2014-01-29 Thread Babatunde Akinyanmi
Replies are inline On 28 Jan 2014 17:15, "Mark Phillips" wrote: > > On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst wrote: >> >> On 28/01/2014 4:51pm, Mark Phillips wrote: >>> >>> I have a django project running on my laptop. I have (finally) managed >>> to get it to work with apache on a product

Re: Problems with admin.autodiscover()

2014-01-29 Thread Babatunde Akinyanmi
Response inline On 29 Jan 2014 07:22, "Mark Phillips" wrote: > > I have a site built using django 1.6. It runs as expected with runserver on my Debian laptop in a virtual env based on Python 2.7 (development machine). I copied the site to another Debian server (production), created the same virtua

Printing Output to Browser Problem

2014-01-29 Thread Jason Head
I'm trying to get output from NLTK to print to the browser, but can't seem to get the output there. I have tested the core function in the Python shell, so I know that works. Any ideas on how to get the output printed out? The routing seems to work fine, and am pretty sure things work until the

Re: Problems with admin.autodiscover()

2014-01-29 Thread Mark Phillips
I added this to my urls.py: import sys, os try: admin.autodiscover() except: e = sys.exc_info()[0] print >> sys.stderr, e and got this in the apache log - [core:notice] [pid 19280] AH00052: child pid 19284 exit signal Segmentation fault (11) The site loads correctly except for the a

Re: Problems with admin.autodiscover()

2014-01-29 Thread Mark Phillips
I found the problem. In my settings directory I have three files - base.py, dev.py, pod.py. I had a typo in both dev.py and prod.py - from .base import *, and it should have been from base import * (no period before base). The site and admin functions are working properly now! Thanks, Mark

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-29 Thread bobhaugen
I think I agree with James (below). I'm about to graft a javascript MVC library or framework on top of a Django server, to make up for some problems with Django templates and forms. Haven't done it yet, but need to do something different. So I may come back here and repent...;) I have worked on

Re: Invalidating active sessions after a password change?

2014-01-29 Thread Альберт Тугушев
Btw i wrote reusable application for this subject. Here is the link if it could help to someone: https://github.com/alikus/django-password-session вторник, 2 октября 2012 г., 18:23:25 UTC+4 пользователь Dirley Rodrigues написал: > > I've recently discovered this issue with my django based appli

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-29 Thread Toran Billups
I just shipped my first commercial web application and found that writing the backend with django was still a big win because the platform is so stable and feature rich. Authentication out of the box REST api with django rest framework ORM / migrations / etc with core django and south mod WSGI +

Foreign key filter question

2014-01-29 Thread Larry Martell
I have a table that has these 2 foreign keys: target_name = models.ForeignKey(Target) wafer = models.ForeignKey(Wafer) Both Target and Wafer are defined the same: name = models.CharField(max_length=40, db_index=True, unique=True) When filtering by wafer I can do this: wafer__name__icon

Decompression Failed

2014-01-29 Thread James Kinsley
I have just downloaded Python 2.7.6 on my Mac (running OSX 10.7.5 and I tried to download Django, but it keeps failing to decompress - any ideas ? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Foreign key filter question

2014-01-29 Thread Will A
Try target_name_name__icontains='foo' or update the foreign key definition. On Wed, Jan 29, 2014 at 5:08 PM, Larry Martell wrote: > I have a table that has these 2 foreign keys: > > target_name = models.ForeignKey(Target) > wafer = models.ForeignKey(Wafer) > > Both Target and Wafer are

Re: Decompression Failed

2014-01-29 Thread Mike Dewhirst
On 30/01/2014 9:23am, James Kinsley wrote: I have just downloaded Python 2.7.6 on my Mac (running OSX 10.7.5 and I tried to download Django, but it keeps failing to decompress - any ideas I have just spent some time downloading and installing Django as part of a virtualenv exercise. I had no t

Re: virtualenv on Windows

2014-01-29 Thread Mike Dewhirst
On 29/01/2014 7:10pm, Sam Lai wrote: Oops, my memory failed me. They don't work with pip, but they do work with easy_install, which virtualenvs have as well (at least mine do). http://stackoverflow.com/a/5442340/150999 For example, easy_install C:\Users\sam\Downloads\Pygments-1.6.win-amd64-py2

Re: Decompression Failed

2014-01-29 Thread Thomas Lockhart
On 1/29/14 2:23 PM, James Kinsley wrote: I have just downloaded Python 2.7.6 on my Mac (running OSX 10.7.5 and I tried to download Django, but it keeps failing to decompress - any ideas ? Thanks. You may have already seen mention of virtualenv and pip wrt Django development. I think there is a

screen

2014-01-29 Thread pointmuriae castro
need to call a screen before loading the settings.py has the -- 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.com. To post t

Re: screen

2014-01-29 Thread Charly Román
A screen? 2014-01-29 pointmuriae castro : > need to call a screen before loading the settings.py has the > > -- > 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

Re: Prefetch object (django 1.7)

2014-01-29 Thread Marcin Szamotulski
On 01:42 Mon 27 Jan , Marcin Szamotulski wrote: > Hello, > > I have a model > > class Post(models.Model): > > ... > authors = models.ManyToManyField('accounts.User', through='PostAuthor', > related_name='authors_posts') > > > class PostAuthor(models.Model): > > user = models

Re: Foreign key filter question

2014-01-29 Thread Larry Martell
On Wed, Jan 29, 2014 at 5:28 PM, Will A wrote: > Try > target_name_name__icontains='foo' or update the foreign key definition. target_name__name__icontains is what was needed. Thanks. > > > > On Wed, Jan 29, 2014 at 5:08 PM, Larry Martell > wrote: >> >> I have a table that has these 2 foreign

Re: Prefetch object (django 1.7)

2014-01-29 Thread Anssi Kääriäinen
To me it seems you are mixing the authors m2m relation and the through model. The 'authors' relates to User, not PostAuthor. But your queryset is pointing to PostAuthors. If you want to fetch PostAuthor instances, then you should likely prefetch with Prefetch('postauthors', PostAuthors.objects.