Re: satchmo currency

2011-04-15 Thread Chris Moffitt
First off, you'll probably get better responses on the Satchmo list. Secondly, changing languages doesn't change currency symbols, which should make sense. 1 Euro is not equal to 1 Dollar. If we were to change symbols, we'd also need to do a currency conversion. It's not impossible by any means

Re: Hi guys, compatibility issues between django 1.1.1, satchmo 0.9 and postgresql 8.4?

2010-05-11 Thread Chris Moffitt
Rafael, You should probably direct your question to the satchmo-user's list to get more responses. I'm not aware of any Postgresql specific issues so if you can provide more details on the satchmo list, we'll try to help. -Chris On Tue, May 11, 2010 at 5:35 PM, Rafael Pineda

Re: Protecting Static Media from Unauthorized Users

2010-04-14 Thread Chris Moffitt
What you want to use is x-sendfile or one of it's variants depending on your server. Here's the Nginx page - http://wiki.nginx.org/NginxXSendfile Here's where we use it in Satchmo for securing downloadable files:

Re: Django and Online Payment Systems

2010-03-04 Thread Chris Moffitt
Satchmo is a full implementation of an ecommerce solution - http://www.satchmoproject.com/ More recently, Bruce has been working to split out the payment modules to django-bursar - http://bitbucket.org/bkroeze/django-bursar/overview/ which might be more of what you are looking for in this case.

Re: satchmo customization experiences? customizing existing e-com vs. roll-your-own

2010-02-09 Thread Chris Moffitt
Based on the additional details describing what you're trying to do, you may be reaching the threshold where Satchmo (or any current package) is going to have to be so heavily modified that it might make sense to roll your own. It sounds like you're trying to develop almost an ERP type of

Re: satchmo customization experiences? customizing existing e-com vs. roll-your-own

2010-02-06 Thread Chris Moffitt
You may get some more answers on the Satchmo list but I assume all those folks are on this list too. I'll attempt to provide some answers here because it's probably of interest to the broader community. Whenever I hear people talking about writing something from scratch, I think about these two

Re: Why there are so few open-source business applications in django?

2010-01-07 Thread Chris Moffitt
Well, I don't know the answer to your original question, but if you want to help out with Satchmo (http://www.satchmoproject.com) feel free to. It's an ecommerce framework not an HR or warehouse mgmt but maybe it will meet your needs. -Chris On Thu, Jan 7, 2010 at 4:35 PM, Mohammad Tayseer

Re: Photo + thumbnail

2010-01-02 Thread Chris Moffitt
You'll probably want to use one of Django's thumbnail apps. Here's the one I recommend: http://code.google.com/p/sorl-thumbnail/* -*Chris On Sat, Jan 2, 2010 at 9:48 AM, nameless wrote: > Hi everyone I have a simple question. > This is my model: > > > class

Re: How to show site down for maintenance page

2009-12-05 Thread Chris Moffitt
Try this - http://code.google.com/p/django-maintenancemode/ -Chris On Sat, Dec 5, 2009 at 6:54 PM, zweb wrote: > What is the best way to show site down for maintenance page ? > > -- > > You received this message because you are subscribed to the Google Groups > "Django

Re: Django and Authorize.net

2009-12-02 Thread Chris Moffitt
Bruce has been working to split out the payments from Satchmo into a standalone app called django-bursar - http://bitbucket.org/bkroeze/django-bursar/overview/ Check that out and see if it meets your needs. I've also heard about this library but have not used it - http://www.adroll.com/labs

ANN - Satchmo 0.9 Released

2009-10-25 Thread Chris Moffitt
I am very happy to announce that Satchmo 0.9 is now released. Satchmo is an ecommerce framework built on the Django framework. It is designed to be robust and full featured out of the box but allow developers flexibility to modify the store to fit your unique needs. This release is a major

Re: any open source complete django app to use as start

2009-10-12 Thread Chris Moffitt
Might as well pile on with Satchmo: http://www.satchmoproject.com -Chris On Mon, Oct 12, 2009 at 10:52 AM, Ben Rousch wrote: > > On Mon, Oct 12, 2009 at 11:50 AM, Daniel Hilton > wrote: > > > > 2009/10/12 shreko : > >> > >> I've

Editable sitemap priority

2009-09-20 Thread Chris Moffitt
I'm curious if anyone has done any work in making certain aspects of the sitemap framework editable via the admin. For instance, someone might want their marketing folks to tweak the various priorities or changrefreq's of specific urls. I know it can be done by editing code and subclassing Sitemap

Re: django-tel : telephone URL support for Django

2009-07-09 Thread Chris Moffitt
How is this different from the built in phone2numeric filter? http://docs.djangoproject.com/en/dev/ref/templates/builtins/#phone2numeric -Chris On Thu, Jul 9, 2009 at 5:27 PM, Aaron Maxwell wrote: > > Hi everyone. > > I've put up a django application providing a template

Re: Drill down combo boxes (Country, State, City)

2009-05-31 Thread Chris Moffitt
You want a chained select form & will need to use javascript to do it. I prefer jquery and have used the one here - http://www.codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/ The code demos are for PHP but it's simple enough to apply to Django. -Chris On Sun, May 31, 2009 at 12:11

Re: Subscriptions software

2009-04-22 Thread Chris Moffitt
It looks like django-accounts is a bit stalled. You could try taking a look at Satchmo (http://www.satchmoproject.com ) It's more of a full fledged ecomerce app but it does support a subscription model and multiple payment gateways. -Chris On Wed, Apr 22, 2009 at 5:35 PM, Alvaro MouriƱo

Re: Problems with satchmo

2009-03-04 Thread Chris Moffitt
You've posted this to the django users group. You'll get more support from the satchmo-users group. When you post there, please include a dpaste link with your traceback. Also, please include which version of Satchmo you're using and the steps required to reproduce the error. -Chris On Wed,

Re: non-model permissions

2008-12-07 Thread Chris Moffitt
I wrote about this a bit in a blog post here - http://www.satchmoproject.com/blog/2008/nov/28/using-django-permissions/ It's really easy to create any permissions using meta then access them in your views. While the permission is created in the models Meta section, you can certainly use it

Satchmo 0.8 Released

2008-11-26 Thread Chris Moffitt
I'm happy to announce that the Satchmo team has released Satchmo 0.8. For those of you not familiar with Satchmo, it is a django-based framework for building highly customized online stores. One of the major aspects of this release is full compatibility with Django 1.0.x. This releases includes

Re: virtualmerchant

2008-09-26 Thread Chris Moffitt
Satchmo - http://www.satchmoproject.com is a Django-based store framework with several credit card processing modules. Feel free to use that code as the basis. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Hosting with support for Satchmo webstore

2008-08-25 Thread Chris Moffitt
On Mon, Aug 25, 2008 at 5:17 AM, Benedict Verheyen < [EMAIL PROTECTED]> wrote: > > Hi, > > i need to develop a website with a webstore and i thought it was > the perfect time to use Django & more specific Satchmo. > However, Satcho has a big list of requirements and i'm not sure > if this will

Re: psycopg2 error with syncdb (but not with sqlite)

2008-08-20 Thread Chris Moffitt
> > > I'm afraid I don't have any magic solutions. The best approach I can > suggest is to log the SQL that is being executed (either in the > Postgres query log or by putting in some debug statements into Django > to output connection.queries). Then narrow down the statement that is > causing

psycopg2 error with syncdb (but not with sqlite)

2008-08-19 Thread Chris Moffitt
I am seeing this error - http://dpaste.com/72596/ with django trunk (rev 8445) when I try to run syncdb using psycopg2 but it works just fine if I use sqlite. Basically I'm getting an error when doing the table introspection code. I can see that there's been some refactoring in this area but the

Re: USAepay cc payment processor

2008-07-12 Thread Chris Moffitt
I'm not familiar with this particular processor but on the surface it looks like a similar process to what you would use for Authorize.net. You can see how we use this particular processor in Satchmo - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/payment/modules/authorizenet

Re: Is middleware appropriate for this?

2008-04-11 Thread Chris Moffitt
Take a look at what we use in Satchmo. Maybe this will help - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/satchmo_currency.py -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: City, State, Country Application?

2008-04-08 Thread Chris Moffitt
Satchmo doesn't have exactly what you are looking for but maybe the data we have in our l10n application will be useful. You can see the models and the existing data here - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/l10n -Chris

Slightly OT - Django is Wired

2008-03-27 Thread Chris Moffitt
I hadn't seen mention of this so I thought I'd give everyone here a heads up. In the April edition of Wired, they have their normal Expired, Tired and Wired lists (p. 44). Check this one out: Expired: ASP.NET Tired: PHP Wired: Django Pretty cool. Yet more positive momentum for a great framework.

Re: accounting/financial apps

2008-03-09 Thread Chris Moffitt
On Sun, Mar 9, 2008 at 9:04 AM, Lewis Bergman <[EMAIL PROTECTED]> wrote: > > Yikes, that thing is complex. Seems powerful but it was difficult to > figure out what to do. I think I would have a reolt on my hands if I put > this in place. I was thinking something a bit more simple. Thanks >

Re: djWarehouse - Django based e-commerce system

2008-02-18 Thread Chris Moffitt
I'll try to respond to some of these points. To be fair, I haven't spent much time looking at the internals of djWarehouse. From the surface, it seems like they have some good experience and design going into the product. I'll point out some differences - but they are mostly based on looking at

Re: Problem trying to configure Django with FastCGI and Lighttpd

2007-12-17 Thread Chris Moffitt
In your mysite.fcgi script, just pass in the variable "prefork" instead of threaded. The other thing you could try is to use the ip address instead of 127.0.0.1. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Problem trying to configure Django with FastCGI and Lighttpd

2007-12-17 Thread Chris Moffitt
Take a look in the lighttpd server logs to see if there are any errors that might point you in the right direction. The other thing is that you're running this threaded but you're spawning multiple processes. I suspect that could be causing problems too. Trying running it prefork and see if

Re: Country, State and City data

2007-12-11 Thread Chris Moffitt
We have country and admin area (i.e. state/province) included in Satchmo. You can see the models here - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/l10n The actual data is an XML file in the fixtures directory. Geonames - http://www.geonames.org/ is a big open source

Re: Unhandled Exception on new server (Lighttpd + FastCGI)

2007-12-05 Thread Chris Moffitt
Sounds like this bug - http://code.djangoproject.com/ticket/6063 which was supposed to be fixed in [6895]. Are you sure you have the most recent checkout? -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Installing Django on VPS with 128mb ram

2007-12-04 Thread Chris Moffitt
On my blog post here - http://www.satchmoproject.com/blog/2007/sep/25/optimizing-django-vps-setup/ I wrote some of my tips for configuring MySQL to use less memory. I also have some general thoughts on vps setup for django apps. HTH, Chris --~--~-~--~~~---~--~~

Re: Django Plug-ins, Modules, Forums, Wikis, etc.

2007-11-12 Thread Chris Moffitt
> > 1) List of existing modules, code, etc. (FOSS or commercial) > Is there any wiki or published list for this anywhere? Couldn't find > anything at Django, but there was much to read. Might have missed it. Try these 2: http://www.djangosnippets.org/ http://www.djangosites.org/ 4)

Re: ANN: Satchmo 0.6 Released

2007-10-31 Thread Chris Moffitt
That's embarrassing. It's up for me now. There have been some spurious routing issues but it looks fine now. Are you still not seeing it? -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

ANN: Satchmo 0.6 Released

2007-10-30 Thread Chris Moffitt
After a little bit of confusion with my rss feed, I am very pleased to announce that release 0.6 of Satchmo is really available now. Satchmo is an Open Source framework for creating unique and robust online stores. It is developed using the Django framework and has many features, including: -

Re: Authenticating static content when not using mod_python

2007-10-22 Thread Chris Moffitt
> > > > My current plan is the following: > > 1. capture the file request url and direct it a view. > > 2. check user permissions > > 3. Get Python to construct the correct MIME header then read the > > requested file from disk and pipe it through to the user. > > > > If this is the best solution

Re: nesh thumbnails error after moving to unicode

2007-10-05 Thread Chris Moffitt
We've made mods to the thumbnail code to work with Satchmo and more recent django checkouts. You can see it here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/thumbnail -Chris --~--~-~--~~~---~--~~ You received this message because you are

Re: Template category / subcategory with for loops?

2007-10-01 Thread Chris Moffitt
I'm sure people are sick of me for continuing to post this, but folks keep asking, so I'll keep posting! In satchmo, we used elementree to build up such a nested list. You can see the custom template tag here-

Re: django & trac on the same lighttpd?

2007-09-13 Thread Chris Moffitt
Yes, you can absolutely have trac and django on the same instance. When you say it doesn't work, what is happening? -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Chris Moffitt
Here's how I've done it on my blog. Use this tag (which I pulled from somewhere else on the web)- http://www.satchmoproject.com/trac/browser/satchmoproject.com/satchmo_website/apps/blog/templatetags/month-list.py Here's the template that uses the tag-

Re: Hierarchical menus

2007-09-05 Thread Chris Moffitt
I've used satchmo before as an example but here it is again. Here is the model that describes the category- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/product/models.py Here is the template to display the menu-

Django-countries

2007-09-01 Thread Chris Moffitt
By any chance, is the author of django-countries ( http://code.google.com/p/django-countries/ ) on the list? I stumbled upon this app and wanted to touch base with the developer about a couple of things. If you're the developer (or know who is), would you mind sending me a note off-list with

Re: ANN: Satchmo 0.5 Release

2007-08-23 Thread Chris Moffitt
Sorry about that. The deluge of traffic caused my budget vps to have problems (memory). I'm back up now. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

ANN: Satchmo 0.5 Release

2007-08-22 Thread Chris Moffitt
I am very pleased to announce that release 0.5 of Satchmo is now available. Satchmo is an Open Source framework for creating unique and robust online stores. It is developed using the Django framework and has many features, including: - 100% template driven design using the django template system

Re: Best practice for non-root base URL setup?

2007-08-17 Thread Chris Moffitt
We've developed a similar sort of capability for Satchmo. You can browse the source here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Overriding save methot problem

2007-08-07 Thread Chris Moffitt
I've had a similar problem in the past and have been unable to solve it. I'm not sure that there is any simple solution. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Blog engine

2007-07-24 Thread Chris Moffitt
I think I mentioned earlier in this thread, that I do have my take on creating a blog here - http://www.satchmoproject.com/trac/browser/satchmoproject.com/satchmo_website/apps It's pretty full featured right now and makes use of the tagging and comment_utils libraries. It still needs the feeds

Re: How to communicate with Authorize.net?

2007-07-22 Thread Chris Moffitt
The url for satchmo is - http://www.satchmoproject.com The module that sends data to authorize.net is here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/payment/modules/authorizenet/processor.py -Chris --~--~-~--~~~---~--~~ You received this

Re: Using django-comment-utils

2007-07-21 Thread Chris Moffitt
I've moved my comments over there. Thanks. --~--~-~--~~~---~--~~ 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,

Using django-comment-utils

2007-07-21 Thread Chris Moffitt
I'm trying to get django-comment-utils working and I'm having a persistent problem where I get the following error when running syncdb: Error: Couldn't install apps, because there were errors in one or more models: blog: (1146, "Table 'myapp.django_content_type' doesn't exist") So, if I comment

Re: Using Sessions to display the contents of a shopping cart

2007-07-19 Thread Chris Moffitt
The way we handle it with Satchmo is to have a cart object and store that id in the session. It's pretty simple and does not require a user to be logged in. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Bulk data upload

2007-07-18 Thread Chris Moffitt
Also, this library is really simple to use to pull data out of excel. http://www.lexicon.net/sjmachin/xlrd.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Blog engine

2007-07-17 Thread Chris Moffitt
It's definitely a good idea to roll your own but it is helpful to see other code to help you out. I'm in the process of adding a blog to satchmo and have uploaded the code to svn but have not put it into production. As it stands now, the code works but does not have comments enabled yet. If

Re: Dynamic menus using ul and li

2007-06-28 Thread Chris Moffitt
A while back when I was trying to do a similar thing, someone mentioned using elementree to do this. I tried a bunch of other ways but in the end, elementree was the easiest way for me. If you'd like to see the template tag I created, you can see it here -

Re: User Friendly Parent Categories in Admin Panel

2007-06-12 Thread Chris Moffitt
You can see the category model we use in Satchmo here - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/product/models.py Here's a template tag we use to build an HTML hierarchy of the categories -

Re: Including [django-users] in subject line?

2007-06-09 Thread Chris Moffitt
Not to pile on but if you'd like a google mail account for list purposes, that's always an option. It has a very nice way of allowing you to tag messages and file them accordingly. You can also use pop if you want to consolidate with your other mail boxes. Procmail is also a handy option..

Re: Decimal fields have landed on trunk: rename your FloatFields

2007-05-20 Thread Chris Moffitt
This is great news. Thanks for all your work in getting this done! -Chris --~--~-~--~~~---~--~~ 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

Re: Shopping cart application for django

2007-05-16 Thread Chris Moffitt
The current url for the satchmo project is http://www.satchmoproject.com We have basic integration with paypal and are working on more as we speak. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: django [was "vps"] hosting

2007-05-15 Thread Chris Moffitt
> > Does anyone on the list have positive or negative experiences > with either Site5.com or ThinkHost.com you'd be willing to share? > I have used Thinkhost and actually did the write-up on the Django site of how to setup thinkhost with Django. As a provider, Thinkhost is just fine but I

Re: Retrieving 'attributes' of a product for generic views

2007-05-08 Thread Chris Moffitt
> > I've got an ecommerce system I'm working on. I have a product model, I'm not sure if I can answer this specific question but you might want to check out Satchmo - http://www.satchmoproject.com It is an eCommerce solution written in Django - at least take a look and see if it meets your

Re: Saving an object takes a long time

2007-04-16 Thread Chris Moffitt
Thanks for all the suggestions. I'm going to try to work on some of them this evening and see where it gets me. I'll be sure to let the group know if I have any "aha" moments that might help others. -Chris --~--~-~--~~~---~--~~ You received this message because

Re: Saving an object takes a long time

2007-04-15 Thread Chris Moffitt
> > You will need to provide more specific information to get an answer to > that question. Namely, you will need to provide: Of course. > 1) How long "several seconds" is Roughly 5 seconds. > 2) What is your view (or is it admin view)? It is a custom view. I put some print statements

Saving an object takes a long time

2007-04-15 Thread Chris Moffitt
I have a situation with a model that has multiple relationships to other models as described below: Contact (3-4 character fields) - FK to Organization (3-4 char fields) - Many to Many to Address (5-6 char fields) - Many to Many to Phone (3 fields) - Many to Many to Order During the checkout

Re: Contact Form App

2007-04-11 Thread Chris Moffitt
> > Is there a newform contact form snippet to use in a django website to > add the possibility to send email messages from a webpage to an email > address, without spam? Here's what we're using in Satchmo - http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/views/contact.py

Re: Using url in a view

2007-04-03 Thread Chris Moffitt
Malcolm, Thanks for the speedy response. Upon further reflection, I'm thinking I'd like to do something like: reverse(request.path) Will that return the name of the view? In this case, 'full-archive' -Chris --~--~-~--~~~---~--~~ You received this message

Using url in a view

2007-04-03 Thread Chris Moffitt
Is there a way to access a named url from within a view? For example, Using this as a reference- http://www.djangoproject.com/documentation/url_dispatch/ say, I have this url: url(r'/archive/(\d{4})/$', archive, name="full-archive") and access it like this in a template: {% url full-archive

Re: Restructured text parsing not showing h1 levels.

2007-04-02 Thread Chris Moffitt
> > This is normal Restructured Text behaviour, although I agree it's a bit > weird when you first see it. It's kind of a consequence of a ReST > feature combined with us (Django) diving into the middle of the output > processing pipeline to extract only what we need. Ah yes, it is the "normal

Re: Send mail with gmail smtp

2007-04-02 Thread Chris Moffitt
> Has anyone successfully used gmail's smtp to send mail? I've been > trying, but so far no luck. I've added this to my settings.py: > > EMAIL_TLS = True > EMAIL_HOST = smtp.gmail.com > EMAIL_HOST_PASSWORD = mypassword > EMAIL_HOST_USER = myusername > EMAIL_PORT = 465 > > Is something

Re: Managing users through Admin app

2007-03-28 Thread Chris Moffitt
Thom wrote: > OK, so here is some code, because I tried this and still no go; > > in my project settings.py I have this code: > > AUTHENTICATION_BACKENDS = ( > 'pi.apps.email-auth.EmailBackend', > 'pi.apps.authenticate.LDAPAuthenticate', > 'django.contrib.auth.backends.ModelBackend', > ) > > I

ANN: Barnum

2007-03-26 Thread Chris Moffitt
While this is not explicitly a Django tool, I hope you'll allow me to post a quick announcement about a project I'm releasing into the wild called Barnum. Here are some snippets from the readme to explain it a little bit more- What is Barnum? === Barnum is a python-based

Re: Trying to get fixtures working - problem with Site

2007-03-13 Thread Chris Moffitt
> Hrm. The test case checks Null values for every data field, so that > shouldn't be a problem. The only simple reason I can think of is a > required field that doesn't have a representation in your data file. > > How are you producing your data file? Is this failure caused by a data > file

Re: Trying to get fixtures working - problem with Site

2007-03-12 Thread Chris Moffitt
Russell Keith-Magee wrote: > Can you provide a specific example? Like I said, I'm adding a unit > test to cover all the edge cases of serialization - if you have a > specific example that is failing, I'd like to make sure that your > example is covered in the test. > > You hit it. It was a

Trying to get fixtures working - problem with Site

2007-03-12 Thread Chris Moffitt
I've been trying to get the fixtures working in order to beef up the unit tests with my app. I'm running into an issue and wonder if anyone else has seen this. I can serialize the data just fin. When I try to load the data, I get the error below. I've tried this with the XML and brand new

Re: Recursion in templates... again

2007-03-02 Thread Chris Moffitt
I've implemented a similar hierarchy for categories in Satchmo using elementtree. You can see my example here- http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop/templatetags/category_display.py -Chris --~--~-~--~~~---~--~~ You received this

Re: Upcoming Django release, and the future

2007-02-25 Thread Chris Moffitt
> If there's a bug that's been annoying the heck out of you and you want > it fixed before the release, this would be the time to speak up about > it. We have a fairly high concentration of Django developers all in > one place with nothing to do but code, so hopefully we'll be able to > hit a

Suggested blog software

2007-02-14 Thread Chris Moffitt
I know that building your own blog in Django is almost a rite of passage but I am building another app and would like to use a blog plus some other cms-type django goodness for the app website. I've found a few links for working blog code in Django but not much that seems to be actively worked

Re: Django Job Opportunity

2007-01-25 Thread Chris Moffitt
Joseph Toon wrote: > My company is interested in building an e-commerce site, possibly built > > Well, when you evaluate the options, take a look at satchmo http://www.satchmoproject.com --~--~-~--~~~---~--~~ You received this message because you are

Re: FloatField in list_display

2007-01-18 Thread Chris Moffitt
When I try to add a FloatField to list_display in the admin, I get the following error: Am I doing something wrong? Probably not. Dealing with floats/decimals can be a bit tricky. Take a look at this thread -

Re: Customized Admin interface and logout link

2007-01-17 Thread Chris Moffitt
I'm not sure if this will solve your problem, but here's what I did to customize an admin "portal" for satchmo. In my urls.py file http://satchmo.python-hosting.com/file/trunk/satchmo/urls.py I redirected /admin to my custom view.

Re: How to create a simple PDF

2007-01-17 Thread Chris Moffitt
Is TinyRML being actively maintained? Unfortunately, it doesn't look like there's been any activity for about 1 year. I haven't tried getting in touch with the maintainer to see. For my limited use it appears to work fine. -Chris --~--~-~--~~~---~--~~ You

Re: How to create a simple PDF

2007-01-15 Thread Chris Moffitt
I convert text to PDF using the trml2pdf tool here - http://www.openreport.org/index.py/static/page/trml2pdf Here's a view I call to create 1 of 3 PDF documents http://satchmo.python-hosting.com/file/trunk/satchmo/shipping/views.py The PDF templates (in rml format) are stored here -

Idea for capturing logging information by modifying cache behavior

2007-01-13 Thread Chris Moffitt
I've been thinking about ideas to capture more detailed logging info in Django for my app. For instance, I'd like to capture every time someone views a certain object. Also, I might want to capture all items viewed in a session. There are obviously several ways to do it. The simplest is

Re: What is the FloatField type returned when accessing the field value ?

2007-01-06 Thread Chris Moffitt
The other thing to add to this is that the code works fine on a linux machine running with MySQL. I think it's more than just an error with Satchmo, that's why it's been posted to this list. -Chris --~--~-~--~~~---~--~~ You received this message because you

Re: Odd behavior using __range lookup

2006-12-08 Thread Chris Moffitt
> I'm building an e-commerce system and at the moment working on making the > products easily searchable. But when I use a __range lookup, in some > cases I'm sorry I can't help you with your request but I thought I'd point out that there is a project called Satchmo that aims to build an

Logging in an application

2006-11-07 Thread Chris Moffitt
I've done some searching on this but haven't found the definitive answer on this (or at least one that answers all my questions ;). How is everyone implementing routine logging for their applications? I know that the standard python logger works but if I'd like to log each object a user views

Re: Need an advice: simple Online Store project (long)

2006-10-17 Thread Chris Moffitt
I see that you've already found Satchmo. I can comment on some of the features you're looking for. Feel free to subscribe to the google group for more discussion. > > * Item. Representation of actual goods. Belong to one of the > Categories. Category defines attributes, which may have

Re: Shopping carts with Django?

2006-09-29 Thread Chris Moffitt
Maximillian Dornseif wrote: > I built one myself and it was quite easy, yust to give you an > impression of the LoC used: > > [EMAIL PROTECTED]:/usr/local/web/diamond $ wc -l shop/* > shop/templates/shop/* >0 shop/__init__.py > 105 shop/models.py > 14 shop/urls.py > 153

User names and email addresses

2006-08-28 Thread Chris Moffitt
Is there any reason why the Django admin only allows alphanumeric characters for the username? In some instances, people might just want to use an email address to log in, instead of a separate name. Obviously, @ is not allowed at this time. I was just curious if this were a feature or

Examples of customizng the admin interface

2006-08-20 Thread Chris Moffitt
Does anyone have any example apps where they have customized the admin interface? Here's what I'm trying to do. Right now my admin index page has a bunch of models on it. I would like to break the page into 3 or 4 pages with a subset of models on each one (plus additional information). I

Re: How to build a tree on the page?

2006-08-16 Thread Chris Moffitt
> So I have a tree in my database. My question is that, how can I > represent it on the web as a tree. Something like this : > > Is there any example that I could study? > I used the category model here - http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic Then, used

Re: Contacts application

2006-08-08 Thread Chris Moffitt
> Do you know anybody trying a Contacts/Phonebook type of application in > Django? I am thinking about building one. We don't have a contacts application but within Satchmo (the shopping cart framework we're developing) there are some address and contact models that might be helpful. Check the

Re: Samples for displaying a tree of data

2006-07-14 Thread Chris Moffitt
> > I like to use elementtree here... The result tree can be cached and in > the end you have a more usefull representation... > Interesting. Do you have any reference code I could look at to try to wrap my brain around it? I haven't had a chance to look at Malcolm's samples yet but I do intend

Samples for displaying a tree of data

2006-07-13 Thread Chris Moffitt
I'm using the recipe here (http://code.djangoproject.com/wiki/CookBookCategoryDataModelPostMagic) for a category model. It's working well for the most part. I am getting a little stuck trying to figure out how to turn it into a vertical navigation structure. I've looked at

Calendar and time widget in admin

2006-06-04 Thread Chris Moffitt
I've noticed that if there is a date or time field on an admin form that comes after a collapsed field, then the widget does not show up in the right place. If I expand the collapsed fields then it looks fine but if they are collapsed then it shows up in the same place which is no longer the

Re: A little help with a filter

2006-06-02 Thread Chris Moffitt
A perfect explanation > > s1 = set([obj.id for obj in > item1.sub_item_set.filter(options__name__exact="Small")]) > s2 = set([obj.id for obj in > item1.sub_item_set.filter(options__name__exact="Blue")]) > > smallAndBlueIDs = s1.intersection(s2) > smallAndBlueSubItems =

Re: A little help with a filter

2006-06-01 Thread Chris Moffitt
> Try going into the interactive interpretter (python manage.py shell) > and importing your models, then try: > > query=item1.sub_item_set.filter(options__name__exact="Small").filter(options__name__exact="Blue") > > then inspect the resulting SQL query components by executing: > > print

Re: A little help with a filter

2006-06-01 Thread Chris Moffitt
> > Any chance that you're having a case problem? __exact is case > sensitive, while __iexact is case insensitive. > Thanks for the thought. I get the same behavior with iexact. If I run any of the 2 queries by themeselves, they return results. When chained together they do not. I also forgot

A little help with a filter

2006-06-01 Thread Chris Moffitt
I feel like this should be simple but I'm struggling getting this to work like I think it should. Here's the relevant model parts: class Item(models.Model): category = models.ForeignKey(Category) verbose_name = models.CharField("Full Name", maxlength=255) class

  1   2   >